Skip to content

Commit ef75a99

Browse files
committed
Upgrade to Ruby v4.0.0
1 parent cea52a3 commit ef75a99

File tree

13 files changed

+27
-43
lines changed

13 files changed

+27
-43
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
fail-fast: false
4545
matrix:
4646
os: [ubuntu-latest, macos-latest, windows-latest]
47-
ruby: ["3.2", "3.3", "3.4"]
47+
ruby: ["3.3", "3.4", "4.0"]
4848
runs-on: ${{ matrix.os }}
4949
timeout-minutes: 40
5050
name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }}

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.4.5
1+
4.0.0

Gemfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ GEM
2626
language_server-protocol (3.17.0.5)
2727
lint_roller (1.1.0)
2828
logger (1.7.0)
29-
minitest (5.25.5)
29+
minitest (5.27.0)
3030
mocha (2.7.1)
3131
ruby2_keywords (>= 0.0.5)
3232
netrc (0.11.0)
@@ -122,7 +122,7 @@ GEM
122122
thor (1.3.2)
123123
unicode-display_width (3.1.4)
124124
unicode-emoji (~> 4.0, >= 4.0.4)
125-
unicode-emoji (4.0.4)
125+
unicode-emoji (4.2.0)
126126
yard (0.9.37)
127127
yard-sorbet (0.9.0)
128128
sorbet-runtime
@@ -165,7 +165,7 @@ CHECKSUMS
165165
language_server-protocol (3.17.0.5) sha256=fd1e39a51a28bf3eec959379985a72e296e9f9acfce46f6a79d31ca8760803cc
166166
lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
167167
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
168-
minitest (5.25.5) sha256=391b6c6cb43a4802bfb7c93af1ebe2ac66a210293f4a3fb7db36f2fc7dc2c756
168+
minitest (5.27.0) sha256=2d3b17f8a36fe7801c1adcffdbc38233b938eb0b4966e97a6739055a45fa77d5
169169
mocha (2.7.1) sha256=8f7d538d5d3ebc75fc788b3d92fbab913a93a78462d2a3ce99d1bdde7af7f851
170170
netrc (0.11.0) sha256=de1ce33da8c99ab1d97871726cba75151113f117146becbe45aa85cb3dabee3f
171171
parallel (1.27.0) sha256=4ac151e1806b755fb4e2dc2332cbf0e54f2e24ba821ff2d3dcf86bf6dc4ae130
@@ -207,9 +207,9 @@ CHECKSUMS
207207
test-unit (3.7.0) sha256=2b5745498c848768e1774acb63e3806d3bb47e2943bd91cc9bf559b4c6d4faa1
208208
thor (1.3.2) sha256=eef0293b9e24158ccad7ab383ae83534b7ad4ed99c09f96f1a6b036550abbeda
209209
unicode-display_width (3.1.4) sha256=8caf2af1c0f2f07ec89ef9e18c7d88c2790e217c482bfc78aaa65eadd5415ac1
210-
unicode-emoji (4.0.4) sha256=2c2c4ef7f353e5809497126285a50b23056cc6e61b64433764a35eff6c36532a
210+
unicode-emoji (4.2.0) sha256=519e69150f75652e40bf736106cfbc8f0f73aa3fb6a65afe62fefa7f80b0f80f
211211
yard (0.9.37) sha256=a6e910399e78e613f80ba9add9ba7c394b1a935f083cccbef82903a3d2a26992
212212
yard-sorbet (0.9.0) sha256=03d1aa461b9e9c82b886919a13aa3e09fcf4d1852239d2967ed97e92723ffe21
213213

214214
BUNDLED WITH
215-
4.0.2
215+
4.0.3

jekyll/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
source "https://rubygems.org"
55

66
# We only need to use Jekyll with CRuby
7+
gem "logger"
78
gem "jekyll", "~> 4.4.1"
89
gem "jekyll-feed", "~> 0.12"
910
gem "jekyll-redirect-from"

