flipper

0.2.0 Latest release released
metaware/flipper
21 2
Metaware Labs

flipper

Build Status LICENSE GitHub tag

Feature flipping is the act of enabling or disabling features or parts of your application, ideally without re-deploying or changing anything in your code base.

Installation

Add this to your application's shard.yml:

dependencies:
  flipper:
    github: metaware/flipper

Usage

require "flipper"
Flipper.adapter = Kiwi::MemoryStore.new
Flipper.adapter = Kiwi::RedisStore.new(Redis.new)

You are free to use anyone of the supported adapeters/stores from crystal-kiwi

Flipper.enable(:feature_name)

if Flipper.enabled?(:feature_name)
  puts "Feature launched, Let's roll!"
else
  puts "Feature not released yet."
end

Flipper.disable(:search)

if Flipper.disabled?(:search)
  puts "Search is not available yet!"
end

Roadmap

  • [x] Simple Logic Gate
  • [ ] Groups
  • [ ] Individual Users/Actors
  • [ ] Percentage of Actors

Contributing

  1. Fork it ( https://github.com/metaware/flipper/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Credits

Contributors

flipper:
  github: metaware/flipper
  version: ~> 0.2.0
License MIT
Crystal 0.23.1

Authors

Dependencies 0

Development Dependencies 2

  • memcached
    {'github' => 'comandeo/crystal-memcached'}
  • redis ~> 1.8.0
    {'github' => 'stefanwille/crystal-redis', 'version' => '~> 1.8.0'}

Dependents 0

Last synced .
search fire star recently