Gem and/or YAML warnings

Hi,

Ruby 1.8.2
Rubygems 0.8.10
Syck 0.55
Solaris 10

I installed the dbi-dbrc package via gems. However, if I run this
simple script, I get a slew of warnings if I run with -d or -w:

# gemtest.rb
require "dbi/dbrc"

djberge@~/programming/ruby-645>ruby -w gemstest.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 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 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 tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine 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 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/local/lib/ruby/site_ruby/1.8/yaml/types.rb:14: warning: method
redefined; discarding old initialize
/usr/local/lib/ruby/site_ruby/1.8/yaml/types.rb:29: 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

I can get rid of them by doing "require 'rubygems'", followed by
"require_gem ... ", but I thought I should mention this.

Regards,

Dan

Dan, I can't reproduce this here on my Mac. Is it possible that when
you aren't doing require 'rubygems', etc. that you're picking up an
old version of dbi-dbrc on your system somewhere, and that the
warnings are coming from there?

Thanks....

ยทยทยท

On 6/17/05, Daniel Berger <djberg96@gmail.com> wrote:

Hi,

Ruby 1.8.2
Rubygems 0.8.10
Syck 0.55
Solaris 10

I installed the dbi-dbrc package via gems. However, if I run this
simple script, I get a slew of warnings if I run with -d or -w:

# gemtest.rb
require "dbi/dbrc"

djberge@~/programming/ruby-645>ruby -w gemstest.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 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 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 tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine 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 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/local/lib/ruby/site_ruby/1.8/yaml/types.rb:14: warning: method
redefined; discarding old initialize
/usr/local/lib/ruby/site_ruby/1.8/yaml/types.rb:29: 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

I can get rid of them by doing "require 'rubygems'", followed by
"require_gem ... ", but I thought I should mention this.

Regards,

Dan

--
Chad Fowler
http://chadfowler.com

http://rubygems.rubyforge.org (over 500,000 gems served!)