cargowise-ts 1.0.0.alpha → 1.0.1

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: fe1ee9be27b1bcabf598fe33f211272e28c811c0
4
- data.tar.gz: f01ad518dfe7cb87ad2a946ea32c6420cf853fa4
3
+ metadata.gz: d0909e4e6c141affc9e715570f6846fa87cccb6d
4
+ data.tar.gz: 04450c8282d4e9be14b2b6a5496ea88245a999d2
5
5
  SHA512:
6
- metadata.gz: 24dd9f259c0e1857dc8cad968952fea3c4a8486ff1ffd23cdd601de253dc5dfa5838877b6e6512b2fe68ff8d3f5c4bcc91ebe27b0cb8fcb48deed1211a5de08e
7
- data.tar.gz: 480d9c2fade10056697175f7e732ba860f14b5953ad410eb5552807010f4783edb50a63c248b8dbb911bb8a045f280ec039e50203e7431419c79960b6012846a
6
+ metadata.gz: a43b0fa990240927196ddd3b93da33b803f628bf2ef25fc4ca8be9bf1033449d2b3a9bee274b04805132b9b52a6107e306f6fd094bfff9e12bc01f86b3b330a3
7
+ data.tar.gz: e25e85d9f5695c4a8aa117ab6ee25d15fa3bb5667022b89a99bd198ed4217deaaf4ef74d6233a418e4b545620ab8ae74cdbc84c503808c08e88e397e26339b8a
File without changes
@@ -1,10 +1,10 @@
1
1
  # coding: utf-8
2
2
 
3
3
  require 'savon'
4
- require 'cargowise/order_search'
5
- require 'cargowise/shipment_search'
4
+ require 'cargowise-ts/order_search'
5
+ require 'cargowise-ts/shipment_search'
6
6
 
7
- module Cargowise
7
+ module CargowiseTS
8
8
 
9
9
  # The starting point for accessing data from your logistics provider. See
10
10
  # the README for usage tips.
@@ -1,8 +1,8 @@
1
1
  # coding: utf-8
2
2
 
3
- require 'cargowise/abstract_result'
3
+ require 'cargowise-ts/abstract_result'
4
4
 
5
- module Cargowise
5
+ module CargowiseTS
6
6
 
7
7
  # Extra shipping detail associated with a Shipment. Not built
8
8
  # directly, but available via the consols() attribute
@@ -1,8 +1,8 @@
1
1
  # coding: utf-8
2
2
 
3
- require 'cargowise/abstract_result'
3
+ require 'cargowise-ts/abstract_result'
4
4
 
5
- module Cargowise
5
+ module CargowiseTS
6
6
 
7
7
  # A document that is associated with a Shipment. Not built
8
8
  # directly, but available via the documents() attribute
@@ -1,8 +1,8 @@
1
1
  # coding: utf-8
2
2
 
3
- require 'cargowise/abstract_result'
3
+ require 'cargowise-ts/abstract_result'
4
4
 
5
- module Cargowise
5
+ module CargowiseTS
6
6
 
7
7
  # An invoice that is associated with a Shipment. Not built
8
8
  # directly, but available via the invoices() attribute
@@ -0,0 +1,44 @@
1
+ # coding: utf-8
2
+
3
+ require 'cargowise-ts/abstract_result'
4
+
5
+ module CargowiseTS
6
+
7
+ # A purchase order that is being shipped to from a supplier to
8
+ # you via a logistics company.
9
+ #
10
+ # Typcially you will setup an arrangement with your account manager
11
+ # where they are sent copies of POs so they can be entered into the
12
+ # database and tracked.
13
+ #
14
+ # All order objects are read-only, see the object attributes to see
15
+ # what information is available.
16
+ #
17
+ # Use class find methods to retrieve order info from your logistics
18
+ # company.
19
+ #
20
+ # Order.find_by_order_number(...)
21
+ # Order.find_incomplete(...)
22
+ # etc
23
+ #
24
+ # MiniOrder - used to capture the embedded order data in a web shipment
25
+ class MiniOrder < AbstractResult
26
+
27
+ attr_reader :order_number, :order_status, :ordered_at
28
+
29
+ def initialize(node)
30
+ @node = node
31
+
32
+ @order_number = text_value("./Order/OrderNumber")
33
+ @order_status = text_value("./Order/Status")
34
+ @ordered_at = text_value("./Order/OrderDate")
35
+ end
36
+
37
+ def to_xml
38
+ @node.to_xml
39
+ end
40
+
41
+ end
42
+
43
+ end
44
+
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
 
3
- require 'cargowise/abstract_result'
4
- require 'cargowise/shipment'
3
+ require 'cargowise-ts/abstract_result'
4
+ require 'cargowise-ts/shipment'
5
5
 
6
- module Cargowise
6
+ module CargowiseTS
7
7
 
8
8
  # A purchase order that is being shipped to from a supplier to
9
9
  # you via a logistics company.
@@ -1,8 +1,8 @@
1
1
  # coding: utf-8
2
2
 
3
- require 'cargowise/order'
3
+ require 'cargowise-ts/order'
4
4
 
5
- module Cargowise
5
+ module CargowiseTS
6
6
 
7
7
  class OrderSearch
8
8
 
File without changes
@@ -1,8 +1,8 @@
1
1
  # coding: utf-8
2
2
 
3
- require 'cargowise/abstract_result'
3
+ require 'cargowise-ts/abstract_result'
4
4
 
5
- module Cargowise
5
+ module CargowiseTS
6
6
 
7
7
  # Extra packing detail associated with a Shipment. Not built
8
8
  # directly, but available via the packings attribute
@@ -1,12 +1,12 @@
1
1
  # coding: utf-8
2
2
 
3
- require 'cargowise/abstract_result'
4
- require 'cargowise/packing'
5
- require 'cargowise/consol'
6
- require 'cargowise/document'
7
- require 'cargowise/invoice'
3
+ require 'cargowise-ts/abstract_result'
4
+ require 'cargowise-ts/packing'
5
+ require 'cargowise-ts/consol'
6
+ require 'cargowise-ts/document'
7
+ require 'cargowise-ts/invoice'
8
8
 
9
- module Cargowise
9
+ module CargowiseTS
10
10
 
11
11
  # A shipment that is currently on its way to you. Could take on a
12
12
  # variety of forms - carton, palet, truck? Could be travelling via
@@ -1,8 +1,8 @@
1
1
  # coding: utf-8
2
2
 
3
- require 'cargowise/shipment'
3
+ require 'cargowise-ts/shipment'
4
4
 
5
- module Cargowise
5
+ module CargowiseTS
6
6
 
7
7
  class ShipmentSearch
8
8
 
File without changes
@@ -13,7 +13,7 @@ module Cargowise
13
13
  end
14
14
 
15
15
  # this lib
16
- require 'cargowise/client'
16
+ require 'cargowise-ts/client'
17
17
 
18
18
  # Make savon/httpi always use Net::HTTP for HTTP requests. It supports
19
19
  # forcing the connection to TLSv1 (needed for OHL)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cargowise-ts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Healy
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-16 00:00:00.000000000 Z
12
+ date: 2016-02-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: andand
@@ -92,19 +92,20 @@ files:
92
92
  - MIT-LICENSE
93
93
  - README.markdown
94
94
  - TODO
95
- - lib/cargowise.rb
96
- - lib/cargowise/abstract_result.rb
97
- - lib/cargowise/client.rb
98
- - lib/cargowise/consol.rb
99
- - lib/cargowise/document.rb
100
- - lib/cargowise/invoice.rb
101
- - lib/cargowise/order.rb
102
- - lib/cargowise/order_search.rb
103
- - lib/cargowise/order_wsdl.xml
104
- - lib/cargowise/packing.rb
105
- - lib/cargowise/shipment.rb
106
- - lib/cargowise/shipment_search.rb
107
- - lib/cargowise/shipment_wsdl.xml
95
+ - lib/cargowise-ts.rb
96
+ - lib/cargowise-ts/abstract_result.rb
97
+ - lib/cargowise-ts/client.rb
98
+ - lib/cargowise-ts/consol.rb
99
+ - lib/cargowise-ts/document.rb
100
+ - lib/cargowise-ts/invoice.rb
101
+ - lib/cargowise-ts/mini_order.rb
102
+ - lib/cargowise-ts/order.rb
103
+ - lib/cargowise-ts/order_search.rb
104
+ - lib/cargowise-ts/order_wsdl.xml
105
+ - lib/cargowise-ts/packing.rb
106
+ - lib/cargowise-ts/shipment.rb
107
+ - lib/cargowise-ts/shipment_search.rb
108
+ - lib/cargowise-ts/shipment_wsdl.xml
108
109
  homepage: https://github.com/patsch/cargowise
109
110
  licenses:
110
111
  - mit
@@ -136,9 +137,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
137
  version: '0'
137
138
  required_rubygems_version: !ruby/object:Gem::Requirement
138
139
  requirements:
139
- - - ">"
140
+ - - ">="
140
141
  - !ruby/object:Gem::Version
141
- version: 1.3.1
142
+ version: '0'
142
143
  requirements: []
143
144
  rubyforge_project:
144
145
  rubygems_version: 2.4.5.1