settingslogic 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 0
3
- :patch: 0
3
+ :patch: 1
4
4
  :major: 2
@@ -50,8 +50,9 @@ class Settingslogic < Hash
50
50
  when Hash
51
51
  self.update hash_or_file
52
52
  else
53
- self.update YAML.load(ERB.new(File.read(hash_or_file)).result).to_hash
54
- self.update self[self.class.namespace] if self.class.namespace
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!
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{settingslogic}
8
- s.version = "2.0.0"
8
+ s.version = "2.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ben Johnson of Binary Logic"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: settingslogic
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Johnson of Binary Logic