Skip to content

Commit da91a88

Browse files
committed
Merge branch 'master' into c-api
2 parents 477ad58 + 8235a18 commit da91a88

File tree

87 files changed

+1994
-616
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+1994
-616
lines changed

.github/workflows/ruby.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
valgrind:
8484
runs-on: ubuntu-latest
8585
steps:
86-
- uses: actions/checkout@v2
86+
- uses: actions/checkout@v4
8787
- uses: ruby/setup-ruby@v1
8888
with:
8989
ruby-version: "3.4"

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
3434
res = URI.parse("https://stdgems.org/bundled_gems.json").read
3535
bundled_gems = JSON.parse(res)["gems"].map{_1["gem"]}
36-
system "gem uninstall #{bundled_gems.join(" ")}", exception: true
36+
system "gem uninstall #{bundled_gems.join(" ")} --force", exception: true
3737
'
3838
- name: bundle install
3939
run: |

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGELOG
22

3+
## 3.9.0 (2025-03-18)
4+
5+
### Miscellaneous
6+
7+
* Update steep ([#2328](https://github.com/ruby/rbs/pull/2328))
8+
39
## 3.9.0.pre.2 (2025-03-14)
410

511
### Signature updates

Gemfile.lock

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
PATH
22
remote: .
33
specs:
4-
rbs (3.9.0.pre.2)
4+
rbs (4.0.0.dev)
55
logger
6+
prism (>= 1.3.0)
67

78
PATH
89
remote: test/assets/test-gem
@@ -27,16 +28,16 @@ GEM
2728
tzinfo (~> 2.0, >= 2.0.5)
2829
addressable (2.8.7)
2930
public_suffix (>= 2.0.2, < 7.0)
30-
ast (2.4.2)
31+
ast (2.4.3)
3132
base64 (0.2.0)
3233
benchmark (0.4.0)
3334
benchmark-ips (2.14.0)
3435
bigdecimal (3.1.9)
3536
concurrent-ruby (1.3.5)
3637
connection_pool (2.5.0)
37-
csv (3.3.2)
38+
csv (3.3.3)
3839
dbm (1.1.0)
39-
diff-lcs (1.6.0)
40+
diff-lcs (1.6.1)
4041
digest (3.2.0)
4142
drb (2.2.1)
4243
ffi (1.17.1)
@@ -57,7 +58,7 @@ GEM
5758
listen (3.9.0)
5859
rb-fsevent (~> 0.10, >= 0.10.3)
5960
rb-inotify (~> 0.9, >= 0.9.10)
60-
logger (1.6.6)
61+
logger (1.7.0)
6162
marcel (1.0.4)
6263
memory_profiler (1.1.0)
6364
mini_portile2 (2.8.8)
@@ -68,16 +69,17 @@ GEM
6869
net-smtp (0.5.1)
6970
net-protocol
7071
nkf (0.2.0)
71-
nokogiri (1.18.4)
72+
nokogiri (1.18.7)
7273
mini_portile2 (~> 2.8.2)
7374
racc (~> 1.4)
7475
ostruct (0.6.1)
7576
parallel (1.26.3)
76-
parser (3.3.7.1)
77+
parser (3.3.7.4)
7778
ast (~> 2.4.1)
7879
racc
7980
pathname (0.4.0)
8081
power_assert (2.0.5)
82+
prism (1.4.0)
8183
pstore (0.2.0)
8284
psych (4.0.6)
8385
stringio
@@ -93,7 +95,7 @@ GEM
9395
rb-fsevent (0.11.2)
9496
rb-inotify (0.11.1)
9597
ffi (~> 1.0)
96-
rdoc (6.11.0)
98+
rdoc (6.13.1)
9799
psych (>= 4.0.0)
98100
regexp_parser (2.10.0)
99101
rspec (3.13.0)
@@ -109,22 +111,24 @@ GEM
109111
diff-lcs (>= 1.2.0, < 2.0)
110112
rspec-support (~> 3.13.0)
111113
rspec-support (3.13.2)
112-
rubocop (1.74.0)
114+
rubocop (1.75.2)
113115
json (~> 2.3)
114116
language_server-protocol (~> 3.17.0.2)
115117
lint_roller (~> 1.1.0)
116118
parallel (~> 1.10)
117119
parser (>= 3.3.0.2)
118120
rainbow (>= 2.2.2, < 4.0)
119121
regexp_parser (>= 2.9.3, < 3.0)
120-
rubocop-ast (>= 1.38.0, < 2.0)
122+
rubocop-ast (>= 1.44.0, < 2.0)
121123
ruby-progressbar (~> 1.7)
122124
unicode-display_width (>= 2.4.0, < 4.0)
123-
rubocop-ast (1.38.1)
124-
parser (>= 3.3.1.0)
125-
rubocop-on-rbs (1.4.2)
125+
rubocop-ast (1.44.0)
126+
parser (>= 3.3.7.2)
127+
prism (~> 1.4)
128+
rubocop-on-rbs (1.5.0)
129+
lint_roller (~> 1.1)
126130
rbs (~> 3.5)
127-
rubocop (~> 1.61)
131+
rubocop (>= 1.72.1, < 2.0)
128132
zlib
129133
rubocop-rubycw (0.2.2)
130134
lint_roller (~> 1.1)
@@ -134,34 +138,37 @@ GEM
134138
nokogiri
135139
securerandom (0.4.1)
136140
stackprof (0.2.27)
137-
steep (1.9.4)
141+
steep (1.10.0)
138142
activesupport (>= 5.1)
139143
concurrent-ruby (>= 1.1.10)
140144
csv (>= 3.0.9)
141145
fileutils (>= 1.1.0)
142146
json (>= 2.1.0)
143-
language_server-protocol (>= 3.15, < 4.0)
147+
language_server-protocol (>= 3.17.0.4, < 4.0)
144148
listen (~> 3.0)
145149
logger (>= 1.3.0)
150+
mutex_m (>= 0.3.0)
146151
parser (>= 3.1)
147152
rainbow (>= 2.2.2, < 4.0)
148-
rbs (~> 3.8)
153+
rbs (~> 3.9)
149154
securerandom (>= 0.1)
150155
strscan (>= 1.0.0)
151-
terminal-table (>= 2, < 4)
156+
terminal-table (>= 2, < 5)
152157
uri (>= 0.12.0)
153-
stringio (3.1.5)
158+
stringio (3.1.6)
154159
strong_json (2.1.2)
155160
strscan (3.1.2)
156161
tempfile (0.3.1)
157-
terminal-table (3.0.2)
158-
unicode-display_width (>= 1.1.1, < 3)
159-
test-unit (3.6.7)
162+
terminal-table (4.0.0)
163+
unicode-display_width (>= 1.1.1, < 4)
164+
test-unit (3.6.8)
160165
power_assert
161166
timeout (0.4.3)
162167
tzinfo (2.0.6)
163168
concurrent-ruby (~> 1.0)
164-
unicode-display_width (2.6.0)
169+
unicode-display_width (3.1.4)
170+
unicode-emoji (~> 4.0, >= 4.0.4)
171+
unicode-emoji (4.0.4)
165172
uri (1.0.3)
166173
zlib (3.2.1)
167174

Rakefile

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ end
2222
Rake::TestTask.new(test: :compile, &test_config)
2323

2424
unless Gem.win_platform?
25-
require "ruby_memcheck"
25+
begin
26+
require "ruby_memcheck"
2627

27-
namespace :test do
28-
RubyMemcheck::TestTask.new(valgrind: :compile, &test_config)
28+
namespace :test do
29+
RubyMemcheck::TestTask.new(valgrind: :compile, &test_config)
30+
end
31+
rescue LoadError => exn
32+
STDERR.puts "🚨🚨🚨🚨 Skipping RubyMemcheck: #{exn.inspect} 🚨🚨🚨🚨"
2933
end
3034
end
3135

@@ -139,16 +143,21 @@ task :stdlib_test => :compile do
139143
end
140144

141145
task :typecheck_test => :compile do
142-
FileList["test/typecheck/*"].each do |test|
143-
Dir.chdir(test) do
144-
expectations = File.join(test, "steep_expectations.yml")
145-
if File.exist?(expectations)
146-
sh "steep check --with_expectations"
147-
else
148-
sh "steep check"
149-
end
150-
end
151-
end
146+
puts
147+
puts
148+
puts "⛔️⛔️⛔️⛔️⛔️⛔️ Skipping type check test because RBS is incompatible with Steep (#{__FILE__}:#{__LINE__})"
149+
puts
150+
puts
151+
# FileList["test/typecheck/*"].each do |test|
152+
# Dir.chdir(test) do
153+
# expectations = File.join(test, "steep_expectations.yml")
154+
# if File.exist?(expectations)
155+
# sh "steep check --with_expectations"
156+
# else
157+
# sh "steep check"
158+
# end
159+
# end
160+
# end
152161
end
153162

154163
task :raap => :compile do

Steepfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ target :lib do
99
)
1010

1111
library "pathname", "json", "logger", "monitor", "tsort", "uri", 'dbm', 'pstore', 'singleton', 'shellwords', 'fileutils', 'find', 'digest', 'prettyprint', 'yaml', "psych", "securerandom"
12+
library "prism"
1213
signature "stdlib/strscan/0/"
1314
signature "stdlib/optparse/0/"
1415
signature "stdlib/rdoc/0/"

core/kernel.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1729,7 +1729,7 @@ module Kernel : BasicObject
17291729
def self?.sleep: (?nil) -> bot
17301730
| (Time::_Timeout duration) -> Integer
17311731

1732-
%a{steep:deprecated}
1732+
%a{deprecated}
17331733
interface _Divmod
17341734
def divmod: (Numeric) -> [ Numeric, Numeric ]
17351735
end

core/module.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1699,6 +1699,6 @@ class Module < Object
16991699
def attr: (*interned arg0) -> Array[Symbol]
17001700

17011701
# A previous incarnation of `interned` for backward-compatibility (see #1499)
1702-
%a{steep:deprecated}
1702+
%a{deprecated: Use `interned`}
17031703
type id = interned
17041704
end

core/object.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,5 @@ class Object < BasicObject
106106
end
107107

108108
# A previous incarnation of `interned` for backward-compatibility (see #1499)
109-
%a{steep:deprecated}
109+
%a{deprecated: Use `interned` instead}
110110
type Object::name = interned

core/string.rbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3574,10 +3574,10 @@ class String
35743574
def valid_encoding?: () -> bool
35753575
end
35763576

3577-
%a{steep:deprecated}
3577+
%a{deprecated}
35783578
interface _ArefFromStringToString
35793579
def []: (String) -> String
35803580
end
35813581

3582-
%a{steep:deprecated}
3582+
%a{deprecated}
35833583
type String::encode_fallback = Hash[String, String] | Proc | Method | _ArefFromStringToString

0 commit comments

Comments
 (0)