jekyll/Gemfile.lock

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,6 @@ GEM
2828
google-protobuf (4.33.2)
2929
bigdecimal
3030
rake (>= 13)
31-
google-protobuf (4.33.2-aarch64-linux-gnu)
32-
bigdecimal
33-
rake (>= 13)
34-
google-protobuf (4.33.2-aarch64-linux-musl)
35-
bigdecimal
36-
rake (>= 13)
37-
google-protobuf (4.33.2-arm64-darwin)
38-
bigdecimal
39-
rake (>= 13)
40-
google-protobuf (4.33.2-x86-linux-gnu)
41-
bigdecimal
42-
rake (>= 13)
43-
google-protobuf (4.33.2-x86-linux-musl)
44-
bigdecimal
45-
rake (>= 13)
4631
google-protobuf (4.33.2-x86_64-darwin)
4732
bigdecimal
4833
rake (>= 13)
@@ -100,6 +85,7 @@ GEM
10085
listen (3.9.0)
10186
rb-fsevent (~> 0.10, >= 0.10.3)
10287
rb-inotify (~> 0.9, >= 0.9.10)
88+
logger (1.7.0)
10389
mercenary (0.4.0)
10490
pathutil (0.16.2)
10591
forwardable-extended (~> 2.6)
@@ -185,6 +171,7 @@ DEPENDENCIES
185171
jekyll-feed (~> 0.12)
186172
jekyll-redirect-from
187173
just-the-docs (~> 0.11.1)
174+
logger
188175

189176
BUNDLED WITH
190-
2.5.11
177+
4.0.3

lib/ruby_indexer/test/configuration_test.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,18 +233,16 @@ def test_does_not_fail_if_there_are_missing_specs_due_to_platform_constraints
233233
RUBY
234234

235235
Bundler.with_unbundled_env do
236-
capture_subprocess_io { system("bundle install") }
236+
capture_subprocess_io do
237+
system("bundle install")
237238

238-
_stdout, stderr = capture_subprocess_io do
239239
script = [
240240
"require \"ruby_lsp/internal\"",
241241
"RubyIndexer::Configuration.new.indexable_uris",
242242
].join(";")
243243

244-
system("bundle exec ruby -e '#{script}'")
244+
assert(system("bundle exec ruby -e '#{script}'"))
245245
end
246-
247-
assert_empty(stderr)
248246
end
249247
end
250248
end

test/expectations/document_link/package_url_comment.exp.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
},
2323
"end": {
2424
"line": 4,
25-
"character": 32
25+
"character": 26
2626
}
2727
},
28-
"target": "file://RUBY_ROOT/pathname.rb#1",
29-
"tooltip": "Jump to RUBY_ROOT/pathname.rb#1"
28+
"target": "file://RUBY_ROOT/open3.rb#1",
29+
"tooltip": "Jump to RUBY_ROOT/open3.rb#1"
3030
},
3131
{
3232
"range": {

test/expectations/document_link/source_comment.exp.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
},
2323
"end": {
2424
"line": 4,
25-
"character": 34
25+
"character": 28
2626
}
2727
},
28-
"target": "file://RUBY_ROOT/pathname.rb#1",
29-
"tooltip": "Jump to RUBY_ROOT/pathname.rb#1"
28+
"target": "file://RUBY_ROOT/open3.rb#1",
29+
"tooltip": "Jump to RUBY_ROOT/open3.rb#1"
3030
},
3131
{
3232
"range": {

test/fixtures/package_url_comment.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
def foo
33
end
44

5-
# pkg:gem/pathname#pathname.rb:1
5+
# pkg:gem/open3#open3.rb:1
66
def bar
77
end
88

test/fixtures/source_comment.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
def foo
33
end
44

5-
# source://pathname//pathname.rb#1
5+
# source://open3//open3.rb#1
66
def bar
77
end
88

0 commit comments

Comments
 (0)