🐬 Beautiful, performant feature flags for Ruby.
uninitialized constant Flipper::CLI::IRB
by @bkeepers in https://github.com/flippercloud/flipper/pull/824
Full Changelog: https://github.com/flippercloud/flipper/compare/v1.2.1...v1.2.2
Full Changelog: https://github.com/flippercloud/flipper/compare/v1.2.0...v1.2.1
Read more about the Flipper 1.2.0 release on The Friday Deploy
rails generate flipper:setup
to configure Flipper and Cloud by @bkeepers in https://github.com/flippercloud/flipper/pull/804
flipper/test_help.rb
to automatically configure Flipper in tests/specs. by @bkeepers in https://github.com/flippercloud/flipper/pull/808
config.flipper.strict = true
by @bkeepers in https://github.com/flippercloud/flipper/pull/797
Full Changelog: https://github.com/flippercloud/flipper/compare/v1.1.2...v1.2.0
Flipper::Engine
was not properly delegating a class method to the instance (https://github.com/flippercloud/flipper/pull/788)$ rails generate flipper:update
to generate necessary schema migrations (https://github.com/flippercloud/flipper/pull/787)Full Changelog: https://github.com/flippercloud/flipper/compare/v1.1.1...v1.1.2
Full Changelog: https://github.com/flippercloud/flipper/compare/v1.1.0...v1.1.1
Read more about the Flipper 1.1.0 release on The Friday Deploy
Rails.application.configure do
# don't preload features for /assets/* but do for everything else
config.flipper.preload = ->(request) { !request.path.start_with?('/assets') }
end
strict
configuration to warn when accessing a feature that doesn't exist (https://github.com/flippercloud/flipper/pull/760, https://github.com/flippercloud/flipper/pull/763)
Rails.application.configure do
# Setting to `true` or `:raise` will raise error when a feature doesn't exist.
# Use `:warn` to log a warning instead.
config.flipper.strict = !Rails.env.production?
end
flipper-active_record
adapter will want to migrate the database so it can store JSON expressions (https://github.com/flippercloud/flipper/pull/692)
$ rails generate migration change_flipper_gates_value_to_text
change_column :flipper_gates, :value, :text
# You can now just do this in your configure block and it'll require the files and configure the client.
Flipper.configure do |conf|
conf.statsd = my_client
end
$ rails credentials:edit
flipper:
cloud_token: <your-cloud-token>
cloud_sync_secret: <your-webhook-secret>
Full Changelog: https://github.com/flippercloud/flipper/compare/v1.0.0...v1.1.0
This release is more than just a version number. Read more about this release and the future of Flipper.
flipper-cloud
gem has been merged into the flipper
and no longer needs to be added separately. Configure cloud by setting the FLIPPER_CLOUD_TOKEN
environment variable. (https://github.com/flippercloud/flipper/pull/743)
# Gemfile
gem 'flipper'
- gem 'flipper-cloud'
bool
, actors
, time
, actor
, percentage_of_actors
, and percentage_of_time
methods on Flipper
and Flipper::DSL
. They are rarely if ever used and conflict with some upcoming features. If you are using them, you can migrate via a search and replace like so:
Flipper.bool
=> Flipper::Types::Boolean.new
Flipper.boolean
=> Flipper::Types::Boolean.new
Flipper.actor
=> Flipper::Types::Actor.new
Flipper.percentage_of_actors
=> Flipper::Types::PercentageOfActors.new
Flipper.actors
=> Flipper::Types::PercentageOfActors.new
Flipper.percentage_of_time
=> Flipper::Types::PercentageOfTime.new
Flipper.time
=> Flipper::Types::PercentageOfTime.new
If your company uses Flipper and wants to help us make it better, consider becoming a sponsor.