Skip to content

Commit 63092af

Browse files
committed
Support out-of-place build in ruby/ruby repo
1 parent c477f59 commit 63092af

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

spec/bundler/support/builders.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,13 +425,11 @@ def required_ruby_version=(*reqs)
425425
end
426426

427427
class BundlerBuilder
428-
SPEC = Gem::Specification.load(Spec::Path.relative_gemspec)
429-
430428
def initialize(context, name, version)
431429
raise "can only build bundler" unless name == "bundler"
432430

433431
@context = context
434-
@spec = SPEC.dup
432+
@spec = Spec::Path.loaded_gemspec.dup
435433
@spec.version = version || Bundler::VERSION
436434
end
437435

0 commit comments

Comments
 (0)