From 57253f41c006c38e7db4e22301c6682335c9de38 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Tue, 19 Oct 2021 18:41:33 +0200 Subject: [PATCH] Fix library path for old rubygems --- ext/libv8-node/paths.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/libv8-node/paths.rb b/ext/libv8-node/paths.rb index 79abbc0..a51a000 100644 --- a/ext/libv8-node/paths.rb +++ b/ext/libv8-node/paths.rb @@ -20,7 +20,7 @@ def object_paths end def platform - Gem::Platform.local.to_s.gsub(/-darwin-?\d+/, '-darwin') + Gem::Platform.local.tap { |p| RUBY_PLATFORM =~ /musl/ && p.version.nil? and p.instance_eval { @version = "musl" } }.to_s.gsub(/-darwin-?\d+/, '-darwin') end def config