magic_addresses 0.0.13 → 0.0.14

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
  SHA1:
3
- metadata.gz: 04b5e9909e1b2e874ca012a22f9ec278cb2a6c4f
4
- data.tar.gz: dfa7e10310297100ff901bf1abf04dacce29eeee
3
+ metadata.gz: 538e746ba0ba80f848ed94583b01386b48dc0bb7
4
+ data.tar.gz: b297ed07967a01269f7ccefc1af94779980baaa7
5
5
  SHA512:
6
- metadata.gz: 0d3f5fb35f5dab3de3f50699581e82c117bc591dd5a14f63fa2f1e23115593146a11d374b8c270721801d3112fb31d3ebddd5a974ab1b4b620ee49af8cb4e4a1
7
- data.tar.gz: 3e73a954d8c9e3bd148ba8cb876c0ade5a35f5764f2c75c88bad454120b2c3efe65d04f92d20edf42c0d71c79de4394ba17f08974989d997b3b268d5915916e8
6
+ metadata.gz: 45656f66df6411d2c79f43efa01ba1fd9654005aba811690660b89e6fbf1fec12e02a6e3453cd685c980b35a06aa02b39f378ac2ef050e53fd49e4f82d43bea9
7
+ data.tar.gz: 8b195413d73f980401beeb910ba8587c80878fc1304bf86ace34e67f921bfc0b4106825fbeef80ad3e541f27b37e1dfd8f95a4d12497a9a0533c0f7c700e0f51
@@ -21,7 +21,7 @@ class UpdateMagicAddresses < ActiveRecord::Migration
21
21
  if that.owner_type.present? && that.owner_id.present? && "#{that.owner_type}".constantize.find(that.owner_id.to_i)
22
22
  MagicAddresses::Addressible.create!( address_id: that.id, owner_type: that.owner_type, owner_id: that.owner_id, default: that.default )
23
23
  end
24
- sames = MagicAddresses::Address.where(latitude: that.latitude, longitude: that.longitude, zipcode: that.postal_code, street_number: that.street_number )
24
+ sames = MagicAddresses::Address.where(latitude: that.latitude, longitude: that.longitude, zipcode: that.postalcode, street_number: that.street_number )
25
25
  sames.each do |this|
26
26
  unless this == that
27
27
  MagicAddresses::Addressible.create!( address_id: that.id, owner_type: this.owner_type, owner_id: this.owner_id, default: this.default )
@@ -1,3 +1,3 @@
1
1
  module MagicAddresses
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
@@ -21,7 +21,7 @@ class UpdateMagicAddresses < ActiveRecord::Migration
21
21
  if that.owner_type.present? && that.owner_id.present? && "#{that.owner_type}".constantize.find(that.owner_id.to_i)
22
22
  MagicAddresses::Addressible.create!( address_id: that.id, owner_type: that.owner_type, owner_id: that.owner_id, default: that.default )
23
23
  end
24
- sames = MagicAddresses::Address.where(latitude: that.latitude, longitude: that.longitude, zipcode: that.postal_code, street_number: that.street_number )
24
+ sames = MagicAddresses::Address.where(latitude: that.latitude, longitude: that.longitude, zipcode: that.postalcode, street_number: that.street_number )
25
25
  sames.each do |this|
26
26
  unless this == that
27
27
  MagicAddresses::Addressible.create!( address_id: that.id, owner_type: this.owner_type, owner_id: this.owner_id, default: this.default )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic_addresses
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Torsten Wetzel