salestation 3.1.0 → 3.2.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
2
  SHA256:
3
- metadata.gz: 7fcf3aa0603e1d5f3d69869ff66efb2dd01b45d59c01fd6fc420ff059a982243
4
- data.tar.gz: 5be0e81ae79ab73818e5eca163d2b2519d693f8fcaf4f6e2bf1a0adfa7028046
3
+ metadata.gz: 0fb03bcd2fa27e388288e0812b0e148404ae1c48b292448c10fd71a847cb700f
4
+ data.tar.gz: c5783701a710e82883aa9880d867dcb662c67ec2ac8f307efe077acbd2383e84
5
5
  SHA512:
6
- metadata.gz: 5a62b86a731b21328bc616c5703377edb694d539c0c5677f23a865b2b693346ac850fc9b1a3fdffe75d88e6bab56c22a6bcc4a4710e9407b04c6d65eeec10e8f
7
- data.tar.gz: d0a00c8c57fb9c7515532025d54c94e2540bd10c9889afe8788bff1c3b38b097ea300cd268e3ac5436b4d62f94112892fa18fb734173bc5e84d412c61bd1cfbf
6
+ metadata.gz: e0d869788b94eb75368bd0ce78841efb5934a403b6326ceac689543eae1dc4fdd2642d9e945b1a5a678023b45b04ecd277a33157ac21cc6589b4a9a4e4022e59
7
+ data.tar.gz: 5a0378381ed6496c72a53dfe7b3c01aa57c0f35a31d068eca11611a25da1681222e3ca99816459421f5381ddd31dc5964b95824fc531820ed15446f7270d8745
@@ -6,18 +6,22 @@ module Salestation
6
6
  class InvalidInput < Dry::Struct
7
7
  attribute :errors, Types::Strict::Hash
8
8
  attribute :hints, Types::Coercible::Hash.default({})
9
+ attribute? :debug_message, Types::Strict::String
9
10
  end
10
11
 
11
12
  class DependencyCurrentlyUnavailable < Dry::Struct
12
13
  attribute :message, Types::Strict::String
14
+ attribute? :debug_message, Types::Strict::String
13
15
  end
14
16
 
15
17
  class RequestedResourceNotFound < Dry::Struct
16
18
  attribute :message, Types::Strict::String
19
+ attribute? :debug_message, Types::Strict::String
17
20
  end
18
21
 
19
22
  class Forbidden < Dry::Struct
20
23
  attribute :message, Types::Strict::String
24
+ attribute? :debug_message, Types::Strict::String
21
25
  end
22
26
 
23
27
  class Conflict < Dry::Struct
@@ -37,6 +41,7 @@ module Salestation
37
41
 
38
42
  class RequestEntityTooLarge < Dry::Struct
39
43
  attribute :message, Types::Strict::String
44
+ attribute? :debug_message, Types::Strict::String
40
45
  end
41
46
  end
42
47
  end
@@ -10,7 +10,7 @@ module Salestation
10
10
  request.replace_input(result.output)
11
11
  else
12
12
  Deterministic::Result::Failure(
13
- Errors::InvalidInput.new(errors: result.errors, hints: result.hints)
13
+ Errors::InvalidInput.new(errors: result.errors, hints: result.hints, debug_message: result.debug_message)
14
14
  )
15
15
  end
16
16
  end
@@ -16,10 +16,10 @@ module Salestation
16
16
  )
17
17
  },
18
18
  App::Errors::RequestedResourceNotFound => -> (error) {
19
- Responses::NotFound.new(message: error.message)
19
+ Responses::NotFound.new(message: error.message, debug_message: error.debug_message)
20
20
  },
21
21
  App::Errors::Forbidden => -> (error) {
22
- Responses::Forbidden.new(message: error.message)
22
+ Responses::Forbidden.new(message: error.message, debug_message: error.debug_message)
23
23
  },
24
24
  App::Errors::Conflict => -> (error) {
25
25
  Responses::Conflict.new(message: error.message, debug_message: error.debug_message)
@@ -31,7 +31,7 @@ module Salestation
31
31
  Responses::UnsupportedMediaType.new(message: error.message, debug_message: error.debug_message)
32
32
  },
33
33
  App::Errors::RequestEntityTooLarge => -> (error) {
34
- Responses::RequestEntityTooLarge.new(message: error.message)
34
+ Responses::RequestEntityTooLarge.new(message: error.message, debug_message: error.debug_message)
35
35
  }
36
36
  }.freeze
37
37
 
data/salestation.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "salestation"
7
- spec.version = "3.1.0"
7
+ spec.version = "3.2.0"
8
8
  spec.authors = ["SaleMove TechMovers"]
9
9
  spec.email = ["techmovers@salemove.com"]
10
10
 
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: 3.1.0
4
+ version: 3.2.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: 2019-08-19 00:00:00.000000000 Z
11
+ date: 2019-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler