Skip to content

Commit 19fdf2c

Browse files
Seems like bundler respects the .gem file name
1 parent a2f893d commit 19fdf2c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/npm-packages/ruby-head-wasm-wasi/Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
source "https://rubygems.org"
44

5-
# We build ./vendor/cache/js-local.gem just before evaluating this Gemfile
5+
# We build ./vendor/cache/js-{version}.gem just before evaluating this Gemfile
66
# so that Bundler builds extensions even from the local gem. (gem extensions
77
# from "path:" gems are not built by Bundler.)
88
# Thus even we specify version of "js" gem here, it should always installed
9-
# from the ./vendor/cache/js-local.gem, not from rubygems.org. To achieve this,
9+
# from the ./vendor/cache/js-{version}.gem, not from rubygems.org. To achieve this,
1010
# we always use non-exist version during development.
1111
require_relative "../../gems/js/lib/js/version.rb"
1212
gem "js", JS::VERSION

rakelib/packaging.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def vendor_gem_cache(pkg)
4949
mkdir_p vendor_cache_dir
5050
require_relative "../packages/gems/js/lib/js/version"
5151
sh "gem", "-C", "packages/gems/js", "build", "-o",
52-
File.join(vendor_cache_dir, "js-local.gem")
52+
File.join(vendor_cache_dir, "js-#{JS::VERSION}.gem")
5353
end
5454

5555
namespace :npm do

0 commit comments

Comments
 (0)