From: Tobias Reif Date: 2001-10-30T20:00:26+09:00 Subject: [ruby-talk:23830] Re: require NQXML Hi, > ----- > $:.unshift "foo/1.1.2/" > > require 'foo/1.1.2/foo/Foo' > > f = Foo.new > > puts f.my_version, f.required_files_version > ----- > 1.1.2 > 1.1.2 If I put some foo/Foo.rb Bar.rb in site_ruby (which can very well by with NQXML, since the original dirs are not named after versions) then for ----- require 'foo/1.1.2/foo/Foo' f = Foo.new puts f.my_version, f.required_files_version ----- I get: 1.1.2 9.9.9 So unshifting Rubys' path to a path that include the required version numbers as dir name ensures that the required files, *and* those that are required by them themselvels, are of the reqested version. I would like some common agreement on how authors of libs make the handling of versions very easy. (befoer we get RubyGems from santa) Tobi -- Tobias Reif http://www.pinkjuice.com/myDigitalProfile.xhtml go_to('www.ruby-lang.org').get(ruby).play.create.have_fun http://www.pinkjuice.com/ruby/