Ruby + yaml = warnings?


#1

% 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


#2

FYI, no warnings in 1.8.2

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

% 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


Bob H. – blogs at http://www.recursive.ca/hutch/
Recursive Design Inc. – http://www.recursive.ca/
Raconteur – http://www.raconteur.info/


#3

Bob H. wrote:

FYI, no warnings in 1.8.2

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

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


#4

Edwin van Leeuwen wrote:

Bob H. wrote:

FYI, no warnings in 1.8.2

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

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