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.rb 2019-02-24 22:54:27.000000000 +0100
+++ new/lib/mini_magick/configuration.rb 2019-07-18 15:56:53.000000000 +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 `MiniMagick.logger.level = Logger::DEBUG` instead."
logger.level = value ? Logger::DEBUG : Logger::INFO
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 2019-02-24 22:54:27.000000000 +0100
+++ new/lib/mini_magick/image/info.rb 2019-07-18 15:56:53.000000000 +0200
@@ -141,7 +141,7 @@
end
key, _, value = line.partition(/:[\s]/).map(&:strip)
- hash = key_stack.inject(details_hash) { |h, k| h.fetch(k) }
+ hash = key_stack.inject(details_hash) { |_hash, _key| _hash.fetch(_key) }
if value.empty?
hash[key] = {}
key_stack.push key
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 2019-02-24 22:54:27.000000000 +0100
+++ new/lib/mini_magick/image.rb 2019-07-18 15:56:53.000000000 +0200
@@ -82,18 +82,27 @@
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)
+ # Don't use Kernel#open, but reuse its logic
+ openable =
+ if path_or_url.respond_to?(:open)
+ path_or_url
+ elsif path_or_url.respond_to?(:to_str) &&
+ %r{\A[A-Za-z][A-Za-z0-9+\-\.]*://} =~ path_or_url &&
+ (uri = URI.parse(path_or_url)).respond_to?(:open)
+ uri
else
- File.extname(URI(path_or_url).path)
+ options = { binmode: true }.merge(options)
+ Pathname(path_or_url)
end
+ if openable.is_a?(URI::Generic)
+ ext ||= File.extname(openable.path)
+ else
+ ext ||= File.extname(openable.to_s)
+ end
ext.sub!(/:.*/, '') # hack for filenames or URLs that include a colon
- Kernel.open(path_or_url, "rb", options) do |file|
- read(file, ext)
- end
+ openable.open(options) { |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 2019-02-24 22:54:27.000000000 +0100
+++ new/lib/mini_magick/version.rb 2019-07-18 15:56:53.000000000 +0200
@@ -9,7 +9,7 @@
module VERSION
MAJOR = 4
MINOR = 9
- TINY = 3
+ TINY = 5
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 2019-02-24 22:54:27.000000000 +0100
+++ new/metadata 2019-07-18 15:56:53.000000000 +0200
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: mini_magick
version: !ruby/object:Gem::Version
- version: 4.9.3
+ version: 4.9.5
platform: ruby
authors:
- Corey Johnson
@@ -13,7 +13,7 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2019-02-24 00:00:00.000000000 Z
+date: 2019-07-18 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rake
@@ -155,7 +155,7 @@
version: '0'
requirements:
- You must have ImageMagick or GraphicsMagick installed
-rubygems_version: 3.0.1
+rubygems_version: 3.0.3
signing_key:
specification_version: 4
summary: Manipulate images with minimal use of memory via ImageMagick / GraphicsMagick