antigate 0.0.1 → 0.0.2

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.
data/lib/antigate.rb CHANGED
@@ -32,6 +32,7 @@ module Antigate
32
32
  added = nil
33
33
  loop do
34
34
  added = add(url, ext)
35
+ next if added.nil?
35
36
  if added.include? 'ERROR_NO_SLOT_AVAILABLE'
36
37
  sleep(1)
37
38
  next
@@ -45,6 +46,7 @@ module Antigate
45
46
  status = nil
46
47
  loop do
47
48
  status = status(id)
49
+ next if status.nil?
48
50
  if status.include? 'CAPCHA_NOT_READY'
49
51
  sleep(1)
50
52
  next
@@ -1,3 +1,3 @@
1
1
  module Antigate
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: antigate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
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: 2011-12-12 00:00:00.000000000 Z
12
+ date: 2012-01-22 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Wrapper for Antigate API
15
15
  email: