flipper-rollout 1.0.0 → 1.1.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: 0167a6ec5bf4710ac167541b40f6efeb4fa5e72c3e643c8adcc7284ec344b4dd
4
- data.tar.gz: 2c48d2532c0769c020ab127e575cf45d92ab49667cf06e5fab59b5a6354c2173
3
+ metadata.gz: 4ea98533b79989f82308caa00c231a30b230646099844b459df0d0f5a2a981de
4
+ data.tar.gz: '029468e3d868055fa90da7438801c8059cef2a11c925935d50240187fa8a8ebd'
5
5
  SHA512:
6
- metadata.gz: 40648d1e01e2b0e5e2aeb28775477a0b7f1b5e5500b81e7bd76f6e778e172cd0128144df0eae6b44b2f76425a2165c7d88c7653819a5a59e2f1509301227943c
7
- data.tar.gz: 04f3feaae49806182cfbf05684068ecd392bed2f2688318c24a0c26dad75eba1d56bef2eff53ef277afaa50ac6c436788859fc2dffc45ec4d8a4996ee39dc982
6
+ metadata.gz: 66343bf68def7baa29d7537f89c1bf83efa3f4d5e99f248e6eabea638d85b0982c335a29236f31b31890da1c169420a6591aba5e2ef38dc5e0e6979f05300a70
7
+ data.tar.gz: 0f9b7222174e5cc495c0bcd87905d329d0d294e1811193ab98ae60376e9ab269385045f561dcbc321f244a4464746168e3502f8df82d6dc2a30394f222443de5
@@ -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.0'.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.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-08-23 00:00:00.000000000 Z
11
+ date: 2023-12-08 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.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: 1.0.0
26
+ version: 1.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: redis
29
29
  requirement: !ruby/object:Gem::Requirement