featury 1.0.0.rc3 → 1.0.0.rc4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -8
  3. data/lib/featury/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca75356ade329cfb662e46fa37ad0a80dbedb2deb0a58f23861f1e231d7e5425
4
- data.tar.gz: 437cb00d9eb4eb07609df3f0c25ec2619af10c9264ed254d6c85f3eb0e527974
3
+ metadata.gz: 61aef35ff4aede3e7c747a1b28be3d9ce598b068bc2d355093ac7a6ebb5b0829
4
+ data.tar.gz: 40a570d5c32557cc9d7ab325633df8783676bfe48c58f1985bc943f1bb8c1d48
5
5
  SHA512:
6
- metadata.gz: 0d023c6922b92d82278313c4d6379a8e624d76f0e7972155558e5630516bdee079f24a096e1b565f71d6d98d7ecfc37c9238aa849d4efe68809c947e03a25ed5
7
- data.tar.gz: cabb3d61981e2c44bce2c2d4ecbe1a5fa9d8857bedbd593060202368e08c5c9bbd4c1953ecadb9fbc4868124b49703c7a644e4d7fad293322f3ae4075b5c2d0b
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
  ```
@@ -5,7 +5,7 @@ module Featury
5
5
  MAJOR = 1
6
6
  MINOR = 0
7
7
  PATCH = 0
8
- PRE = "rc3"
8
+ PRE = "rc4"
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join(".")
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: featury
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc3
4
+ version: 1.0.0.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Sokolov