From e4989cd567ed3efcb96bcd917f1f18fbc29c6fd7 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Mon, 24 Jan 2022 16:00:00 +0100 Subject: [PATCH 1/4] Update test to use node 17 PR --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2a5b8cd..f3e87b5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -395,7 +395,7 @@ jobs: run: | git clone https://github.com/rubyjs/mini_racer.git test/mini_racer --depth 1 cd test/mini_racer - git fetch origin refs/pull/210/head + git fetch origin refs/pull/231/head git checkout FETCH_HEAD git reset --hard git clean -f -d -x From 43ce7cb22b374009954f10d7f51305ec82a520c1 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Mon, 24 Jan 2022 15:53:58 +0100 Subject: [PATCH 2/4] Fix repo address --- libv8-node.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libv8-node.gemspec b/libv8-node.gemspec index 240f6a1..920f547 100644 --- a/libv8-node.gemspec +++ b/libv8-node.gemspec @@ -7,7 +7,7 @@ Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY s.authors = [''] s.email = [''] - s.homepage = 'https://github.com/sqreen/ruby-libv8-node' + s.homepage = 'https://github.com/rubyjs/libv8-node' s.summary = "Node.JS's V8 JavaScript engine" s.description = "Node.JS's V8 JavaScript engine for multiplatform goodness" s.license = 'MIT' From 2f426ff131c7c5466cea1bacb5a59cc12f77fd21 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Mon, 18 Oct 2021 12:53:54 +0200 Subject: [PATCH 3/4] Patch platform for musl tests with old rubygems --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f3e87b5..2796243 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -382,7 +382,7 @@ jobs: - name: Set metadata id: set-metadata run: | - docker exec -w "${PWD}" ${{ steps.container.outputs.id }} ruby -e 'puts Gem.platforms.last.to_s' | tee gem_platform + docker exec -w "${PWD}" ${{ steps.container.outputs.id }} ruby -e 'puts Gem::Platform.local.tap { |p| RUBY_PLATFORM =~ /musl/ && p.version.nil? and p.instance_eval { @version = "musl" } }.to_s' | tee gem_platform echo "::set-output name=GEM_PLATFORM::$(cat gem_platform)" - name: Download a single artifact uses: actions/download-artifact@v2 From 57253f41c006c38e7db4e22301c6682335c9de38 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Tue, 19 Oct 2021 18:41:33 +0200 Subject: [PATCH 4/4] 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