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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e0a993e69c42a76477e2002d0e2aeaa51feefe85e39f1fd41bacae32daa98a1
4
- data.tar.gz: 30b93efd2b00c30f3f959ba24ac2995d6d57f5e72f40a025f44cb9b92492d91f
3
+ metadata.gz: ce89fb8c4944594e97e5fa8bb017b17ad827f6dd06df2effd4155b83bf8a4215
4
+ data.tar.gz: 4a130f7c8963143f29bad7432be8d90a68892716dffd479e56edffc45655e0a4
5
5
  SHA512:
6
- metadata.gz: 1cff1e1f6dabb0bec2bc3a346212f0add2d2fd83c6e25c7d48f1a9c9f6ce0ab042cce699127f64152054e7dbd63efb038c8dec4c1a5d3508b1af25e59672dc50
7
- data.tar.gz: f09c780d5e5eae7fb276ab137495ec89aba893ba49299ade03a3d6084075f2563f970c76543696790f3e500f9796b79a43c5b8cd85b2fc6dcf11fcda13adf184
6
+ metadata.gz: ed544ea77778b627fd58ff4a80665d9560ee67d2fe4d88fc391450bf53f01647f6d515c730d97ffa301619a46334134616dbb5fc1e4f0e40ff09e81355154fbe
7
+ data.tar.gz: 6aaf746cdb19db2f15bbbf3d55fdb839c0df1c9504f1ba8afc8a7b822329fe61c5eac7d6f07337f2735df0c00da089cf46f3e2f387789a46b1c0e41661041469
@@ -45,7 +45,12 @@ module MiniMagick
45
45
  stderr_reader = Thread.new { stderr_io.read }
46
46
 
47
47
  begin
48
- stdin_io.write(stdin)
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
@@ -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 stream.
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
@@ -9,7 +9,7 @@ module MiniMagick
9
9
  module VERSION
10
10
  MAJOR = 5
11
11
  MINOR = 3
12
- TINY = 2
12
+ TINY = 3
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: 5.3.2
4
+ version: 5.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Johnson