mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 14:34:21 +02:00
Pass the validated engine and version to install()
This commit is contained in:
+1
-2
@@ -33,8 +33,7 @@ export function getAvailableVersions(platform, engine) {
|
||||
}
|
||||
}
|
||||
|
||||
export async function install(platform, ruby) {
|
||||
const version = ruby.split('-', 2)[1]
|
||||
export async function install(platform, engine, version) {
|
||||
const url = rubyInstallerVersions[version]
|
||||
|
||||
if (!url.endsWith('.7z')) {
|
||||
|
||||
Reference in New Issue
Block a user