diff options
author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2018-11-07 14:53:23 +0000 |
---|---|---|
committer | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2018-11-07 14:53:23 +0000 |
commit | 3df26b93b0afdce0d2b34596bc2de21649b174d0 (patch) | |
tree | 1825f638c1d3986754c6252ad872fb68901c2058 /bundler.gemspec | |
parent | 490591030356b835f1cbd1815ff7acff6c9fe394 (diff) | |
download | bundler-3df26b93b0afdce0d2b34596bc2de21649b174d0.tar.gz |
expand version path for rspec examples.
Diffstat (limited to 'bundler.gemspec')
-rw-r--r-- | bundler.gemspec | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bundler.gemspec b/bundler.gemspec index b642ce272f..b7123077d9 100644 --- a/bundler.gemspec +++ b/bundler.gemspec @@ -1,9 +1,8 @@ # coding: utf-8 # frozen_string_literal: true -version = File.expand_path("../lib/bundler/version.rb", __FILE__) -if File.file?(version) - require version +if File.file?(File.expand_path("../lib/bundler/version.rb", __FILE__)) + require File.expand_path("../lib/bundler/version.rb", __FILE__) else # for Ruby core repository require File.expand_path("../bundler/version.rb", __FILE__) |