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