mini_magick 5.0.0 → 5.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/mini_magick/image.rb +7 -2
- data/lib/mini_magick/shell.rb +1 -1
- data/lib/mini_magick/version.rb +1 -1
- data/lib/mini_magick.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2745570a5fe6e4da7ac8ab1cac8ad6799d6790893d1a1b626835f2e64f81f89
|
4
|
+
data.tar.gz: 4a3d182ac394001a77df8f137f48b8f46fd2e85d4bd60d08d5ef04c44949675d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaa65a8d47dd6c558d4207d0412f25bcf1ffcc79bcab07be9f6ca973bb175de9d57288a3348aa16bc85606647e499390e291878b12cdfda36ce14609ac5fb75b
|
7
|
+
data.tar.gz: '0584062e993c3330236f84a0e91ef88ca36441c92bd81a6f3de35b89feefdc53a04d93613e0e684c847c65875367321f5f8565758b6ade5d5ca6737f45922149'
|
data/README.md
CHANGED
@@ -48,7 +48,7 @@ $ bundle add mini_magick
|
|
48
48
|
|
49
49
|
## Information
|
50
50
|
|
51
|
-
* [API documentation](
|
51
|
+
* [API documentation](https://rubydoc.info/gems/mini_magick)
|
52
52
|
|
53
53
|
## Usage
|
54
54
|
|
@@ -244,7 +244,7 @@ end
|
|
244
244
|
```
|
245
245
|
|
246
246
|
For a more information, see
|
247
|
-
[Configuration](
|
247
|
+
[Configuration](https://rubydoc.info/gems/mini_magick/MiniMagick/Configuration) API documentation.
|
248
248
|
|
249
249
|
### Composite
|
250
250
|
|
data/lib/mini_magick/image.rb
CHANGED
@@ -465,6 +465,13 @@ module MiniMagick
|
|
465
465
|
end
|
466
466
|
end
|
467
467
|
|
468
|
+
##
|
469
|
+
# Prevents ruby from calling `#to_ary` on the image when checking if it's a
|
470
|
+
# splattable data structure in certain cases.
|
471
|
+
def respond_to_missing?(name, include_all)
|
472
|
+
false
|
473
|
+
end
|
474
|
+
|
468
475
|
##
|
469
476
|
# Writes the temporary file out to either a file location (by passing in a
|
470
477
|
# String) or by passing in a Stream that you can #write(chunk) to
|
@@ -487,8 +494,6 @@ module MiniMagick
|
|
487
494
|
else
|
488
495
|
IO.copy_stream File.open(path, "rb"), output_to
|
489
496
|
end
|
490
|
-
ensure
|
491
|
-
destroy! if tempfile
|
492
497
|
end
|
493
498
|
|
494
499
|
##
|
data/lib/mini_magick/shell.rb
CHANGED
data/lib/mini_magick/version.rb
CHANGED
data/lib/mini_magick.rb
CHANGED
@@ -22,8 +22,8 @@ module MiniMagick
|
|
22
22
|
end
|
23
23
|
|
24
24
|
%w[animate compare composite conjure convert display identify import mogrify montage stream].each do |tool|
|
25
|
-
name = imagemagick7? && tool == "convert" ? "magick" : tool
|
26
25
|
define_singleton_method(tool) do |**options, &block|
|
26
|
+
name = imagemagick7? && tool == "convert" ? "magick" : tool
|
27
27
|
MiniMagick::Tool.new(name, **options, &block)
|
28
28
|
end
|
29
29
|
end
|
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: 5.0.
|
4
|
+
version: 5.0.1
|
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: 2024-07-
|
16
|
+
date: 2024-07-24 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: rake
|
@@ -35,14 +35,14 @@ dependencies:
|
|
35
35
|
requirements:
|
36
36
|
- - "~>"
|
37
37
|
- !ruby/object:Gem::Version
|
38
|
-
version: 3.5
|
38
|
+
version: '3.5'
|
39
39
|
type: :development
|
40
40
|
prerelease: false
|
41
41
|
version_requirements: !ruby/object:Gem::Requirement
|
42
42
|
requirements:
|
43
43
|
- - "~>"
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 3.5
|
45
|
+
version: '3.5'
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: webmock
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|