flipper-rollout 0.20.1 → 0.21.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ccf399f14e91fc6b5497227fffb9581ff88942f53df70e878388856ac2821f1f
4
- data.tar.gz: 94d1272dde8442a626fc688d1cf470f7384a09d2a7c5eec0c5757706a461e9cb
3
+ metadata.gz: 9931bda9aabb0bf0739ac68e2c07b75b194017570c3808dfd8835953e8270a12
4
+ data.tar.gz: 4666f89daafb998b1c6ac25c9f724582abf08e70a8f3e4483d445efdeb61278b
5
5
  SHA512:
6
- metadata.gz: 7c2c07b0f286caab10ac20bb07d24464357f05cd974430a6326092d2c8b13736a644bf3a39adea675e5a0fa1880b26d3d06b0dcd91c97810ccc23bb5a1ca4504
7
- data.tar.gz: 8a215643430ac70c409c9beffe294a65653eae216e7982f35796316d1d00997ce8f36debbb788563d3fe1e18ffe897302ed97eb96f081cbff13b99d5f41f98d0
6
+ metadata.gz: f197abf12c52d57f286b229caabf5691b62d45c7f48b692441ea73919cd0a72a4bb5d68321d98542ce833e0ccbc8f5190b710f5c54849d9d032a008cc064536b
7
+ data.tar.gz: 7ce727235d2b17a843c3e300b3044c142d13617976d885e208df067e4cbd33a0f8eca9a9a7ebbe9bad96d85fa3aa2a69c4d1dbc397a059baaa2ded026a602912
@@ -38,7 +38,7 @@ rollout_flipper = Flipper.new(rollout_adapter)
38
38
 
39
39
  # setup flipper default instance
40
40
  Flipper.configure do |config|
41
- config.default { Flipper.new(Flipper::Adapters::Redis.new(redis)) }
41
+ config.adapter { Flipper::Adapters::Redis.new(redis) }
42
42
  end
43
43
 
44
44
  # import rollout into redis flipper
@@ -1,10 +1,4 @@
1
- require 'pathname'
2
- require 'logger'
3
-
4
- root_path = Pathname(__FILE__).dirname.join('..').expand_path
5
- lib_path = root_path.join('lib')
6
- $:.unshift(lib_path)
7
-
1
+ require 'bundler/setup'
8
2
  require 'redis'
9
3
  require 'rollout'
10
4
  require 'flipper'
@@ -1,10 +1,4 @@
1
- require 'pathname'
2
- require 'logger'
3
-
4
- root_path = Pathname(__FILE__).dirname.join('..').expand_path
5
- lib_path = root_path.join('lib')
6
- $:.unshift(lib_path)
7
-
1
+ require 'bundler/setup'
8
2
  require 'redis'
9
3
  require 'rollout'
10
4
  require 'flipper'
@@ -19,9 +13,7 @@ rollout_flipper = Flipper.new(rollout_adapter)
19
13
 
20
14
  # setup flipper default instance
21
15
  Flipper.configure do |config|
22
- config.default do
23
- Flipper.new(Flipper::Adapters::Redis.new(redis))
24
- end
16
+ config.adapter { Flipper::Adapters::Redis.new(redis) }
25
17
  end
26
18
 
27
19
  # flush redis so we have clean state for script
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = '0.20.1'.freeze
2
+ VERSION = '0.21.0.rc2'.freeze
3
3
  end
@@ -13,7 +13,11 @@ RSpec.describe Flipper::Adapters::Rollout do
13
13
  let(:destination_flipper) { Flipper.new(destination_adapter) }
14
14
 
15
15
  before do
16
- redis.flushdb
16
+ begin
17
+ redis.flushdb
18
+ rescue Redis::CannotConnectError
19
+ ENV['CI'] ? raise : skip('Redis not available')
20
+ end
17
21
  end
18
22
 
19
23
  describe '#name' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flipper-rollout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.1
4
+ version: 0.21.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-31 00:00:00.000000000 Z
11
+ date: 2021-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flipper
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.20.1
19
+ version: 0.21.0.rc2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.20.1
26
+ version: 0.21.0.rc2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: redis
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -88,9 +88,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  requirements:
91
- - - ">="
91
+ - - ">"
92
92
  - !ruby/object:Gem::Version
93
- version: '0'
93
+ version: 1.3.1
94
94
  requirements: []
95
95
  rubygems_version: 3.0.3
96
96
  signing_key: