application_configuration 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -102,10 +102,14 @@ module Application
102
102
  raise TypeError.new("The Application::Configuration::Location type '#{lf.type}' is not supported!")
103
103
  end
104
104
  end
105
-
106
105
  @last_reload_time = Time.now
107
106
  end
108
107
 
108
+ def revert(step = 1)
109
+ step.times {self.loaded_files.pop}
110
+ reload
111
+ end
112
+
109
113
  def dump_to_screen
110
114
  y = self.final_configuration_settings.to_yaml
111
115
  puts y
@@ -157,7 +161,7 @@ WARNING: Tried to access configuration parameter: #{sym}, but there is no config
157
161
  e_meths.each do |m|
158
162
  eval %{
159
163
  def #{m}
160
- self.final_configuration_settings["#{m}"]
164
+ self.final_configuration_settings["#{m}"] || self.final_configuration_settings[:#{m}]
161
165
  end
162
166
  }
163
167
  end
@@ -2,4 +2,4 @@
2
2
  gem_name: application_configuration
3
3
  package: application_configuration
4
4
  project: magrathea
5
- version: 1.2.0
5
+ version: 1.2.1
metadata CHANGED
@@ -1,17 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: application_configuration
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - markbates
8
8
  autorequire:
9
9
  - application_configuration
10
- - application_configuration
11
10
  bindir: bin
12
11
  cert_chain: []
13
12
 
14
- date: 2008-02-18 00:00:00 -05:00
13
+ date: 2008-03-12 00:00:00 -04:00
15
14
  default_executable:
16
15
  dependencies: []
17
16