hash-tree 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hash-tree.rb +3 -2
  3. metadata +19 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c92972764199548bb71f2e92dbe36e12664e5b21
4
- data.tar.gz: ad4c922293c7d57e916ec3c878f83a3425cafd64
3
+ metadata.gz: 05e32349542afc7dfd01ff0d3c70103243da6f29
4
+ data.tar.gz: f953b95cf25c2c84cac4aa4885f4617724475a33
5
5
  SHA512:
6
- metadata.gz: b9fc07836a7a8937e1dd0dfe691b3ec574240ac0ada34efc425ca072bf5e8dc46a0fd84f77af93ac8b39081f8f1a07c598b0f36efe4a40d6c83ac8f78b9833ec
7
- data.tar.gz: c3628f1a3d83242e4e52ebc7a0d22f53f296437f16141e6104dd84f3080163ebb8cd45599093c8a21d5526744ec1abe3c17e15b82771f4d5c5a9af351c7f1bac
6
+ metadata.gz: dd7b318388219fdba5ca921d96f28b944688e4442ba5eba449c9b15e3fb53f29fbfdcd348a33465b0d8772bb5afb66bd5f5729431f10c656da07d1f3c4a29560
7
+ data.tar.gz: 502743e8e84c0dce67ba0941c16e9038eb5a50fedaba7096d4bd7421200d9f4a8c821b0f1a409ee0edac2fa83a4d1d3da9fed9bc89f79d6a88c89c07b5d7a06b
@@ -32,8 +32,9 @@ class HashTree
32
32
 
33
33
  def self.from_xml(xml_data)
34
34
  return nil if xml_data.to_s.empty?
35
-
36
- tree = self.new(Nori.parse(xml_data))
35
+
36
+ parser = Nori.new
37
+ tree = self.new(parser.parse(xml_data))
37
38
  tree.replace_values!(nil, '')
38
39
 
39
40
  return tree
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hash-tree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastien Rosa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-07 00:00:00.000000000 Z
11
+ date: 2014-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -44,14 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.1.0
47
+ version: '2.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: nokogiri
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 1.6.1
48
62
  type: :runtime
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
66
  - - "~>"
53
67
  - !ruby/object:Gem::Version
54
- version: 1.1.0
68
+ version: 1.6.1
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rake
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -135,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
149
  version: '0'
136
150
  requirements: []
137
151
  rubyforge_project: hash-tree
138
- rubygems_version: 2.2.1
152
+ rubygems_version: 2.2.2
139
153
  signing_key:
140
154
  specification_version: 4
141
155
  summary: Manage nested hash