summaryrefslogtreecommitdiff
path: root/bundler.gemspec
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2018-11-07 14:53:23 +0000
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2018-11-07 14:53:23 +0000
commit3df26b93b0afdce0d2b34596bc2de21649b174d0 (patch)
tree1825f638c1d3986754c6252ad872fb68901c2058 /bundler.gemspec
parent490591030356b835f1cbd1815ff7acff6c9fe394 (diff)
downloadbundler-3df26b93b0afdce0d2b34596bc2de21649b174d0.tar.gz
expand version path for rspec examples.
Diffstat (limited to 'bundler.gemspec')
-rw-r--r--bundler.gemspec5
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__)