The official GRPC Ruby client for Flipt.
-
Configure RubyGems to authenticate with GitHub Package Registry
-
Update your
~/.gemrc
to contain the following:
:sources:
- https://rubygems.org/
- https://{GITHUB_USERNAME}:{GITHUB_TOKEN}@rubygems.pkg.github.com/flipt-io/
- Add this line to your application's Gemfile:
source "https://rubygems.pkg.github.com/flipt-io" do
gem "flipt-grpc", "1.0.0"
end
-
And then execute:
$ bundle
Or install it yourself as:
gem install flipt-grpc --version "1.0.0" --source "https://rubygems.pkg.github.com/flipt-io"
-
Run flipt server
$ docker run --rm -p 8080:8080 -p 9000:9000 flipt/flipt:latest
-
Open the UI at localhost:8080 and create some flags
-
cd examples/basic
-
bundle install
-
bundle exec flipt.rb
Available Flags: [<Flipt::Flag: key: "flipt-ruby", name: "Flipt Ruby", description: "I'm flipt from Ruby", enabled: true, created_at: <Google::Protobuf::Timestamp: seconds: 1571496667, nanos: 305497800>, updated_at: <Google::Protobuf::Timestamp: seconds: 1571496667, nanos: 305497800>, variants: []>]
Bug reports and pull requests are welcome on GitHub at https://github.com/flipt-io/flipt-grpc-ruby.
The gem is available as open source under the terms of the MIT License.