summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2016-05-31 19:03:05 -0700
committerAndre Arko <andre@arko.net>2016-05-31 19:03:05 -0700
commitf702647ec2bc879c29febe4536971aaeb1ee1349 (patch)
tree5f97174ed1c768ed7ec95ae678c06c772e2ece0a
parent3c31eda62afc76fd69175cd3161d3a74ddadafea (diff)
downloadbundler-f702647ec2bc879c29febe4536971aaeb1ee1349.tar.gz
use variables that exist!
-rw-r--r--lib/bundler/dsl.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb
index 68167436b5..07cddc1e84 100644
--- a/lib/bundler/dsl.rb
+++ b/lib/bundler/dsl.rb
@@ -407,7 +407,7 @@ module Bundler
def infer_ruby_version(gemfile)
return if @ruby_version
ruby_version_path = gemfile.parent + ".ruby-version"
- ruby(ruby_version.read.strip) if ruby_version_path.file?
+ ruby(ruby_version_path.read.strip) if ruby_version_path.file?
end
class DSLError < GemfileError