salestation 0.12.0 → 0.13.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
  SHA256:
3
- metadata.gz: 46cd68d7bab2619bbe24c7c01e668b7e6d5279db7e116a024b4860c43cbe1f8c
4
- data.tar.gz: 4e6ce42687e5ff792d425d6d2c1ed80b230fa9c1ca57d16b107c976c961d749c
3
+ metadata.gz: bceb665efc56da15d2a5ef0523bb99b6d54ee68abf99530262f4c6c90bbd345f
4
+ data.tar.gz: 2c8257fe1fb5c5f851c4c11d832517b3eafe4223ea225cd2aad30bf030de8557
5
5
  SHA512:
6
- metadata.gz: b0c6b7c774c875f6b24c195dbf9300bdca6a70ea288c6ebd80d0612f801b5a058b726dd936ecedb1e1818c4d50bb1b7e4f11de0188613a6fc7f07b8735be94f5
7
- data.tar.gz: 4af44c26fa86b7d2f3b3bd3305feb035723934419becdb5e113e5efe4630ea488638a401b5e199bfc30dc27c2fa875353577e9b0fcf738349096432a4365eee0
6
+ metadata.gz: 67853444ea1fa18ea9c0e57d4088435de7a5b36319cd2a0cf865207450d997af66065765fa2b500845400b5def00a4a485fd2a2d73dd45391f60cd459d0fb4da
7
+ data.tar.gz: 7d6f38b300d2edcb25f23cabeecc3f5c9ac63f69da7174e6119bf37c3407d4bf62d2a67c01e974c6d542c9d5ab62981639556e3bc5a7142f2aca3c107178fabc
@@ -28,6 +28,7 @@ module Salestation
28
28
  end
29
29
 
30
30
  status result.status
31
+ headers result.headers
31
32
  json result.body
32
33
  end
33
34
  end
@@ -32,6 +32,7 @@ module Salestation
32
32
  attribute :message, Types::Strict::String
33
33
  attribute :debug_message, Types::String.default('')
34
34
  attribute :context, Types::Hash.default({})
35
+ attribute :headers, Types::Hash.default({})
35
36
 
36
37
  def body
37
38
  {message: message, debug_message: debug_message}
@@ -41,6 +42,7 @@ module Salestation
41
42
  class Success < Response
42
43
  attribute :status, Types::Strict::Integer
43
44
  attribute :body, Types::Strict::Hash | Types::Strict::Array
45
+ attribute :headers, Types::Hash.default({})
44
46
  end
45
47
 
46
48
  class UnprocessableEntityFromSchemaErrors
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.12.0"
7
+ spec.version = "0.13.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.12.0
4
+ version: 0.13.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: 2018-08-08 00:00:00.000000000 Z
11
+ date: 2018-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler