diff --git a/Gemfile b/Gemfile index 02add4e..0814bb2 100644 --- a/Gemfile +++ b/Gemfile @@ -10,7 +10,7 @@ group :development, :test do gem 'ostruct' gem 'rake', '~> 13.2' gem 'rake-compiler', '~> 1.2' - gem 'rake-compiler-dock', '~> 1.5' + gem 'rake-compiler-dock', '~> 1.11' gem 'rubocop' gem 'ruby-lsp', '~> 0.17', require: false gem 'ruby_memcheck', '~> 1.3' diff --git a/Rakefile b/Rakefile index 30f8c4a..7e88d72 100644 --- a/Rakefile +++ b/Rakefile @@ -24,7 +24,7 @@ PLATFORMS = %w[ x86_64-linux-musl ].freeze -ENV['RUBY_CC_VERSION'] = RakeCompilerDock.ruby_cc_version('~> 3.1') +ENV['RUBY_CC_VERSION'] = RakeCompilerDock.ruby_cc_version('~> 3.1', '~> 4.0') gemspec = Gem::Specification.load('tree_sitter.gemspec') diff --git a/test/tree_sitter/query_test.rb b/test/tree_sitter/query_test.rb index 742fbab..6e5f310 100644 --- a/test/tree_sitter/query_test.rb +++ b/test/tree_sitter/query_test.rb @@ -218,7 +218,7 @@ def mul(a, b) matches.each do |m| _(m).must_be_kind_of Hash _(m.keys.sort).must_equal %w[product product.left product.right sum sum.left] - _(m.values.all? { |n| n.instance_of?(TreeSitter::Node) }).must_be_equal true + _(m.values.all?(TreeSitter::Node)).must_be_equal true end end end