[Wtr-general] [OT] - Gem upgrade?

Raghu Venkataramana raghu at qantom.com
Mon May 1 13:48:22 EDT 2006


Bret Pettichord wrote:

> On 5/1/06, *Raghu Venkataramana* <raghu at qantom.com 
> <mailto:raghu at qantom.com>> wrote:
>
>     With two versions(and as time goes by it could be more than two)
>     of  a gem library, the
>     script sometimes pickups the API from the wrong gem and fails.
>
>
> Are you sure? I have seen this happen when you have one version 
> installed as a gem and another installed as a non-gem.
>
> If this is really happening with two gems, then it is a show-stopper 
> problem because this is the very problem that gems were designed to solve.

I am not absolutely sure, but here's what happened:

1. I had a previous version of GEM installed. (0.5)

2. I then installed the latest version of GEM (0.8) and tried to run the 
unit tests. Unit tests failed.

3. I did a gem list - of the entries the one for wet was - wet-web (0.5, 
0.8). In the ${ruby_gem} directory, there were two wet-web directories

4. Since these tests _could not_ have passed in 0.5, I thought that the 
problem was due to the two gem files trying to co-exist.

5. I did a gem uninstall wet-web -a.

6. I then installed 0.8 gem again and ran the unit tests. This time, the 
tests passed.

My guess is that the problem happened due to the fact that there were 
both the gems installed on the system and the tests were trying to 
access the wrong version. (However I didn't do a good tester's job by 
trying to reproduce the problem. I was simply happy that everything 
worked for me and forgot about it)

Raghu

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




More information about the Wtr-general mailing list