rconfig 0.5.0 → 0.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.
- checksums.yaml +4 -4
- data/ChangeLog +6 -0
- data/lib/rconfig.rb +1 -1
- data/lib/rconfig/config.rb +1 -1
- data/spec/rconfig_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa519167b9acb9609bcfb1cb956d76450ffd049d
|
|
4
|
+
data.tar.gz: 6fcb318875d3ce88aba4a1182dfa62b3a21dd3f6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 62b1e4a16e5f011ce8b96580cc488a2643074fc55b501759a507b8f57080354ebf760a9b7133e120bc451d607cf8597fe06a2eaf5eb31cea5909ff6475af96a7
|
|
7
|
+
data.tar.gz: c3f7171cbf62cc93ea7ad26ffe266988084c3cd03ffbafb6226c46a8bdd16a78306c7e828c1c21c1ef4e971d72fd2fe03eb92a38c2b43359072474a4a420ab8f
|
data/ChangeLog
CHANGED
data/lib/rconfig.rb
CHANGED
data/lib/rconfig/config.rb
CHANGED
|
@@ -79,7 +79,7 @@ module RConfig
|
|
|
79
79
|
##
|
|
80
80
|
# Override HashWithIndifferentAccess#convert_value
|
|
81
81
|
# return instance of Config for Hash values.
|
|
82
|
-
def convert_value(value)
|
|
82
|
+
def convert_value(value, options = {})
|
|
83
83
|
value.is_a?(Hash) ? self.class.new(value).freeze : super
|
|
84
84
|
end
|
|
85
85
|
|
data/spec/rconfig_spec.rb
CHANGED
|
@@ -58,7 +58,7 @@ describe RConfig do
|
|
|
58
58
|
|
|
59
59
|
it 'should parse xml files with activesupport hash' do
|
|
60
60
|
contents = "<admin><name>/Users/rahmal</name><home>rahmal</home></admin>"
|
|
61
|
-
Hash.should_receive(:from_xml).with(contents)
|
|
61
|
+
Hash.should_receive(:from_xml).with(contents).and_call_original
|
|
62
62
|
RConfig.parse(contents, 'xml_file', :xml)
|
|
63
63
|
end
|
|
64
64
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rconfig
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rahmal Conda
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-02-
|
|
11
|
+
date: 2014-02-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|