salestation 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e62081d63ac22ac99368644b08c0d1898bed8b6
4
- data.tar.gz: 4e3779ea8ce9218612912211210ba4e084d1d6c6
3
+ metadata.gz: 6cb381a42babd96a28c8997c43485bc9bcf4640e
4
+ data.tar.gz: 0c2c96eaea75568432a85ae6ee439ba8a25c8d94
5
5
  SHA512:
6
- metadata.gz: 8952eba8027fda2a39bb29cabe5f4f4855c61d991d753de4e05c6df7243126dda5585fc5b9552f512dc3005dae24352e98ebc790078c71e87d6cf53ed559c815
7
- data.tar.gz: 0cf02b08942dd78c56af52eb61eb672a2f414368a1a058d687ceca6dfcc38180bad5fd050e6d421ff990bfe806c81cb5152b32ec121078a750143b75c41962dd
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
@@ -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 = "0.10.0"
7
+ spec.version = "0.11.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: 0.10.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-23 00:00:00.000000000 Z
11
+ date: 2017-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler