Sha256: 09b4553f77a8bb4e360a282ddc429a4bd043ab373632f9f97861280b88e591b0

Contents?: true

Size: 475 Bytes

Versions: 36

Compression:

Stored size: 475 Bytes

Contents

require 'bundler/setup'
require 'sequel'
Sequel::Model.db =  Sequel.sqlite(':memory:')
Sequel.extension :migration, :core_extensions

require 'generators/flipper/templates/sequel_migration'
CreateFlipperTablesSequel.new(Sequel::Model.db).up

require 'flipper/adapters/sequel'

Flipper[:stats].enable

if Flipper[:stats].enabled?
  puts "Enabled!"
else
  puts "Disabled!"
end

Flipper[:stats].disable

if Flipper[:stats].enabled?
  puts "Enabled!"
else
  puts "Disabled!"
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
flipper-sequel-1.3.2 examples/sequel/basic.rb
flipper-sequel-1.3.1 examples/sequel/basic.rb
flipper-sequel-1.3.0 examples/sequel/basic.rb
flipper-sequel-1.3.0.pre examples/sequel/basic.rb
flipper-sequel-1.2.2 examples/sequel/basic.rb
flipper-sequel-1.2.1 examples/sequel/basic.rb
flipper-sequel-1.2.0 examples/sequel/basic.rb
flipper-sequel-1.1.2 examples/sequel/basic.rb
flipper-sequel-1.1.1 examples/sequel/basic.rb
flipper-sequel-1.1.0 examples/sequel/basic.rb
flipper-sequel-1.0.0 examples/sequel/basic.rb
flipper-sequel-1.0.0.pre examples/sequel/basic.rb
flipper-sequel-0.28.3 examples/sequel/basic.rb
flipper-sequel-0.28.2 examples/sequel/basic.rb
flipper-sequel-0.28.1 examples/sequel/basic.rb
flipper-sequel-0.28.0 examples/sequel/basic.rb
flipper-sequel-0.27.1 examples/sequel/basic.rb
flipper-sequel-0.27.0 examples/sequel/basic.rb
flipper-sequel-0.26.2 examples/sequel/basic.rb
flipper-sequel-0.26.0 examples/sequel/basic.rb