On Jul 29, 2:57 pm, Frederick Cheung <[email protected]>
wrote:
> On Jul 29, 2:34 pm, paul h <[email protected]> wrote:
>
> > Hi Fred,
>
> > Can the OP not put the following in his gem file:
>
> > gem 'nokogiri', '~> 1.4.4', '1.5.0'
>
> > Would this not make both gem versions available to gems that require
> > different versions of nokogiri?
>
> > I had two gems recently that required different versions of capybara,
> > and a similar approach worked for me. If it's wrong, then I need to
> > find out why it solved my issue, because my understanding of my
> > problem is therefore wrong.
>
> Hard to say without knowing exactly what your circumstances were, but
> at a basic level only one version of any given gem can be loaded at
> any single time

I was having a problem getting cucumber to play nice with a current
rails 3.0.9 project, (after running bundle update cucumber began
failing everything, presumably due to now-conflicting gem versions),
so I set up a few different gemsets in rvm and dummy projects for
rails 3.0.5 thru' 3.0.9, and began adding gems to the gem files one by
one to try and find out where I had gone wrong, and to try and
understand what was going on with dependency versions etc.

I seem to remember one gem required capybara 0.4.0 and another
required >= 0.4.1 for the 3.0.5 project.

Adding both versions for capybara as:

gem 'capybara', '>= 0.4.1', '~> 0.4.0'

fixed the problem, AFAIK.

I now have cucumber and rspec running fine in all three rails
versions, only problem I have left relates to devise based scenarios
which are failing when simulating clicking the sign in link, although
manual clicking on the site is fine.

If I get the chance this weekend, I'll try digging deeper into the gem
versions and dependencies, just thought it might have been a solution
for the OP.

Paul

>
> Fred

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to