valken-shipping 1.1.1 → 1.1.2
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 14b667ecf912e540effbb2b13c41a18d32022d9468f06645ea7ef521c03d7188
|
|
4
|
+
data.tar.gz: 9b97b46ad99cc5abf8c8eb6f7037f6fe9313e5a12039dc8485beeb4ee20290ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f53ed14462bf4cddf96725b82b902171d1ef96aa23bfe51dba53d2ae14a9adfb05e5c537b658075d6933923998fb240dde077b78fbdb82c2e9e5a62f5346edf1
|
|
7
|
+
data.tar.gz: bfcfad206f8656f9cf38ba0c581b0e74968d669ff0f7d7fd21aad7a169f006fb886c8ad24278213a59645dbc08e0c03b4690520cb85e6d462067e95d87d8b149
|
|
@@ -57,12 +57,17 @@ module Workarea
|
|
|
57
57
|
ups = get_ups_data.sort_by(&:price).first
|
|
58
58
|
fedex = get_fedex_data.sort_by(&:price).first
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
if ups.present? && fedex.present?
|
|
61
|
+
if ups.price > fedex.price
|
|
62
|
+
return get_fedex_data
|
|
63
|
+
elsif ups.price < fedex.price
|
|
64
|
+
return get_ups_data
|
|
65
|
+
else
|
|
66
|
+
return get_ups_data
|
|
67
|
+
end
|
|
68
|
+
elsif ups.blank?
|
|
62
69
|
return get_fedex_data
|
|
63
|
-
elsif fedex.blank?
|
|
64
|
-
return get_ups_data
|
|
65
|
-
elsif ups.price == fedex.price
|
|
70
|
+
elsif fedex.blank?
|
|
66
71
|
return get_ups_data
|
|
67
72
|
else
|
|
68
73
|
return []
|