Forum: Ruby Ruby + yaml = warnings???

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B56ee52ea0626a8d88b7262f4efa6fd7?d=identicon&s=25 Kurt V. Hindenburg (Guest)
on 2005-12-12 03:24
(Received via mailing list)
% 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
E3c79c779c0b390049289cdfe7cb9705?d=identicon&s=25 Bob Hutchison (Guest)
on 2005-12-12 14:44
(Received via mailing list)
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 Hutchison          -- blogs at <http://www.recursive.ca/hutch/>
Recursive Design Inc.  -- <http://www.recursive.ca/>
Raconteur              -- <http://www.raconteur.info/>
784481e009179262d133db1f1eb3bfb1?d=identicon&s=25 Edwin Van leeuwen (blackedder)
on 2005-12-12 14:49
Bob Hutchison 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
784481e009179262d133db1f1eb3bfb1?d=identicon&s=25 Edwin Van leeuwen (blackedder)
on 2005-12-12 16:31
Edwin van Leeuwen wrote:
> Bob Hutchison 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
This topic is locked and can not be replied to.