We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee5ceb2 commit db7d1dbCopy full SHA for db7d1db
Rakefile
@@ -269,6 +269,11 @@ namespace :docker do
269
version_info = get_ruby_version_at_commit(commit_hash)
270
ruby_so_suffix = version_info.values_at(:MAJOR, :MINOR, :TEENY).join(".")
271
build_args << "RUBY_SO_SUFFIX=#{ruby_so_suffix}"
272
+ elsif ruby_version.match?(/\A\d+\.\d+\.\d+-(preview|rc|dev)\d*\z/)
273
+ # For preview, rc, and dev versions, extract just the numeric version
274
+ # e.g., "4.0.0-preview2" -> "4.0.0"
275
+ ruby_so_suffix = ruby_version.match(/\A(\d+\.\d+\.\d+)/)[1]
276
+ build_args << "RUBY_SO_SUFFIX=#{ruby_so_suffix}"
277
end
278
%w(cppflags optflags).each do |name|
279
build_args << %Q(#{name}=#{ENV[name]}) if ENV.key?(name)
0 commit comments