reso 0.1.6.6 → 0.1.6.7

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: 48fe3139f5c00f4b4c98237f83d99a8effc9bd13
4
- data.tar.gz: 91b5c7d9625448632434255f7c8378311469a4c1
3
+ metadata.gz: bc989a01b7e0fe2898635a7210ef1b9f6b200606
4
+ data.tar.gz: fda4e9ce15b131922c0181f621d560b1db71e9e7
5
5
  SHA512:
6
- metadata.gz: f5b95dea35d99837c4312f704b6f8e20d2ce48c5a114ab8c52ff5996f71c74975207ea2ab6eb75cd431146b918d23170a7e920cc4d041e740a2796f24be9b207
7
- data.tar.gz: 3344eeac6bae624efa9f09a9c94db208c2ffc31a827f1a23cf14abbdc6518dd57783313de354eb050b4afb53498966658bc57ec283e801ca6966bf7bc3a74381
6
+ metadata.gz: 339ef8b6b9c0c24abf2783f4fea5086946ddbee9eb9001a02f6b7fc05ec90be8e5d436bf36cbfaf71bd0df31ca3ee67db550e0296786aad699b784be602e2132
7
+ data.tar.gz: cd85eaa3da51c3ead0554d5cd5efc1b2e36d136dc6f1baed6dc7fd6ee8b8c758b7df8fc2953aa91cb412dbefbc9ac958fb97353a37cf3cec13cddebc601beed0
@@ -1,7 +1,7 @@
1
1
  class Address < ActiveRecord::Base
2
2
 
3
- belongs_to :address_type
4
- belongs_to :addressable, polymorphic: true
3
+ belongs_to :address_type, optional: true
4
+ belongs_to :addressable, polymorphic: true, optional: true
5
5
 
6
6
  before_save :validate_and_sanitize_us_address
7
7
 
@@ -1,6 +1,6 @@
1
1
  class Expense < ActiveRecord::Base
2
- belongs_to :expense_category
3
- belongs_to :currency_period
4
- belongs_to :listing
2
+ belongs_to :expense_category, optional: true
3
+ belongs_to :currency_period, optional: true
4
+ belongs_to :listing, optional: true
5
5
 
6
6
  end
@@ -1,21 +1,21 @@
1
1
  class Listing < ActiveRecord::Base
2
2
 
3
- belongs_to :architecture_style
4
- belongs_to :brokerage
5
- belongs_to :builder
6
- belongs_to :community
7
- belongs_to :county
8
- belongs_to :foreclosure_status
9
- belongs_to :franchise
10
- belongs_to :import
11
- belongs_to :listing_category
12
- belongs_to :listing_provider
13
- belongs_to :listing_status
14
- belongs_to :multiple_listing_service
15
- belongs_to :property_sub_type
16
- belongs_to :property_type
17
- belongs_to :office
18
- belongs_to :zoning_type
3
+ belongs_to :architecture_style, optional: true
4
+ belongs_to :brokerage, optional: true
5
+ belongs_to :builder, optional: true
6
+ belongs_to :community, optional: true
7
+ belongs_to :county, optional: true
8
+ belongs_to :foreclosure_status, optional: true
9
+ belongs_to :franchise, optional: true
10
+ belongs_to :import, optional: true
11
+ belongs_to :listing_category, optional: true
12
+ belongs_to :listing_provider, optional: true
13
+ belongs_to :listing_status, optional: true
14
+ belongs_to :multiple_listing_service, optional: true
15
+ belongs_to :property_sub_type, optional: true
16
+ belongs_to :property_type, optional: true
17
+ belongs_to :office, optional: true
18
+ belongs_to :zoning_type, optional: true
19
19
 
20
20
  has_one :address, as: :addressable, dependent: :destroy
21
21
 
@@ -1,5 +1,5 @@
1
1
  class ListingProvider < ActiveRecord::Base
2
- belongs_to :source_provider_category
2
+ belongs_to :source_provider_category, optional: true
3
3
 
4
4
  has_many :listings
5
5
 
@@ -1,5 +1,5 @@
1
1
  class Participant < ActiveRecord::Base
2
- belongs_to :participant_role
2
+ belongs_to :participant_role, optional: true
3
3
  has_many :participant_licenses
4
4
  has_and_belongs_to_many :listings
5
5
  end
@@ -1,4 +1,4 @@
1
1
  class Price < ActiveRecord::Base
2
- belongs_to :currency_period
3
- belongs_to :listing
2
+ belongs_to :currency_period, optional: true
3
+ belongs_to :listing, optional: true
4
4
  end
@@ -1,4 +1,4 @@
1
1
  class Room < ActiveRecord::Base
2
- belongs_to :room_category
3
- belongs_to :listing
2
+ belongs_to :room_category, optional: true
3
+ belongs_to :listing, optional: true
4
4
  end
@@ -1,3 +1,3 @@
1
1
  class School < ActiveRecord::Base
2
- belongs_to :school_category
2
+ belongs_to :school_category, optional: true
3
3
  end
@@ -1,3 +1,3 @@
1
1
  class Tax < ActiveRecord::Base
2
- belongs_to :listing
2
+ belongs_to :listing, optional: true
3
3
  end
@@ -1,3 +1,3 @@
1
1
  class Video < ListingMedia
2
- belongs_to :listing
2
+ belongs_to :listing, optional: true
3
3
  end
@@ -1,3 +1,3 @@
1
1
  class VirtualTour < ListingMedia
2
- belongs_to :listing
2
+ belongs_to :listing, optional: true
3
3
  end
@@ -36,6 +36,7 @@ module Reso
36
36
  taxes
37
37
  join_tables].each do |name|
38
38
  migration_template "create_#{name}.rb", "db/migrate/create_#{name}.rb"
39
+ sleep 0.1
39
40
  end
40
41
  end
41
42
 
@@ -1,3 +1,3 @@
1
1
  module Reso
2
- VERSION = "0.1.6.6"
2
+ VERSION = "0.1.6.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6.6
4
+ version: 0.1.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Edlund
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-20 00:00:00.000000000 Z
11
+ date: 2016-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake