Jeff Fry wrote:
> how does my machine find watir? How does it choose between multiple 
> installs? Can I tell it explicitly in a script to use a particular 
> version?

It depends on how they were installed, and if RubyGems is in control. I
think site_ruby installs take priority over gems. (It's been a while
since I looked into it, but RubyGems isn't that complicated, and you can
read the RubyGems version of require at
ruby\lib\ruby\site_ruby\1.8\rubygems\custom_require.rb.)

You can load a specific gem version using "require_gem lib_name,
version" - like this:

require_gem 'rails', '1.0'

Or you can use conditional versions, like ">1.0" or "<1.0".

But this is, of course, only if you have the gems installed!

Cheers,
Dave
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to