Ruby + yaml = warnings?

% ruby --version
ruby 1.8.3 (2005-09-21) [i686-linux]

% cat a.rb
require 'yaml'

o = [ 'array', 'of', 'items' ]
o2 = YAML::load( o.to_yaml )

% ruby -w a.rb
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine yaml_tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine yaml_tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine yaml_tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine yaml_tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine yaml_tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine yaml_tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
/usr/lib/ruby/1.8/yaml/types.rb:13: warning: method redefined; discarding old
initialize
/usr/lib/ruby/1.8/yaml/types.rb:28: warning: method redefined; discarding old
initialize
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):6: warning: instance variable @taguri not initialized
(eval):6: warning: instance variable @taguri not initialized
(eval):6: warning: instance variable @taguri not initialized
(eval):6: warning: instance variable @taguri not initialized
/usr/lib/ruby/1.8/yaml.rb:133: warning: instance variable @input not
initialized

FYI, no warnings in 1.8.2

···

On Dec 11, 2005, at 9:22 PM, Kurt V. Hindenburg wrote:

% ruby --version
ruby 1.8.3 (2005-09-21) [i686-linux]

% cat a.rb
require 'yaml'

o = [ 'array', 'of', 'items' ]
o2 = YAML::load( o.to_yaml )

% ruby -w a.rb
(eval):2: warning: method redefined; discarding old taguri

----
Bob Hutchison -- blogs at <http://www.recursive.ca/hutch/&gt;
Recursive Design Inc. -- <http://www.recursive.ca/&gt;
Raconteur -- <http://www.raconteur.info/&gt;

Bob Hutchison wrote:

FYI, no warnings in 1.8.2

I played around with yaml on 1.8.3 and found out it is completely broken
(doesn't put --- before objects, misses returns). If you want to use
yaml you should upgrade to a 1.8.4 beta or downgrade to 1.8.2

···

On Dec 11, 2005, at 9:22 PM, Kurt V. Hindenburg wrote:

--
Posted via http://www.ruby-forum.com/\.

Edwin van Leeuwen wrote:

Bob Hutchison wrote:

FYI, no warnings in 1.8.2

I played around with yaml on 1.8.3 and found out it is completely broken
(doesn't put --- before objects, misses returns). If you want to use
yaml you should upgrade to a 1.8.4 beta or downgrade to 1.8.2

yaml seems to be broken on 1.8.4_pre2 too, so I suggest downgrading to
1.8.2

···

On Dec 11, 2005, at 9:22 PM, Kurt V. Hindenburg wrote:

--
Posted via http://www.ruby-forum.com/\.