summaryrefslogtreecommitdiff
path: root/bundler.gemspec
diff options
context:
space:
mode:
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__)