History.txt in roxml-2.4.3 vs History.txt in roxml-2.5.0

- old
+ new

@@ -1,4 +1,58 @@ +== 2.5.0 (February 24, 2009) + +* major enhancements + + * support for mapping ActiveRecord classes. See examples/active_record.rb. + * .from_xml will now use the setter for the declared variable, if one is available, + rather than directly setting the instance variable + * All declaration type arguments are now supported via the :as parameter, e.g. :as => [MyType]. Other uses are deprecated. + * All xml source path arguments are now supported via the :from and :in parameters, e.g. :from => :attr or :from => '@MyAttr'. Other uses are deprecated. + * All other options are presented separately, e.g. :cdata => true rather than :as => :cdata. Other uses are deprecated. + +* minor enhancements + + * .xml_attr declaration declares neither a reader nor a writer. With it you're left to your own devices. + * You can use literal [] for the [:text] object type declaration, + though they should be used in the :as parameter: :as => [] + * You can use [] with your :as declarations. e.g. :as => [Float] is + equivalent to the old :as => [Float, :array] + * Show the actual call point of a deprecation, rather than some internal path + * Add support for BigDecimal and Fixnum as block shorthands [James Healy] + * Update libxml support to 0.9.6, and add it as a dependency, to ensure correct versioning, and + as it's an order of magnitude faster than rexml + +* breaking changes + + * :else option only applies to instances created via .from_xml + * On .from_xml, #initialize is now called with the *initialization_args before extracting attributes from the xml. + * #xml_initialize has been replaced with the #after_parse callback, which takes no arguments. + * .xml_accessor will overwrite the setter for this variable if it has already been defined. Use .xml_reader or .xml_attr, + or define your writer later, if this is not the behavior you want. + +* deprecations + + * Use :cdata => true rather than :as => :cdata + * Use literal [] around your regular object type, rather than :as => :array + * Use :from => :content rather than the :content object declaration type + * Specifying an unknown symbol or Class for :as will raise in 3.0 + * Specifying :as with anything other than a type argument e.g. :bool, Float, [Date], + will not be supported in 3.0 + * Use :from => :attr or :from => '@attribute_name' rather than the :attr + object declaration type + * Passing any type declaration outside the :as parameter is deprecated + * In 3.0, attributes ending in _on and _at will default to :as => Date and DateTime, respectively, + rather than :text + * Deprecated hash :attrs declaration syntax in favor of {:key => '@attr1', :value => '@attr2'} + * Deprecated hash {Type => 'name'} declaration syntax in favor of {:as => Type, :from => 'name} + * Deprecated String#to_utf and #to_latin. + +* bug fixes + + * xml_accessor now properly handles punctuation, such that the writer appears without '?' for boolean attributes + * text node contents are no longer truncated when '&' are present in the contents + * When using :as => Integer or Float, don't raise on missing element [James Healy] + == 2.4.3 (February 1, 2009) * 1 bug fix * Fix roxml to work in ruby 1.8.6, which has been broken since the removal of \ No newline at end of file