mini_magick 5.3.2 → 5.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mini_magick/shell.rb +6 -1
- data/lib/mini_magick/tool.rb +2 -1
- data/lib/mini_magick/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce89fb8c4944594e97e5fa8bb017b17ad827f6dd06df2effd4155b83bf8a4215
|
|
4
|
+
data.tar.gz: 4a130f7c8963143f29bad7432be8d90a68892716dffd479e56edffc45655e0a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ed544ea77778b627fd58ff4a80665d9560ee67d2fe4d88fc391450bf53f01647f6d515c730d97ffa301619a46334134616dbb5fc1e4f0e40ff09e81355154fbe
|
|
7
|
+
data.tar.gz: 6aaf746cdb19db2f15bbbf3d55fdb839c0df1c9504f1ba8afc8a7b822329fe61c5eac7d6f07337f2735df0c00da089cf46f3e2f387789a46b1c0e41661041469
|
data/lib/mini_magick/shell.rb
CHANGED
|
@@ -45,7 +45,12 @@ module MiniMagick
|
|
|
45
45
|
stderr_reader = Thread.new { stderr_io.read }
|
|
46
46
|
|
|
47
47
|
begin
|
|
48
|
-
|
|
48
|
+
# Matches how Open3.capture3 detects IO objects.
|
|
49
|
+
if stdin.respond_to?(:readpartial)
|
|
50
|
+
IO.copy_stream(stdin, stdin_io)
|
|
51
|
+
else
|
|
52
|
+
stdin_io.write(stdin)
|
|
53
|
+
end
|
|
49
54
|
rescue Errno::EPIPE
|
|
50
55
|
end
|
|
51
56
|
stdin_io.close
|
data/lib/mini_magick/tool.rb
CHANGED
|
@@ -46,7 +46,8 @@ module MiniMagick
|
|
|
46
46
|
# @option options [Boolean] :errors Whether to raise errors on non-zero
|
|
47
47
|
# exit codes.
|
|
48
48
|
# @option options [Boolean] :warnings Whether to print warnings to stderrr.
|
|
49
|
-
# @option options [String] :stdin Content to send to standard input
|
|
49
|
+
# @option options [String, IO] :stdin Content to send to standard input
|
|
50
|
+
# stream, either a string or a readable IO object.
|
|
50
51
|
# @example
|
|
51
52
|
# MiniMagick.identify(errors: false) do |identify|
|
|
52
53
|
# identify.help # returns exit status 1, which would otherwise throw an error
|
data/lib/mini_magick/version.rb
CHANGED