Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFE] Allow binary stub to support ~> version specifications #1088

Closed
voxik opened this issue Dec 2, 2014 · 4 comments
Closed

[RFE] Allow binary stub to support ~> version specifications #1088

voxik opened this issue Dec 2, 2014 · 4 comments

Comments

@voxik
Copy link
Contributor

voxik commented Dec 2, 2014

When I have more RSpec versions on my system and I want to execute the test suite using RSpec 2.x for example, I'd love to be able to run it such as rspec "_~> 2.0_" and the latest minor version of RSpec 2.x should be used.

@tenderlove
Copy link
Contributor

Like this?

[aaron@TC ~]$ gem list rspec

*** LOCAL GEMS ***

rspec (3.1.0, 3.0.0, 2.99.0, 2.14.1)
rspec-collection_matchers (1.1.2)
rspec-core (3.1.3, 3.0.4, 2.99.2, 2.14.8)
rspec-expectations (3.1.1, 3.0.4, 2.99.2, 2.14.5)
rspec-fire (1.3.0)
rspec-mocks (3.1.0, 3.0.4, 2.99.2, 2.14.6)
rspec-rails (2.99.0, 2.14.2)
rspec-support (3.1.0, 3.0.4)
[aaron@TC ~]$ gem -v
2.4.4
[aaron@TC ~]$ rspec '_~> 2.0_' -v
2.99.2
[aaron@TC ~]$ rspec '_~> 3.0_' -v
3.1.3
[aaron@TC ~]$ rspec '_~> 3.0.0_' -v
3.0.4
[aaron@TC ~]$

@voxik
Copy link
Contributor Author

voxik commented Dec 5, 2014

@tenderlove yes, exactly!

@tenderlove
Copy link
Contributor

@voxik ok, it works for me with rubygems 2.4.4, so I'll close this now.

@voxik
Copy link
Contributor Author

voxik commented Dec 5, 2014

Is it? How it could? It can't pass this line:

https://github.com/rubygems/rubygems/blob/master/lib/rubygems/installer.rb#L669

or am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants