shipstation 0.12.4 → 0.13.4

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: 09e099e21c9ae4a139e450c5bd63af600a47a6b5
4
- data.tar.gz: e0ab93b688d176b7809a9343c5e8c658ca4a9e60
3
+ metadata.gz: fedcfe244b891cbb3cc9dc66e079e4f1465c8e43
4
+ data.tar.gz: eeb29038cb90b7bc4a807d3efd94bed54af34466
5
5
  SHA512:
6
- metadata.gz: 6a683d803f7a0d26c124e8a889bde4092eafcca26c445385d97295f29898a30dabc4975016cba2b3a7f45077a865cf3dbb9b462abfe8643a168b6c55dfd2b2f2
7
- data.tar.gz: c3a641de603fc495623b96bf6f1fc6e0b83bfe5f7fc2d060be0be5a1a9d6d07654cd591f9532a696c1c4e4ba0adc314055e1bb5ed1f0d1e487da7548eb9113b2
6
+ metadata.gz: 58dbfb3caf9a8732f6e9e3b0dbb3ba693c4aa839e247448f0345743a8cfa5e35b4bec13d54713263586bde629f079cf79ed939588fb445b32d0f2d97c0f00401
7
+ data.tar.gz: d4bc9c8313b448f06e982267518526d90b0d4769aeac911b72749731b8192e0c707cfa0def8baab9217b9c1fd052c1f5b6175a00e4269c9138d8f62d68261859
@@ -4,6 +4,7 @@ require 'shipstation/api_operations/list'
4
4
  require 'shipstation/api_operations/create'
5
5
  require 'shipstation/api_operations/retrieve'
6
6
  require 'shipstation/api_operations/update'
7
+ require 'shipstation/api_operations/delete'
7
8
 
8
9
  require 'shipstation/api_resource'
9
10
  require 'shipstation/order'
@@ -0,0 +1,11 @@
1
+ module Shipstation
2
+ module APIOperations
3
+ module Delete
4
+
5
+ def delete object_id, params={}
6
+ Shipstation.request(:delete, "#{class_name.downcase.pluralize}/#{object_id}")
7
+ end
8
+
9
+ end
10
+ end
11
+ end
@@ -1,6 +1,6 @@
1
1
  module Shipstation
2
- module APIOperations
3
- module Update
2
+ module APIOperations
3
+ module Update
4
4
 
5
5
  def update object_id, params={}
6
6
  Shipstation.request(:put, "#{class_name.downcase.pluralize}/#{object_id}", params)
@@ -3,6 +3,7 @@ module Shipstation
3
3
  extend Shipstation::APIOperations::List
4
4
  extend Shipstation::APIOperations::Create
5
5
  extend Shipstation::APIOperations::Retrieve
6
+ extend Shipstation::APIOperations::Delete
6
7
 
7
8
  class << self
8
9
  def create_label params={}
@@ -1,3 +1,3 @@
1
1
  module Shipstation
2
- VERSION = "0.12.4"
2
+ VERSION = "0.13.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shipstation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.4
4
+ version: 0.13.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Dallimore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-11 00:00:00.000000000 Z
11
+ date: 2018-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -35,6 +35,7 @@ files:
35
35
  - Rakefile
36
36
  - lib/shipstation.rb
37
37
  - lib/shipstation/api_operations/create.rb
38
+ - lib/shipstation/api_operations/delete.rb
38
39
  - lib/shipstation/api_operations/list.rb
39
40
  - lib/shipstation/api_operations/retrieve.rb
40
41
  - lib/shipstation/api_operations/update.rb