antigate_api 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -81,6 +81,9 @@ module AntigateApi
81
81
 
82
82
  def decode(captcha_file)
83
83
  captcha_id = self.send_captcha(captcha_file)
84
+ if ["OR_NO_SLOT_AVAILABLE"].include? captcha_id
85
+ raise AntigateApi::Errors::Error("captcha_id: #{captcha_id}")
86
+ end
84
87
  start_time = Time.now.to_i
85
88
  sleep @options[:recognition_time]
86
89
 
@@ -1,3 +1,3 @@
1
1
  module AntigateApi
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: antigate_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-10 00:00:00.000000000 Z
12
+ date: 2013-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multipart-post
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  version: '0'
66
66
  requirements: []
67
67
  rubyforge_project:
68
- rubygems_version: 1.8.24
68
+ rubygems_version: 1.8.25
69
69
  signing_key:
70
70
  specification_version: 3
71
71
  summary: Antigate (Decode captcha service) wrapper for Ruby