mini_magick 4.9.1 → 4.9.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
  SHA256:
3
- metadata.gz: bd1b90888eb75abf0899889732c4e4321813141e80dea7f9fa5cce53605f9c26
4
- data.tar.gz: 325191562a968ccbabd99ab4946d78f95caebbbb510992f0fb1bb65c770b364d
3
+ metadata.gz: 72e3bfe484416705487e711ad30028e9c3d63f69cc739a2e2183365f5564260c
4
+ data.tar.gz: 9a1734abf7ea02c7a0397afb67691048b92e1a36286fbc954ff2b10a31f3d64d
5
5
  SHA512:
6
- metadata.gz: 1964d16e84e1c032564068345b42312e64915bb71fd6560c17a73a33bcbccae3fb1453ecc79e600df0e55183031a6673a2ae2ad454941c76f97c7939f50b8b16
7
- data.tar.gz: f2846d504c4c95e29a17bfb880a40ba6685e4a5f0511997560c5a46d967b743ec6403343300ca8344ccd9a470fd3a0085d2c14c075c7efaccae1a4825c68444f
6
+ metadata.gz: eaab301f2254bcedc6e2108190424fc5f74f1dc8ea7f02cbb95bbbb7c7bf7fe26ec0a6c6af8224397792529d40307e034dcbd728f3d0962f4a103fa70275b712
7
+ data.tar.gz: 5e9b9f80ada493b9372a16e599b2542cda3a8490d666256a41abd67d3e8aa1c1f3fe9842e389d3c2150d10021ba9eec579b175373eb038d5a2555bf10579cde3
@@ -51,10 +51,11 @@ module MiniMagick
51
51
  in_w.close
52
52
 
53
53
  begin
54
- Timeout.timeout(MiniMagick.timeout, nil, "MiniMagick command timed out: #{command}") { thread.join }
55
- ensure
54
+ Timeout.timeout(MiniMagick.timeout) { thread.join }
55
+ rescue Timeout::Error
56
56
  Process.kill("TERM", thread.pid) rescue nil
57
57
  Process.waitpid(thread.pid) rescue nil
58
+ raise Timeout::Error, "MiniMagick command timed out: #{command}"
58
59
  end
59
60
 
60
61
  [stdout_reader.value, stderr_reader.value, thread.value]
@@ -9,7 +9,7 @@ module MiniMagick
9
9
  module VERSION
10
10
  MAJOR = 4
11
11
  MINOR = 9
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.9.1
4
+ version: 4.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Johnson