smacks-apricoteatsgorilla 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -4
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
= Apricot eats Gorilla
|
2
2
|
|
3
|
-
Apricot eats Gorilla translates between XML documents and
|
3
|
+
Apricot eats Gorilla translates between XML documents and Hashes.
|
4
4
|
It's based on CobraVsMongoose but uses Hpricot instead of REXML to parse
|
5
5
|
XML and it also doesn't follow the BadgerFish convention.
|
6
6
|
|
7
|
-
Its initial purpose was to convert SOAP response messages to
|
7
|
+
Its initial purpose was to convert SOAP response messages to Hashes,
|
8
8
|
but it quickly evolved into a more general translation tool.
|
9
9
|
|
10
10
|
== Install
|
@@ -57,7 +57,7 @@ And it gets converted into a nice little Hash:
|
|
57
57
|
"email" => "jj@example.com"
|
58
58
|
}
|
59
59
|
|
60
|
-
==
|
60
|
+
== Conclusions
|
61
61
|
|
62
62
|
* The xml_to_hash method starts parsing the XML at the root node by default.
|
63
63
|
By calling the method with an XPath expression as second parameter, we're
|
@@ -66,6 +66,6 @@ And it gets converted into a nice little Hash:
|
|
66
66
|
* The value of empty element nodes will be nil.
|
67
67
|
* Node values of "true" or "false" will be converted to boolean objects.
|
68
68
|
|
69
|
-
==
|
69
|
+
== More information
|
70
70
|
|
71
71
|
Take a look at the tests for some more examples.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smacks-apricoteatsgorilla
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Harrington
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 0.6.164
|
24
24
|
version:
|
25
|
-
description: Apricot eats Gorilla translates between XML documents and
|
25
|
+
description: Apricot eats Gorilla translates between XML documents and Hashes.
|
26
26
|
email:
|
27
27
|
executables: []
|
28
28
|
|
@@ -59,7 +59,7 @@ rubyforge_project:
|
|
59
59
|
rubygems_version: 1.2.0
|
60
60
|
signing_key:
|
61
61
|
specification_version: 2
|
62
|
-
summary: Apricot eats Gorilla translates between XML documents and
|
62
|
+
summary: Apricot eats Gorilla translates between XML documents and Hashes.
|
63
63
|
test_files:
|
64
64
|
- tests/apricot_eats_gorilla_testsuite.rb
|
65
65
|
- tests/hash_to_xml_test.rb
|