diff options
author | Terence Lee <hone02@gmail.com> | 2012-09-13 01:26:08 +0900 |
---|---|---|
committer | Terence Lee <hone02@gmail.com> | 2012-09-13 01:26:10 +0900 |
commit | a6833dc952130f6bfcce8507ad13fa9062d7968b (patch) | |
tree | 1a6014917342f2d0ae66e9bbc67f926cb713599b /lib/bundler/definition.rb | |
parent | 9549618459ac92b098d81e2d7fc09c455a6956d3 (diff) | |
download | bundler-a6833dc952130f6bfcce8507ad13fa9062d7968b.tar.gz |
Fix #2096. Definition#new use nil for ruby_version default value
Definition#validate_ruby! checks for nil and not an empty string
Diffstat (limited to 'lib/bundler/definition.rb')
-rw-r--r-- | lib/bundler/definition.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index ccd7f7fe47..151ce2bb50 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -30,7 +30,7 @@ module Bundler specs, then we can try to resolve locally. =end - def initialize(lockfile, dependencies, sources, unlock, ruby_version = "") + def initialize(lockfile, dependencies, sources, unlock, ruby_version = nil) @unlocking = unlock == true || !unlock.empty? @dependencies, @sources, @unlock = dependencies, sources, unlock |