effective_addresses 1.8.5 → 1.8.6
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 +5 -5
- data/app/models/concerns/acts_as_addressable.rb +2 -0
- data/lib/effective_addresses/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 16c334b39d46959ee4075c80627675a6a65ef8cc7810bfbcd887fc3a6746803a
|
|
4
|
+
data.tar.gz: 1dc9024d1f07d0b6d9b0ab998d9433cc5332c554026c47a5bc70c858f4532f4b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 90da29758f3cde3766a4d0000b04e586ba4796e647cfabe3cfd6429dadf21ff87fd05a4a8cc907da22951865dd7e3c45651cbae7661d5ea3677ef5fd849b0ae0
|
|
7
|
+
data.tar.gz: 7b36d586e4e89ac1af6a485a4389e347b4f6df9e72a2131541f866d39bb7af24f5343b33f67b6de5cde899b35282fedfa1e738b2a20dbfb5ce1dd4abdaa66b16
|
|
@@ -91,6 +91,7 @@ module ActsAsAddressable
|
|
|
91
91
|
return effective_address(category) if address == effective_address(category)
|
|
92
92
|
|
|
93
93
|
(self.addresses.build).tap do |existing|
|
|
94
|
+
existing.addressable = self
|
|
94
95
|
existing.category = category.to_s
|
|
95
96
|
existing.full_name = address.full_name
|
|
96
97
|
existing.address1 = address.address1
|
|
@@ -117,6 +118,7 @@ module ActsAsAddressable
|
|
|
117
118
|
return effective_address(category) if address == effective_address(category)
|
|
118
119
|
|
|
119
120
|
(effective_address(category) || self.addresses.build).tap do |existing|
|
|
121
|
+
existing.addressable = self
|
|
120
122
|
existing.category = category.to_s
|
|
121
123
|
existing.full_name = address.full_name
|
|
122
124
|
existing.address1 = address.address1
|
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.8.
|
|
4
|
+
version: 1.8.6
|
|
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:
|
|
11
|
+
date: 2019-12-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -103,8 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
103
103
|
- !ruby/object:Gem::Version
|
|
104
104
|
version: '0'
|
|
105
105
|
requirements: []
|
|
106
|
-
|
|
107
|
-
rubygems_version: 2.4.5.1
|
|
106
|
+
rubygems_version: 3.0.3
|
|
108
107
|
signing_key:
|
|
109
108
|
specification_version: 4
|
|
110
109
|
summary: Extend any ActiveRecord object to have one or more named addresses. Includes
|