death_by_captcha 0.4.0.0 → 0.4.0.1

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.
@@ -110,15 +110,9 @@ module DeathByCaptcha
110
110
  module_function :username=, :password=, :debug=, :decode_max_tries=, :decode_sleep_interval=, :decode, :decode!, :report, :check, :account_balance, :send_request
111
111
 
112
112
  # exceptions
113
- class RequestError < Exception
114
- end
115
-
116
- class CaptchaNotFound < Exception
117
- end
118
-
119
- class CaptchaDecodeFailed < Exception
120
- end
121
-
122
- class ServiceOverloadedError < RequestError
123
- end
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
124
118
  end
@@ -86,10 +86,10 @@ module DeathByCaptcha
86
86
  end
87
87
 
88
88
  # exceptions
89
- class ResolveFailed < Exception; end
90
- class CaptchaInvalid < Exception; end
91
- class ImageMissing < Exception; end
92
- class ChallengeFieldMissing < Exception; end
89
+ class ResolveFailed < DeathByCaptcha::CatchableError; end
90
+ class CaptchaInvalid < DeathByCaptcha::CatchableError; end
91
+ class ImageMissing < DeathByCaptcha::CatchableError; end
92
+ class ChallengeFieldMissing < DeathByCaptcha::CatchableError; end
93
93
 
94
94
  end
95
95
 
@@ -1,3 +1,3 @@
1
1
  module DeathByCaptcha
2
- VERSION = "0.4.0.0"
2
+ VERSION = "0.4.0.1"
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.0
4
+ version: 0.4.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: