valken-shipping 0.1.2 → 0.1.3

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: 43be0c3377650e491d20334c5b2bb65af7e40cd4f6ba5ec675f6c10aec1adafa
4
- data.tar.gz: 5be4b590612fc8caf253c95a06059821c2e7f87857a67f585a35891fd769798e
3
+ metadata.gz: e947a87def474d5ba702c0963f98e69ce19088a95e642cfe28ed987673205a3d
4
+ data.tar.gz: 6c2f25080c9630ef02070925eb8187c7000449b92fdede1ddab22031e0510341
5
5
  SHA512:
6
- metadata.gz: 2c5aa7c155d20f26594721f7ccf0fa34535abcaa6b7c28932224005e6198ea75dedfd5bb1293c5f9924281d70706093d33061274bdaef9533bec87344ff9f952
7
- data.tar.gz: 48cc25d02a6ac647118bbbd2a33b02ab4d91abbf3527480e20e92422529191bc8c82d905d1fa935b932f376e5d507f81029d8cf0b37d9f809d4a5c24026159ed
6
+ metadata.gz: 101c999bba01649e3fd520d0c342970790e3861e27d924d856c3b50756d29ded84dba3178214b0a295da5bfb8375e5fb2ada8ed7d94671bcbb1f253a70ef5960
7
+ data.tar.gz: 6db8d96eef213778ca5db2cea6baa70f729c2e8e68d186bc256e3e32f9279fd393b15866f4a53078c7db7b4c0e17cffcb931b0b6bad7a93db6082b1d40983190
@@ -47,6 +47,7 @@ module Workarea
47
47
  def get_none_data
48
48
  ups = get_ups_data.first
49
49
  fedex = get_fedex_data.first
50
+ return [] unless ups || fedex
50
51
  if ups.price > fedex.price
51
52
  return get_fedex_data
52
53
  else
@@ -1,5 +1,5 @@
1
1
  module Valken
2
2
  module Shipping
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
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: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - sushmitha02
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-24 00:00:00.000000000 Z
11
+ date: 2020-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails