Flaggle Rock is a simple feature flagging gem for use with Ruby on Rails applications.
It is designed for easily hiding features from end users to help enable a fast-moving CI workflow. It currently does not aim to support more advanced features such as A/B testing.
Add Flaggle Rock to your Gemfile:
Generate the migrations, and run them to add feature flags to your database:
bundle exec rails generate flaggle_rock:install
bundle exec rails db:migrate
All flags are off by default. There is no need to explicitly create a new flag—turning it on will do this.
To enable/disable a flag:
To check whether a flag is on:
To remove a flag which is no longer used:
To remove all disabled flags:
Goals with Flaggle Rock include the creation of a web UI for easily administering flags.
Flaggle Rock has been tested with Rails 7 and PostgreSQL 11, but should work with older versions of Rails and other database engines.
Flaggle Rock is released under the MIT License.