forked from jnunemaker/happymapper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
History
72 lines (58 loc) · 2.93 KB
/
History
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
== 0.3.3
* 1 bug fix 2 minor enhancements
* Don't serialize nil elements of primitive type (jimmyz)
* Added the xml version/encoding header to serialized xml string on to_xml (jimmyz)
* Bug fix: Don't parse deep on non-primitive elements unless :deep => true (jimmyz)
== 0.3.2
* 1 bug fix
* to_xml_node was blowing up if a non-primitive element was nil. Fixed (jimmyz)
== 0.3.1
* 1 minor tweak
* Added to_xml and namespace_url code to the family_tree.rb example
== 0.3.0
* 5 major enhancements, 2 minor enhancements, 1 bug fixes
* to_xml methods attach namespaces to the root element and add the namespaces to the elements (if a namespace_url is specified)
* Modified namespace method to accept a hash {'prefix' => 'http://example.com/v1'} OR 'prefix'
* Added namespace_url method to set and read a full namespace URL. This adds much better stability in case prefixes change.
* Added to_xml method to HappyMapper Module to serialize objects to string
* Added to_xml_node method to HappyMapper Module to serialize objects to LibXML::XML::Node
* Full support for creating happymapper elements from scratch. has_many instance vars default to []
* Support for has_many with a primitive type (String, Boolean, etc.)
* fix for issue #8: http://jnunemaker.lighthouseapp.com/projects/20014-happy-mapper/tickets/8
== 0.2.2
* 2 minor tweaks
* removed GC.start (libxml recommended this) as setting nodes to nil should be enough, specs run 3-4x faster (Brandon Keepers)
* renamed get_tag_name to tag_name (Brandon Keepers)
* removed libxml helpers as they are no longer needed
== 0.2.1
* 1 minor fix, 3 major enhancements
* fixed warnings about using XML::Parser (mojodna)
* Improved namespace support, now handles multiple namespaces and allows namespaces to be set item wide or on a per element basis (mojodna)
* Auto detect root nodes (mojodna)
* Type coercion (mojodna)
== 0.2.0
* 1 major enhancement, 2 minor ehancements
* Automatic handling of namespaces (part by Robert Lowrey and rest by John Nunemaker)
* Added :root option to tag method. This allows setting an object as the root element, which sets xpath to use / and sets single to true
* Now defaulting tag names for classes in modules to last constant downcased
== 0.1.7 2009-01-29
* 1 minor enhancement
* Support dashes in elements (Josh Nichols)
== 0.1.6 2009-01-17
* 1 minor enhancement:
* added support for nested collection elements (Justin Marney)
== 0.1.5 2009-01-05
* 1 major enhancement:
* Updated to latest version of libxml-ruby (lightningdb)
== 0.1.4 2009-01-05
* 1 major enhancement:
* Fixed parsing when the object is the root node. (Garret Alfert)
== 0.1.3 2008-12-31
* 1 major enhancement:
* Added parsing of attributes of elements that are also mapped, see current_weather.rb for example (jeremyf)
== 0.1.2 2008-12-12
* 1 major enhancement:
* Fixed that :deep only worked for first item (dvrensk)
== 0.1.0 2008-11-16
* 1 major enhancement:
* Initial release