lib/bundler/ruby_version.rb in bundler-1.13.1 vs lib/bundler/ruby_version.rb in bundler-1.13.2
- old
+ new
@@ -21,11 +21,11 @@
# must not be specified, or the engine version
# specified must match the version.
@versions = Array(versions)
@gem_version = Gem::Requirement.create(@versions.first).requirements.first.last
- @input_engine = engine
- @engine = engine || "ruby"
+ @input_engine = engine && engine.to_s
+ @engine = engine && engine.to_s || "ruby"
@engine_versions = (engine_version && Array(engine_version)) || @versions
@engine_gem_version = Gem::Requirement.create(@engine_versions.first).requirements.first.last
@patchlevel = patchlevel
end