application_configuration 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,8 +16,10 @@ module Application
16
16
  def method_missing(sym, *args)
17
17
  inst = Application::Configuration.instance
18
18
  # check to see if the configuration needs to be reloaded.
19
- if (Time.now - (inst.reload_settings_every || DEFAULT_RELOAD_SETTINGS_EVERY)) > inst.last_reload_time
20
- inst.reload
19
+ unless inst.reload_settings_every == -1
20
+ if (Time.now - (inst.reload_settings_every || DEFAULT_RELOAD_SETTINGS_EVERY)) > inst.last_reload_time
21
+ inst.reload
22
+ end
21
23
  end
22
24
  inst.send(sym, *args)
23
25
  end
@@ -238,4 +240,4 @@ class Object
238
240
  Application::Configuration
239
241
  end
240
242
 
241
- end
243
+ 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.0
4
+ version: 1.5.1
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-06-04 00:00:00 -04:00
12
+ date: 2008-07-17 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15