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 <[email protected]>
+
+- 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.rb        2019-07-18 15:56:53.000000000 
+0200
+++ new/lib/mini_magick/configuration.rb        2020-01-06 14:10:32.000000000 
+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.rb        2019-07-18 15:56:53.000000000 +0200
+++ new/lib/mini_magick/image.rb        2020-01-06 14:10:32.000000000 +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.000000000 
+0100
+++ new/lib/mini_magick/immutable_image.rb      2020-01-06 14:10:32.000000000 
+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
+    end
+  end
+end
+
+image = MiniMagick::Image.new()
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-07-18 15:56:53.000000000 +0200
+++ new/lib/mini_magick/version.rb      2020-01-06 14:10:32.000000000 +0100
@@ -8,8 +8,8 @@
 
   module VERSION
     MAJOR = 4
-    MINOR = 9
-    TINY  = 5
+    MINOR = 10
+    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/metadata        2019-07-18 15:56:53.000000000 +0200
+++ new/metadata        2020-01-06 14:10:32.000000000 +0100
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: mini_magick
 version: !ruby/object:Gem::Version
-  version: 4.9.5
+  version: 4.10.1
 platform: ruby
 authors:
 - Corey Johnson
@@ -13,7 +13,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2019-07-18 00:00:00.000000000 Z
+date: 2020-01-06 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rake
@@ -118,6 +118,7 @@
 - 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
@@ -147,7 +148,7 @@
   requirements:
   - - ">="
     - !ruby/object:Gem::Version
-      version: '0'
+      version: '2.0'
 required_rubygems_version: !ruby/object:Gem::Requirement
   requirements:
   - - ">="
@@ -155,7 +156,7 @@
       version: '0'
 requirements:
 - You must have ImageMagick or GraphicsMagick installed
-rubygems_version: 3.0.3
+rubygems_version: 3.1.2
 signing_key: 
 specification_version: 4
 summary: Manipulate images with minimal use of memory via ImageMagick / 
GraphicsMagick


Reply via email to