effective_addresses 1.11.7 → 1.11.8

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: 8929d0371e6779c339f2701448d8319eb2998b3c7e6da385e1787d26eb1cf0cb
4
- data.tar.gz: 0d0d3c779fb63e6004086bb4c1f93db87bae0ca9d3bb5494fc1d5f65cdb3af09
3
+ metadata.gz: 2afcf38cba25b3ca21830e103506724b1ae36553cdaaae37af58166a1a695408
4
+ data.tar.gz: 5937b37e80e35d65e230e790ef4a9064ddc5847eeaeed9e27d21d55516d9130b
5
5
  SHA512:
6
- metadata.gz: 766dfca3b9825eb261ab080082c63d63f4a819304724fc646f794df237ebff44eaff2a5b10ea68101b525970011a42e6212f467298b7dbf176e4d71891631a66
7
- data.tar.gz: 0d78e32b25f86cee250adb4a2eb75cf54d21b8d66503c5e1374247b0219953dd8fc32e736a82cb80938dd8776ee09a4e34d61ab33f8fd6d6b1483e15e00ab4e4
6
+ metadata.gz: 02ac0e8a292633a82f4adfce8e2e4198d82f7336f4a9f96277482ed87bc73a685f0c46e329d898dec181a48da2accde2746a6ec8ac8881d7878ae09b7af4db09
7
+ data.tar.gz: 9f85db355e7e9a4f458ab4929089a95afb354ba505ba0ad58cfece65a8b89f493e261bdc6b2cf44a10ad9308f435a2c5f8a3dcf95b29db0530e258b111b38612
@@ -95,6 +95,9 @@ module ActsAsAddressable
95
95
  address = effective_address('billing')
96
96
  end
97
97
 
98
+ # Same as billing was selected, but there is no billing address to copy from yet
99
+ return if address.blank?
100
+
98
101
  # Prevents duplicates from being created
99
102
  return effective_address(category) if address == effective_address(category)
100
103
 
@@ -124,6 +127,9 @@ module ActsAsAddressable
124
127
  address = effective_address('billing')
125
128
  end
126
129
 
130
+ # Same as billing was selected, but there is no billing address to copy from yet
131
+ return if address.blank?
132
+
127
133
  # This wouldn't create duplicates anyway
128
134
  return effective_address(category) if address == effective_address(category)
129
135
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveAddresses
2
- VERSION = '1.11.7'.freeze
2
+ VERSION = '1.11.8'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_addresses
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.7
4
+ version: 1.11.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-19 00:00:00.000000000 Z
11
+ date: 2026-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails