Skip to content

Commit 3686510

Browse files
authored
Merge pull request #2718 from ruby/ruby-4
Run CI with "4.0.0-preview2"
2 parents aa04661 + 24c8efb commit 3686510

File tree

12 files changed

+38
-31
lines changed

12 files changed

+38
-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@v6
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: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
ruby: ['3.2', '3.3', '3.4', head]
16+
ruby: ['3.2', '3.3', '3.4', '4.0.0-preview2', head]
1717
rubyopt: [""]
1818
job:
1919
- test
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"
@@ -74,7 +74,7 @@ jobs:
7474
strategy:
7575
fail-fast: false
7676
matrix:
77-
ruby: ['3.4', head]
77+
ruby: ['4.0.0-preview2', head]
7878
steps:
7979
- uses: actions/checkout@v6
8080
- 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@v6
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@v6
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: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ GEM
4343
drb (2.2.3)
4444
erb (6.0.0)
4545
extconf_compile_commands_json (0.0.7)
46-
ffi (1.17.2-aarch64-linux-gnu)
47-
ffi (1.17.2-arm64-darwin)
48-
ffi (1.17.2-x86_64-linux-gnu)
46+
ffi (1.17.2)
4947
fileutils (1.8.0)
5048
goodcheck (3.1.0)
5149
marcel (>= 1.0, < 2.0)
@@ -54,6 +52,11 @@ GEM
5452
strong_json (>= 1.1, < 2.2)
5553
i18n (1.14.7)
5654
concurrent-ruby (~> 1.0)
55+
io-console (0.8.1)
56+
irb (1.15.3)
57+
pp (>= 0.6.0)
58+
rdoc (>= 4.0.0)
59+
reline (>= 0.4.2)
5760
json (2.16.0)
5861
json-schema (6.0.0)
5962
addressable (~> 2.8)
@@ -66,26 +69,26 @@ GEM
6669
logger (1.7.0)
6770
marcel (1.1.0)
6871
memory_profiler (1.1.0)
72+
mini_portile2 (2.8.9)
6973
minitest (5.26.2)
7074
mutex_m (0.3.0)
7175
net-protocol (0.2.2)
7276
timeout
7377
net-smtp (0.5.1)
7478
net-protocol
7579
nkf (0.2.0)
76-
nokogiri (1.18.10-aarch64-linux-gnu)
77-
racc (~> 1.4)
78-
nokogiri (1.18.10-arm64-darwin)
79-
racc (~> 1.4)
80-
nokogiri (1.18.10-x86_64-linux-gnu)
80+
nokogiri (1.18.10)
81+
mini_portile2 (~> 2.8.2)
8182
racc (~> 1.4)
8283
ostruct (0.6.3)
8384
parallel (1.27.0)
8485
parser (3.3.10.0)
8586
ast (~> 2.4.1)
8687
racc
87-
pathname (0.4.0)
8888
power_assert (3.0.1)
89+
pp (0.6.3)
90+
prettyprint
91+
prettyprint (0.2.0)
8992
prism (1.6.0)
9093
pstore (0.2.0)
9194
psych (4.0.6)
@@ -107,6 +110,8 @@ GEM
107110
psych (>= 4.0.0)
108111
tsort
109112
regexp_parser (2.11.3)
113+
reline (0.6.3)
114+
io-console (~> 0.5)
110115
rspec (3.13.2)
111116
rspec-core (~> 3.13.0)
112117
rspec-expectations (~> 3.13.0)
@@ -183,9 +188,7 @@ GEM
183188
zlib (3.2.2)
184189

185190
PLATFORMS
186-
aarch64-linux
187-
arm64-darwin
188-
x86_64-linux
191+
ruby
189192

190193
DEPENDENCIES
191194
abbrev
@@ -199,6 +202,7 @@ DEPENDENCIES
199202
extconf_compile_commands_json
200203
fileutils
201204
goodcheck
205+
irb
202206
json
203207
json-schema
204208
memory_profiler
@@ -207,7 +211,6 @@ DEPENDENCIES
207211
net-smtp
208212
nkf
209213
ostruct
210-
pathname
211214
pstore
212215
raap
213216
rake
@@ -226,4 +229,4 @@ DEPENDENCIES
226229
test-unit
227230

228231
BUNDLED WITH
229-
2.6.3
232+
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
@@ -89,4 +89,4 @@ DEPENDENCIES
8989
test-unit
9090

9191
BUNDLED WITH
92-
2.6.3
92+
4.0.0.dev

0 commit comments

Comments
 (0)