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

Support ruby file: ".tool-versions" in Gemfile #6898

Merged
merged 8 commits into from
Aug 21, 2023

Conversation

gvkhna
Copy link
Contributor

@gvkhna gvkhna commented Aug 18, 2023

Add support for .tool-versions via simple detect a line begins with "ruby"

What was the end-user or developer problem that led to this PR?

Not supporting ASDF .tool-versions

What is your fix for the problem, implemented in this PR?

Discussed more in the relevant issue: #6895

Add support for .tool-versions/ASDF by way of checking for a line starting with "ruby"
@welcome
Copy link

welcome bot commented Aug 18, 2023

Thanks for opening a pull request and helping make RubyGems and Bundler better! Someone from the RubyGems team will take a look at your pull request shortly and leave any feedback. Please make sure that your pull request has tests for any changes or added functionality.

We use GitHub Actions to test and make sure your change works functionally and uses acceptable conventions, you can review the current progress of GitHub Actions in the PR status window below.

If you have any questions or concerns that you wish to ask, feel free to leave a comment in this PR or join our #rubygems or #bundler channel on Slack.

For more information about contributing to the RubyGems project feel free to review our CONTRIBUTING guide

@martinemde martinemde changed the title Update ruby_dsl.rb Support ruby file: ".tool-versions" in Gemfile Aug 18, 2023
@martinemde
Copy link
Member

Can you add another test just like this one that returns a typical .tool-versions file with multiple different tool versions to make sure it works?

@gvkhna
Copy link
Contributor Author

gvkhna commented Aug 18, 2023

@martinemde Thank you for guiding on this!

gvkhna and others added 2 commits August 18, 2023 18:17
Co-authored-by: Martin Emde <martinemde@users.noreply.github.com>
Copy link
Member

@martinemde martinemde left a comment

Choose a reason for hiding this comment

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

Great! Thank you for contributing. I think it makes this feature much more complete.

@martinemde martinemde merged commit 6c0a3e7 into rubygems:master Aug 21, 2023
92 checks passed
matzbot pushed a commit to ruby/ruby that referenced this pull request Aug 21, 2023
(rubygems/rubygems#6898)

Supports .tool-versions (ASDF) by checking for a line starting with "ruby"
before falling back to reading the entire file, as in .ruby-version.

rubygems/rubygems@6c0a3e793a
@deivid-rodriguez deivid-rodriguez changed the title Support ruby file: ".tool-versions" in Gemfile Support ruby file: ".tool-versions" in Gemfile Sep 21, 2023
deivid-rodriguez pushed a commit that referenced this pull request Sep 21, 2023
Supports .tool-versions (ASDF) by checking for a line starting with "ruby"
before falling back to reading the entire file, as in .ruby-version.

(cherry picked from commit 6c0a3e7)
deivid-rodriguez pushed a commit that referenced this pull request Sep 21, 2023
Supports .tool-versions (ASDF) by checking for a line starting with "ruby"
before falling back to reading the entire file, as in .ruby-version.

(cherry picked from commit 6c0a3e7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants