dji 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dji/order_tracking.rb +3 -3
- data/lib/dji/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c3aa0a694ddd6019718a22f20d31c8e6d099c02
|
4
|
+
data.tar.gz: 7304a4eb8f76bc2a07c74e4c4da763603c815171
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07e0ba9e4fea478c3e0b8d618a548c907bfb82b5c23cf98145cc489f262d94bd57c997bd41d8fd910ff1d6d49d00bf920c78343ae7ce648ee3258434dac49948
|
7
|
+
data.tar.gz: 22512f43a8d4aa3e31e4f9ff32edc1a966979533e9f043888afb2f530d21e30dfaf621901a637c589c17e06ddff963d59921d2f4bdfe1ded92c53ed950eb2345
|
data/lib/dji/order_tracking.rb
CHANGED
@@ -57,8 +57,8 @@ module DJI
|
|
57
57
|
data[:shipping_company] = content.at_xpath('div[5]/span').text
|
58
58
|
data[:tracking_number] = content.at_xpath('div[6]/a').text
|
59
59
|
|
60
|
-
data[:
|
61
|
-
data[:dji_username]
|
60
|
+
data[:shipping_country] = options[:country] if options[:country].present?
|
61
|
+
data[:dji_username] = options[:dji_username] if options[:dji_username].present?
|
62
62
|
|
63
63
|
print_tracking_details(data)
|
64
64
|
data
|
@@ -85,7 +85,7 @@ module DJI
|
|
85
85
|
puts "Order Number : #{data[:order_number]}"
|
86
86
|
puts "Total : #{data[:total]}"
|
87
87
|
puts "Payment Status : #{data[:payment_status]}"
|
88
|
-
puts "Country : #{data[:
|
88
|
+
puts "Country : #{data[:shipping_country]}" if data[:shipping_country]
|
89
89
|
puts "Shipping Status : #{data[:shipping_status]}"
|
90
90
|
puts "Shipping Company : #{data[:shipping_company]}"
|
91
91
|
puts "Tracking Number : #{data[:tracking_number]}"
|
data/lib/dji/version.rb
CHANGED