From bc3fdf7c1e8e6471d2c46a26e5ef5355576ae26e Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sun, 2 Feb 2025 15:29:35 +0900 Subject: [PATCH 1/2] deps: Add benchmark gem to test/app/Gemfile Since ruby-3.5, the benchmark gem has been moved to the bundled gem from default gems. Therefore it should be loaded explicitly in Gemfile. https://bugs.ruby-lang.org/issues/20309 --- test/app/Gemfile | 3 +++ test/app/Gemfile.lock | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/test/app/Gemfile b/test/app/Gemfile index 170dd52..df050b1 100644 --- a/test/app/Gemfile +++ b/test/app/Gemfile @@ -15,4 +15,7 @@ gem 'base64' gem 'bigdecimal' gem 'mutex_m' +# They are bundled gems since Ruby 3.5 +gem 'benchmark' + gem 'rbs_rails', path: '../../' diff --git a/test/app/Gemfile.lock b/test/app/Gemfile.lock index 475c496..88c26f2 100644 --- a/test/app/Gemfile.lock +++ b/test/app/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: ../.. specs: - rbs_rails (0.12.0) + rbs_rails (0.12.1) parser rbs (>= 1) @@ -70,6 +70,7 @@ GEM ast (2.4.2) base64 (0.2.0) bcrypt (3.1.20) + benchmark (0.4.0) bigdecimal (3.1.8) bootsnap (1.18.4) msgpack (~> 1.2) @@ -176,6 +177,7 @@ PLATFORMS DEPENDENCIES base64 bcrypt + benchmark bigdecimal bootsnap mutex_m From 6a9a066ac36a425e20a75291a85e112d136b60c7 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sun, 2 Feb 2025 16:46:53 +0900 Subject: [PATCH 2/2] sig: Remove sig/rake.rbs The signatures of Rake::TaskLib has been registered to gem_rbs_collection. Thefore custom types are no longer needed. ref: https://github.com/ruby/gem_rbs_collection/blob/main/gems/rake/13.0/rake.rbs --- sig/rake.rbs | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 sig/rake.rbs diff --git a/sig/rake.rbs b/sig/rake.rbs deleted file mode 100644 index fbdfc7f..0000000 --- a/sig/rake.rbs +++ /dev/null @@ -1,6 +0,0 @@ -module Rake - class TaskLib - def desc: (String) -> void - def task: (Hash[Symbol, Symbol | Array[Symbol]]) ?{ () -> void } -> void - end -end