Skip to content

Commit efda314

Browse files
committed
Remove Rubinius support
* Fixes #101
1 parent c49deec commit efda314

File tree

6 files changed

+2
-32
lines changed

6 files changed

+2
-32
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
# Use various version syntax here for testing
2020
ruby: [ 2.1, 2.2, 2.3, 2.4, 2.5, 2.6.6, 2.7, ruby-head, debug, jruby-9.1, jruby, jruby-head, truffleruby, truffleruby-head ]
2121
include:
22-
- { os: ubuntu-18.04, ruby: rubinius }
2322
- { os: windows-2016, ruby: mingw }
2423
- { os: windows-2019, ruby: mingw }
2524
- { os: windows-2019, ruby: mswin }

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ This action currently supports these versions of MRI, JRuby and TruffleRuby:
1717
| Ruby | 2.1.9, 2.2, 2.3.0 - 2.3.8, 2.4.0 - 2.4.10, 2.5.0 - 2.5.8, 2.6.0 - 2.6.6, 2.7.2, head, debug, mingw, mswin |
1818
| JRuby | 9.1.17.0, 9.2.9.0 - 9.2.13.0, head |
1919
| TruffleRuby | 19.3.0 - 20.2.0, head |
20-
| Rubinius | 4.14 |
2120

2221
`ruby-debug` is the same as `ruby-head` but with assertions enabled (`-DRUBY_DEBUG=1`).
2322
On Windows, `mingw` and `mswin` are `ruby-head` builds using the MSYS2/MinGW and the MSVC toolchains respectively.
@@ -40,8 +39,6 @@ The action works for all [GitHub-hosted runners](https://help.github.com/en/acti
4039
| macOS | `macos-latest` (= `macos-10.15`) | |
4140
| Windows | `windows-latest` (= `windows-2019`) | `windows-2016` |
4241

43-
Rubinius is only available on `ubuntu-18.04`.
44-
4542
The prebuilt releases are generated by [ruby-builder](https://github.com/ruby/ruby-builder)
4643
and on Windows by [RubyInstaller2](https://github.com/oneclick/rubyinstaller2).
4744
`mingw` and `mswin` builds are generated by [ruby-loco](https://github.com/MSP-Greg/ruby-loco).

dist/index.js

Lines changed: 1 addition & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,6 @@ async function installBundler(bundlerVersionInput, lockFile, platform, rubyPrefi
227227
console.log(`Using Bundler 2 shipped with ${engine}-${rubyVersion}`)
228228
} else if (engine === 'truffleruby' && bundlerVersion === '1') {
229229
console.log(`Using Bundler 1 shipped with ${engine}`)
230-
} else if (engine === 'rubinius') {
231-
console.log(`Rubinius only supports the version of Bundler shipped with it`)
232230
} else {
233231
const gem = path.join(rubyPrefix, 'bin', 'gem')
234232
await exec.exec(gem, ['install', 'bundler', '-v', `~> ${bundlerVersion}`, '--no-document'])

ruby-builder-versions.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,5 @@ export function getVersions(platform) {
2222
]
2323
}
2424

25-
if (platform === 'ubuntu-18.04') {
26-
versions['rubinius'] = [
27-
"4.14"
28-
]
29-
}
30-
3125
return versions
3226
}

ruby-builder.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,7 @@ async function downloadAndExtract(platform, engine, version) {
2626
const rubyPrefix = path.join(rubiesDir, `${engine}-${version}`)
2727

2828
// Set the PATH now, so the MSYS2 'tar' is in Path on Windows
29-
if (engine === 'rubinius') {
30-
core.warning('Rubinius builds will no longer be provided, see https://github.com/ruby/setup-ruby/issues/101')
31-
common.setupPath([path.join(rubyPrefix, 'bin'), path.join(rubyPrefix, 'gems', 'bin')])
32-
} else {
33-
common.setupPath([path.join(rubyPrefix, 'bin')])
34-
}
29+
common.setupPath([path.join(rubyPrefix, 'bin')])
3530

3631
await io.mkdirP(rubiesDir)
3732

0 commit comments

Comments
 (0)