Add support for TruffleRuby#6693
Conversation
* stub RUBY_ENGINE in specs, Bundler.ruby_engine no longer exists.
|
This should also be backported to 1.16.x. |
| when "jruby" | ||
| JRUBY_VERSION | ||
| else | ||
| raise BundlerError, "That RUBY_ENGINE is not recognized" |
There was a problem hiding this comment.
Woo! This is awesome! 🎉
My first question though, why are you modifying this behavior instead of adding to it?
There was a problem hiding this comment.
we might also want to check that RUBY_ENGINE_VERSION is indeed defined? I'm not sure if all Rubies define it
There was a problem hiding this comment.
My thinking was rather than adding a special case for truffleruby I'd make it general.
Every not ancient (=1.8) Ruby version should define RUBY_ENGINE_VERSION, it's a standard constant like RUBY_ENGINE, RUBY_VERSION, etc.
I can add a defined? if it causes a problem for an implementation but it seems unlikely as currently this code path was hardcoded to only support MRI, JRuby and Rubinius.
There was a problem hiding this comment.
@colby-swandale What do you think? Is this code fine as-is or should I change it to something else?
There was a problem hiding this comment.
I'm happy with the PR, so let's merge it
| when "jruby" | ||
| JRUBY_VERSION | ||
| else | ||
| raise BundlerError, "That RUBY_ENGINE is not recognized" |
There was a problem hiding this comment.
we might also want to check that RUBY_ENGINE_VERSION is indeed defined? I'm not sure if all Rubies define it
|
@bundlerbot r+ |
|
📌 Commit 6a7b2c1 has been approved by |
Add support for TruffleRuby Hello, This PR adds support for TruffleRuby in Bundler. I searched for `rbx` and `jruby` (case-insensitive) through the codebase to find all places which need changes and where tests use specific Ruby implementations. So hopefully this PR is complete, but please tell me if I missed something. I'd also like to test TruffleRuby in Bundler's CI, but will do this as a separate PR, as we first need the next release of TruffleRuby so that it includes the fix for truffleruby/truffleruby#1413.
|
💥 Test timed out |
|
@bundlerbot timed out, should it be retried or is there an issue with the PR? |
|
@bundlerbot retry |
Add support for TruffleRuby Hello, This PR adds support for TruffleRuby in Bundler. I searched for `rbx` and `jruby` (case-insensitive) through the codebase to find all places which need changes and where tests use specific Ruby implementations. So hopefully this PR is complete, but please tell me if I missed something. I'd also like to test TruffleRuby in Bundler's CI, but will do this as a separate PR, as we first need the next release of TruffleRuby so that it includes the fix for truffleruby/truffleruby#1413.
|
☀️ Test successful - status-travis |
|
Thanks for review and merging! |
This pull-request is not bugfix. I think we need to bump 1.17.x maybe. Can we merge non-bugfix feature with tiny versionup? |
|
@hsbt We have allowed non-bugfixes to go into minor releases before if it made sense. And this isn't a huge change - so i'm happy to backport this into the next patch release. |
|
1.16.x or 1.17.x is fine, what TruffleRuby needs is a (non-pre) release of Bundler so the patches in TruffleRuby can be removed and TruffleRuby can use vanilla Bundler. Is there a schedule for the next Bundler release? |
|
There is no scheduled time for a release, but i will try and get your changes released before the 21st. |
Add support for TruffleRuby Hello, This PR adds support for TruffleRuby in Bundler. I searched for `rbx` and `jruby` (case-insensitive) through the codebase to find all places which need changes and where tests use specific Ruby implementations. So hopefully this PR is complete, but please tell me if I missed something. I'd also like to test TruffleRuby in Bundler's CI, but will do this as a separate PR, as we first need the next release of TruffleRuby so that it includes the fix for truffleruby/truffleruby#1413. (cherry picked from commit 368d759)
* 1-16-stable: Version 1.16.5 with changelog scope TruffleRuby platform specs to be RubyGems >= 2.1.0 Auto merge of #6689 - bundler:colby/fix-bundler-load-error, r=colby-swandale Auto merge of #6695 - bundler:segiddins/6684-gvp-prefer-non-pres, r=colby-swandale Auto merge of #6693 - eregon:truffleruby, r=colby-swandale Auto merge of #6692 - eregon:simplify-autoload-require-deprecate, r=segiddins Auto merge of #6688 - voxik:check-search, r=colby-swandale Auto merge of #6682 - bundler:bundle_env_formatting, r=colby-swandale Auto merge of #6675 - MaxLap:master, r=greysteil Auto merge of #6669 - ChrisBr:fix_dep_proxy, r=segiddins Auto merge of #6664 - greysteil:avoid-printing-git-error, r=colby-swandale
Hello,
This PR adds support for TruffleRuby in Bundler.
I searched for
rbxandjruby(case-insensitive) through the codebase to find all places which need changes and where tests use specific Ruby implementations. So hopefully this PR is complete, but please tell me if I missed something.I'd also like to test TruffleRuby in Bundler's CI, but will do this as a separate PR, as we first need the next release of TruffleRuby so that it includes the fix for truffleruby/truffleruby#1413.