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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4de105772ea9dcfc41a47a23df53342ad4f6efdc
4
- data.tar.gz: 4067b78c457ec794bf956e45ddbedcb252b91c07
3
+ metadata.gz: aa519167b9acb9609bcfb1cb956d76450ffd049d
4
+ data.tar.gz: 6fcb318875d3ce88aba4a1182dfa62b3a21dd3f6
5
5
  SHA512:
6
- metadata.gz: dd71203d348b908d47fad71f869fddcd00ca9294472c7ef3917e2b8f00de3cc86e7f2b9c95e1ef62251530c7c775b630d01ac53c21e731f81120b5825be56a93
7
- data.tar.gz: 2be95370f7e9dea1006ad821bdf55ee2dfea5cd34ce2434d8aaaef13ecbff6188fd2343defbf685e234307f7502078efaa7fb7d0b7d573ab1053b0e1674f6ba8
6
+ metadata.gz: 62b1e4a16e5f011ce8b96580cc488a2643074fc55b501759a507b8f57080354ebf760a9b7133e120bc451d607cf8597fe06a2eaf5eb31cea5909ff6475af96a7
7
+ data.tar.gz: c3f7171cbf62cc93ea7ad26ffe266988084c3cd03ffbafb6226c46a8bdd16a78306c7e828c1c21c1ef4e971d72fd2fe03eb92a38c2b43359072474a4a420ab8f
data/ChangeLog CHANGED
@@ -1,3 +1,9 @@
1
+ 0.5.1
2
+ =====
3
+ * Fixed bug: New Active Support convert_value method signature
4
+ * Fixing rspec test
5
+ * Update from lepek/rconfig (See github commit #e51f73b)
6
+
1
7
  0.5.0
2
8
  =====
3
9
  * Corrected typo in generator template
@@ -65,7 +65,7 @@ require 'rconfig/core_ext/hash'
65
65
  require 'rconfig/core_ext/nil'
66
66
 
67
67
  module RConfig
68
- VERSION = '0.5.0'
68
+ VERSION = '0.5.1'
69
69
 
70
70
  autoload :Socket, 'socket'
71
71
  autoload :YAML, 'yaml'
@@ -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
 
@@ -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.0
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-26 00:00:00.000000000 Z
11
+ date: 2014-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport