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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e865b6205e59b6a098a0375d4f931cef4bb1be84
4
- data.tar.gz: 886665106d92cf1d9f77240fa8acf3573e54b2a3
3
+ metadata.gz: 80793af98a867433e83929b5672b2132aa8cba78
4
+ data.tar.gz: 01e50393546f7e80b9cd90485e47d2ce7669e835
5
5
  SHA512:
6
- metadata.gz: 4f854651cc5f0d4666223e794cae46a70ddc253e3c147a6c0bc372069db04b4398d7de1887b41cdc6f367d4647d119a8d82e21e32274ac2fba1f625e87ccf4b3
7
- data.tar.gz: 75085f4756bd059be1586589a616e411e793b848ac942200fd5b521aebe36d4200278a15c3ea3169b4ebae5f3828d38dc063eb67a4310c9bb25d8f6d4e061873
6
+ metadata.gz: fdfe4e7d1103bf7b83bd0539e5f430638d18c81b8b4182e3b269cd739f76f70bdd3c07e2d15aebd7e8633993bfc5d3c925ccb276adb451e81be8b31eb38e3f71
7
+ data.tar.gz: f7b628615e600a2a6852fdb8eb6c133593671ccc292c02a4d5cc268fb3a6c0b79599803864b0a6b9cba605f753030b29ca87a031709aa5601b91fab3f55d7913
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fflags (0.3.5)
4
+ fflags (0.4.0)
5
5
  redis (>= 3.0.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -81,6 +81,9 @@ FFlags.set(:new_view, false)
81
81
 
82
82
  # To reset, and get back to the default settings.
83
83
  FFlags.reset
84
+
85
+ # To read all flags
86
+ FFlags.all
84
87
  ```
85
88
 
86
89
  ## Development
@@ -13,7 +13,7 @@ module FFlags
13
13
  api.load_flags
14
14
  end
15
15
 
16
- def flags
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
- !flags.include?(flag_name)
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?('?') && flags.include?(flag_name) || super
53
+ method_name.to_s.end_with?('?') && all.include?(flag_name) || super
54
54
  end
55
55
 
56
56
  def api
@@ -1,3 +1,3 @@
1
1
  module FFlags
2
- VERSION = '0.3.5'.freeze
2
+ VERSION = '0.4.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fflags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Faizal Zakaria