Fix build on Ruby 3.3.10 (and any Ruby with 2 digit tiny version).

Didn't package before on Ruby 3.3.10, and only affects building, not
runtime, so no bump needed.
This commit is contained in:
jeremy
2025-10-29 00:15:51 +00:00
parent df7a6d1983
commit ab8cfee7bc
@@ -0,0 +1,11 @@
Work with Ruby 3.3.10 (and any Ruby version with 2 digit tiny version).
Index: ext/amalgalite/c/extconf.rb
--- ext/amalgalite/c/extconf.rb.orig
+++ ext/amalgalite/c/extconf.rb
@@ -80,5 +80,5 @@ ignoreable_warnings.each do |warning|
$CFLAGS += " -Wno-#{warning}"
end
-subdir = RUBY_VERSION.sub(/\.\d$/,'')
+subdir = RUBY_VERSION.sub(/\.\d+\z/,'')
create_makefile("amalgalite/#{subdir}/amalgalite")