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.
- data/lib/death_by_captcha.rb +5 -11
- data/lib/death_by_captcha/recaptcha.rb +4 -4
- data/lib/death_by_captcha/version.rb +1 -1
- metadata +1 -1
data/lib/death_by_captcha.rb
CHANGED
@@ -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
|
114
|
-
end
|
115
|
-
|
116
|
-
class
|
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 <
|
90
|
-
class CaptchaInvalid <
|
91
|
-
class ImageMissing <
|
92
|
-
class ChallengeFieldMissing <
|
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
|
|