binarylogic-settingslogic 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/settingslogic.rb +3 -2
- data/settingslogic.gemspec +1 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/settingslogic.rb
CHANGED
@@ -50,8 +50,9 @@ class Settingslogic < Hash
|
|
50
50
|
when Hash
|
51
51
|
self.update hash_or_file
|
52
52
|
else
|
53
|
-
|
54
|
-
|
53
|
+
hash = YAML.load(ERB.new(File.read(hash_or_file)).result).to_hash
|
54
|
+
hash = hash[self.class.namespace] if self.class.namespace
|
55
|
+
self.update hash
|
55
56
|
end
|
56
57
|
|
57
58
|
define_settings!
|
data/settingslogic.gemspec
CHANGED