xml-to-hash 1.0.2 → 1.0.3
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/README.md +1 -1
- data/lib/xml/to/hash.rb +1 -1
- data/xml-to-hash.gemspec +5 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4af0fbe218b2e26d594c555d13030dd2f59957a0
|
|
4
|
+
data.tar.gz: 159c2e84b0a9e0fc104e5384b4a2f132b05b7de1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e3f4fd26cf3fb44278df0121aec415e3387ba360909b67e4facda2439c3536627343fcebab560afaae7d2cb84c67871f624ce6448b3cac8af775773fd04d8aa
|
|
7
|
+
data.tar.gz: 5e3ca0953517794a2b468c392d21aaf248e939f403de6483d4894428f4b9b377c2abc32f298030a71359d7346da97f57ba2133a6a40cbdd62324a96d0ce4e81e
|
data/README.md
CHANGED
|
@@ -209,7 +209,7 @@ produces
|
|
|
209
209
|
|
|
210
210
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
211
211
|
|
|
212
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `
|
|
212
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `xml/to/hash.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
213
213
|
|
|
214
214
|
## Contributing
|
|
215
215
|
|
data/lib/xml/to/hash.rb
CHANGED
data/xml-to-hash.gemspec
CHANGED
|
@@ -9,8 +9,10 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.authors = ['Maarten Trompper']
|
|
10
10
|
spec.email = ['maartentrompper@gmail.com']
|
|
11
11
|
|
|
12
|
-
spec.
|
|
13
|
-
|
|
12
|
+
spec.required_ruby_version = '>= 1.9.2'
|
|
13
|
+
|
|
14
|
+
spec.summary = %q{Transparently transform XML documents to Ruby hashes (and JSON, and beyond)}
|
|
15
|
+
spec.description = %q{This gem adds a `to_hash` method to Nokogiri XML nodes into a Ruby hash. In the resulting hash, all keys are constants.
|
|
14
16
|
|
|
15
17
|
This gem also picks up attributes, processing instructions and doctype declarations. The resulting Hash is wordy, but complete.
|
|
16
18
|
|
|
@@ -31,6 +33,7 @@ As an added bonus, we include line numbers where possible.}
|
|
|
31
33
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
32
34
|
spec.require_paths = ['lib']
|
|
33
35
|
|
|
36
|
+
|
|
34
37
|
spec.add_development_dependency 'bundler', '~> 1.10'
|
|
35
38
|
spec.add_development_dependency 'rake', '~> 10.0'
|
|
36
39
|
spec.add_development_dependency 'rspec', '~> 2.4'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: xml-to-hash
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Maarten Trompper
|
|
@@ -73,7 +73,7 @@ dependencies:
|
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
74
|
version: '1.6'
|
|
75
75
|
description: |-
|
|
76
|
-
This gem
|
|
76
|
+
This gem adds a `to_hash` method to Nokogiri XML nodes into a Ruby hash. In the resulting hash, all keys are constants.
|
|
77
77
|
|
|
78
78
|
This gem also picks up attributes, processing instructions and doctype declarations. The resulting Hash is wordy, but complete.
|
|
79
79
|
|
|
@@ -108,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
108
108
|
requirements:
|
|
109
109
|
- - ">="
|
|
110
110
|
- !ruby/object:Gem::Version
|
|
111
|
-
version:
|
|
111
|
+
version: 1.9.2
|
|
112
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
requirements:
|
|
114
114
|
- - ">="
|
|
@@ -119,5 +119,5 @@ rubyforge_project:
|
|
|
119
119
|
rubygems_version: 2.4.7
|
|
120
120
|
signing_key:
|
|
121
121
|
specification_version: 4
|
|
122
|
-
summary: Transparently
|
|
122
|
+
summary: Transparently transform XML documents to Ruby hashes (and JSON, and beyond)
|
|
123
123
|
test_files: []
|