We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This code:
xml = Gyoku.xml({ 'foo' => { '@foo' => 'foo' }, 'bar' => [ { '@bar' => 'bar', 'baz' => { } } ], })
produces this xml:
<foo foo="foo"> </foo> <bar> <baz> </baz> </bar>
but should produce:
<foo foo="foo"> </foo> <bar bar="bar"> <baz> </baz> </bar>
(the attributes are missing when the hash value is an array of hashes).
I looked at array.rb for how to fix this, but it's not obvious to me.
Strathmeyer mentioned this in #18 (comment), but I thought it was better to enter a separate issue for this rather than hijack an existing one.
The text was updated successfully, but these errors were encountered:
glancing over this, it looks like this could be resolved by #30. @razum2um what do you think?
Sorry, something went wrong.
add more tests to show fix of savonrb#31
7be23fe
fix issue savonrb#31
0cfcfa9
@cout please see #30 i also included your example into specs - passing now
note 2 things
hash = { :order! => ['foo', 'bar'], 'foo' => { :@foo => 'foo' }, 'bar' => { :@bar => 'bar', 'baz' => { } }, } to_xml(hash).should == '<foo foo="foo"></foo><bar bar="bar"><baz></baz></bar>'
@rubiii i think its completly mergable
thanks @razum2um!
No branches or pull requests
This code:
produces this xml:
but should produce:
(the attributes are missing when the hash value is an array of hashes).
I looked at array.rb for how to fix this, but it's not obvious to me.
Strathmeyer mentioned this in #18 (comment), but I thought it was better to enter a separate issue for this rather than hijack an existing one.
The text was updated successfully, but these errors were encountered: