config_reader 0.0.5 → 0.0.6

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.6 2009-04-02
2
+ * handle keys as ['foo'], [:foo] and .foo for real this time
3
+ * return nil on non-existent key instead of error
4
+
1
5
  == 0.0.5 2009-01-29
2
6
  * handle keys as ['foo'], [:foo] and .foo
3
7
  * return nil on non-existent key instead of error
@@ -2,7 +2,7 @@ module ConfigReader
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 5
5
+ TINY = 6
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/lib/config_reader.rb CHANGED
@@ -70,6 +70,6 @@ end
70
70
 
71
71
  class Hash
72
72
  def method_missing(key)
73
- self[key.to_s] || super
73
+ has_key?(key) || has_key?(key.to_s) ? self[key] || self[key.to_s] : super
74
74
  end
75
75
  end
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.5
4
+ version: 0.0.6
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: 2009-01-29 00:00:00 -06:00
12
+ date: 2009-04-02 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency