From: rio4ruby Date: 2005-09-09T12:06:30+09:00 Subject: Re: Rio 0.3.4 Lloyd Zusman wrote: > % irb > irb(main):001:0> require_gem 'rio' > => true > irb(main):002:0> rio('/tmp/abc') > rio('/tmp/xyz') > NameError: uninitialized constant RIO::Ops::FileOrDir::ExistOrNot > from /usr/local/lib/ruby/gems/1.8/gems/rio-0.3.4/lib/rio/ops/file.rb:62 > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in .... I can not reproduce this. My irb session looks like this: irb(main):001:0> require 'rubygems' => true irb(main):002:0> require_gem 'rio' => true irb(main):003:0> rio('/tmp/abc') > rio('/tmp/xyz') => # % cat /tmp/xyz abc % The only difference between mine and yours, is "require 'rubygems'", and when I leave that off I get an entirely different error: irb(main):001:0> require_gem 'rio' NoMethodError: undefined method `require_gem' for main:Object from (irb):1 irb(main):002:0> rio('/tmp/abc') > rio('/tmp/xyz') NoMethodError: undefined method `rio' for main:Object from (irb):2 I admit that I have done very little testing on the gem installation of Rio. If you figure this out please let me know, so I can document it for other gem users. Cheers, -Christopher