Store the available Ruby versions in this repository

* That way it's always perfectly synchronized with the action. In
  practice querying another repository sometimes returned a stale copy.
* Avoids an extra HTTPS request.
* The axios dependency is no longer needed.
* Makes it possible to tweak the versions available according to the platform.
This commit is contained in:
Benoit Daloze
2020-01-25 18:03:33 +01:00
parent 07160f610f
commit 3551d3fbd4
8 changed files with 73 additions and 3303 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ async function run() {
installer = require('./ruby-install-builder')
}
const engineVersions = await installer.getAvailableVersions(engine)
const engineVersions = installer.getAvailableVersions(platform, engine)
const ruby = validateRubyEngineAndVersion(platform, engineVersions, engine, version)
const rubyPrefix = await installer.install(platform, ruby)