On Tue, Apr 5, 2011 at 11:40 AM, Darryl Brown d-l-br...@roadrunner.com
wrote:
Thanks for pointing out that RVM won't fly on a
windows box.
I suggest that you use gem 'watir', '1.6.2' as Ethan suggested, but there
is something similar to rvm for windows:
https://github.com/vertiginous/pik
If you're versioning your ruby directory then it makes sense that it
works of course. It just seems like a pretty much overkill to do that.
I'd still recommend using other approaches :)
Jarmo Pertman
-
IT does really matter - http://www.itreallymatters.net
On Apr 2, 5:40 pm, Darryl Brown
Hi,
Thanks for your reply, Yes, it is way overkill for managing gems. It
works but it's slow when changing branches, I'm planning to checkout
RVM and Bundler as soon as I can.
Darryl
On Apr 4, 4:16 pm, Jarmo Pertman jarm...@gmail.com wrote:
If you're versioning your ruby directory then it
you know, you can just choose which gem version to activate within ruby.
require 'rubygems'
gem 'watir', '1.6.2'
require 'watir' # rubygems will only require v1.6.2.
then you can have as many versions of the watir gem installed simultaneously
as you want, and switch between them by changing,
Hi!
I don't understand how your current solution works? It doesn't work
like that. As soon as you install newer version of Watir then it will
be used and it doesn't matter which branch you're with your git since
gem will be loaded from the Ruby gems directory and hasn't anything to
do with your
Hi Jarmo,
Thanks for your reply. I will simply say that it does work like that.
I am using git to manage the entire ruby directory - so Ruby Gems
directory is included. I will explain it in very basic terms using
three files in the example below. Imagine that rooby = ruby. Note
that the
One other way to consider is using Virtual Machines (VM's).
Create VM's with different combinations of Browser, Ruby and Watir.
It takes a bit of time to get the VM software and the various VM's
setup
initially, but saves a ton of time in switching between OS's and in
trying
out new Browser,
On Thu, Mar 31, 2011 at 4:16 AM, Darryl Brown d-l-br...@roadrunner.com
wrote:
Maybe this methodology can help someone else.
This sounds like it would be an interesting blog post. :)
Željko
--
watir.com - community manager
watir.com/book - author
viaqa.mobi conference on software testing -
Darryl,
You don't have to install multiple instances of Ruby to use RVM. You
can use a single instance of Ruby and create multiple gemsets,
specified with @. Then you install different versions of Watir in
their own gemsets. Once you have each gemset created, switching
between them is quick and
Lonny,
That's the answer I was looking for. I hadn't had time to read about
RVM yet. I was just thinking - this is not a new challenge, surely
there is some way other than using Git - although Git does the job
handily as well. It's essentially doing the same thing - one instance
of Ruby and
Also see pik for Windows (I believe it's linked from RVM's site as
well):
https://github.com/vertiginous/pik/
Adam
On Mar 30, 1:23 pm, Tim Koopmans tim.ko...@gmail.com wrote:
Rvm ?
Regards,
Tim
Sent from my mobile ...
On 31/03/2011, at 12:39 AM, Darryl Brown d-l-br...@roadrunner.com
RVM is a Ruby version manager. I'm trying to find out if there is a
better way to manage multiple versions of Watir. Using Git with a
branch for each version is working. Are you guys suggesting that I
should manage multiple instances of Ruby with each one having a unique
version of Watir?? -or-
How about using Gem to specify explicit versioning, something along
these lines:
http://docs.rubygems.org/read/chapter/4
Just a thought...
--
DK
AIM: DKroot1, Skype: DKroot
On 3/30/11 2:49 PM, Darryl Brown wrote:
RVM is a Ruby version manager. I'm trying to find out if there is a
better
I'll admit my reply was more of a response to the first comment than
the original issue, but I would agree with the explicit versioning
comment unless for some reason you wanted to uninstall your gem and
install a specific version for each test:
gem uninstall watir
gem install watir -v 1.6.5
etc.
Thanks again for everyone's response but what I'm doing is sufficient
for my needs. I was curious to see how (or if) anyone else was doing
this differently. My needs are to be able to switch between Watir
versions easily. Example: I test one of my scripts on v1.7.0 and it
fails. I switch back to
15 matches
Mail list logo