excon 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of excon might be problematic. Click here for more details.

Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/excon.gemspec +2 -2
  3. data/lib/excon/errors.rb +41 -39
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{excon}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Wesley Beary"]
12
- s.date = %q{2009-11-03}
12
+ s.date = %q{2009-11-14}
13
13
  s.description = %q{speed, persistence, http(s)}
14
14
  s.email = %q{wbeary@engineyard.com}
15
15
  s.extra_rdoc_files = [
@@ -1,45 +1,47 @@
1
1
  module Excon
2
2
 
3
3
  module Errors
4
- class Continue < StandardError; end # 100
5
- class SwitchingProtocols < StandardError; end # 101
6
- class OK < StandardError; end # 200
7
- class Created < StandardError; end # 201
8
- class Accepted < StandardError; end # 202
9
- class NonAuthoritativeInformation < StandardError; end # 203
10
- class NoContent < StandardError; end # 204
11
- class ResetContent < StandardError; end # 205
12
- class PartialContent < StandardError; end # 206
13
- class MultipleChoices < StandardError; end # 300
14
- class MovedPermanently < StandardError; end # 301
15
- class Found < StandardError; end # 302
16
- class SeeOther < StandardError; end # 303
17
- class NotModified < StandardError; end # 304
18
- class UseProxy < StandardError; end # 305
19
- class TemporaryRedirect < StandardError; end # 307
20
- class BadRequest < StandardError; end # 400
21
- class Unauthorized < StandardError; end # 401
22
- class PaymentRequired < StandardError; end # 402
23
- class Forbidden < StandardError; end # 403
24
- class NotFound < StandardError; end # 404
25
- class MethodNotAllowed < StandardError; end # 405
26
- class NotAcceptable < StandardError; end # 406
27
- class ProxyAuthenticationRequired < StandardError; end # 407
28
- class RequestTimeout < StandardError; end # 408
29
- class Conflict < StandardError; end # 409
30
- class Gone < StandardError; end # 410
31
- class LengthRequired < StandardError; end # 411
32
- class PreconditionFailed < StandardError; end # 412
33
- class RequestEntityTooLarge < StandardError; end # 412
34
- class RequestURITooLong < StandardError; end # 414
35
- class UnsupportedMediaType < StandardError; end # 415
36
- class RequestedRangeNotSatisfiable < StandardError; end # 416
37
- class ExpectationFailed < StandardError; end # 417
38
- class InternalServerError < StandardError; end # 500
39
- class NotImplemented < StandardError; end # 501
40
- class BadGateway < StandardError; end # 502
41
- class ServiceUnavailable < StandardError; end # 503
42
- class GatewayTimeout < StandardError; end # 504
4
+ class Error < StandardError; end
5
+
6
+ class Continue < Error; end # 100
7
+ class SwitchingProtocols < Error; end # 101
8
+ class OK < Error; end # 200
9
+ class Created < Error; end # 201
10
+ class Accepted < Error; end # 202
11
+ class NonAuthoritativeInformation < Error; end # 203
12
+ class NoContent < Error; end # 204
13
+ class ResetContent < Error; end # 205
14
+ class PartialContent < Error; end # 206
15
+ class MultipleChoices < Error; end # 300
16
+ class MovedPermanently < Error; end # 301
17
+ class Found < Error; end # 302
18
+ class SeeOther < Error; end # 303
19
+ class NotModified < Error; end # 304
20
+ class UseProxy < Error; end # 305
21
+ class TemporaryRedirect < Error; end # 307
22
+ class BadRequest < Error; end # 400
23
+ class Unauthorized < Error; end # 401
24
+ class PaymentRequired < Error; end # 402
25
+ class Forbidden < Error; end # 403
26
+ class NotFound < Error; end # 404
27
+ class MethodNotAllowed < Error; end # 405
28
+ class NotAcceptable < Error; end # 406
29
+ class ProxyAuthenticationRequired < Error; end # 407
30
+ class RequestTimeout < Error; end # 408
31
+ class Conflict < Error; end # 409
32
+ class Gone < Error; end # 410
33
+ class LengthRequired < Error; end # 411
34
+ class PreconditionFailed < Error; end # 412
35
+ class RequestEntityTooLarge < Error; end # 412
36
+ class RequestURITooLong < Error; end # 414
37
+ class UnsupportedMediaType < Error; end # 415
38
+ class RequestedRangeNotSatisfiable < Error; end # 416
39
+ class ExpectationFailed < Error; end # 417
40
+ class InternalServerError < Error; end # 500
41
+ class NotImplemented < Error; end # 501
42
+ class BadGateway < Error; end # 502
43
+ class ServiceUnavailable < Error; end # 503
44
+ class GatewayTimeout < Error; end # 504
43
45
 
44
46
  # Messages for nicer exceptions, from rfc2616
45
47
  def self.status_error(expected, actual, response)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wesley Beary
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-03 00:00:00 -08:00
12
+ date: 2009-11-14 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15