flipper-rollout 1.0.0 → 1.1.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: 0167a6ec5bf4710ac167541b40f6efeb4fa5e72c3e643c8adcc7284ec344b4dd
4
- data.tar.gz: 2c48d2532c0769c020ab127e575cf45d92ab49667cf06e5fab59b5a6354c2173
3
+ metadata.gz: 969db424092a6761418f89162d5fa708f6a1f0c3cdcf7a0c8db855033b4ec648
4
+ data.tar.gz: 1dcafc95b24677601f795907d6eb2962607b4a5a51014daef9ea9b57a4d0de52
5
5
  SHA512:
6
- metadata.gz: 40648d1e01e2b0e5e2aeb28775477a0b7f1b5e5500b81e7bd76f6e778e172cd0128144df0eae6b44b2f76425a2165c7d88c7653819a5a59e2f1509301227943c
7
- data.tar.gz: 04f3feaae49806182cfbf05684068ecd392bed2f2688318c24a0c26dad75eba1d56bef2eff53ef277afaa50ac6c436788859fc2dffc45ec4d8a4996ee39dc982
6
+ metadata.gz: 7269497f98d479c36e8a62e683fe5fb60daa4baba4efad3f264de768fd6f9c07d55ced050a7ee1005caf202794a4c529b257650938a04df88e67be3a2662ba59
7
+ data.tar.gz: 0f9af8ffd0c4886c86f1a67e78a6e1235eb5779fa5de4f29ab607204695a2019d333f2cb2d0028c65fe9f5e727ac5cd3e47548f7c0ac4f8fc0f1cb95b2c1d479
@@ -11,12 +11,8 @@ module Flipper
11
11
  end
12
12
  end
13
13
 
14
- # Public: The name of the adapter.
15
- attr_reader :name
16
-
17
14
  def initialize(rollout)
18
15
  @rollout = rollout
19
- @name = :rollout
20
16
  end
21
17
 
22
18
  # Public: The set of known features.
@@ -53,6 +49,7 @@ module Flipper
53
49
  actors: actors,
54
50
  percentage_of_actors: percentage_of_actors,
55
51
  percentage_of_time: nil,
52
+ expression: nil,
56
53
  }
57
54
  end
58
55
 
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.1.1'.freeze
3
3
  end
@@ -33,6 +33,7 @@ RSpec.describe Flipper::Adapters::Rollout do
33
33
  boolean: nil,
34
34
  groups: Set.new(["admins"]),
35
35
  actors: Set.new(["1"]),
36
+ expression: nil,
36
37
  percentage_of_actors: 20.0,
37
38
  percentage_of_time: nil,
38
39
  }
@@ -46,6 +47,7 @@ RSpec.describe Flipper::Adapters::Rollout do
46
47
  boolean: true,
47
48
  groups: Set.new,
48
49
  actors: Set.new,
50
+ expression: nil,
49
51
  percentage_of_actors: nil,
50
52
  percentage_of_time: nil,
51
53
  }
@@ -61,6 +63,7 @@ RSpec.describe Flipper::Adapters::Rollout do
61
63
  boolean: true,
62
64
  groups: Set.new,
63
65
  actors: Set.new,
66
+ expression: nil,
64
67
  percentage_of_actors: nil,
65
68
  percentage_of_time: nil,
66
69
  }
@@ -115,7 +118,7 @@ RSpec.describe Flipper::Adapters::Rollout do
115
118
  expect(feature.boolean_value).to eq(false)
116
119
  expect(feature.actors_value).to eq(Set.new)
117
120
  expect(feature.groups_value).to eq(Set.new)
118
- expect(feature.percentage_of_actors_value).to be(25)
121
+ expect(feature.percentage_of_actors_value).to be(25.0)
119
122
 
120
123
  feature = destination_flipper[:verbose_logging]
121
124
  expect(feature.boolean_value).to eq(false)
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: 1.0.0
4
+ version: 1.1.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-08-23 00:00:00.000000000 Z
11
+ date: 2023-12-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: 1.0.0
19
+ version: 1.1.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: 1.0.0
26
+ version: 1.1.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: redis
29
29
  requirement: !ruby/object:Gem::Requirement