excon 0.0.7 → 0.0.8
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.
- data/VERSION +1 -1
- data/excon.gemspec +5 -5
- data/lib/excon/errors.rb +3 -1
- metadata +4 -5
- data/bin/rackup +0 -3
- data/bin/shindo +0 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.8
|
data/excon.gemspec
CHANGED
@@ -1,18 +1,17 @@
|
|
1
1
|
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{excon}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.8"
|
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-
|
12
|
+
s.date = %q{2009-11-28}
|
13
13
|
s.description = %q{speed, persistence, http(s)}
|
14
14
|
s.email = %q{wbeary@engineyard.com}
|
15
|
-
s.executables = ["rackup", "shindo"]
|
16
15
|
s.extra_rdoc_files = [
|
17
16
|
"README.rdoc"
|
18
17
|
]
|
@@ -52,3 +51,4 @@ Gem::Specification.new do |s|
|
|
52
51
|
else
|
53
52
|
end
|
54
53
|
end
|
54
|
+
|
data/lib/excon/errors.rb
CHANGED
@@ -37,6 +37,7 @@ module Excon
|
|
37
37
|
class UnsupportedMediaType < Error; end # 415
|
38
38
|
class RequestedRangeNotSatisfiable < Error; end # 416
|
39
39
|
class ExpectationFailed < Error; end # 417
|
40
|
+
class UnprocessableEntity < Error; end # 422
|
40
41
|
class InternalServerError < Error; end # 500
|
41
42
|
class NotImplemented < Error; end # 501
|
42
43
|
class BadGateway < Error; end # 502
|
@@ -80,13 +81,14 @@ module Excon
|
|
80
81
|
415 => [Excon::Errors::UnsupportedMediaType, 'Unsupported Media Type'],
|
81
82
|
416 => [Excon::Errors::RequestedRangeNotSatisfiable, 'Request Range Not Satisfiable'],
|
82
83
|
417 => [Excon::Errors::ExpectationFailed, 'Expectation Failed'],
|
84
|
+
422 => [Excon::Errors::UnprocessableEntity, 'Unprocessable Entity'],
|
83
85
|
500 => [Excon::Errors::InternalServerError, 'InternalServerError'],
|
84
86
|
501 => [Excon::Errors::NotImplemented, 'Not Implemented'],
|
85
87
|
502 => [Excon::Errors::BadGateway, 'Bad Gateway'],
|
86
88
|
503 => [Excon::Errors::ServiceUnavailable, 'Service Unavailable'],
|
87
89
|
504 => [Excon::Errors::GatewayTimeout, 'Gateway Timeout']
|
88
90
|
}
|
89
|
-
error, message = @errors[response.status]
|
91
|
+
error, message = @errors[response.status] || [Excon::Errors::Error, 'Unknown']
|
90
92
|
error.new("Expected(#{request[:expects]}) <=> Actual(#{response.status} #{message})\n request => #{request.inspect}\n response => #{response.inspect}")
|
91
93
|
end
|
92
94
|
|
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.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wesley Beary
|
@@ -9,15 +9,14 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-28 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
16
|
description: speed, persistence, http(s)
|
17
17
|
email: wbeary@engineyard.com
|
18
|
-
executables:
|
19
|
-
|
20
|
-
- shindo
|
18
|
+
executables: []
|
19
|
+
|
21
20
|
extensions: []
|
22
21
|
|
23
22
|
extra_rdoc_files:
|
data/bin/rackup
DELETED
data/bin/shindo
DELETED