valken-shipping 1.1.0 → 1.1.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57a7395b28d67876810628798a91b4749cbabb1f6d441dcfd0dac802c3ceebbb
|
4
|
+
data.tar.gz: 5fd87c3d631dc6775d19b8264cf7011d4b72ae8c6faef59886fcb4bd9b06cb2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e6b0c57e20a5f1ba8a654c31e7ef25415410e0fb5ece1f5270b74fdccfda2ad83cd4a90df9d3f804c68c2a70edfbbb032ac57499530623232e814a9980602e9
|
7
|
+
data.tar.gz: f7c17c654347b8283517945e19a7ccc9e4eac3bac25679ef594d2e3f7a754bb673ea2dcd6d1e74a6da952de0b2ba73fe21d618cf969b8bfec722f08aff43cfb9
|
@@ -57,6 +57,7 @@ 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
|
+
return [] if ups.blank? && fedex.blank?
|
60
61
|
if ups.blank? || ups.price > fedex.price
|
61
62
|
return get_fedex_data
|
62
63
|
elsif fedex.blank? || ups.price < fedex.price
|
@@ -124,7 +125,7 @@ module Workarea
|
|
124
125
|
packaging = Packaging.new(order, shipping)
|
125
126
|
return [] if shipping.address.blank? || packaging.packages.blank?
|
126
127
|
shipping_option = carrier || Workarea.config.gateways.shipping
|
127
|
-
|
128
|
+
|
128
129
|
origin = ActiveShipping::Location.new(Workarea.config.shipping_origin)
|
129
130
|
begin
|
130
131
|
response = shipping_option.find_rates(
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: valken-shipping
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sushmitha02
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|