You can use something along these lines to load a specifc version of a gem, standard operators apply (>=, <=, etc):
require 'rubygems'
require_gem 'watir', '= 1.5.1.1079'

There's no need to uninstall previous gems if you want to use them.

-Charley

On 8/31/06, Boyt, Darrel <[EMAIL PROTECTED]> wrote:



Bret, et al,
 
I'm still a neophyte where Ruby's concerned, so please excuse what may seem to be an obvious question.
 
I've followed the instructions on http://wiki.openqa.org/display/WTR/FAQ#FAQ-devgem to install the latest from SVN.  At the end of the instructions it says I can uninstall previous versions of WATiR I've installed via gem by using the "gem uninstall watir" command.  So my question is:  How do I use a previous version?  Do I somehow specify the version on the "require" command?
 
Just curious...
 
Thanks,
 
Darrel Boyt
Systems Analyst
General Dynamics Information Technology
2770 Gunter Park Drive East, Suite H
Montgomery, Alabama 36109-1412
(334) 260-3331 direct
(334) 277-2331 fax
[EMAIL PROTECTED]
www.gdit.com
 

_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to