Hello community,
here is the log from the commit of package rubygem-mini_magick for
openSUSE:Factory checked in at 2020-11-11 20:47:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-mini_magick (Old)
and /work/SRC/openSUSE:Factory/.rubygem-mini_magick.new.26437 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-mini_magick"
Wed Nov 11 20:47:09 2020 rev:10 rq:847722 version:4.11.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-mini_magick/rubygem-mini_magick.changes
2020-03-07 21:38:48.472295215 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-mini_magick.new.26437/rubygem-mini_magick.changes
2020-11-11 20:47:15.143695465 +0100
@@ -1,0 +2,10 @@
+Tue Nov 10 21:35:18 UTC 2020 - Manuel Schnitzer <[email protected]>
+
+- updated to version 4.11.0
+
+ * Fix fetching metadata when there are GhostScript warnings (#522)
+ * Fixed some method redefined warnings (#505)
+ * Added MiniMagick::Image.get_image_from_pixels (#516)
+ * extend MiniMagick::Tool#stack to support arguments so that it can be used
with Active Storage
+
+-------------------------------------------------------------------
Old:
----
mini_magick-4.10.1.gem
New:
----
mini_magick-4.11.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-mini_magick.spec ++++++
--- /var/tmp/diff_new_pack.RzaqHK/_old 2020-11-11 20:47:15.967696239 +0100
+++ /var/tmp/diff_new_pack.RzaqHK/_new 2020-11-11 20:47:15.975696247 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-mini_magick
-Version: 4.10.1
+Version: 4.11.0
Release: 0
%define mod_name mini_magick
%define mod_full_name %{mod_name}-%{version}
++++++ mini_magick-4.10.1.gem -> mini_magick-4.11.0.gem ++++++
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/mini_magick/configuration.rb
new/lib/mini_magick/configuration.rb
--- old/lib/mini_magick/configuration.rb 2020-01-06 14:10:32.000000000
+0100
+++ new/lib/mini_magick/configuration.rb 2020-11-06 17:19:47.000000000
+0100
@@ -5,14 +5,6 @@
module Configuration
##
- # Set whether you want to use [ImageMagick](http://www.imagemagick.org) or
- # [GraphicsMagick](http://www.graphicsmagick.org).
- #
- # @return [Symbol] `:imagemagick`, `:imagemagick7`, or `:graphicsmagick`
- #
- attr_accessor :cli
-
- ##
# If you don't have the CLI tools in your PATH, you can set the path to the
# executables.
#
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/mini_magick/image/info.rb
new/lib/mini_magick/image/info.rb
--- old/lib/mini_magick/image/info.rb 2020-01-06 14:10:32.000000000 +0100
+++ new/lib/mini_magick/image/info.rb 2020-11-06 17:19:47.000000000 +0100
@@ -42,7 +42,7 @@
def cheap_info(value)
@info.fetch(value) do
- format, width, height, size = self["%m %w %h %b"].split(" ")
+ format, width, height, size = parse_warnings(self["%m %w %h
%b"]).split(" ")
path = @path
path = path.match(/\[\d+\]$/).pre_match if path =~ /\[\d+\]$/
@@ -61,6 +61,16 @@
rescue ArgumentError, TypeError
raise MiniMagick::Invalid, "image data can't be read"
end
+
+ def parse_warnings(raw_info)
+ return raw_info unless raw_info.split("\n").size > 1
+
+ raw_info.split("\n").each do |line|
+ # must match "%m %w %h %b"
+ return line if line.match? /^[A-Z]+ \d+ \d+ \d+B$/
+ end
+ raise TypeError
+ end
def colorspace
@info["colorspace"] ||= self["%r"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/mini_magick/image.rb new/lib/mini_magick/image.rb
--- old/lib/mini_magick/image.rb 2020-01-06 14:10:32.000000000 +0100
+++ new/lib/mini_magick/image.rb 2020-11-06 17:19:47.000000000 +0100
@@ -15,7 +15,7 @@
# methods.
#
# Use this to pass in a stream object. Must respond to #read(size) or be a
- # binary string object (BLOBBBB)
+ # binary string object (BLOB)
#
# Probably easier to use the {.open} method if you want to open a file or a
# URL.
@@ -379,6 +379,23 @@
end
##
+ # This is used to create image from pixels. This might be required if you
+ # create pixels for some image processing reasons and you want to form
+ # image from those pixels.
+ #
+ # *DANGER*: This operation can be very expensive. Please try to use with
+ # caution.
+ #
+ # @example
+ # # It is given in readme.md file
+ ##
+ def self.get_image_from_pixels(pixels, dimension, map, depth, mime_type)
+ pixels = pixels.flatten
+ blob = pixels.pack('C*')
+ import_pixels(blob, *dimension, depth, map, mime_type)
+ end
+
+ ##
# This is used to change the format of the image. That is, from "tiff to
# jpg" or something like that. Once you run it, the instance is pointing to
# a new file with a new extension!
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/mini_magick/immutable_image.rb
new/lib/mini_magick/immutable_image.rb
--- old/lib/mini_magick/immutable_image.rb 2020-01-06 14:10:32.000000000
+0100
+++ new/lib/mini_magick/immutable_image.rb 1970-01-01 01:00:00.000000000
+0100
@@ -1,18 +0,0 @@
-module MiniMagick
- class Image
- def initialize(source)
- if source.is_a?(String) || source.is_a?(Pathname)
- @source_path = source.to_s
- elsif source.respond_to?(:path)
- @source_path = source.path
- else
- fail ArgumentError, "invalid source object: #{source.inspect}
(expected String, Pathname or #path)"
- end
- end
-
- def method_missing
- end
- end
-end
-
-image = MiniMagick::Image.new()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/mini_magick/tool.rb new/lib/mini_magick/tool.rb
--- old/lib/mini_magick/tool.rb 2020-01-06 14:10:32.000000000 +0100
+++ new/lib/mini_magick/tool.rb 2020-11-06 17:19:47.000000000 +0100
@@ -44,8 +44,10 @@
# @private
attr_reader :name, :args
- # @param whiny [Boolean] Whether to raise errors on exit codes different
- # than 0.
+ # @param name [String]
+ # @param options [Hash]
+ # @option options [Boolean] :whiny Whether to raise errors on non-zero
+ # exit codes.
# @example
# MiniMagick::Tool::Identify.new(whiny: false) do |identify|
# identify.help # returns exit status 1, which would otherwise throw
an error
@@ -190,9 +192,15 @@
# end
# # executes `convert wand.gif \( wizard.gif -rotate 30 \) +append
images.gif`
#
- def stack
+ def stack(*args)
self << "("
- yield self
+ args.each do |value|
+ case value
+ when Hash then value.each { |key, value| send(key, *value) }
+ when String then self << value
+ end
+ end
+ yield self if block_given?
self << ")"
end
@@ -227,6 +235,7 @@
##
# Define creator operator methods
#
+ # @example
# mogrify = MiniMagick::Tool.new("mogrify")
# mogrify.canvas("khaki")
# mogrify.command.join(" ") #=> "mogrify canvas:khaki"
@@ -251,10 +260,11 @@
##
# Any undefined method will be transformed into a CLI option
#
+ # @example
# mogrify = MiniMagick::Tool.new("mogrify")
# mogrify.adaptive_blur("...")
# mogrify.foo_bar
- # mogrify.command.join(" ") "mogrify -adaptive-blur ... -foo-bar"
+ # mogrify.command.join(" ") # => "mogrify -adaptive-blur ... -foo-bar"
#
def method_missing(name, *args)
option = "-#{name.to_s.tr('_', '-')}"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/mini_magick/version.rb
new/lib/mini_magick/version.rb
--- old/lib/mini_magick/version.rb 2020-01-06 14:10:32.000000000 +0100
+++ new/lib/mini_magick/version.rb 2020-11-06 17:19:47.000000000 +0100
@@ -8,8 +8,8 @@
module VERSION
MAJOR = 4
- MINOR = 10
- TINY = 1
+ MINOR = 11
+ TINY = 0
PRE = nil
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2020-01-06 14:10:32.000000000 +0100
+++ new/metadata 2020-11-06 17:19:47.000000000 +0100
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: mini_magick
version: !ruby/object:Gem::Version
- version: 4.10.1
+ version: 4.11.0
platform: ruby
authors:
- Corey Johnson
@@ -13,7 +13,7 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2020-01-06 00:00:00.000000000 Z
+date: 2020-11-06 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rake
@@ -118,7 +118,6 @@
- lib/mini_magick/configuration.rb
- lib/mini_magick/image.rb
- lib/mini_magick/image/info.rb
-- lib/mini_magick/immutable_image.rb
- lib/mini_magick/shell.rb
- lib/mini_magick/tool.rb
- lib/mini_magick/tool/animate.rb
@@ -156,7 +155,7 @@
version: '0'
requirements:
- You must have ImageMagick or GraphicsMagick installed
-rubygems_version: 3.1.2
+rubygems_version: 3.1.4
signing_key:
specification_version: 4
summary: Manipulate images with minimal use of memory via ImageMagick /
GraphicsMagick
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives:
https://lists.opensuse.org/archives/list/[email protected]