[QA] Reg::Multiple Gem versions in Gemfile.lock

jagori samajdar jagori79 at gmail.com
Sat Jul 12 08:21:54 UTC 2014


Hi,

I had a doubt in Gemfile.lock.
Could we have multiple versions of a gem?
Say for the snippet pasted below from Gemfile.lock(rspec part,I could see
multiple versions) :








*rspec (2.99.0)      rspec-core (~> 2.99.0)      rspec-expectations (~>
2.99.0)      rspec-mocks (~> 2.99.0) rspec-core (2.99.1) rspec-expectations
(2.99.0)      diff-lcs (>= 1.1.3, < 2.0)rspec-mocks (2.99.1)*

Can't we just use rspec-core(2.99.1) or just maybe rspec-core (~> 2.99.0)
after all ~> probably means >=2.99.0 and < 3.0(correct me if am wrong).

or is it maybe there are certain features which run on a specific version
and are not supported by other version and hence we had to include both?

Kindly correct me if am wrong.

Thanks,
Jagori
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/qa/attachments/20140712/222a8646/attachment.html>


More information about the QA mailing list