[ 
http://jira.openqa.org/browse/WTR-464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20001#action_20001
 ] 

Jarmo Pertman commented on WTR-464:
-----------------------------------

I'm not sure that you can uninstall some gem and it's dependencies. And 
remember that commonwatir is a dependency for firewatir and watir and not vice 
versa.

Same thing is with RSpec 2 for example - you'd have to uninstall every 
component of RSpec separately if you'd like to do that.

By the way, you can load specific version of a gem if needed:
{noformat}
C:\Users\jarmo>gem list | grep watir
commonwatir (1.6.7, 1.6.6)
firewatir (1.6.7, 1.6.6)
watir (1.6.7, 1.6.6)

C:\Users\jarmo>irb
irb(main):001:0> gem "watir", "1.6.6"
=> true
irb(main):002:0> require "watir"
=> true
irb(main):003:0> Gem.loaded_specs["watir"].version.to_s
=> "1.6.6"
{noformat}

I think that this is more of a bug/feature request to RubyGems instead than 
Watir. In this light closing the issue.

> uninstalling watir 1.6.7 does not uninstall commonwatir 1.6.7 and firewatir 
> 1.6.7
> ---------------------------------------------------------------------------------
>
>                 Key: WTR-464
>                 URL: http://jira.openqa.org/browse/WTR-464
>             Project: Watir
>          Issue Type: Bug
>          Components: Gem installer
>    Affects Versions: 1.6.7
>         Environment: win xp ie7
>            Reporter: Alan Baird
>            Priority: Major
>
> After uninstalling watir 1.6.7, and installing watir 1.6.6, Watir throws a 
> LoadError trying to load watir/ie.  I looked at the versions that were 
> installed and noticed that commonwatir and firewatir did not get uninstalled 
> when Watir::IE was uninstalled.  The workaround is to manually uninstall 
> commonwatir and firewatir.
> N:\gauntlet>irb --noreadline
> irb(main):001:0> require 'watir'
> => true
> irb(main):002:0> br = Watir::IE.new
> LoadError: no such file to load -- watir/ie
>         from (irb):2
> irb(main):003:0> br = Watir::Browser.new
> Watir::Exception::UnableToStartJSShException: Unable to connect to machine : 
> 127.0.0.1 on port 9997. Make sure that JSSh is properly installed and Fir
> efox is running with '-jssh' option
>         from 
> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/firefox.rb:156:in
>  `set_defaults'
>         from 
> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/firefox.rb:50:in 
> `initialize'
>         from 
> c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.7/lib/watir/browser.rb:65:in 
> `new'
>         from 
> c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.7/lib/watir/browser.rb:65:in 
> `new'
>         from (irb):3
> irb(main):004:0> exit
> # uninstall commonwatir and firewatir
> N:\gauntlet>gem uninstall commonwatir -v 1.6.7
> You have requested to uninstall the gem:
>         commonwatir-1.6.7
> firewatir-1.6.7 depends on [commonwatir (= 1.6.7)]
> If you remove this gems, one or more dependencies will not be met.
> Continue with Uninstall? [Yn]  y
> Successfully uninstalled commonwatir-1.6.7
> N:\gauntlet>gem uninstall firewatir -v 1.6.7
> Successfully uninstalled firewatir-1.6.7
> # test to see if Watir works
> N:\gauntlet>irb --noreadline
> irb(main):001:0> require 'watir'
> => true
> irb(main):002:0> br = Watir::Browser.new
> => #<Watir::IE:0x40f7d88 url="about:blank" title="">
> irb(main):003:0> br.close
> => nil
> irb(main):004:0> br = Watir::IE.new
> => #<Watir::IE:0x40f0e84 url="about:blank" title="">

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to