togls 2.0.0 → 2.1.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: 6f11f55bb24ae3654bcebd4c45ce99a10f325b5d
4
- data.tar.gz: dcd73b550500f2c72bff92a9f7bf78ba6a8f2844
3
+ metadata.gz: f46ed25a5481c4fb307371d0b93605319bdcc96c
4
+ data.tar.gz: 0aa81b472846597a2d5352b78be389238d4f39bb
5
5
  SHA512:
6
- metadata.gz: 31e475eedfd5e2e93e2abc494afdb2ad98cc287ea7a2cbda630ecb23eb67490f40523dd046a6b41888f885d6cdc1cf5187dacd6b4ba8a22d48b0a1b2322da450
7
- data.tar.gz: 7c9401b65661dd1be31e08528b06c5dc31d26f35f7035590e89881835eedf3eb251e6df9329498e5f046a9e07af3eb30b1c1c2d8213805a6d9ed460d15e76ad0
6
+ metadata.gz: 70fa80929ecadda83f401a971a4751c51d10495ee9f0bc60232f6b9bdafeac853dc065c2195a353cf6ac93a3e5f2190d3c372471b58086a9488b05a370c9cb35
7
+ data.tar.gz: e7f56d13e274a63d3038b221a09bc0accfaf5538474b5b424111739e6f6e62fa068fcd4828723494d708760188194d85e22ee5bc8efc6952d5ec19767b8631ea
data/ChangeLog.md CHANGED
@@ -6,6 +6,11 @@ versions, as well as provide a rough history.
6
6
 
7
7
  #### Next Release
8
8
 
9
+ ### v2.1.0
10
+
11
+ * Fixed #19, exceptions happened on evaluation after setting
12
+ `Togls.features = nil`
13
+
9
14
  ### v2.0.0
10
15
 
11
16
  * Add ability to create empty feature toggle set via `Togls.features`
data/lib/togls/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Togls
2
- VERSION = "2.0.0"
2
+ VERSION = "2.1.0"
3
3
  end
data/lib/togls.rb CHANGED
@@ -38,6 +38,10 @@ module Togls
38
38
  end
39
39
 
40
40
  def self.feature(key)
41
+ if @feature_toggle_registry.nil?
42
+ @feature_toggle_registry = FeatureToggleRegistry.new
43
+ end
44
+
41
45
  return @feature_toggle_registry.get(key)
42
46
  end
43
47
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: togls
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Miller
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2015-11-23 00:00:00.000000000 Z
13
+ date: 2015-11-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler