summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel E. Giddins <segiddins@segiddins.me>2015-10-02 00:22:58 -0500
committerSamuel E. Giddins <segiddins@segiddins.me>2015-10-02 00:22:58 -0500
commit04ce5ce65b8753e948ac2ab96234f65de3d2a47d (patch)
treee894fdd8f1a3d707756e78f9443adefc95a6ce96
parente36a75bc40ce5dfb49cb4d8bdcb5b5afc66137f4 (diff)
downloadbundler-04ce5ce65b8753e948ac2ab96234f65de3d2a47d.tar.gz
[Definition] Handle when there is no ruby_version
-rw-r--r--lib/bundler/definition.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb
index cb527de739..1de65df695 100644
--- a/lib/bundler/definition.rb
+++ b/lib/bundler/definition.rb
@@ -196,7 +196,8 @@ module Bundler
last_resolve
else
# Run a resolve against the locally available gems
- last_resolve.merge Resolver.resolve(expanded_dependencies, index, source_requirements, last_resolve, ruby_version.version)
+ requested_ruby_version = ruby_version.version if ruby_version
+ last_resolve.merge Resolver.resolve(expanded_dependencies, index, source_requirements, last_resolve, requested_ruby_version)
end
end
end