solidus_tec_estimator 1.0.3 → 1.0.4

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: 7b79cba56f610c4413e114eade5575811b3d9807c4f4b41f7dc2b61beae3419b
4
- data.tar.gz: bd67403d4b0b66386773eb4c101fb5ef2c0b95215bfcd0e67c081cc435ec2e84
3
+ metadata.gz: 3cea9190ff9059d6ba553fcac90d0452323a87f8df52c96b06101717516c95a7
4
+ data.tar.gz: 2bcd8fcdaeeda88b8b83b1dbbad6c1742492884b7d82045447effc37aef92c60
5
5
  SHA512:
6
- metadata.gz: a1b7a5c830056dcd7dc828e7d2c85efa6271b913654ed590400d5735bff145a20402bacbf1a93de462f4dcec3a7bb9e87370c319278bf943879002d2202fedc8
7
- data.tar.gz: 8d365668eb83ed8d7a0836f6d706ea4b14ecde1ea933afe74b43489b319c74d527288813ef424bcd1eeceb025daf64e901085672ac332e763f9c3dff39044076
6
+ metadata.gz: 5fcc90dbeed6618efceee3c250d6d65c5367452dc9f6802ff1645b3294658e418ca5c8ba2893af0455857e15d69a1b666e6a5a9257b6c3a69af182d596421104
7
+ data.tar.gz: 3b016c9cdb534fec3c2a8d82d529b13b7b8967ee7e1c62a7c0c3e52e487de52a27874f87556eaa3104c19c37b1e4a5a3b8646e98ad7e110c7c043f4bb81a23a1
@@ -63,7 +63,7 @@ module SolidusTecEstimator
63
63
  end
64
64
 
65
65
  def ship_address_city
66
- Cep.find_by(codigo_postal: package.order.last_zipcode).try(:localidade) || package.order.ship_address.city
66
+ Cep.find_by(codigo_postal: package.order.ship_address&.zipcode).try(:localidade) || package.order.ship_address.city
67
67
  end
68
68
 
69
69
  def self.calculate_delivery_time rate
@@ -1,3 +1,3 @@
1
1
  module SolidusTecEstimator
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_tec_estimator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ulysses
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-11 00:00:00.000000000 Z
11
+ date: 2024-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core