Skip to content

Commit c96a864

Browse files
committed
Make version files pure-data JSON files
1 parent d359377 commit c96a864

10 files changed

+64
-158
lines changed

Diff for: CONTRIBUTING.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@ $ cp pre-commit .git/hooks/pre-commit
2222

2323
## Adding a new Ruby version
2424

25-
Add the new version in `ruby-builder-versions.js`, then follow the steps above in [Regenerating dist/index.js](#regenerating-distindexjs) to update `dist/index.js`. Finally, update the "Supported Versions" section of the README if needed.
25+
Add the new version in `ruby-builder-versions.json`,
26+
then follow the steps above in [Regenerating dist/index.js](#regenerating-distindexjs) to update `dist/index.js`.
27+
Finally, update the "Supported Versions" section of the README if needed.

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ and on Windows by [RubyInstaller2](https://github.com/oneclick/rubyinstaller2).
5050
`jruby-head` is generated by [jruby-dev-builder](https://github.com/ruby/jruby-dev-builder),
5151
`truffleruby-head` is generated by [truffleruby-dev-builder](https://github.com/ruby/truffleruby-dev-builder)
5252
and `truffleruby+graalvm` is generated by [graalvm-ce-dev-builds](https://github.com/graalvm/graalvm-ce-dev-builds).
53-
The full list of available Ruby versions can be seen in [ruby-builder-versions.js](ruby-builder-versions.js)
54-
for Ubuntu and macOS and in [windows-versions.js](windows-versions.js) for Windows.
53+
The full list of available Ruby versions can be seen in [ruby-builder-versions.json](ruby-builder-versions.json)
54+
for Ubuntu and macOS and in [windows-versions.json](windows-versions.json) for Windows.
5555

5656
## Usage
5757

Diff for: dist/index.js

+19-112
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: generate-windows-versions.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
versions['mswin'] = 'https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-mswin.7z'
3131
versions['ucrt'] = 'https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-ucrt.7z'
3232

33-
js = "export const versions = #{JSON.pretty_generate(versions)}\n"
34-
File.binwrite 'windows-versions.js', js
33+
File.binwrite 'windows-versions.json', "#{JSON.pretty_generate(versions)}\n"
34+

Diff for: ruby-builder-versions.js

-36
This file was deleted.

Diff for: ruby-builder-versions.json

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"ruby": [
3+
"1.9.3-p551",
4+
"2.0.0-p648",
5+
"2.1.9",
6+
"2.2.10",
7+
"2.3.0", "2.3.1", "2.3.2", "2.3.3", "2.3.4", "2.3.5", "2.3.6", "2.3.7", "2.3.8",
8+
"2.4.0", "2.4.1", "2.4.2", "2.4.3", "2.4.4", "2.4.5", "2.4.6", "2.4.7", "2.4.9", "2.4.10",
9+
"2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.5.4", "2.5.5", "2.5.6", "2.5.7", "2.5.8", "2.5.9",
10+
"2.6.0", "2.6.1", "2.6.2", "2.6.3", "2.6.4", "2.6.5", "2.6.6", "2.6.7", "2.6.8", "2.6.9",
11+
"2.7.0", "2.7.1", "2.7.2", "2.7.3", "2.7.4", "2.7.5",
12+
"3.0.0-preview1", "3.0.0-preview2", "3.0.0-rc1", "3.0.0", "3.0.1", "3.0.2", "3.0.3",
13+
"3.1.0-preview1", "3.1.0",
14+
"head", "debug"
15+
],
16+
"jruby": [
17+
"9.1.17.0",
18+
"9.2.9.0", "9.2.10.0", "9.2.11.0", "9.2.11.1", "9.2.12.0", "9.2.13.0", "9.2.14.0", "9.2.15.0", "9.2.16.0", "9.2.17.0", "9.2.18.0", "9.2.19.0", "9.2.20.0", "9.2.20.1",
19+
"9.3.0.0", "9.3.1.0", "9.3.2.0",
20+
"head"
21+
],
22+
"truffleruby": [
23+
"19.3.0", "19.3.1",
24+
"20.0.0", "20.1.0", "20.2.0", "20.3.0",
25+
"21.0.0", "21.1.0", "21.2.0", "21.2.0.1", "21.3.0",
26+
"head"
27+
],
28+
"truffleruby+graalvm": [
29+
"21.2.0", "21.3.0",
30+
"head"
31+
]
32+
}

0 commit comments

Comments
 (0)