Bugs item #21169, was opened at 2008-07-11 08:33
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21169&group_id=494
Category: General
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: Tiago Macedo (tmacedo)
>Assigned to: Charlie Savage (cfis)
Summary: each_attr is broken in 0.7.0
Initial Comment:
NameError: undefined local variable or method `properties' for
#<XML::Node:0xb742ce64>
/usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.7.0/lib/libxml.rb:83:in
`each_attr'
./test/../lib/aws/../../support/faster-xml-simple/lib/faster_xml_simple.rb:167:in
`hash_of_attributes'
./test/../lib/aws/../../support/faster-xml-simple/lib/faster_xml_simple.rb:76:in
`collapse'
./test/../lib/aws/../../support/faster-xml-simple/lib/faster_xml_simple.rb:64:in
`out'
./test/../lib/aws/../../support/faster-xml-simple/lib/faster_xml_simple.rb:53:in
`xml_in'
./test/../lib/aws/s3/parsing.rb:64:in `parse'
./test/../lib/aws/s3/parsing.rb:55:in `initialize'
./test/parsing_test.rb:59:in `new'
./test/parsing_test.rb:59:in `test_policy_grants_are_always_an_array'
I ran into this issue by running the aws-s3 tests. aws-s3 relies in
faster-xml-simple for libxml-ruby support
----------------------------------------------------------------------
>Comment By: Charlie Savage (cfis)
Date: 2008-07-12 13:47
Message:
Hi Tiago,
There is now a new attributes class that is a collection of attributes - so its
a cleaner api than previously. Thus new code should look like this:
node.attributes.each do |attr|
..
end
I have added a patch for backwards compatibility though to SVN. It will be in
0.7.1 (upcoming soon).
----------------------------------------------------------------------
Comment By: Tiago Macedo (tmacedo)
Date: 2008-07-11 08:34
Message:
I'm using gentoo's dev-libs/libxml2-2.6.32
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21169&group_id=494
_______________________________________________
libxml-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/libxml-devel