magic_addresses 0.0.41 → 0.0.42
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 +8 -8
- data/lib/app/models/magic_addresses/address.rb +11 -0
- data/lib/magic_addresses/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
YWM1OGVmYWMxNzU3MDQ1MDY5ZjA0ZjExYzYxYzc0NDczNTA4OTZjZQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZTU0YjRmZGE3NjY4NDZkNGRkMjFmNWYwY2EwZWNmYjVlMTFjNDBkNA==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZjFkOGIzYWYxYmVhNWU2NTUzYWRkNWIyNzgzZjNiODcwNTRhZWFlZGI2MzFl
|
|
10
|
+
ODhjY2IwOTlkZTc0ZGE5YTJlNjQ4ODlmM2U0MmJiYzJiNmFmNTk4ZDAwYmU5
|
|
11
|
+
ZDRiNzFkMGM5MTdmODczNTdlNWUyMzQzNTBjOGEyNDIyNjcwOTM=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NDA5MDdmMGZkNDBkYTY0N2ZmY2E4OThhMWRjZWFkMzIxNWEyZWQ5ZGU5M2Fi
|
|
14
|
+
MzM0MTIxODU0MWE3YzkzYjE1NjNkNDBhODNiZTgzNTAzMWVhNzZiNWRhMjlh
|
|
15
|
+
ZmNhY2M4OTc0ODIyMDBlNjZmYzg3ZjczOTM1MGY2YmYzYTVjOWI=
|
|
@@ -126,6 +126,10 @@ class MagicAddresses::Address < ActiveRecord::Base
|
|
|
126
126
|
addressibles.map { |that| ::MagicAddresses::OwnerProxy.new( that ) }
|
|
127
127
|
end
|
|
128
128
|
|
|
129
|
+
def touch_owners
|
|
130
|
+
addressibles.map { |that| that.owner.touch }
|
|
131
|
+
end
|
|
132
|
+
|
|
129
133
|
def trigger_build_address_associations
|
|
130
134
|
build_address_associations()
|
|
131
135
|
end
|
|
@@ -147,6 +151,7 @@ private
|
|
|
147
151
|
end
|
|
148
152
|
end
|
|
149
153
|
|
|
154
|
+
|
|
150
155
|
def build_address_associations
|
|
151
156
|
dev_log "triggered A D D R E S S - B U I L D E R ! - - #{self.street} #{self.number} #{self.city} #{self.zipcode}"
|
|
152
157
|
|
|
@@ -192,6 +197,9 @@ private
|
|
|
192
197
|
dev_log "kill - #{x.address_id}"
|
|
193
198
|
end
|
|
194
199
|
self.destroy
|
|
200
|
+
|
|
201
|
+
## inform address owners
|
|
202
|
+
that.touch_owners
|
|
195
203
|
else
|
|
196
204
|
dev_log " geo_data is present !!!"
|
|
197
205
|
self.street_default = geo_data.street if geo_data && geo_data.street
|
|
@@ -209,6 +217,9 @@ private
|
|
|
209
217
|
end
|
|
210
218
|
|
|
211
219
|
self.save
|
|
220
|
+
|
|
221
|
+
## inform address owners
|
|
222
|
+
self.touch_owners
|
|
212
223
|
end
|
|
213
224
|
|
|
214
225
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: magic_addresses
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.42
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Torsten Wetzel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-07-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|