Skip to content

Commit

Permalink
Implement targetRubyVersion for TruffleRuby
Browse files Browse the repository at this point in the history
* Fixes #433
  • Loading branch information
eregon committed Dec 30, 2022
1 parent f78d71f commit 09c1021
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions common.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ export function targetRubyVersion(engine, rubyVersion) {
} else if (version === 9.3) {
return 2.6
}
} else if (engine.startsWith('truffleruby')) {
if (version < 21.0) {
return 2.6
} else if (version < 22.0) {
return 2.7
} else if (version < 23.0) {
return 3.0
}
}

return 9.9 // unknown, assume recent
Expand Down
8 changes: 8 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 09c1021

Please sign in to comment.