gyoku 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gyoku/version.rb +1 -1
- data/lib/gyoku/xml_value.rb +1 -0
- data/spec/gyoku/hash_spec.rb +3 -5
- metadata +5 -5
data/lib/gyoku/version.rb
CHANGED
data/lib/gyoku/xml_value.rb
CHANGED
data/spec/gyoku/hash_spec.rb
CHANGED
@@ -132,16 +132,14 @@ describe Gyoku::Hash do
|
|
132
132
|
"<v2:third><v2:firstName>Danie</v2:firstName></v2:third>"
|
133
133
|
)
|
134
134
|
end
|
135
|
-
|
135
|
+
|
136
136
|
it "should add given :namespace to every element in an array" do
|
137
137
|
hash = { :array => [ :first => "Luvy", :second => "Anna" ]}
|
138
138
|
result = to_xml hash, :element_form_default => :qualified, :namespace => :v1
|
139
139
|
|
140
|
-
result.should include(
|
141
|
-
"<v1:array><v1:first>Luvy</v1:first><v1:second>Anna</v1:second></v1:array>"
|
142
|
-
)
|
140
|
+
result.should include("<v1:array>", "<v1:first>Luvy</v1:first>", "<v1:second>Anna</v1:second>")
|
143
141
|
end
|
144
|
-
|
142
|
+
|
145
143
|
end
|
146
144
|
end
|
147
145
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gyoku
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 3
|
10
|
+
version: 0.4.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Daniel Harrington
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-04
|
18
|
+
date: 2011-05-04 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
requirements: []
|
142
142
|
|
143
143
|
rubyforge_project: gyoku
|
144
|
-
rubygems_version: 1.4.
|
144
|
+
rubygems_version: 1.4.1
|
145
145
|
signing_key:
|
146
146
|
specification_version: 3
|
147
147
|
summary: Converts Ruby Hashes to XML
|