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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 276a80759ce3d7e91723078a885714ae5878a29ac8a013e619274966075bdef8
4
- data.tar.gz: 04b65e8136d765138f618dffd3121ff9c1e045b80cabf6da6af2073ca2ebe58f
2
+ SHA1:
3
+ metadata.gz: 2dbc8f089aacef77f20bf0658dd4710496e1b1dd
4
+ data.tar.gz: ec8cb8becb16443e0269fbb23f77e03dcbf57687
5
5
  SHA512:
6
- metadata.gz: 90fe430dacad9cdac42c97998ccad99a73459237b486e23f0f0bb422399853b96a75d94a911690c1d8e98343370d68a5bd421a41cb0bbc4ff7312be7dd52af98
7
- data.tar.gz: 1282d36973a326638171e6f9010d212802fc1babb30faef951386601a7e1136590abd1fd8afb609177c0584ef5509c220d5432a108b6e385a3a0bbb5de420c12
6
+ metadata.gz: 6d4f31610fb790d5be366c3fc04fe36879e5baa79b71053d54dbb8c29a80dd3aa27a4419aa371237c14762091bffa4d8a2e1a5e216340111977b59249df16576
7
+ data.tar.gz: 8b775caa74d8d9d3224219e95928464c510ad017760f18da6d9223dac4cabbf1237dc2853a0873f34de650acd45197b6b1ee6f6bbd2c5508ccd03d6a73f01bbc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ### HEAD
2
+
3
+ _A description of your awesome changes here!_
4
+
5
+ ### 3.5.0 (2018-03-07)
6
+
7
+ Features:
8
+
9
+ - Raises more semantically correct error on 410
10
+
1
11
  ### 3.4.0 (2017-11-16)
2
12
 
3
13
  Features:
@@ -1,5 +1,5 @@
1
1
  module Routemaster
2
2
  module Drain
3
- VERSION = '3.4.0'.freeze
3
+ VERSION = '3.5.0'.freeze
4
4
  end
5
5
  end
@@ -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.0
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: 2017-11-27 00:00:00.000000000 Z
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.7.0
289
+ rubygems_version: 2.6.11
290
290
  signing_key:
291
291
  specification_version: 4
292
292
  summary: Event receiver for the Routemaster bus