routemaster-drain 3.4.0 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +10 -0
- data/lib/routemaster/drain.rb +1 -1
- data/lib/routemaster/errors.rb +6 -0
- data/lib/routemaster/middleware/error_handling.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2dbc8f089aacef77f20bf0658dd4710496e1b1dd
|
4
|
+
data.tar.gz: ec8cb8becb16443e0269fbb23f77e03dcbf57687
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d4f31610fb790d5be366c3fc04fe36879e5baa79b71053d54dbb8c29a80dd3aa27a4419aa371237c14762091bffa4d8a2e1a5e216340111977b59249df16576
|
7
|
+
data.tar.gz: 8b775caa74d8d9d3224219e95928464c510ad017760f18da6d9223dac4cabbf1237dc2853a0873f34de650acd45197b6b1ee6f6bbd2c5508ccd03d6a73f01bbc
|
data/CHANGELOG.md
CHANGED
data/lib/routemaster/drain.rb
CHANGED
data/lib/routemaster/errors.rb
CHANGED
@@ -45,6 +45,12 @@ module Routemaster
|
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
+
class ResourceGone < BaseError
|
49
|
+
def message
|
50
|
+
"Resource Gone: #{env.url}"
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
48
54
|
class FatalResource < BaseError
|
49
55
|
def message
|
50
56
|
"Fatal Resource Error. body: #{body}, url: #{env.url}, method: #{env.method}"
|
@@ -11,6 +11,7 @@ module Routemaster
|
|
11
11
|
(404..404) => Errors::ResourceNotFound,
|
12
12
|
(405..405) => Errors::MethodNotAllowed,
|
13
13
|
(409..409) => Errors::ConflictResource,
|
14
|
+
(410..410) => Errors::ResourceGone,
|
14
15
|
(412..412) => Errors::IncompatibleVersion,
|
15
16
|
(413..413) => Errors::InvalidResource,
|
16
17
|
(429..429) => Errors::ResourceThrottling,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: routemaster-drain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Letessier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -286,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
286
286
|
version: '0'
|
287
287
|
requirements: []
|
288
288
|
rubyforge_project:
|
289
|
-
rubygems_version: 2.
|
289
|
+
rubygems_version: 2.6.11
|
290
290
|
signing_key:
|
291
291
|
specification_version: 4
|
292
292
|
summary: Event receiver for the Routemaster bus
|