salestation 0.6.0 → 0.7.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 +7 -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: 52f5298fd3ea745f10632793d1197ffa3d47154d
|
4
|
+
data.tar.gz: ba220dc9ef2142578dcfc7db2db132770114e79b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad6b4e9c211ac7dfcce4bbf6d4d62117d6c942456ef27ca2708a51d3542f28eb1ece76325e550381c8c25894babbfa5498ac82954210f3193b5a13877bba538a
|
7
|
+
data.tar.gz: 7f8005c58d50a81a4fbc8f74a7e5b821fbdcbd172fc6035e41526fa3fadad853afa11064f9b4eca3f1843e5629aaba9a2eb3ddbdba15d0539563e5ac5932b36e
|
@@ -25,6 +25,13 @@ module Salestation
|
|
25
25
|
|
26
26
|
attribute :message, Types::Strict::String
|
27
27
|
end
|
28
|
+
|
29
|
+
class Conflict < Dry::Struct
|
30
|
+
constructor_type :strict
|
31
|
+
|
32
|
+
attribute :message, Types::Strict::String
|
33
|
+
attribute :debug_message, Types::Strict::String
|
34
|
+
end
|
28
35
|
end
|
29
36
|
end
|
30
37
|
end
|
@@ -18,6 +18,9 @@ module Salestation
|
|
18
18
|
},
|
19
19
|
App::Errors::Forbidden => -> (error) {
|
20
20
|
Responses::Forbidden.new(message: error.message)
|
21
|
+
},
|
22
|
+
App::Errors::Conflict => -> (error) {
|
23
|
+
Responses::Conflict.new(message: error.message, debug_message: error.debug_message)
|
21
24
|
}
|
22
25
|
}.freeze
|
23
26
|
|
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.7.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-
|
11
|
+
date: 2017-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|