salestation 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/salestation/app/errors.rb +6 -0
- data/lib/salestation/web/error_mapper.rb +3 -0
- data/lib/salestation/web/responses.rb +1 -0
- data/salestation.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cb381a42babd96a28c8997c43485bc9bcf4640e
|
4
|
+
data.tar.gz: 0c2c96eaea75568432a85ae6ee439ba8a25c8d94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d2aef67f53d9b52441968c3881996338fb0517fa5051df2b8a1fa8fe43b983f1cc9d8b9ee73dabc9d9dc57afe189235141863f93462a8faa58dd138ac5941ca
|
7
|
+
data.tar.gz: 47521d25f27864525b3792ef407e482ccae15e1596431641d2c7fa57ab799e3fe4f84b1ae560f94bde96fc7d70ef28e3a9c674b1a9fa3810daddfa2821f42ddf
|
@@ -46,6 +46,12 @@ module Salestation
|
|
46
46
|
attribute :message, Types::Strict::String
|
47
47
|
attribute :debug_message, Types::Strict::String
|
48
48
|
end
|
49
|
+
|
50
|
+
class RequestEntityTooLarge < Dry::Struct
|
51
|
+
constructor_type :strict
|
52
|
+
|
53
|
+
attribute :message, Types::Strict::String
|
54
|
+
end
|
49
55
|
end
|
50
56
|
end
|
51
57
|
end
|
@@ -27,6 +27,9 @@ module Salestation
|
|
27
27
|
},
|
28
28
|
App::Errors::UnsupportedMediaType => -> (error) {
|
29
29
|
Responses::UnsupportedMediaType.new(message: error.message, debug_message: error.debug_message)
|
30
|
+
},
|
31
|
+
App::Errors::RequestEntityTooLarge => -> (error) {
|
32
|
+
Responses::RequestEntityTooLarge.new(message: error.message)
|
30
33
|
}
|
31
34
|
}.freeze
|
32
35
|
|
@@ -99,6 +99,7 @@ module Salestation
|
|
99
99
|
NotFound = Error.with_code(404)
|
100
100
|
NotAcceptable = Error.with_code(406)
|
101
101
|
Conflict = Error.with_code(409)
|
102
|
+
RequestEntityTooLarge = Error.with_code(413)
|
102
103
|
UnsupportedMediaType = Error.with_code(415)
|
103
104
|
UnprocessableEntity = Error.with_code(422)
|
104
105
|
|
data/salestation.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: salestation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SaleMove TechMovers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|