flipper-rollout 0.26.2 → 0.27.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flipper/adapters/rollout.rb +1 -1
- data/lib/flipper/version.rb +1 -1
- data/spec/flipper/adapters/rollout_spec.rb +2 -4
- 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: 70d0c99f156132a9b3a71ae69adcfec08ecd2a53615651fce6c2e7c6370bf88d
|
4
|
+
data.tar.gz: c54a72a35b0f6be0981fe2b6250453b9a2b90f6ac46ff043ece802991a3fc40a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bc6f5a0020714fe70d2ca9f9bdecc0e16e1f3281ec1ad233f572a4d4a52fe02fcd5cee774cd0c72d992622a2269d49620ed271178bc0c47fc6bca46a68b6a82
|
7
|
+
data.tar.gz: 451711241bacb1c3279da473024c73496fc505c3b003e740cccf4aafaf0f2cc0409676e11d7fcb51e92aac22170e0f40d10d1c447061bf8a9f24941661c5748f
|
@@ -32,7 +32,7 @@ module Flipper
|
|
32
32
|
return default_config if rollout_feature.nil?
|
33
33
|
|
34
34
|
boolean = nil
|
35
|
-
groups = Set.new(rollout_feature.groups)
|
35
|
+
groups = Set.new(rollout_feature.groups.map(&:to_s))
|
36
36
|
actors = Set.new(rollout_feature.users)
|
37
37
|
|
38
38
|
percentage_of_actors = case rollout_feature.percentage
|
data/lib/flipper/version.rb
CHANGED
@@ -11,10 +11,8 @@ RSpec.describe Flipper::Adapters::Rollout do
|
|
11
11
|
let(:destination_flipper) { Flipper.new(destination_adapter) }
|
12
12
|
|
13
13
|
before do
|
14
|
-
|
14
|
+
skip_on_error(Redis::CannotConnectError, 'Redis not available') do
|
15
15
|
redis.flushdb
|
16
|
-
rescue Redis::CannotConnectError
|
17
|
-
ENV['CI'] ? raise : skip('Redis not available')
|
18
16
|
end
|
19
17
|
end
|
20
18
|
|
@@ -33,7 +31,7 @@ RSpec.describe Flipper::Adapters::Rollout do
|
|
33
31
|
feature = source_flipper[:chat]
|
34
32
|
expected = {
|
35
33
|
boolean: nil,
|
36
|
-
groups: Set.new([
|
34
|
+
groups: Set.new(["admins"]),
|
37
35
|
actors: Set.new(["1"]),
|
38
36
|
percentage_of_actors: 20.0,
|
39
37
|
percentage_of_time: nil,
|
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.27.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: 2023-03-
|
11
|
+
date: 2023-03-18 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.27.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.27.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: redis
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|