application_configuration 1.2.0 → 1.2.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/lib/application_configuration.rb +6 -2
- data/lib/tasks/rubyforge_config.yml +1 -1
- metadata +2 -3
|
@@ -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
|
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.
|
|
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-
|
|
13
|
+
date: 2008-03-12 00:00:00 -04:00
|
|
15
14
|
default_executable:
|
|
16
15
|
dependencies: []
|
|
17
16
|
|