diff options
author | Yusuke Endoh <[email protected]> | 2023-02-17 12:50:48 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2023-02-19 21:06:13 +0900 |
commit | 759d23584e8f0110e55c8c47db662b733e72e219 () | |
tree | 8920b088d5c4a7ba432b5883e751c503daf13a26 /tool/lib/bundled_gem.rb | |
parent | 8eaa346620c1699ee1c80e4e48c9689b019f334d (diff) |
Create a dummy minitest.gemspec for a bundled gem
To use the repository version of bundled gems, we need to build a gem by "gem build", but the repository of minitest does not include minitest.gemspec because it uses hoe. This change creats a dummy minitest.gemspec to pass the CI.
Notes: Merged: https://.com/ruby/ruby/pull/7339
-rw-r--r-- | tool/lib/bundled_gem.rb | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -18,6 +18,31 @@ module BundledGem outdir = File.expand_path(outdir) gemdir, gemfile = File.split(gemspec) Dir.chdir(gemdir) do spec = Gem::Specification.load(gemfile) abort "Failed to load #{gemspec}" unless spec abort "Unexpected version #{spec.version}" unless spec.version == Gem::Version.new(version) |