dji 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2d9e016ceb26f51f645ccae0f316ed456e789e4
4
- data.tar.gz: 43ba93d5c3bdb0f660e3e40d8b6565445823176e
3
+ metadata.gz: fc6c9f103a62941a3fc1d6f1ab95a7bbaf13979c
4
+ data.tar.gz: be663f0e3cafa81200858c895a5aec049c2547a3
5
5
  SHA512:
6
- metadata.gz: ea7aae856dba93e28f40a99809b79547df682ebb6ac0d56845dcc4e7e7e5ceba2c37a973aac78e1bcda4092e01144bad7b7f8aa05afeeee437a019a041883865
7
- data.tar.gz: 6b92441a30fcf3758190609cc263798c3bb7f397d99e6480d6eefd46c4b32fc4a036cdfeb8e91a4ac5652273713e61e5d90b20c452eb860f5b1fe920ffcb7152
6
+ metadata.gz: 24eea0e1504234ab514f0b02ed1d1676c5867fcbdfd8b39be80a9003ffdd3312d0f4e58067d5723b9f7063b8365468211b72cc8aa3f435df2f4c0808297d53af
7
+ data.tar.gz: e02d5b66e27e6ef28ff3387760eeeffad4782973c7cdf390944ab365f130756ca05f41abb641e407e011311ad68218ca4be94c61dbdad8dad2db3c4312330c3c
@@ -35,8 +35,10 @@ module DJI
35
35
  puts item.inspect
36
36
  shipment = Shipment.new
37
37
  shipment.waybill = item['id']
38
- shipment.delivery_code = item['delivery']['code']
39
- shipment.delivery_status = item['delivery']['status']
38
+ if item['delivery'].present?
39
+ shipment.delivery_code = item['delivery']['code']
40
+ shipment.delivery_status = item['delivery']['status']
41
+ end
40
42
  shipment.destination = item['destination']['value']
41
43
  shipment.origin = item['origin']['value']
42
44
  shipment.estimated_delivery_date = Date.parse(item['edd']['date'])
data/lib/dji/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DJI
2
- VERSION = '0.5.3'
2
+ VERSION = '0.5.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dji
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Elliott