Skip to content

Commit 2142e40

Browse files
committed
Use Spec::Path.relative_gemspec
1 parent ebf2705 commit 2142e40

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bundler/spec/support/builders.rb

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

427427
class BundlerBuilder
428-
SPEC_FILE = File.join File.dirname(__FILE__), "..", "..", "bundler.gemspec"
429-
SPEC = Gem::Specification.load(SPEC_FILE)
428+
SPEC = Gem::Specification.load(Spec::Path.relative_gemspec)
430429

431430
def initialize(context, name, version)
432431
raise "can only build bundler" unless name == "bundler"

0 commit comments

Comments
 (0)