fflags 0.3.5 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +3 -0
- data/lib/fflags.rb +3 -3
- data/lib/fflags/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80793af98a867433e83929b5672b2132aa8cba78
|
4
|
+
data.tar.gz: 01e50393546f7e80b9cd90485e47d2ce7669e835
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdfe4e7d1103bf7b83bd0539e5f430638d18c81b8b4182e3b269cd739f76f70bdd3c07e2d15aebd7e8633993bfc5d3c925ccb276adb451e81be8b31eb38e3f71
|
7
|
+
data.tar.gz: f7b628615e600a2a6852fdb8eb6c133593671ccc292c02a4d5cc268fb3a6c0b79599803864b0a6b9cba605f753030b29ca87a031709aa5601b91fab3f55d7913
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/fflags.rb
CHANGED
@@ -13,7 +13,7 @@ module FFlags
|
|
13
13
|
api.load_flags
|
14
14
|
end
|
15
15
|
|
16
|
-
def
|
16
|
+
def all
|
17
17
|
api.flags
|
18
18
|
end
|
19
19
|
|
@@ -41,7 +41,7 @@ module FFlags
|
|
41
41
|
flag_name = method_name[0..-2]
|
42
42
|
|
43
43
|
if !method_name.to_s.end_with?('?') ||
|
44
|
-
!
|
44
|
+
!all.include?(flag_name)
|
45
45
|
return super
|
46
46
|
end
|
47
47
|
|
@@ -50,7 +50,7 @@ module FFlags
|
|
50
50
|
|
51
51
|
def respond_to_missing?(method_name, include_private = false)
|
52
52
|
flag_name = method_name[0..-2]
|
53
|
-
method_name.to_s.end_with?('?') &&
|
53
|
+
method_name.to_s.end_with?('?') && all.include?(flag_name) || super
|
54
54
|
end
|
55
55
|
|
56
56
|
def api
|
data/lib/fflags/version.rb
CHANGED