lib/mini_magick.rb in mini_magick-5.0.0 vs lib/mini_magick.rb in mini_magick-5.0.1
- old
+ new
@@ -20,11 +20,11 @@
return @imagemagick7 if defined?(@imagemagick7)
@imagemagick7 = !!MiniMagick::Utilities.which("magick")
end
%w[animate compare composite conjure convert display identify import mogrify montage stream].each do |tool|
- name = imagemagick7? && tool == "convert" ? "magick" : tool
define_singleton_method(tool) do |**options, &block|
+ name = imagemagick7? && tool == "convert" ? "magick" : tool
MiniMagick::Tool.new(name, **options, &block)
end
end
##