summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2025-11-11 14:22:16 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-11-11 16:11:05 +0900
commit66ecd00c19ed712243c4ee54dab32a8826f0bd81 (patch)
tree1dfab99d0d751a440928c56774884a1c2ac30898
parentc8977e9064c9d3e73515b5ed39ef3ef6557517c0 (diff)
Support out-of-place build in ruby/ruby repo
-rw-r--r--spec/bundler/support/builders.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/bundler/support/builders.rb b/spec/bundler/support/builders.rb
index 4eaf40e1bf..5ca227cf5b 100644
--- a/spec/bundler/support/builders.rb
+++ b/spec/bundler/support/builders.rb
@@ -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