Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-mini_magick for
openSUSE:Factory checked in at 2022-12-13 18:56:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-mini_magick (Old)
and /work/SRC/openSUSE:Factory/.rubygem-mini_magick.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-mini_magick"
Tue Dec 13 18:56:47 2022 rev:11 rq:1042646 version:4.12.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-mini_magick/rubygem-mini_magick.changes
2020-11-11 20:47:15.143695465 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-mini_magick.new.1835/rubygem-mini_magick.changes
2022-12-13 18:57:10.971752607 +0100
@@ -1,0 +2,6 @@
+Wed Dec 7 11:25:14 UTC 2022 - Stephan Kulow <[email protected]>
+
+updated to version 4.12.0
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
mini_magick-4.11.0.gem
New:
----
mini_magick-4.12.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-mini_magick.spec ++++++
--- /var/tmp/diff_new_pack.0MkHi6/_old 2022-12-13 18:57:11.419754998 +0100
+++ /var/tmp/diff_new_pack.0MkHi6/_new 2022-12-13 18:57:11.423755019 +0100
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-mini_magick
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
#
Name: rubygem-mini_magick
-Version: 4.11.0
+Version: 4.12.0
Release: 0
%define mod_name mini_magick
%define mod_full_name %{mod_name}-%{version}
++++++ mini_magick-4.11.0.gem -> mini_magick-4.12.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-11-06 17:19:47.000000000
+0100
+++ new/lib/mini_magick/configuration.rb 2022-12-07 09:44:37.000000000
+0100
@@ -45,6 +45,13 @@
# @return [Logger]
#
attr_accessor :logger
+ ##
+ # Temporary directory used by MiniMagick, default is `Dir.tmpdir`, but
+ # you can override it.
+ #
+ # @return [String]
+ #
+ attr_accessor :tmpdir
##
# If set to `true`, it will `identify` every newly created image, and raise
@@ -82,6 +89,7 @@
attr_accessor :shell_api
def self.extended(base)
+ base.tmpdir = Dir.tmpdir
base.validate_on_create = true
base.validate_on_write = true
base.whiny = true
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-11-06 17:19:47.000000000 +0100
+++ new/lib/mini_magick/image/info.rb 2022-12-07 09:44:37.000000000 +0100
@@ -61,13 +61,13 @@
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$/
+ return line if line.match?(/^[A-Z]+ \d+ \d+
\d+(|\.\d+)([KMGTPEZY]{0,1})B$/)
end
raise TypeError
end
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-11-06 17:19:47.000000000 +0100
+++ new/lib/mini_magick/image.rb 2022-12-07 09:44:37.000000000 +0100
@@ -340,13 +340,18 @@
#
# 1) one for each row of pixels
# 2) one for each column of pixels
- # 3) three elements in the range 0-255, one for each of the RGB color
channels
+ # 3) three or four elements in the range 0-255, one for each of the RGB(A)
color channels
#
# @example
# img = MiniMagick::Image.open 'image.jpg'
# pixels = img.get_pixels
# pixels[3][2][1] # the green channel value from the 4th-row, 3rd-column
pixel
#
+ # @example
+ # img = MiniMagick::Image.open 'image.jpg'
+ # pixels = img.get_pixels("RGBA")
+ # pixels[3][2][3] # the alpha channel value from the 4th-row, 3rd-column
pixel
+ #
# It can also be called after applying transformations:
#
# @example
@@ -357,19 +362,22 @@
#
# In this example, all pixels in pix should now have equal R, G, and B
values.
#
+ # @param map [String] A code for the mapping of the pixel data. Must be
either
+ # 'RGB' or 'RGBA'. Default to 'RGB'
# @return [Array] Matrix of each color of each pixel
- def get_pixels
+ def get_pixels(map="RGB")
+ raise ArgumentError, "Invalid map value" unless ["RGB",
"RGBA"].include?(map)
convert = MiniMagick::Tool::Convert.new
convert << path
convert.depth(8)
- convert << "RGB:-"
+ convert << "#{map}:-"
# Do not use `convert.call` here. We need the whole binary (unstripped)
output here.
shell = MiniMagick::Shell.new
output, * = shell.run(convert.command)
pixels_array = output.unpack("C*")
- pixels = pixels_array.each_slice(3).each_slice(width).to_a
+ pixels = pixels_array.each_slice(map.length).each_slice(width).to_a
# deallocate large intermediary objects
output.clear
@@ -453,6 +461,9 @@
@info.clear
self
+ rescue MiniMagick::Invalid, MiniMagick::Error => e
+ new_tempfile.unlink if new_tempfile && @tempfile != new_tempfile
+ raise e
end
##
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/mini_magick/shell.rb new/lib/mini_magick/shell.rb
--- old/lib/mini_magick/shell.rb 2020-11-06 17:19:47.000000000 +0100
+++ new/lib/mini_magick/shell.rb 2022-12-07 09:44:37.000000000 +0100
@@ -14,7 +14,7 @@
stdout, stderr, status = execute(command, stdin: options[:stdin])
if status != 0 && options.fetch(:whiny, MiniMagick.whiny)
- fail MiniMagick::Error, "`#{command.join(" ")}` failed with
error:\n#{stderr}"
+ fail MiniMagick::Error, "`#{command.join(" ")}` failed with status:
#{status} and error:\n#{stderr}"
end
$stderr.print(stderr) unless options[:stderr] == false
@@ -25,7 +25,7 @@
def execute(command, options = {})
stdout, stderr, status =
log(command.join(" ")) do
- send("execute_#{MiniMagick.shell_api.gsub("-", "_")}", command,
options)
+ send("execute_#{MiniMagick.shell_api.tr("-", "_")}", command,
options)
end
[stdout, stderr, status.exitstatus]
@@ -50,9 +50,7 @@
end
in_w.close
- begin
- Timeout.timeout(MiniMagick.timeout) { thread.join }
- rescue Timeout::Error
+ unless thread.join(MiniMagick.timeout)
Process.kill("TERM", thread.pid) rescue nil
Process.waitpid(thread.pid) rescue nil
raise Timeout::Error, "MiniMagick command timed out: #{command}"
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-11-06 17:19:47.000000000 +0100
+++ new/lib/mini_magick/tool.rb 2022-12-07 09:44:37.000000000 +0100
@@ -241,7 +241,7 @@
# mogrify.command.join(" ") #=> "mogrify canvas:khaki"
#
CREATION_OPERATORS.each do |operator|
- define_method(operator.gsub('-', '_')) do |value = nil|
+ define_method(operator.tr('-', '_')) do |value = nil|
self << "#{operator}:#{value}"
self
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/mini_magick/utilities.rb
new/lib/mini_magick/utilities.rb
--- old/lib/mini_magick/utilities.rb 2020-11-06 17:19:47.000000000 +0100
+++ new/lib/mini_magick/utilities.rb 2022-12-07 09:44:37.000000000 +0100
@@ -24,7 +24,7 @@
end
def tempfile(extension)
- Tempfile.new(["mini_magick", extension]).tap do |tempfile|
+ Tempfile.new(["mini_magick", extension], MiniMagick.tmpdir).tap do
|tempfile|
tempfile.binmode
yield tempfile if block_given?
tempfile.close
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-11-06 17:19:47.000000000 +0100
+++ new/lib/mini_magick/version.rb 2022-12-07 09:44:37.000000000 +0100
@@ -8,7 +8,7 @@
module VERSION
MAJOR = 4
- MINOR = 11
+ MINOR = 12
TINY = 0
PRE = nil
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2020-11-06 17:19:47.000000000 +0100
+++ new/metadata 2022-12-07 09:44:37.000000000 +0100
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: mini_magick
version: !ruby/object:Gem::Version
- version: 4.11.0
+ version: 4.12.0
platform: ruby
authors:
- Corey Johnson
@@ -10,10 +10,10 @@
- James Miller
- Thiago Fernandes Massa
- Janko Marohnić
-autorequire:
+autorequire:
bindir: bin
cert_chain: []
-date: 2020-11-06 00:00:00.000000000 Z
+date: 2022-12-07 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rake
@@ -139,7 +139,7 @@
licenses:
- MIT
metadata: {}
-post_install_message:
+post_install_message:
rdoc_options: []
require_paths:
- lib
@@ -155,8 +155,8 @@
version: '0'
requirements:
- You must have ImageMagick or GraphicsMagick installed
-rubygems_version: 3.1.4
-signing_key:
+rubygems_version: 3.3.3
+signing_key:
specification_version: 4
summary: Manipulate images with minimal use of memory via ImageMagick /
GraphicsMagick
test_files: []