Skip to content

Commit ae095da

Browse files
ehostalery-sweepstackmystack
authored andcommitted
rake: update rake-compiler-dock to v1.11 and add support for Ruby 4.0
1 parent 7905b77 commit ae095da

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ group :development, :test do
1010
gem 'ostruct'
1111
gem 'rake', '~> 13.2'
1212
gem 'rake-compiler', '~> 1.2'
13-
gem 'rake-compiler-dock', '~> 1.5'
13+
gem 'rake-compiler-dock', '~> 1.11'
1414
gem 'rubocop'
1515
gem 'ruby-lsp', '~> 0.17', require: false
1616
gem 'ruby_memcheck', '~> 1.3'

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ PLATFORMS = %w[
2424
x86_64-linux-musl
2525
].freeze
2626

27-
ENV['RUBY_CC_VERSION'] = RakeCompilerDock.ruby_cc_version('~> 3.1')
27+
ENV['RUBY_CC_VERSION'] = RakeCompilerDock.ruby_cc_version('~> 3.1', '~> 4.0')
2828

2929
gemspec = Gem::Specification.load('tree_sitter.gemspec')
3030

test/tree_sitter/query_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def mul(a, b)
218218
matches.each do |m|
219219
_(m).must_be_kind_of Hash
220220
_(m.keys.sort).must_equal %w[product product.left product.right sum sum.left]
221-
_(m.values.all? { |n| n.instance_of?(TreeSitter::Node) }).must_be_equal true
221+
_(m.values.all?(TreeSitter::Node)).must_be_equal true
222222
end
223223
end
224224
end

0 commit comments

Comments
 (0)