Skip to content

Commit

Permalink
Set RUBY_CC_VERSION using RakeCompilerDock.set_ruby_cc_version
Browse files Browse the repository at this point in the history
This avoids the need to hard-code specific patch-level versions.

See
https://github.com/rake-compiler/rake-compiler-dock/releases/tag/v1.9.1.
  • Loading branch information
stanhu committed Jan 20, 2025
1 parent bc69a0c commit 95da0d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ cross_platforms = %w[
x86_64-linux-musl
].freeze

ENV['RUBY_CC_VERSION'] = '3.4.1:3.3.5:3.2.6:3.1.6:3.0.7:2.7.8:2.6.10'
ENV['RUBY_CC_VERSION'] = RakeCompilerDock.ruby_cc_version("3.4", "3.3", "3.2", "3.1", "3.0", "2.7", "2.6")

Gem::PackageTask.new(re2_gemspec).define

Expand Down
2 changes: 1 addition & 1 deletion re2.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Gem::Specification.new do |s|
"spec/re2/scanner_spec.rb"
]
s.add_development_dependency("rake-compiler", "~> 1.2.7")
s.add_development_dependency("rake-compiler-dock", "~> 1.8.0")
s.add_development_dependency("rake-compiler-dock", "~> 1.9.1")
s.add_development_dependency("rspec", "~> 3.2")
s.add_runtime_dependency("mini_portile2", "~> 2.8.7") # keep version in sync with extconf.rb
end

0 comments on commit 95da0d4

Please sign in to comment.