config_reader 0.0.4 → 0.0.5
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/History.txt +4 -0
- data/lib/config_reader/version.rb +1 -1
- data/lib/config_reader.rb +2 -2
- metadata +3 -3
data/History.txt
CHANGED
data/lib/config_reader.rb
CHANGED
@@ -45,7 +45,7 @@ class ConfigReader
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def [](key)
|
48
|
-
config[key]
|
48
|
+
config[key] || config[key.to_s]
|
49
49
|
end
|
50
50
|
|
51
51
|
def find_config
|
@@ -59,7 +59,7 @@ class ConfigReader
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def method_missing(key)
|
62
|
-
config[key.to_s] ||
|
62
|
+
config[key.to_s] || nil
|
63
63
|
end
|
64
64
|
|
65
65
|
def inspect
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: config_reader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Moen
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-01-29 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 1.8.
|
23
|
+
version: 1.8.0
|
24
24
|
version:
|
25
25
|
description: Configurations based on environment ala Rails
|
26
26
|
email:
|