rucaptcha 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: daec552ca6a8ad3890957976cab89fabebf62f22
4
- data.tar.gz: e2fc53a6d7c896709f65d84e7fd2900874680df6
3
+ metadata.gz: d09e398b9cff324f96e3a24709509f5c8131b01e
4
+ data.tar.gz: 801d27ee2ad5eca42265d1d1b88f2cced13ec832
5
5
  SHA512:
6
- metadata.gz: 7b58a42de2db4e30f4648ccf82b35f82d2f6660548a04c4d417761085a6326bbaa29a79f08dff121d2a8a9a6001f4c93c241e652fea00bd927a4ba17dcd131f9
7
- data.tar.gz: ee4184585e64eda6e961823e1f36b992d1e020bb199d3aebb2bc368019e240a2fdb2837c27ed7a909ff89e4069aa5be720a4e06e2249e7d36a30957e837deddd
6
+ metadata.gz: e72e2878241245b06ac94d3ab3aa8023c1376c2f7913fd2a9e02f9001ec0207a660365da6bb31922ef92e0c5c7ee608f85aba628a2316fb1ba2b1b9f49f8a2c5
7
+ data.tar.gz: 284fcd0c6c6bbc54122386642e8fa77bc8a2613616c7d6f2992ff08de55a525d621ea6539417969a0c200e0a9fadbbcc63467acfd9329c113fcc7769d885cd9f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.2.3
2
+ -----
3
+
4
+ - It will raise error when call ImageMagick failed.
5
+
1
6
  0.2.2
2
7
  -----
3
8
 
@@ -44,9 +44,10 @@ module RuCaptcha
44
44
  CODE
45
45
 
46
46
  command.strip!
47
- # puts command
48
47
  pid, stdin, stdout, stderr = POSIX::Spawn.popen4(command)
49
48
  Process.waitpid(pid)
49
+ err = stderr.read
50
+ raise "RuCaptcha: #{err.strip}" if err != nil && err.length > 0
50
51
  stdout.read
51
52
  end
52
53
  end
@@ -1,3 +1,3 @@
1
1
  module RuCaptcha
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rucaptcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-01 00:00:00.000000000 Z
11
+ date: 2015-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: posix-spawn