conversions.rb fails to parse
<pages xmlns="http://api.springnote.com" type="array"/>
since xmlns="http://api.springnote.com" is translated into entries and falls into "can't typecast http://api.springnote.com". It should return [] just like entries.nil in case that attributes are namespace declarations.
Replacing
if entries.nil?
[]
with
if entries.nil?
child_key == 'xmlns' | child_key =~ /xmlns:.+/
[]
in "def typecast_xml_value(value)" method (around 174 line)
fixes this problem.
Attachments
- namespace_fix.diff (0.7 kB) - added by iasandcb on 11/23/07 05:02:16.
- A patch for the description
- namespace_test.rb (415 bytes) - added by iasandcb on 12/07/07 04:34:57.
- A new test which works locally as well.
Change History
Download in other formats:
|