Skip to content

Commit 6f5f9da

Browse files
committed
Merge pull request #2718 from ruby/ruby-4
Run CI with "4.0.0-preview2"
1 parent c1a5645 commit 6f5f9da

File tree

12 files changed

+45
-31
lines changed

12 files changed

+45
-31
lines changed

.github/workflows/c-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v4
1313
- uses: ruby/setup-ruby@v1
1414
with:
15-
ruby-version: "3.4"
15+
ruby-version: "4.0.0-preview2"
1616
bundler-cache: none
1717
- name: Set working directory as safe
1818
run: git config --global --add safe.directory $(pwd)

.github/workflows/ruby.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ jobs:
2020
include:
2121
- ruby: head
2222
job: stdlib_test rubocop
23-
- ruby: "3.4"
23+
- ruby: "4.0.0-preview2"
2424
job: stdlib_test
25-
- ruby: "3.4"
25+
- ruby: "4.0.0-preview2"
2626
job: test
2727
rubyopt: "--enable-frozen-string-literal"
28-
- ruby: "3.4"
28+
- ruby: "4.0.0-preview2"
2929
job: stdlib_test
3030
rubyopt: "--enable-frozen-string-literal"
31-
- ruby: "3.4"
31+
- ruby: "4.0.0-preview2"
3232
job: rubocop validate test_doc build test_generate_stdlib raap
33-
- ruby: "3.4"
33+
- ruby: "4.0.0-preview2"
3434
job: typecheck_test
3535
env:
3636
RANDOMIZE_STDLIB_TEST_ORDER: "true"
@@ -94,7 +94,7 @@ jobs:
9494
strategy:
9595
fail-fast: false
9696
matrix:
97-
ruby: ['3.4', head]
97+
ruby: ['4.0.0-preview2', head]
9898
steps:
9999
- uses: actions/checkout@v4
100100
- name: Install dependencies

.github/workflows/typecheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v4
1717
- uses: ruby/setup-ruby@v1
1818
with:
19-
ruby-version: "3.3"
19+
ruby-version: "3.4"
2020
bundler: none
2121
- name: Set working directory as safe
2222
run: git config --global --add safe.directory $(pwd)

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
ruby: ['3.2', '3.3', ucrt, mswin]
16+
ruby: ['3.4', ucrt, mswin]
1717
steps:
1818
- uses: actions/checkout@v4
1919
- name: load ruby

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ gem "fileutils"
2121
gem "raap"
2222
gem "activesupport", "~> 7.0"
2323
gem "extconf_compile_commands_json"
24+
gem "irb"
2425

2526
group :libs do
2627
# Libraries required for stdlib test
@@ -30,7 +31,6 @@ group :libs do
3031
gem "dbm"
3132
gem "mutex_m"
3233
gem "nkf"
33-
gem "pathname"
3434
end
3535

3636
group :profilers do

Gemfile.lock

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,21 @@ GEM
4141
drb (2.2.1)
4242
extconf_compile_commands_json (0.0.7)
4343
ffi (1.17.2)
44-
fileutils (1.7.3)
44+
fileutils (1.8.0)
4545
goodcheck (3.1.0)
4646
marcel (>= 1.0, < 2.0)
4747
psych (>= 3.1, < 5.0)
4848
rainbow (>= 3.0, < 4.0)
4949
strong_json (>= 1.1, < 2.2)
5050
i18n (1.14.7)
5151
concurrent-ruby (~> 1.0)
52-
json (2.10.2)
53-
json-schema (5.1.1)
52+
io-console (0.8.1)
53+
irb (1.15.3)
54+
pp (>= 0.6.0)
55+
rdoc (>= 4.0.0)
56+
reline (>= 0.4.2)
57+
json (2.16.0)
58+
json-schema (6.0.0)
5459
addressable (~> 2.8)
5560
bigdecimal (~> 3.1)
5661
language_server-protocol (3.17.0.4)
@@ -61,25 +66,27 @@ GEM
6166
logger (1.7.0)
6267
marcel (1.0.4)
6368
memory_profiler (1.1.0)
64-
mini_portile2 (2.8.8)
65-
minitest (5.25.5)
69+
mini_portile2 (2.8.9)
70+
minitest (5.26.2)
6671
mutex_m (0.3.0)
6772
net-protocol (0.2.2)
6873
timeout
6974
net-smtp (0.5.1)
7075
net-protocol
7176
nkf (0.2.0)
72-
nokogiri (1.18.8)
77+
nokogiri (1.18.10)
7378
mini_portile2 (~> 2.8.2)
7479
racc (~> 1.4)
75-
ostruct (0.6.1)
80+
ostruct (0.6.3)
7681
parallel (1.27.0)
7782
parser (3.3.8.0)
7883
ast (~> 2.4.1)
7984
racc
80-
pathname (0.4.0)
81-
power_assert (2.0.5)
82-
prism (1.4.0)
85+
power_assert (3.0.1)
86+
pp (0.6.3)
87+
prettyprint
88+
prettyprint (0.2.0)
89+
prism (1.6.0)
8390
pstore (0.2.0)
8491
psych (4.0.6)
8592
stringio
@@ -98,8 +105,11 @@ GEM
98105
rdoc (6.16.0)
99106
erb
100107
psych (>= 4.0.0)
101-
regexp_parser (2.10.0)
102-
rspec (3.13.0)
108+
tsort
109+
regexp_parser (2.11.3)
110+
reline (0.6.3)
111+
io-console (~> 0.5)
112+
rspec (3.13.2)
103113
rspec-core (~> 3.13.0)
104114
rspec-expectations (~> 3.13.0)
105115
rspec-mocks (~> 3.13.0)
@@ -188,15 +198,15 @@ DEPENDENCIES
188198
extconf_compile_commands_json
189199
fileutils
190200
goodcheck
191-
json (~> 2.10.2)
201+
irb
202+
json
192203
json-schema
193204
memory_profiler
194205
minitest
195206
mutex_m
196207
net-smtp
197208
nkf
198209
ostruct
199-
pathname
200210
pstore
201211
raap
202212
rake
@@ -215,4 +225,4 @@ DEPENDENCIES
215225
test-unit
216226

217227
BUNDLED WITH
218-
2.6.3
228+
4.0.0.dev

Rakefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,14 @@ task :validate => :compile do
212212
end
213213

214214
libs.each do |lib|
215-
sh "#{ruby} #{rbs} -r #{lib} validate --exit-error-on-syntax-error"
215+
args = ["-r", lib]
216+
217+
if lib == "rbs"
218+
args << "-r"
219+
args << "prism"
220+
end
221+
222+
sh "#{ruby} #{rbs} #{args.join(' ')} validate --exit-error-on-syntax-error"
216223
end
217224
end
218225

bin/benchmark-parse.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
require "rbs"
22
require "benchmark/ips"
33
require "csv"
4-
require "pathname"
54

65
files = {}
76
ARGV.each do |file|

lib/rbs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
require "set"
66
require "json"
7-
require "pathname"
7+
require "pathname" unless defined?(Pathname)
88
require "pp"
99
require "ripper"
1010
require "logger"

steep/Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ DEPENDENCIES
8080
steep (~> 1.10.pre)
8181

8282
BUNDLED WITH
83-
2.6.3
83+
4.0.0.dev

0 commit comments

Comments
 (0)