death_by_captcha 0.4.0.1 → 0.4.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,7 @@ require "base64"
3
3
  require "json"
4
4
  require "nokogiri"
5
5
  require "death_by_captcha/version"
6
+ require "death_by_captcha/exceptions"
6
7
  require "death_by_captcha/recaptcha"
7
8
 
8
9
  module DeathByCaptcha
@@ -108,11 +109,4 @@ module DeathByCaptcha
108
109
 
109
110
  # set module functions
110
111
  module_function :username=, :password=, :debug=, :decode_max_tries=, :decode_sleep_interval=, :decode, :decode!, :report, :check, :account_balance, :send_request
111
-
112
- # exceptions
113
- class CatchableError < Exception; end
114
- class RequestError < CatchableError; end
115
- class CaptchaNotFound < CatchableError; end
116
- class CaptchaDecodeFailed < CatchableError; end
117
- class ServiceOverloadedError < RequestError; end
118
112
  end
@@ -0,0 +1,8 @@
1
+ module DeathByCaptcha
2
+ # exceptions
3
+ class CatchableError < Exception; end
4
+ class RequestError < CatchableError; end
5
+ class CaptchaNotFound < CatchableError; end
6
+ class CaptchaDecodeFailed < CatchableError; end
7
+ class ServiceOverloadedError < RequestError; end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module DeathByCaptcha
2
- VERSION = "0.4.0.1"
2
+ VERSION = "0.4.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: death_by_captcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.1
4
+ version: 0.4.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -39,6 +39,7 @@ files:
39
39
  - Rakefile
40
40
  - death_by_captcha.gemspec
41
41
  - lib/death_by_captcha.rb
42
+ - lib/death_by_captcha/exceptions.rb
42
43
  - lib/death_by_captcha/recaptcha.rb
43
44
  - lib/death_by_captcha/version.rb
44
45
  - test.rb