mini_magick 4.7.1 → 4.7.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of mini_magick might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a14b408f95ed836ca860d51f8eb0dbc62eb556bc
4
- data.tar.gz: c13c5e6456954d3e605aa4e72da0397ba679e18a
3
+ metadata.gz: 3f5606d4a6e91d6ad90a393da30244dc774e374b
4
+ data.tar.gz: 71ff2a31e86426bfd514879b787fd530cf2717ad
5
5
  SHA512:
6
- metadata.gz: 0a3c08d240af88c8d31a163839ce6e3c29630d41caeb9e47d1bed53cd8a1a548128e75e5174d6ff7032eb6d29a12143f534a1564855dccef6c4c6a0ac611bcce
7
- data.tar.gz: 1bc41d6970b43675ca5a00fe8411335cff168c99b2aa54c77aea3f5d2c8796e6db8f95af50a716a737b35b89a30237812912d05d8db403f194745539c8d6a104
6
+ metadata.gz: 5b17e89081bd677cd255e377c9dd22b64bc37dc467a81f4bbd0d7fde27cc552d99f3927d23ce48c9becabe37234652cd0fdd913062316fe57c3b85a003d51ad7
7
+ data.tar.gz: 32d0e633b52b6d6104fa8633db9579dbe78513a3ad997737bc1506c3cc9ddb375015afbc3423fc9ee72b3fba4c710597306c167c2094f33b792f9f9c383a6d85
@@ -555,13 +555,7 @@ module MiniMagick
555
555
  end
556
556
 
557
557
  def mogrify(page = nil)
558
- MiniMagick::Tool::Mogrify.new do |builder|
559
- builder.instance_eval do
560
- def format(*args)
561
- fail NoMethodError,
562
- "you must call #format on a MiniMagick::Image directly"
563
- end
564
- end
558
+ MiniMagick::Tool::MogrifyRestricted.new do |builder|
565
559
  yield builder if block_given?
566
560
  builder << (page ? "#{path}[#{page}]" : path)
567
561
  end
@@ -286,5 +286,6 @@ require "mini_magick/tool/display"
286
286
  require "mini_magick/tool/identify"
287
287
  require "mini_magick/tool/import"
288
288
  require "mini_magick/tool/mogrify"
289
+ require "mini_magick/tool/mogrify_restricted"
289
290
  require "mini_magick/tool/montage"
290
291
  require "mini_magick/tool/stream"
@@ -0,0 +1,15 @@
1
+ require "mini_magick/tool/mogrify"
2
+
3
+ module MiniMagick
4
+ class Tool
5
+ ##
6
+ # @see http://www.imagemagick.org/script/mogrify.php
7
+ #
8
+ class MogrifyRestricted < Mogrify
9
+ def format(*args)
10
+ fail NoMethodError,
11
+ "you must call #format on a MiniMagick::Image directly"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -9,7 +9,7 @@ module MiniMagick
9
9
  module VERSION
10
10
  MAJOR = 4
11
11
  MINOR = 7
12
- TINY = 1
12
+ TINY = 2
13
13
  PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_magick
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.1
4
+ version: 4.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Johnson
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2017-06-15 00:00:00.000000000 Z
16
+ date: 2017-06-20 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rake
@@ -129,6 +129,7 @@ files:
129
129
  - lib/mini_magick/tool/identify.rb
130
130
  - lib/mini_magick/tool/import.rb
131
131
  - lib/mini_magick/tool/mogrify.rb
132
+ - lib/mini_magick/tool/mogrify_restricted.rb
132
133
  - lib/mini_magick/tool/montage.rb
133
134
  - lib/mini_magick/tool/stream.rb
134
135
  - lib/mini_magick/utilities.rb