diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-02-01 19:08:33 -0600 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-02-01 19:08:33 -0600 |
commit | c495f0597918e7763d4eb0d032a733f23bb1525a (patch) | |
tree | 11e8db8e2d1301bc32ab343e300535be4f216560 /lib/bundler/ruby_dsl.rb | |
parent | 2b96013078cea64f3157461c590bc14b062944be (diff) | |
download | bundler-c495f0597918e7763d4eb0d032a733f23bb1525a.tar.gz |
Fix RubyVersion specs failuresseg-ruby-version-fixes
Diffstat (limited to 'lib/bundler/ruby_dsl.rb')
-rw-r--r-- | lib/bundler/ruby_dsl.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bundler/ruby_dsl.rb b/lib/bundler/ruby_dsl.rb index e1b9c3c3a1..a410b7f3d7 100644 --- a/lib/bundler/ruby_dsl.rb +++ b/lib/bundler/ruby_dsl.rb @@ -7,7 +7,10 @@ module Bundler raise GemfileError, "Please define :engine_version" if options[:engine] && options[:engine_version].nil? raise GemfileError, "Please define :engine" if options[:engine_version] && options[:engine].nil? - raise GemfileEvalError, "ruby_version must match the :engine_version for MRI" if options[:engine] == "ruby" && options[:engine_version] && ruby_version != options[:engine_version] + if options[:engine] == "ruby" && options[:engine_version] && + ruby_version != Array(options[:engine_version]) + raise GemfileEvalError, "ruby_version must match the :engine_version for MRI" + end @ruby_version = RubyVersion.new(ruby_version, options[:patchlevel], options[:engine], options[:engine_version]) end end |