lib/mini_magick/image/info.rb in mini_magick-4.9.0 vs lib/mini_magick/image/info.rb in mini_magick-4.9.1

- old
+ new

@@ -89,11 +89,11 @@ output.each_line do |line| line = line.chomp("\n") case MiniMagick.cli - when :imagemagick + when :imagemagick, :imagemagick7 if match = line.match(/^exif:/) key, value = match.post_match.split("=", 2) value = decode_comma_separated_ascii_characters(value) if ASCII_ENCODED_EXIF_KEYS.include?(key) hash[key] = value else @@ -118,10 +118,10 @@ def signature @info["signature"] ||= self["%#"] end def details - warn "[MiniMagick] MiniMagick::Image#details has been deprecated, as it was causing too many parsing errors. You should use MiniMagick::Image#data instead, which differs in a way that the keys are in camelcase." if MiniMagick.imagemagick? + warn "[MiniMagick] MiniMagick::Image#details has been deprecated, as it was causing too many parsing errors. You should use MiniMagick::Image#data instead, which differs in a way that the keys are in camelcase." if MiniMagick.imagemagick? || MiniMagick.imagemagick7? @info["details"] ||= ( details_string = identify(&:verbose) key_stack = [] details_string.lines.to_a[1..-1].each_with_object({}) do |line, details_hash|