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: dee0afe2ade7c20a2c998b526101d102663d7bedce33a88917e651848f3295e3
4
- data.tar.gz: 2b278db87909a3626b6bd4fe73bdd0ac3e20e13c49d85a0503ad05250f45fdd9
3
+ metadata.gz: 57a7395b28d67876810628798a91b4749cbabb1f6d441dcfd0dac802c3ceebbb
4
+ data.tar.gz: 5fd87c3d631dc6775d19b8264cf7011d4b72ae8c6faef59886fcb4bd9b06cb2f
5
5
  SHA512:
6
- metadata.gz: d336d5a379d8db24fa4bee2837e2f08fe0e7b18b6283d411370098cf2ae6bb07cc05a518e1b305bfac82d5e5f24071b2ba0154791b8dac41b5c642015d0675e6
7
- data.tar.gz: 37b92d0ef1657ceb71af9e014151fc23d5ee4daf0677536206a7371ab3d25ad58499a940728db711ab0cc7229b9d2b325ddc3d5f9b63bd9a34e1eceafba285e2
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(
@@ -1,5 +1,5 @@
1
1
  module Valken
2
2
  module Shipping
3
- VERSION = '1.1.0'
3
+ VERSION = '1.1.1'
4
4
  end
5
5
  end
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.0
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-29 00:00:00.000000000 Z
11
+ date: 2020-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails