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 +4 -4
- data/lib/flipper/adapters/rollout.rb +1 -4
- data/lib/flipper/version.rb +1 -1
- data/spec/flipper/adapters/rollout_spec.rb +4 -1
- 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: 4ea98533b79989f82308caa00c231a30b230646099844b459df0d0f5a2a981de
|
4
|
+
data.tar.gz: '029468e3d868055fa90da7438801c8059cef2a11c925935d50240187fa8a8ebd'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/flipper/version.rb
CHANGED
@@ -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.
|
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
|
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.
|
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.
|
26
|
+
version: 1.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: redis
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|