featury 1.0.0.rc3 → 1.0.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -8
- data/lib/featury/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61aef35ff4aede3e7c747a1b28be3d9ce598b068bc2d355093ac7a6ebb5b0829
|
4
|
+
data.tar.gz: 40a570d5c32557cc9d7ab325633df8783676bfe48c58f1985bc943f1bb8c1d48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '097cbc783cb17e6648a514190be9bf075868113e089fb21725f9889b92e4293ebe5ea5c2ca49fdebc2ca06c318f37556ca69c56c4703c04a5693de6fbb1eb0de'
|
7
|
+
data.tar.gz: 3c41249a7db0ead35e581e6f6e517157b46cec9ee03e4f005f0c6529bb0067ec7c14ed7b130d550ffb22e66a72589638cb259b359137aee3f393db9763896238
|
data/README.md
CHANGED
@@ -30,20 +30,20 @@ In this case, the base class might look like this:
|
|
30
30
|
|
31
31
|
```ruby
|
32
32
|
class ApplicationFeature < Featury::Base
|
33
|
-
action :enabled? do |features
|
34
|
-
features.all? { |feature| Flipper.enabled?(feature) }
|
33
|
+
action :enabled? do |features:, **options|
|
34
|
+
features.all? { |feature| Flipper.enabled?(feature, *options.values) }
|
35
35
|
end
|
36
36
|
|
37
|
-
action :disabled? do |features
|
38
|
-
features.any? { |feature| !Flipper.enabled?(feature) }
|
37
|
+
action :disabled? do |features:, **options|
|
38
|
+
features.any? { |feature| !Flipper.enabled?(feature, *options.values) }
|
39
39
|
end
|
40
40
|
|
41
|
-
action :enable do |features
|
42
|
-
features.all? { |feature| Flipper.enable(feature) }
|
41
|
+
action :enable do |features:, **options|
|
42
|
+
features.all? { |feature| Flipper.enable(feature, *options.values) }
|
43
43
|
end
|
44
44
|
|
45
|
-
action :disable do |features
|
46
|
-
features.all? { |feature| Flipper.disable(feature) }
|
45
|
+
action :disable do |features:, **options|
|
46
|
+
features.all? { |feature| Flipper.disable(feature, *options.values) }
|
47
47
|
end
|
48
48
|
end
|
49
49
|
```
|
data/lib/featury/version.rb
CHANGED