commit rubygem-mini_magick for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mini_magick for openSUSE:Factory checked in at 2020-03-07 21:38:48 Comparing /work/SRC/openSUSE:Factory/rubygem-mini_magick (Old) and /work/SRC/openSUSE:Factory/.rubygem-mini_magick.new.26092 (New) Package is "rubygem-mini_magick" Sat Mar 7 21:38:48 2020 rev:9 rq:773786 version:4.10.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-mini_magick/rubygem-mini_magick.changes 2019-08-06 15:09:57.475787997 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-mini_magick.new.26092/rubygem-mini_magick.changes 2020-03-07 21:38:48.472295215 +0100 @@ -1,0 +2,6 @@ +Mon Feb 10 15:06:56 UTC 2020 - Stephan Kulow + +- updated to version 4.10.1 + no changelog found + +--- Old: mini_magick-4.9.5.gem New: mini_magick-4.10.1.gem Other differences: -- ++ rubygem-mini_magick.spec ++ --- /var/tmp/diff_new_pack.P1F4VP/_old 2020-03-07 21:38:48.920295517 +0100 +++ /var/tmp/diff_new_pack.P1F4VP/_new 2020-03-07 21:38:48.920295517 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-mini_magick # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,15 +24,15 @@ # Name: rubygem-mini_magick -Version:4.9.5 +Version:4.10.1 Release:0 %define mod_name mini_magick %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{ruby >= 2.0} BuildRequires: %{rubygem gem2rpm} -BuildRequires: %{ruby} BuildRequires: ruby-macros >= 5 -Url:https://github.com/minimagick/minimagick +URL:https://github.com/minimagick/minimagick Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1:gem2rpm.yml Summary:Manipulate images with minimal use of memory via ImageMagick / ++ mini_magick-4.9.5.gem -> mini_magick-4.10.1.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.rb2019-07-18 15:56:53.0 +0200 +++ new/lib/mini_magick/configuration.rb2020-01-06 14:10:32.0 +0100 @@ -110,9 +110,9 @@ end CLI_DETECTION = { + imagemagick7: "magick", imagemagick:"mogrify", graphicsmagick: "gm", - imagemagick7: "magick", } # @private (for backwards compatibility) 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.rb2019-07-18 15:56:53.0 +0200 +++ new/lib/mini_magick/image.rb2020-01-06 14:10:32.0 +0100 @@ -102,7 +102,11 @@ end ext.sub!(/:.*/, '') # hack for filenames or URLs that include a colon - openable.open(options) { |file| read(file, ext) } + if openable.is_a?(URI::Generic) +openable.open(options) { |file| read(file, ext) } + else +openable.open(**options) { |file| read(file, ext) } + end end ## @@ -583,5 +587,31 @@ def layer? path =~ /\[\d+\]$/ end + +## +# Compares if image width +# is greater than height +# +# | | +# | | +# +# @return [Boolean] +def landscape? + width > height +end + +## +# Compares if image height +# is greater than width +# == +# || +# || +# || +# || +# == +# @return [Boolean] +def portrait? + height > width +end end end 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 1970-01-01 01:00:00.0 +0100 +++ new/lib/mini_magick/immutable_image.rb 2020-01-06 14:10:32.0 +0100 @@ -0,0 +1,18 @@ +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 +
commit rubygem-mini_magick for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mini_magick for openSUSE:Factory checked in at 2019-08-06 15:09:55 Comparing /work/SRC/openSUSE:Factory/rubygem-mini_magick (Old) and /work/SRC/openSUSE:Factory/.rubygem-mini_magick.new.4126 (New) Package is "rubygem-mini_magick" Tue Aug 6 15:09:55 2019 rev:8 rq:717307 version:4.9.5 Changes: --- /work/SRC/openSUSE:Factory/rubygem-mini_magick/rubygem-mini_magick.changes 2019-06-19 21:00:24.814088764 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-mini_magick.new.4126/rubygem-mini_magick.changes 2019-08-06 15:09:57.475787997 +0200 @@ -1,0 +2,6 @@ +Fri Jul 19 09:21:58 UTC 2019 - Stephan Kulow + +- updated to version 4.9.5 + no changelog found + +--- Old: mini_magick-4.9.3.gem New: mini_magick-4.9.5.gem Other differences: -- ++ rubygem-mini_magick.spec ++ --- /var/tmp/diff_new_pack.BPSRWQ/_old 2019-08-06 15:09:58.275787544 +0200 +++ /var/tmp/diff_new_pack.BPSRWQ/_new 2019-08-06 15:09:58.279787541 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-mini_magick -Version:4.9.3 +Version:4.9.5 Release:0 %define mod_name mini_magick %define mod_full_name %{mod_name}-%{version} ++ mini_magick-4.9.3.gem -> mini_magick-4.9.5.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.rb2019-02-24 22:54:27.0 +0100 +++ new/lib/mini_magick/configuration.rb2019-07-18 15:56:53.0 +0200 @@ -11,16 +11,12 @@ # @return [Symbol] `:imagemagick`, `:imagemagick7`, or `:graphicsmagick` # attr_accessor :cli -# @private (for backwards compatibility) -attr_accessor :processor ## # If you don't have the CLI tools in your PATH, you can set the path to the # executables. # -# @return [String] -# -attr_accessor :cli_path +attr_writer :cli_path # @private (for backwards compatibility) attr_accessor :processor_path @@ -43,12 +39,12 @@ # attr_accessor :timeout ## -# When set to `true`, it outputs each command to STDOUT in their shell +# When get to `true`, it outputs each command to STDOUT in their shell # version. # # @return [Boolean] # -attr_accessor :debug +attr_reader :debug ## # Logger for {#debug}, default is `MiniMagick::Logger.new(STDOUT)`, but # you can override it, for example if you want the logs to be written to @@ -119,12 +115,14 @@ imagemagick7: "magick", } +# @private (for backwards compatibility) def processor @processor ||= CLI_DETECTION.values.detect do |processor| MiniMagick::Utilities.which(processor) end end +# @private (for backwards compatibility) def processor=(processor) @processor = processor.to_s @@ -135,11 +133,27 @@ end end +## +# Get [ImageMagick](http://www.imagemagick.org) or +# [GraphicsMagick](http://www.graphicsmagick.org). +# +# @return [Symbol] `:imagemagick` or `:graphicsmagick` +# def cli - @cli || CLI_DETECTION.key(processor) or -fail MiniMagick::Error, "You must have ImageMagick or GraphicsMagick installed" + if instance_variable_defined?("@cli") +instance_variable_get("@cli") + else +cli = CLI_DETECTION.key(processor) or + fail MiniMagick::Error, "You must have ImageMagick or GraphicsMagick installed" + +instance_variable_set("@cli", cli) + end end +## +# Set whether you want to use [ImageMagick](http://www.imagemagick.org) or +# [GraphicsMagick](http://www.graphicsmagick.org). +# def cli=(value) @cli = value @@ -150,10 +164,26 @@ end end +## +# If you set the path of CLI tools, you can get the path of the +# executables. +# +# @return [String] +# def cli_path - @cli_path || @processor_path + if instance_variable_defined?("@cli_path") +instance_variable_get("@cli_path") + else +processor_path = instance_variable_get("@processor_path") if instance_variable_defined?("@processor_path") + +instance_variable_set("@cli_path", processor_path) + end end +## +# When set to `true`, it outputs each command to STDOUT in their shell +# version. +# def debug=(value) warn "MiniMagick.debug is deprecated and will be removed in MiniMagick 5. Use
commit rubygem-mini_magick for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mini_magick for openSUSE:Factory checked in at 2019-06-19 21:00:23 Comparing /work/SRC/openSUSE:Factory/rubygem-mini_magick (Old) and /work/SRC/openSUSE:Factory/.rubygem-mini_magick.new.4811 (New) Package is "rubygem-mini_magick" Wed Jun 19 21:00:23 2019 rev:7 rq:706005 version:4.9.3 Changes: --- /work/SRC/openSUSE:Factory/rubygem-mini_magick/rubygem-mini_magick.changes 2019-01-21 10:25:23.909747656 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-mini_magick.new.4811/rubygem-mini_magick.changes 2019-06-19 21:00:24.814088764 +0200 @@ -1,0 +2,6 @@ +Sat Mar 2 15:25:39 UTC 2019 - Stephan Kulow + +- updated to version 4.9.3 + no changelog found + +--- Old: mini_magick-4.9.2.gem New: mini_magick-4.9.3.gem Other differences: -- ++ rubygem-mini_magick.spec ++ --- /var/tmp/diff_new_pack.f68OeY/_old 2019-06-19 21:00:25.910089684 +0200 +++ /var/tmp/diff_new_pack.f68OeY/_new 2019-06-19 21:00:25.914089687 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-mini_magick # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # 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.9.2 +Version:4.9.3 Release:0 %define mod_name mini_magick %define mod_full_name %{mod_name}-%{version} ++ mini_magick-4.9.2.gem -> mini_magick-4.9.3.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/tool.rb new/lib/mini_magick/tool.rb --- old/lib/mini_magick/tool.rb 2018-09-21 16:25:11.0 +0200 +++ new/lib/mini_magick/tool.rb 2019-02-24 22:54:27.0 +0100 @@ -263,10 +263,6 @@ self end -def respond_to_missing?(method_name, include_private = false) - true -end - def self.option_methods @option_methods ||= ( tool = new(whiny: false) 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 2018-09-21 16:25:12.0 +0200 +++ new/lib/mini_magick/version.rb 2019-02-24 22:54:27.0 +0100 @@ -9,7 +9,7 @@ module VERSION MAJOR = 4 MINOR = 9 -TINY = 2 +TINY = 3 PRE = nil STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata2018-09-21 16:25:11.0 +0200 +++ new/metadata2019-02-24 22:54:27.0 +0100 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: mini_magick version: !ruby/object:Gem::Version - version: 4.9.2 + version: 4.9.3 platform: ruby authors: - Corey Johnson @@ -13,7 +13,7 @@ autorequire: bindir: bin cert_chain: [] -date: 2018-09-21 00:00:00.0 Z +date: 2019-02-24 00:00:00.0 Z dependencies: - !ruby/object:Gem::Dependency name: rake @@ -155,8 +155,7 @@ version: '0' requirements: - You must have ImageMagick or GraphicsMagick installed -rubyforge_project: -rubygems_version: 2.7.6 +rubygems_version: 3.0.1 signing_key: specification_version: 4 summary: Manipulate images with minimal use of memory via ImageMagick / GraphicsMagick
commit rubygem-mini_magick for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mini_magick for openSUSE:Factory checked in at 2019-01-21 10:25:20 Comparing /work/SRC/openSUSE:Factory/rubygem-mini_magick (Old) and /work/SRC/openSUSE:Factory/.rubygem-mini_magick.new.28833 (New) Package is "rubygem-mini_magick" Mon Jan 21 10:25:20 2019 rev:6 rq:656366 version:4.9.2 Changes: --- /work/SRC/openSUSE:Factory/rubygem-mini_magick/rubygem-mini_magick.changes 2017-08-21 11:36:49.939949139 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-mini_magick.new.28833/rubygem-mini_magick.changes 2019-01-21 10:25:23.909747656 +0100 @@ -1,0 +2,6 @@ +Sat Dec 8 16:25:11 UTC 2018 - Stephan Kulow + +- updated to version 4.9.2 + no changelog found + +--- Old: mini_magick-4.8.0.gem New: mini_magick-4.9.2.gem Other differences: -- ++ rubygem-mini_magick.spec ++ --- /var/tmp/diff_new_pack.QiUksL/_old 2019-01-21 10:25:24.753746729 +0100 +++ /var/tmp/diff_new_pack.QiUksL/_new 2019-01-21 10:25:24.757746725 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-mini_magick # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -24,7 +24,7 @@ # Name: rubygem-mini_magick -Version:4.8.0 +Version:4.9.2 Release:0 %define mod_name mini_magick %define mod_full_name %{mod_name}-%{version} @@ -33,7 +33,7 @@ BuildRequires: %{ruby} BuildRequires: ruby-macros >= 5 Url:https://github.com/minimagick/minimagick -Source: http://rubygems.org/gems/%{mod_full_name}.gem +Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1:gem2rpm.yml Summary:Manipulate images with minimal use of memory via ImageMagick / License:MIT ++ mini_magick-4.8.0.gem -> mini_magick-4.9.2.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.rb2017-07-06 11:51:11.0 +0200 +++ new/lib/mini_magick/configuration.rb2018-09-21 16:25:11.0 +0200 @@ -8,7 +8,7 @@ # Set whether you want to use [ImageMagick](http://www.imagemagick.org) or # [GraphicsMagick](http://www.graphicsmagick.org). # -# @return [Symbol] `:imagemagick` or `:graphicsmagick` +# @return [Symbol] `:imagemagick`, `:imagemagick7`, or `:graphicsmagick` # attr_accessor :cli # @private (for backwards compatibility) @@ -25,6 +25,17 @@ attr_accessor :processor_path ## +# Adds a prefix to the CLI command. +# For example, you could use `firejail` to run all commands in a sandbox. +# Can be a string, or an array of strings. +# e.g. 'firejail', or ['firejail', '--force'] +# +# @return [String] +# @return [Array] +# +attr_accessor :cli_prefix + +## # If you don't want commands to take too long, you can set a timeout (in # seconds). # @@ -102,8 +113,14 @@ yield self end +CLI_DETECTION = { + imagemagick:"mogrify", + graphicsmagick: "gm", + imagemagick7: "magick", +} + def processor - @processor ||= ["mogrify", "gm"].detect do |processor| + @processor ||= CLI_DETECTION.values.detect do |processor| MiniMagick::Utilities.which(processor) end end @@ -111,29 +128,24 @@ def processor=(processor) @processor = processor.to_s - unless ["mogrify", "gm"].include?(@processor) + unless CLI_DETECTION.value?(@processor) raise ArgumentError, - "processor has to be set to either \"mogrify\" or \"gm\"" \ + "processor has to be set to either \"magick\", \"mogrify\" or \"gm\"" \ ", was set to #{@processor.inspect}" end end def cli - @cli || -case processor.to_s -when "mogrify" then :imagemagick -when "gm" then :graphicsmagick -else - raise MiniMagick::Error, "ImageMagick/GraphicsMagick is not installed" -end + @cli || CLI_DETECTION.key(p
commit rubygem-mini_magick for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mini_magick for openSUSE:Factory checked in at 2017-08-21 11:36:42 Comparing /work/SRC/openSUSE:Factory/rubygem-mini_magick (Old) and /work/SRC/openSUSE:Factory/.rubygem-mini_magick.new (New) Package is "rubygem-mini_magick" Mon Aug 21 11:36:42 2017 rev:5 rq:515054 version:4.8.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-mini_magick/rubygem-mini_magick.changes 2017-07-10 11:07:08.530347313 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-mini_magick.new/rubygem-mini_magick.changes 2017-08-21 11:36:49.939949139 +0200 @@ -1,0 +2,6 @@ +Thu Aug 3 19:26:32 UTC 2017 - co...@suse.com + +- updated to version 4.8.0 + no changelog found + +--- Old: mini_magick-4.7.1.gem New: mini_magick-4.8.0.gem Other differences: -- ++ rubygem-mini_magick.spec ++ --- /var/tmp/diff_new_pack.0QoSFW/_old 2017-08-21 11:36:51.171775894 +0200 +++ /var/tmp/diff_new_pack.0QoSFW/_new 2017-08-21 11:36:51.191773082 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-mini_magick -Version:4.7.1 +Version:4.8.0 Release:0 %define mod_name mini_magick %define mod_full_name %{mod_name}-%{version} ++ mini_magick-4.7.1.gem -> mini_magick-4.8.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/image.rb new/lib/mini_magick/image.rb --- old/lib/mini_magick/image.rb2017-06-15 13:23:17.0 +0200 +++ new/lib/mini_magick/image.rb2017-07-06 11:51:11.0 +0200 @@ -76,9 +76,12 @@ # @param path_or_url [String] Either a local file path or a URL that # open-uri can read # @param ext [String] Specify the extension you want to read it as +# @param options [Hash] Specify options for the open method # @return [MiniMagick::Image] The loaded image # -def self.open(path_or_url, ext = nil) +def self.open(path_or_url, ext = nil, options = {}) + options, ext = ext, nil if ext.is_a?(Hash) + ext ||= if File.exist?(path_or_url) File.extname(path_or_url) @@ -88,7 +91,7 @@ ext.sub!(/:.*/, '') # hack for filenames or URLs that include a colon - Kernel.open(path_or_url, "rb") do |file| + Kernel.open(path_or_url, "rb", options) do |file| read(file, ext) end end @@ -343,11 +346,14 @@ # # @return [Array] Matrix of each color of each pixel def get_pixels - output = MiniMagick::Tool::Convert.new do |convert| -convert << path -convert.depth(8) -convert << "RGB:-" - end + convert = MiniMagick::Tool::Convert.new + convert << path + convert.depth(8) + convert << "RGB:-" + + # 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 @@ -555,13 +561,7 @@ end def mogrify(page = nil) - MiniMagick::Tool::Mogrify.new do |builder| -builder.instance_eval do - def format(*args) -fail NoMethodError, - "you must call #format on a MiniMagick::Image directly" - end -end + MiniMagick::Tool::MogrifyRestricted.new do |builder| yield builder if block_given? builder << (page ? "#{path}[#{page}]" : path) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mini_magick/tool/mogrify_restricted.rb new/lib/mini_magick/tool/mogrify_restricted.rb --- old/lib/mini_magick/tool/mogrify_restricted.rb 1970-01-01 01:00:00.0 +0100 +++ new/lib/mini_magick/tool/mogrify_restricted.rb 2017-07-06 11:51:11.0 +0200 @@ -0,0 +1,15 @@ +require "mini_magick/tool/mogrify" + +module MiniMagick + class Tool +## +# @see http://www.imagemagick.org/script/mogrify.php +# +class MogrifyRestricted < Mogrify + def format(*args) +fail NoMethodError, + "you must call #format on a MiniMagick::Image directly" + end +end + end +end 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 2017-06-15 13:23:17.0 +0200 +++ new/lib/mini_magick/tool.rb 2017-07-06 11:51:11.0 +0200 @@ -92,7 +92,7 @@ stdout, stderr, status = shell.run(command, options) yield stdo
commit rubygem-mini_magick for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mini_magick for openSUSE:Factory checked in at 2017-07-10 11:07:05 Comparing /work/SRC/openSUSE:Factory/rubygem-mini_magick (Old) and /work/SRC/openSUSE:Factory/.rubygem-mini_magick.new (New) Package is "rubygem-mini_magick" Mon Jul 10 11:07:05 2017 rev:4 rq:505386 version:4.7.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-mini_magick/rubygem-mini_magick.changes 2017-04-11 09:40:44.402570655 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-mini_magick.new/rubygem-mini_magick.changes 2017-07-10 11:07:08.530347313 +0200 @@ -1,0 +2,6 @@ +Tue Jun 20 06:53:13 UTC 2017 - co...@suse.com + +- updated to version 4.7.1 + no changelog found + +--- Old: mini_magick-4.7.0.gem New: mini_magick-4.7.1.gem Other differences: -- ++ rubygem-mini_magick.spec ++ --- /var/tmp/diff_new_pack.DCpbKl/_old 2017-07-10 11:07:09.058272760 +0200 +++ /var/tmp/diff_new_pack.DCpbKl/_new 2017-07-10 11:07:09.062272195 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-mini_magick -Version:4.7.0 +Version:4.7.1 Release:0 %define mod_name mini_magick %define mod_full_name %{mod_name}-%{version} ++ mini_magick-4.7.0.gem -> mini_magick-4.7.1.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/image.rb new/lib/mini_magick/image.rb --- old/lib/mini_magick/image.rb2017-03-28 06:13:29.0 +0200 +++ new/lib/mini_magick/image.rb2017-06-15 13:23:17.0 +0200 @@ -86,6 +86,8 @@ File.extname(URI(path_or_url).path) end + ext.sub!(/:.*/, '') # hack for filenames or URLs that include a colon + Kernel.open(path_or_url, "rb") do |file| read(file, ext) end 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 2017-03-28 06:13:29.0 +0200 +++ new/lib/mini_magick/version.rb 2017-06-15 13:23:17.0 +0200 @@ -9,7 +9,7 @@ module VERSION MAJOR = 4 MINOR = 7 -TINY = 0 +TINY = 1 PRE = nil STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata2017-03-28 06:13:29.0 +0200 +++ new/metadata2017-06-15 13:23:17.0 +0200 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: mini_magick version: !ruby/object:Gem::Version - version: 4.7.0 + version: 4.7.1 platform: ruby authors: - Corey Johnson @@ -13,7 +13,7 @@ autorequire: bindir: bin cert_chain: [] -date: 2017-03-28 00:00:00.0 Z +date: 2017-06-15 00:00:00.0 Z dependencies: - !ruby/object:Gem::Dependency name: rake @@ -85,6 +85,20 @@ - - ">=" - !ruby/object:Gem::Version version: '0' +- !ruby/object:Gem::Dependency + name: webmock + requirement: !ruby/object:Gem::Requirement +requirements: +- - ">=" + - !ruby/object:Gem::Version +version: '0' + type: :development + prerelease: false + version_requirements: !ruby/object:Gem::Requirement +requirements: +- - ">=" + - !ruby/object:Gem::Version +version: '0' description: Manipulate images with minimal use of memory via ImageMagick / GraphicsMagick email: - probablyco...@gmail.com @@ -140,7 +154,7 @@ requirements: - You must have ImageMagick or GraphicsMagick installed rubyforge_project: -rubygems_version: 2.5.1 +rubygems_version: 2.6.11 signing_key: specification_version: 4 summary: Manipulate images with minimal use of memory via ImageMagick / GraphicsMagick
commit rubygem-mini_magick for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mini_magick for openSUSE:Factory checked in at 2017-04-11 09:40:32 Comparing /work/SRC/openSUSE:Factory/rubygem-mini_magick (Old) and /work/SRC/openSUSE:Factory/.rubygem-mini_magick.new (New) Package is "rubygem-mini_magick" Tue Apr 11 09:40:32 2017 rev:3 rq:484842 version:4.7.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-mini_magick/rubygem-mini_magick.changes 2016-12-16 11:54:54.938826478 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-mini_magick.new/rubygem-mini_magick.changes 2017-04-11 09:40:44.402570655 +0200 @@ -1,0 +2,12 @@ +Wed Mar 29 04:31:28 UTC 2017 - co...@suse.com + +- updated to version 4.7.0 + no changelog found + +--- +Mon Feb 13 05:53:49 UTC 2017 - co...@suse.com + +- updated to version 4.6.1 + no changelog found + +--- Old: mini_magick-4.6.0.gem New: mini_magick-4.7.0.gem Other differences: -- ++ rubygem-mini_magick.spec ++ --- /var/tmp/diff_new_pack.4TE9Ig/_old 2017-04-11 09:40:44.898500598 +0200 +++ /var/tmp/diff_new_pack.4TE9Ig/_new 2017-04-11 09:40:44.902500033 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-mini_magick # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # 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.6.0 +Version:4.7.0 Release:0 %define mod_name mini_magick %define mod_full_name %{mod_name}-%{version} ++ mini_magick-4.6.0.gem -> mini_magick-4.7.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/image/info.rb new/lib/mini_magick/image/info.rb --- old/lib/mini_magick/image/info.rb 2016-12-03 15:37:36.0 +0100 +++ new/lib/mini_magick/image/info.rb 2017-03-28 06:13:29.0 +0200 @@ -160,7 +160,9 @@ convert << "json:" end - JSON.parse(json).fetch("image") + data = JSON.parse(json) + data = data.fetch(0) if data.is_a?(Array) + data.fetch("image") ) 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.rb2016-12-03 15:37:36.0 +0100 +++ new/lib/mini_magick/image.rb2017-03-28 06:13:29.0 +0200 @@ -317,6 +317,47 @@ alias frames layers ## +# Returns a matrix of pixels from the image. The matrix is constructed as +# an array (1) of arrays (2) of arrays (3) of unsigned integers: +# +# 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 +# +# @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 +# +# It can also be called after applying transformations: +# +# @example +# img = MiniMagick::Image.open 'image.jpg' +# img.crop '20x30+10+5' +# img.colorspace 'Gray' +# pixels = img.get_pixels +# +# In this example, all pixels in pix should now have equal R, G, and B values. +# +# @return [Array] Matrix of each color of each pixel +def get_pixels + output = MiniMagick::Tool::Convert.new do |convert| +convert << path +convert.depth(8) +convert << "RGB:-" + end + + pixels_array = output.unpack("C*") + pixels = pixels_array.each_slice(3).each_slice(width).to_a + + # deallocate large intermediary objects + output.clear + pixels_array.clear + + pixels +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! @@ -531,6 +572,5 @@ def layer? path =~ /\[\d+\]$/ end - end 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.rb2016-12-03 15:37:36.0 +0100 +++ new/lib/mini_magick/shell.rb2017-03-28 06:13:29.0 +0200 @@ -13,12 +13,