flipper-rollout 0.20.2 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/rollout/README.md +1 -1
- data/examples/rollout/basic.rb +1 -7
- data/examples/rollout/import.rb +2 -10
- data/lib/flipper/version.rb +1 -1
- data/spec/flipper/adapters/rollout_spec.rb +5 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de9d06dea3a10630bdc3892c2d10b4f02fdd6c3ddc0a510f3314937dd80a2a7d
|
4
|
+
data.tar.gz: 8d952a90c9ca2cc72c87e3470d44b18cb53239d34a342b1e7843ac93262b268a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f24c0efe75a5297f0ec662289ef7be80c183208554939e89884643a535360327688c504a17d87ca5d595654e1dc8d7dbfc5a250d41558ca0bf1d8f82a34828c
|
7
|
+
data.tar.gz: 1cbd02d1e924c38df543038b0aec2e047ee7d74a82493d751c53425c5f09fe6fc7dfb6e333a73c818d58983d9041261a92269a7a73d5c3741fd575f1b80980f4
|
data/docs/rollout/README.md
CHANGED
@@ -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.
|
41
|
+
config.adapter { Flipper::Adapters::Redis.new(redis) }
|
42
42
|
end
|
43
43
|
|
44
44
|
# import rollout into redis flipper
|
data/examples/rollout/basic.rb
CHANGED
data/examples/rollout/import.rb
CHANGED
@@ -1,10 +1,4 @@
|
|
1
|
-
require '
|
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.
|
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
|
data/lib/flipper/version.rb
CHANGED
@@ -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
|
-
|
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.
|
4
|
+
version: 0.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Nunemaker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-09 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.
|
19
|
+
version: 0.21.0
|
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.
|
26
|
+
version: 0.21.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: redis
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|