Skip to content

Commit c477f59

Browse files
hsbtmatzbot
authored andcommitted
[ruby/rubygems] Use Spec::Path.relative_gemspec
ruby/rubygems@2142e405b0
1 parent d313891 commit c477f59

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

spec/bundler/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)