- Fix Issue #56 with PR #57. Thanks, @jpmoral!
- Avoid circular reference #69, thanks @ccarruitero!
- Unwrap specific keys #54, by @rlburkes. Documented by @mahemoff. Thanks to you both!
- Add
:pretty_print
,:indent
and:compact
options to allow prettified XML output. #59, by @Jeiwan. Thanks!
- Removed Rubinius support, by @olleolleolle
- Clean-up, CI setup, and changelog authoring, by @olleolleolle
- Feature: #53 Improved serialization of hashes nested in arrays. Thanks to @riburkes for this!
- Formally drop support for ruby 1.8.7
- Feature: #52 Adds an :unwrap option that allows an array of hashes to be unwrapped into a single array xml node, rather than one per hash.
- Fixed a bug introduced by making Gyoku threadsafe. Who knew that
$1
and the block variable that#gsub
provides are not the same?
- Fix : #46 Fixed an issue where Gyoku was not threadsafe. Gyoku should now be relatively more threadsafe due to less usage of global variables.
- Feature: #44 support for sorting via :order! with a string key
- Feature: #38 support for building nested Arrays
- Feature: #36 allow setting any objects content with :content!
- Deprecation: Support for ree and ruby 1.8.7 will be going away soon.
-
Feature: #30 support for building Arrays of parent tags using @attributes.
-
Fix: #21 stop modifying the original Hash. The original issue is savonrb/savon#410.
- Refactoring: Removed the global configuration. This should really only affect the
Gyoku.convert_symbols_to
shortcut which was removed as well. If you're using Gyoku with Savon 2.0, there's now an option for that. If you're using Gyoku on itself, you can pass it the:key_converter
option instead.
Feature: #19 adds support for explicit XML attributes.
Feature: #17 adds an :upcase
formula.
-
Fix: #16 Date objects were mapped like DateTime objects.
Gyoku.xml(date: Date.today) # => "<date>2012-06-28</date>"
-
Fix: Time objects were also mapped like DateTime objects.
Gyoku.xml(time: sunday) # => "<time>16:22:33</time>"
-
Fix: issue 8 - Conflict between camelcase methods in Rails.
-
Fix: pull request 15 - Gyoku generates blank attribute values if there are fewer attribute values in attributes! than elements.
-
Fix: issue 12 - Don't remove special keys from the original Hash.
- Fix: issue 6 -
Gyoku.xml
does not modify the original Hash.
- Fix: Make sure
require "date"
when necessary.
- Fix:
Array.to_xml
so that the given :namespace is applied to every element in an Array.
- Fix: Alternative formulas and namespaces.
-
Feature: Added alternative Symbol conversion formulas. You can choose between :lower_camelcase (the default), :camelcase and :none.
Gyoku.convert_symbols_to :camelcase
You can even define your own formula:
Gyoku.convert_symbols_to { |key| key.upcase }
- Feature: Gyoku now calls Proc objects and converts their return value.
-
Feature: Now when all Hash keys need to be namespaced (like with elementFormDefault), you can use options to to trigger this behavior.
Gyoku.xml hash, :element_form_default => :qualified, :namespace => :v2
- Feature: Added support for self-closing tags. Hash keys ending with a forward slash (regardless of their value) are now converted to self-closing tags.
- Fix: Allow people to use new versions of builder.
- Initial version. Gyoku was born as a core extension inside the Savon library.