diff options
author | Samuel E. Giddins <segiddins@segiddins.me> | 2015-10-02 00:22:58 -0500 |
---|---|---|
committer | Samuel E. Giddins <segiddins@segiddins.me> | 2015-10-02 00:22:58 -0500 |
commit | 04ce5ce65b8753e948ac2ab96234f65de3d2a47d (patch) | |
tree | e894fdd8f1a3d707756e78f9443adefc95a6ce96 | |
parent | e36a75bc40ce5dfb49cb4d8bdcb5b5afc66137f4 (diff) | |
download | bundler-04ce5ce65b8753e948ac2ab96234f65de3d2a47d.tar.gz |
[Definition] Handle when there is no ruby_version
-rw-r--r-- | lib/bundler/definition.rb | 3 |
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 |