configatron 2.5.0 → 2.5.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.
Files changed (2) hide show
  1. data/lib/configatron/store.rb +2 -1
  2. metadata +2 -2
@@ -100,7 +100,8 @@ class Configatron
100
100
  # Retrieves a certain parameter and if that parameter
101
101
  # doesn't exist it will return the default_value specified.
102
102
  def retrieve(name, default_value = nil)
103
- @_store[name.to_sym] || default_value
103
+ val = method_missing(name.to_sym)
104
+ return val.is_a?(Configatron::Store) ? default_value : val
104
105
  end
105
106
 
106
107
  # Removes a parameter. In the case of a nested parameter
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: configatron
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.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: 2009-09-10 00:00:00 -04:00
12
+ date: 2009-09-11 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency