shipwire 0.0.4 → 0.0.5

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: 1348e8aae08af3f232e56c5fcf5844acad8f15e4
4
- data.tar.gz: dd1d6868cede2ddb7a75ecc75222c546b780f449
3
+ metadata.gz: 390d86197ecf6da646f89f4a122ec6b2ce7bda5b
4
+ data.tar.gz: 5045260cd97ef4beeca3ff155afd44b457d14696
5
5
  SHA512:
6
- metadata.gz: 0c47f05e714a16a146258620f825cc08ac70099915fc0ba47379c1db133d8896bcc85e31b1e16ed02699590658bcc08fb07377bbc953b10d3636b8f9dbed10cb
7
- data.tar.gz: 666aaec1cfcf5261131d1b5135cafdac9334d415f1254087ad0217aa97ba201c92fbee3bff0fdd71a38e1d2fb9d64f9d9bfe6015b035dfb0f91a0894e71407d0
6
+ metadata.gz: 52d11f15184c2f13719d341ab306ad8ad6fc78aacbd47eb74c061d2d899345939eb3d55dd1b11ff6db03c1955716e72ad20062748d20a368c709b5f24879a45d
7
+ data.tar.gz: 1de44e2d241d6d1ebbe75ea14661784c84493a4e6e74a68dc4fa01c099576aedcbeb59ee9674fb3bf08cd9f91672bda560226d4e70e229fac2c27be6704f79dc
data/README.md CHANGED
@@ -26,8 +26,11 @@ Get a Shipwire sandbox account for development & testing:
26
26
  Your credentials, endpoint, and sever environment variables need to be set:
27
27
 
28
28
  SHIPWIRE_USERNAME
29
+
29
30
  SHIPWIRE_PASSWORD
31
+
30
32
  SHIPWIRE_SERVER
33
+
31
34
  SHIPWIRE_ENDPOINT
32
35
 
33
36
  SHIPWIRE_SERVER is either `Test` or `Production`. SHIPWIRE_ENDPOINT is one of their API hosts:
@@ -31,6 +31,7 @@ module Shipwire
31
31
  carrier_code = quote.xpath('CarrierCode').text
32
32
  cost = quote.xpath('Cost').text.to_f
33
33
  subtotals = quote.xpath('Subtotals')
34
+ delivery_estimate = quote.xpath('DeliveryEstimate')
34
35
 
35
36
  freight = 0.0
36
37
  insurance = 0.0
@@ -50,6 +51,11 @@ module Shipwire
50
51
  end
51
52
  end
52
53
 
54
+ if delivery_estimate != nil
55
+ minimum = delivery_estimate.xpath('Minimum')
56
+ maximum = delivery_estimate.xpath('Maximum')
57
+ end
58
+
53
59
  @shipping_quotes << {
54
60
  service: service,
55
61
  carrier_code: carrier_code,
@@ -60,6 +66,10 @@ module Shipwire
60
66
  insurance: insurance,
61
67
  packaging: packaging,
62
68
  handling: handling
69
+ },
70
+ delivery_estimate: {
71
+ minimum: minimum == nil ? '' : minimum.text,
72
+ maximum: maximum == nil ? '' : maximum.text
63
73
  }
64
74
  }
65
75
  end
@@ -1,3 +1,3 @@
1
1
  module Shipwire
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["billr578@gmail.com"]
11
11
  spec.summary = %q{Exchange data with Shipwire fullfillment}
12
12
  spec.description = %q{Provides a wrapper for API calls to Shipwire fullfillment}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/morbid-enterprises/shipwire"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shipwire
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bill Rowell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-12 00:00:00.000000000 Z
11
+ date: 2014-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -195,7 +195,7 @@ files:
195
195
  - spec/shipwire/shipping_rate_spec.rb
196
196
  - spec/shipwire/tracking_spec.rb
197
197
  - spec/spec_helper.rb
198
- homepage: ''
198
+ homepage: https://github.com/morbid-enterprises/shipwire
199
199
  licenses:
200
200
  - MIT
201
201
  metadata: {}