snap-api 0.1.10 → 0.1.11

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: 6169b5e11a4976b164657c8dbb89abb69bfcb44d1f5dbdac1676d9cadf8d0420
4
- data.tar.gz: 03a133f6be28cbd32394ca5b3d0ffbf9e27777017121f952aa7b66bb34e16547
3
+ metadata.gz: 995daa2e76ce55d36249cb7ecf64f0dd4d039d4de3b6218d9c62b47673baf798
4
+ data.tar.gz: f913194b7fae9a7c4debcb4f2db401704c3a161b6a733feea1891a50d5d07345
5
5
  SHA512:
6
- metadata.gz: acd2f535301c96595d8a573af72147cda4420402268223954a69ac7dd11d6da0312e1ed2cb36dc435b623517b5b63e132add620b2199eb7f8dece7b3729668cd
7
- data.tar.gz: d2804864d609a7e9e0d410f67d5b6ed9172aca68c9a85b4a3667a62d4f12e3851f7d6acda7ef096cf19c6973601b243782a7e9f28b1888892df6c45d675092b1
6
+ metadata.gz: 95572db0054c80b7bd2280545c20f5e69ba815f5cef7ccf233c35383bb08689d57f50fb9e091110bdd6fd804b93ef381be4dc71d668372d8a53b186ed5ba2f87
7
+ data.tar.gz: bd8eafc05d0b351cbc8cfb3e849b3a84e00e3e3c06513d449d4e1c0158f377410c3cbeb16c960c8d77b209080aee55cc2bdb4a93b66bae062f73680c32fe3268
data/History.md CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ 0.1.11 / 2019-02-28
3
+ ==================
4
+
5
+ * Add Api::DefinitionError
6
+
2
7
  0.1.10 / 2019-02-21
3
8
  ==================
4
9
 
@@ -0,0 +1,7 @@
1
+ module Snap
2
+ module Api
3
+ # A definition error occurs when you attempt to update a invalid shipment
4
+ class DefinitionError < StandardError
5
+ end
6
+ end
7
+ end
data/lib/snap/client.rb CHANGED
@@ -48,6 +48,7 @@ module Snap
48
48
  # Array. Resource endpoints are typically Hash.
49
49
  when 'Hash'
50
50
  raise Api::OrderStageError, httparty_response if httparty_response.parsed_response.value? 'ORDER_STAGE'
51
+ raise Api::DefinitionError, httparty_response if httparty_response.parsed_response.value? 'DEFINITION'
51
52
  end
52
53
  end
53
54
  end
data/lib/snap/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Snap
2
- VERSION = '0.1.10'.freeze
2
+ VERSION = '0.1.11'.freeze
3
3
  end
data/lib/snap.rb CHANGED
@@ -6,6 +6,7 @@ require 'snap/version'
6
6
  require 'snap/client'
7
7
  require 'snap/response'
8
8
 
9
+ require 'snap/api/errors/definition_error'
9
10
  require 'snap/api/errors/order_stage_error'
10
11
  require 'snap/api/errors/stock_total_not_found_error'
11
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snap-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Hood
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-22 00:00:00.000000000 Z
11
+ date: 2019-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -199,6 +199,7 @@ files:
199
199
  - bin/setup
200
200
  - config/initializers/snap.rb
201
201
  - lib/snap.rb
202
+ - lib/snap/api/errors/definition_error.rb
202
203
  - lib/snap/api/errors/order_stage_error.rb
203
204
  - lib/snap/api/errors/stock_total_not_found_error.rb
204
205
  - lib/snap/api/outbound.rb