binarylogic-settingslogic 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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