Support out-of-place build in ruby/ruby repo

This commit is contained in:
Hiroshi SHIBATA 2025-11-11 14:22:16 +09:00
parent c8977e9064
commit 66ecd00c19
Notes: git 2025-11-11 07:11:31 +00:00

View File

@ -425,13 +425,11 @@ module Spec
end
class BundlerBuilder
SPEC = Gem::Specification.load(Spec::Path.relative_gemspec)
def initialize(context, name, version)
raise "can only build bundler" unless name == "bundler"
@context = context
@spec = SPEC.dup
@spec = Spec::Path.loaded_gemspec.dup
@spec.version = version || Bundler::VERSION
end