flipper-rollout 0.26.2 → 0.27.1
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: bfcfa6808452a6732ffe0d509540aed062ad00d8094a28a7d7066646c38e60e9
|
4
|
+
data.tar.gz: 15e4de0cd95d66aeb3097fcff287b3da9a69f6e67549a5c9b6692babe74206d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dfffb55180d8ed158b217c088189f9bb6d4a402696641b5afea9e4bd656856ed1068845a9d12c89291ff6def1c074e11fe14c6744d0ec4166cb792e149fde31
|
7
|
+
data.tar.gz: 67102fbc97bcbae5778e62fe63c56630aadf858e0402883d2d6f3e4b04bd12a7cc5f97286ab26e981c132f81eded6fd02b61365247f961d2df6bac6743023d51
|
@@ -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.1
|
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-20 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.1
|
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.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: redis
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|