gyoku icon indicating copy to clipboard operation
gyoku copied to clipboard

Translates Ruby Hashes to XML

Results 10 gyoku issues
Sort by recently updated
recently updated
newest added

In GitHub Actions output, examples: ``` Coveralls encountered an exception: NoMethodError undefined method `coverage' for #[1, 1, nil, 1, nil, nil, 1, 4, nil, nil, nil, 1, 6, nil, nil,...

There are quotes (double quotes) in all readme examples. Pretty print option gives apostrophe (single quotes) in output. PR sets quotes as default and gives ability to set apostrophe with...

This PR adds option `:builder` which is directly passed to `Builder::XmlMarkup` So it's possible to pass options like `:indent` and others. For example ``` ruby Gyoku::xml({:some => { :new =>...

Hi, congrats for the nice gem. I need instead it do How can I do this? thanks ``` @teste = Gyoku.xml( :enviar_instrucao => { :instrucao_unica =>{ :razao => 'Upgrade de...

If I write the following code: ``` ruby Gyoku.xml(tag!: 'text', attributes!: {tag: { prop: 1}}) ``` the output is `"text"`, note the property may be missing in the tag But...

Any reason not to accept something `call`able or allow one to [add a converter](https://github.com/savonrb/gyoku/tree/master/lib/gyoku/xml_key.rb#L9-L15)? The problem I've found is that some schemas upcase certain words. For example: Ruby:camelcaseWanted :product_id ProductIdProductID...

more explicite requires and referencing to builder classes by them with `::` to mark top level - without those I had probelms using gyoku. Works with builder 2.1.x and 3.x

It produces: ``` h = {attrs: [{attr: 1}, {attr: 2}, {attr: 3}]} => {:attrs=>[{:attr=>1}, {:attr=>2}, {:attr=>3}]} Gyoku.xml(h) => "123" ``` I think this behaviour is completely incorrect. I believe it...

The xml method does not behave as I would expect as it modifies the hash that is passed into it. Moreover, it modifies elements within the hash as it proceeds....

Consider the following ruby script: ``` require 'gyoku' puts "Ruby Version: #{RUBY_VERSION}" puts Gyoku.xml(:special_chars => %q{&"'}) ``` When executed on Ruby 1.9.3, it produces this output: ``` Ruby Version: 1.9.3...