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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 315e3fa13873cb26485f851a17fcf17b8455185dcf7ce17be10d3f5b3b521bdf
4
- data.tar.gz: ebde9ab7329a5d368dc63da623d9226d62f3670d159496800b63550f88620883
3
+ metadata.gz: 70d0c99f156132a9b3a71ae69adcfec08ecd2a53615651fce6c2e7c6370bf88d
4
+ data.tar.gz: c54a72a35b0f6be0981fe2b6250453b9a2b90f6ac46ff043ece802991a3fc40a
5
5
  SHA512:
6
- metadata.gz: 2f4bf02b775b15f1948beb42aeb0a4ccaf07f6926ffe2910fc2dccdf3a1d9cca4f508346cf91cacb354302f10ea0921e1f400bd2a054ff6313609d953ce1a36f
7
- data.tar.gz: a55c3dd57fa19ec1a1e2d6c8324be1548683eeb5dc82b2c3c9533afcbe937be725a937fc0d95ba54502787bf0f97dbca2275f9b1d478018e88b3dcf15c034db0
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
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = '0.26.2'.freeze
2
+ VERSION = '0.27.0'.freeze
3
3
  end
@@ -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
- begin
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([:admins]),
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.26.2
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-15 00:00:00.000000000 Z
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.26.2
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.2
26
+ version: 0.27.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: redis
29
29
  requirement: !ruby/object:Gem::Requirement