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

Dynamic ruby version test #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

carolineartz
Copy link

This is a great script. I updated #test_ruby_version to always check the latest available stable version of ruby instead of 2.2.0. Not sure if this is an update you'd be interested in.

@mikelikesbikes
Copy link
Owner

Hey @carolineartz! Not sure how I missed this PR, I really like it. Do you mind updating it with the current master? Also, check out my comment inline.

/\d.+?(?=\s)/.match(%x(rbenv versions).split("\n").last)[-1]
else
%x(rvm rubies).split("ruby-").last.split(" ").first
end
Copy link
Owner

@mikelikesbikes mikelikesbikes Oct 31, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few things here:

  1. Can you update the parsing bits to use https://github.com/mikelikesbikes/environment_linter/blob/master/test_setup.rb#L394-L431
  2. Pull the details out into a method installed_rubies
  3. Add a default for non-rvm/rbenv users, maybe just the currently running ruby in an array.

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

Successfully merging this pull request may close these issues.

2 participants