configru 0.4.0 → 0.4.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.
- data/ChangeLog.md +4 -0
- data/lib/configru/confighash.rb +2 -2
- data/lib/configru/version.rb +1 -1
- data/lib/configru.rb +4 -0
- metadata +2 -2
data/ChangeLog.md
CHANGED
data/lib/configru/confighash.rb
CHANGED
@@ -19,8 +19,8 @@ module Configru
|
|
19
19
|
|
20
20
|
def [](key)
|
21
21
|
key = key.to_s if key.is_a?(Symbol)
|
22
|
-
# Allow for accessing keys with
|
23
|
-
key = key.gsub('_', '-')
|
22
|
+
# Allow for accessing keys with hyphens using underscores
|
23
|
+
key = key.gsub('_', '-') unless self.include?(key)
|
24
24
|
# For some reason, super(key) returns {} instead of nil when the key
|
25
25
|
# doesn't exist :\
|
26
26
|
super(key) if self.include?(key)
|
data/lib/configru/version.rb
CHANGED
data/lib/configru.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: configru
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-02-28 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Versatile configuration file loader
|
15
15
|
email:
|