application_configuration 1.5.2 → 1.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -146,7 +146,8 @@ WARNING: Tried to access configuration parameter: #{sym}, but there is no config
146
146
  def handle_settings(settings, location)
147
147
  @final_configuration_settings.merge!(settings || {})
148
148
  # puts "@final_configuration_settings: #{@final_configuration_settings.inspect}"
149
- self.final_configuration_settings.each_pair do |k,v|
149
+ fcs = @final_configuration_settings.dup
150
+ self.final_configuration_settings.dup.each_pair do |k,v|
150
151
  k = k.to_s.downcase
151
152
  # start a list of methods that need to be generated
152
153
  # methods can't have :: in them so convert these to __.
@@ -156,9 +157,9 @@ WARNING: Tried to access configuration parameter: #{sym}, but there is no config
156
157
  mod = vars.first # namespace
157
158
  e_meths << mod # generate a method for the namespace
158
159
  # create a new Namespace object for this name space and assign it to the final_configuration_settings hash.
159
- self.final_configuration_settings[mod.to_s] = Application::Configuration::Namespace.new(mod.to_s)
160
+ fcs[mod.to_s] = Application::Configuration::Namespace.new(mod.to_s)
160
161
  # add an entry for the __ version of the key so our __ method can call it.
161
- self.final_configuration_settings[e_meths.first] = v
162
+ fcs[e_meths.first] = v
162
163
  end
163
164
  # generate all the necessary getter methods
164
165
  e_meths.each do |m|
@@ -173,7 +174,7 @@ WARNING: Tried to access configuration parameter: #{sym}, but there is no config
173
174
  }
174
175
  end
175
176
  end
176
-
177
+ @final_configuration_settings = fcs
177
178
  @loaded_files << location
178
179
  @loaded_files.uniq!
179
180
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: application_configuration
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - markbates
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-30 00:00:00 -04:00
12
+ date: 2008-08-29 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -47,7 +47,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
47
47
  requirements: []
48
48
 
49
49
  rubyforge_project: magrathea
50
- rubygems_version: 1.1.1
50
+ rubygems_version: 1.2.0
51
51
  signing_key:
52
52
  specification_version: 2
53
53
  summary: A simple system for configuring Ruby applications.