lib/mini_magick.rb in mini_magick-2.0.1 vs lib/mini_magick.rb in mini_magick-2.0.2

- old
+ new

@@ -248,17 +248,11 @@ end def method_missing(symbol, *args) guessed_command_name = symbol.to_s.gsub('_','-') if MOGRIFY_COMMANDS.include?(guessed_command_name) - # This makes sure we always quote if we are passed a single - # arguement with spaces in it - if (args.size == 1) && (args.first.to_s.include?(' ') || args.first.to_s.include?('#')) - push("-#{guessed_command_name}") - push(args.join(" ")) - else - push("-#{guessed_command_name} #{args.join(" ")}") - end + push("-#{guessed_command_name}") + push(args.join(" ")) if args.any? else super(symbol, *args) end end