config_reader 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.0.5 2009-01-29
2
+ * handle keys as ['foo'], [:foo] and .foo
3
+ * return nil on non-existent key instead of error
4
+
1
5
  == 0.0.4 2008-12-08
2
6
  * fix the environment merging issue, for real this time
3
7
 
@@ -2,7 +2,7 @@ module ConfigReader
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 4
5
+ TINY = 5
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
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] || super
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
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: 2008-12-08 00:00:00 -06:00
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.2
23
+ version: 1.8.0
24
24
  version:
25
25
  description: Configurations based on environment ala Rails
26
26
  email: