this_feature 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/this_feature/adapters/memory.rb +2 -6
- data/lib/this_feature/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d173ac479e6b81bd46368c6d4a16c135781f53c087ecbe787d8b81ab753f9db
|
4
|
+
data.tar.gz: ad26a2049348ae2ef9ebe0d60a4a3d1059b0cb2a38db10b25c2707a33b5c8bab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9b4b5144aeba8d98fd881efa6b99ab68a4ea3cc44571d4757b0f9182a1b95f7f947b95926a8f5954297139260098c524c7cbdab94f49228b3436ae7ff71a0b6
|
7
|
+
data.tar.gz: 9b840f3f2b75a0ef67a4e05a426f4faf73792faabd55df3a423f935a1a60d93b638c0d7474af56b7a4640292f84986e8bbeb424abb4e5bb96e59523a941f544f
|
data/Gemfile.lock
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
this_feature (0.5.
|
5
|
-
this_feature-adapters-flipper (0.5.
|
4
|
+
this_feature (0.5.3)
|
5
|
+
this_feature-adapters-flipper (0.5.3)
|
6
6
|
flipper (~> 0.16)
|
7
7
|
flipper-active_record (~> 0.16)
|
8
8
|
this_feature
|
9
|
-
this_feature-adapters-split_io (0.5.
|
9
|
+
this_feature-adapters-split_io (0.5.3)
|
10
10
|
splitclient-rb
|
11
11
|
this_feature
|
12
12
|
|
@@ -15,7 +15,7 @@ class ThisFeature
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def on?(flag_name, context: nil, data: {})
|
18
|
-
return unless present?(flag_name)
|
18
|
+
return false unless present?(flag_name)
|
19
19
|
|
20
20
|
flag_data = storage[flag_name]
|
21
21
|
|
@@ -28,11 +28,7 @@ class ThisFeature
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def off?(flag_name, context: nil, data: {})
|
31
|
-
|
32
|
-
|
33
|
-
return if on_result.nil?
|
34
|
-
|
35
|
-
!on_result
|
31
|
+
!on?(flag_name, context: context, data: data)
|
36
32
|
end
|
37
33
|
|
38
34
|
def on!(flag_name, context: nil, data: {})
|
data/lib/this_feature/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: this_feature
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max Pleaner
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|