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-0.26.0.rc2 examples/sequel/basic.rb
flipper-sequel-0.26.0.rc1 examples/sequel/basic.rb
flipper-sequel-0.25.4 examples/sequel/basic.rb
flipper-sequel-0.25.3 examples/sequel/basic.rb
flipper-sequel-0.25.2 examples/sequel/basic.rb
flipper-sequel-0.25.1 examples/sequel/basic.rb
flipper-sequel-0.25.0 examples/sequel/basic.rb
flipper-sequel-0.24.1 examples/sequel/basic.rb
flipper-sequel-0.24.0 examples/sequel/basic.rb
flipper-sequel-0.23.1 examples/sequel/basic.rb
flipper-sequel-0.23.0 examples/sequel/basic.rb
flipper-sequel-0.22.2 examples/sequel/basic.rb
flipper-sequel-0.22.1 examples/sequel/basic.rb
flipper-sequel-0.22.0 examples/sequel/basic.rb
flipper-sequel-0.21.0 examples/sequel/basic.rb
flipper-sequel-0.21.0.rc2 examples/sequel/basic.rb