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

Can't install guard gem for ruby 2.2.2. #832

Closed
Antti opened this issue May 4, 2016 · 4 comments
Closed

Can't install guard gem for ruby 2.2.2. #832

Antti opened this issue May 4, 2016 · 4 comments

Comments

@Antti
Copy link

Antti commented May 4, 2016

Steps to reproduce:

gem uninstall listen -a  #confirm uninstall
gem install guard

It fails with:

ERROR:  Error installing guard:
    ruby_dep requires Ruby version >= 2.2.3, ~> 2.2.

ruby_dep is a dependency for listen gem, and doesn't support ruby < 2.2.3

@e2
Copy link
Contributor

e2 commented May 4, 2016

I'm on my phone, so search for related issues in the issue tracker if you
want more info. Basically, Ruby 2.2.3 (and earlier) have serious security
vulnerabilities. (see ruby-lang.org and search the archives). So do
whatever is in your power to upgrade your Ruby. It's the best action
possible.
On May 4, 2016 4:33 PM, "Andrii Dmytrenko" notifications@github.com wrote:

Steps to reproduce:

gem uninstall listen -a #confirm uninstall
gem install guard

It fails with:

ERROR: Error installing guard:
ruby_dep requires Ruby version >= 2.2.3, ~> 2.2.

ruby_dep is a dependency for listen gem, and doesn't support ruby < 2.2.3


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#832

@westonganger
Copy link

The last version that works is 3.1.1, so force that version of listen In the meantime:

# Gemfile

gem 'listen', '3.1.1'

@e2
Copy link
Contributor

e2 commented May 5, 2016

Thanks, @westonganger !

@Antti - For more information about what's supported, why and what other options are available: https://github.com/guard/listen/wiki/Support-for-older-versions-of-Ruby

@e2
Copy link
Contributor

e2 commented May 5, 2016

@Antti - in this case specifically, Listen has the same Ruby requirement, only ruby_dep is being attempted to install first.

See Ruby requirement here: https://rubygems.org/gems/listen

Technically, ruby_dep is used so that Listen can manage it's dependencies.

I marked this as "wontfix", because I don't have a compelling use case to make ruby_dep work on Ruby < 2.2.3 yet. Check out the ruby_dep README if you want to change that there: https://github.com/e2/ruby_dep#rubydep

But, even if I relax RubyDep's dependency on Ruby >= 2.2.3, Listen will still have it's own dependency, which is exactly the same.

This means I'd need a compelling use case to support Ruby < 2.2.3, and I don't have one yet. Especially for a "development tool" like Guard you'll want it working on the newer Ruby.

If you have such a case, open a new issue so I can address "just" your case specifically.

Thank you for opening the issue though!

@e2 e2 closed this as completed May 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants