Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
feature flipping for ANYTHING
Ruby CSS HTML Other

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
lib
spec
.gitignore
Gemfile
Guardfile
LICENSE
README.md
Rakefile
flipper.gemspec

README.md

Flipper

Feature flipper for any adapter.

Usage

require 'flipper/adapters/memory'

adapter = Flipper::Adapters::Memory.new
search = Flipper::Feature.new(:search, adapter)

if search.enabled?
  puts 'Search away!'
else
  puts 'No search for you!'
end

puts 'Enabling Search...'
search.enable

if search.enabled?
  puts 'Search away!'
else
  puts 'No search for you!'
end

Installation

Add this line to your application's Gemfile:

gem 'flipper'

And then execute:

$ bundle

Or install it yourself with:

$ gem install flipper

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Something went wrong with that request. Please try again.