active_shipping 1.8.4 → 1.8.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: 5712c0da451436687a6aa8d40beac5052f2a70ef
4
- data.tar.gz: 428dfca820554e30e1878f4392f5382a19acf930
3
+ metadata.gz: 1c7ade2aff35261434a4a9fcc35ad03cf7b9d077
4
+ data.tar.gz: 321fa9f5911fa55e862413fc07280b7624563708
5
5
  SHA512:
6
- metadata.gz: a080e2b7592da6cf5650314ce14a91765a3ef3069a068fcbb48f809fcaa1a3be0d2b622544e3740e97153ff380ae944a9c590405ea66cfaab5238e0629b44889
7
- data.tar.gz: 9ededa9fd2d52ddd0cd8d73185c79ddbf857eafd8ae8f728992d778c9f4b20b3cad4dd5d3586798b84d095df22ffa36b134f0391020106adf346791bd0b32a3e
6
+ metadata.gz: 186c310a5a6bb1ddddd3394361f44049c8b6969d1043371ce0955f2c1e75e214f2b9a70b64bf114756679dc1e169d13dc4f8f8afbec1b2cb6741f7ed9fa55953
7
+ data.tar.gz: bfb64ef1fd04b168e6a34cebfd448468dcb895fe9eb025c2203317a96166e5afe44c3fc81d5d47041eae54991ac9e00888b58de7ba3dd4cce4951125c8c640d4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # ActiveShipping CHANGELOG
2
2
 
3
+ ### v1.8.5
4
+ - Fix UPS TrackResponse parsing for missing elements
5
+
3
6
  ### v1.8.4
4
7
  - Add price details to rate estimates
5
8
  - Fix encoding for UPS responses
@@ -848,8 +848,8 @@ module ActiveShipping
848
848
  activities = first_package.css('> Activity')
849
849
  unless activities.empty?
850
850
  shipment_events = activities.map do |activity|
851
- description = activity.at('Status/StatusType/Description').text
852
- type_code = activity.at('Status/StatusType/Code').text
851
+ description = activity.at('Status/StatusType/Description').try(:text)
852
+ type_code = activity.at('Status/StatusType/Code').try(:text)
853
853
  zoneless_time = parse_ups_datetime(:time => activity.at('Time'), :date => activity.at('Date'))
854
854
  location = location_from_address_node(activity.at('ActivityLocation/Address'))
855
855
  ShipmentEvent.new(description, zoneless_time, location, description, type_code)
@@ -1,3 +1,3 @@
1
1
  module ActiveShipping
2
- VERSION = "1.8.4"
2
+ VERSION = "1.8.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_shipping
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.4
4
+ version: 1.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - James MacAulay
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-11-17 00:00:00.000000000 Z
14
+ date: 2016-11-18 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: quantified
@@ -218,7 +218,6 @@ files:
218
218
  - lib/active_shipping/tracking_response.rb
219
219
  - lib/active_shipping/version.rb
220
220
  - lib/certs/eParcel.dtd
221
- - repodb.yml
222
221
  - shipit.rubygems.yml
223
222
  - test/console.rb
224
223
  - test/credentials.yml
data/repodb.yml DELETED
@@ -1,3 +0,0 @@
1
- assification: library
2
- ci_urls:
3
- - https://travis-ci.org/Shopify/active_shipping