diff options
author | Graham Marlow <graham@onesignal.com> | 2023-09-29 09:37:39 -0700 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-10-02 01:34:01 +0000 |
commit | f3aea74c3d63a9b1e0f597b060bf84c14d1c70fc (patch) | |
tree | 02653de5f88c6cd1c1c7766376059076714bd5fd /spec | |
parent | 1ed6fd899769e6cd66a1a3f66b7818d48ba4231b (diff) | |
download | ruby-f3aea74c3d63a9b1e0f597b060bf84c14d1c70fc.tar.gz |
[rubygems/rubygems] Include gemspec in ExtensionTask for native gem tasks
https://github.com/rubygems/rubygems/commit/042cfb7007
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/commands/newgem_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/bundler/commands/newgem_spec.rb b/spec/bundler/commands/newgem_spec.rb index e06c8c8dd3..b34ffbc35b 100644 --- a/spec/bundler/commands/newgem_spec.rb +++ b/spec/bundler/commands/newgem_spec.rb @@ -1427,7 +1427,9 @@ RSpec.describe "bundle gem" do task build: :compile - Rake::ExtensionTask.new("#{gem_name}") do |ext| + GEMSPEC = Gem::Specification.load("#{gem_name}.gemspec") + + Rake::ExtensionTask.new("#{gem_name}", GEMSPEC) do |ext| ext.lib_dir = "lib/#{gem_name}" end @@ -1485,7 +1487,9 @@ RSpec.describe "bundle gem" do task build: :compile - RbSys::ExtensionTask.new("#{gem_name}") do |ext| + GEMSPEC = Gem::Specification.load("#{gem_name}.gemspec") + + RbSys::ExtensionTask.new("#{gem_name}", GEMSPEC) do |ext| ext.lib_dir = "lib/#{gem_name}" end |