From 66ecd00c19ed712243c4ee54dab32a8826f0bd81 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 11 Nov 2025 14:22:16 +0900 Subject: Support out-of-place build in ruby/ruby repo --- spec/bundler/support/builders.rb | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3