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 +4 -4
- data/lib/mini_magick/image.rb +1 -7
- data/lib/mini_magick/tool.rb +1 -0
- data/lib/mini_magick/tool/mogrify_restricted.rb +15 -0
- data/lib/mini_magick/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f5606d4a6e91d6ad90a393da30244dc774e374b
|
4
|
+
data.tar.gz: 71ff2a31e86426bfd514879b787fd530cf2717ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b17e89081bd677cd255e377c9dd22b64bc37dc467a81f4bbd0d7fde27cc552d99f3927d23ce48c9becabe37234652cd0fdd913062316fe57c3b85a003d51ad7
|
7
|
+
data.tar.gz: 32d0e633b52b6d6104fa8633db9579dbe78513a3ad997737bc1506c3cc9ddb375015afbc3423fc9ee72b3fba4c710597306c167c2094f33b792f9f9c383a6d85
|
data/lib/mini_magick/image.rb
CHANGED
@@ -555,13 +555,7 @@ module MiniMagick
|
|
555
555
|
end
|
556
556
|
|
557
557
|
def mogrify(page = nil)
|
558
|
-
MiniMagick::Tool::
|
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
|
data/lib/mini_magick/tool.rb
CHANGED
@@ -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
|
data/lib/mini_magick/version.rb
CHANGED
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.
|
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-
|
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
|