caboose-rets 0.1.83 → 0.1.84
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 872143b4ba1c40bcabd88f49639551868861154c5e8e65a64e922445aeef7df4
|
4
|
+
data.tar.gz: c42bef34028c03d39cdd2ddc9445e8921eecbb3bd8eb293c135f66dd418fea8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61bbc539b990cc6ca36cabf9bba8ac68424242f4edc2ef60c5f08686038ff38e336867fd4d4de46173965aa65e9b0d88d59a6bf4d803e6924e5132ed6d287517
|
7
|
+
data.tar.gz: 3a9727d2138abe12815d9dde792cdad8f2737aefee8e3141f07834474d97a008457ba910f6ae068851d6e61f80724eda482b10baef9e7cb069f6911c192ed8ed
|
@@ -88,6 +88,7 @@ class CabooseRets::Property <ActiveRecord::Base
|
|
88
88
|
# self.expenses_utility = data['ExpensesUtility']
|
89
89
|
self.exterior_features = data['ExteriorFeatures']
|
90
90
|
self.fireplace = data['FireplaceYN']
|
91
|
+
self.fireplace_features = data['FireplaceFeatures']
|
91
92
|
# self.flood_plain = data['FloodPlain']
|
92
93
|
self.flooring = data['Flooring']
|
93
94
|
# self.foreclosure_sale_date = data['ForeclosureSaleDate']
|
@@ -107,7 +108,7 @@ class CabooseRets::Property <ActiveRecord::Base
|
|
107
108
|
# self.income_rental = data['GrossIncome']
|
108
109
|
self.interior_features = data['InteriorFeatures']
|
109
110
|
self.land_features_extras = data['LotFeatures']
|
110
|
-
self.latitude = data['Latitude'].blank? ?
|
111
|
+
self.latitude = data['Latitude'].blank? ? self.latitude : data['Latitude'].to_f
|
111
112
|
# self.landscaping = data['Landscaping']
|
112
113
|
self.laundry = data['LaundryFeatures']
|
113
114
|
self.legal_description = data['TaxLegalDescription']
|
@@ -124,8 +125,8 @@ class CabooseRets::Property <ActiveRecord::Base
|
|
124
125
|
self.list_office_mls_id = data['ListOfficeMlsId']
|
125
126
|
self.list_office_name = data['ListOfficeName']
|
126
127
|
self.list_office_phone = data['ListOfficePhone']
|
127
|
-
self.list_price = data['ListPrice'].blank? ?
|
128
|
-
self.longitude = data['Longitude'].blank? ?
|
128
|
+
self.list_price = data['ListPrice'].blank? ? self.list_price : data['ListPrice'].to_i
|
129
|
+
self.longitude = data['Longitude'].blank? ? self.longitude : data['Longitude'].to_f
|
129
130
|
self.lot_description = data['LotFeatures']
|
130
131
|
self.lot_dimensions = data['LotSizeDimensions']
|
131
132
|
self.lot_dim_source = data['LotDimensionsSource']
|
@@ -198,8 +198,13 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
|
|
198
198
|
self.import('Property', "(ListingId=#{mls_id})")
|
199
199
|
p = CabooseRets::Property.where(:mls_number => mls_id.to_s).first
|
200
200
|
if p != nil
|
201
|
-
self.download_property_images(p) if save_images
|
202
|
-
self.
|
201
|
+
self.download_property_images(p) if save_images == true
|
202
|
+
self.log3(nil,nil,"lat: #{p.latitude}")
|
203
|
+
self.log3(nil,nil,"lng: #{p.longitude}")
|
204
|
+
if (p.latitude.blank? || p.longitude.blank?)
|
205
|
+
self.log3(nil,nil,"updating coords")
|
206
|
+
self.update_coords(p)
|
207
|
+
end
|
203
208
|
else
|
204
209
|
self.log3(nil,nil,"No Property associated with #{mls_id}")
|
205
210
|
end
|
@@ -162,6 +162,7 @@ class CabooseRets::Schema < Caboose::Utilities::Schema
|
|
162
162
|
[ :expenses_utility , :text],
|
163
163
|
[ :exterior_features , :text],
|
164
164
|
[ :fireplace , :text],
|
165
|
+
[ :fireplace_features , :string ],
|
165
166
|
[ :flood_plain , :text],
|
166
167
|
[ :flooring , :text],
|
167
168
|
[ :foreclosure_sale_date , :text],
|
data/lib/caboose_rets/version.rb
CHANGED
data/lib/tasks/caboose_rets.rake
CHANGED
@@ -154,7 +154,7 @@ namespace :caboose_rets do
|
|
154
154
|
task :reimport_property_images => :environment do
|
155
155
|
props = CabooseRets::Property.all
|
156
156
|
props.each do |p|
|
157
|
-
CabooseRets::RetsImporter.
|
157
|
+
CabooseRets::RetsImporter.log3("Property",p.mls_number,"Reimporting images for #{p.mls_number}...")
|
158
158
|
CabooseRets::Media.where(:media_mui => p.mls_number, :media_type => 'Photo').destroy_all
|
159
159
|
CabooseRets::RetsImporter.download_property_images(p)
|
160
160
|
end
|
@@ -170,7 +170,7 @@ namespace :caboose_rets do
|
|
170
170
|
|
171
171
|
desc "Single Import Test"
|
172
172
|
task :import_one => :environment do
|
173
|
-
CabooseRets::RetsImporter.import_properties('
|
173
|
+
CabooseRets::RetsImporter.import_properties('131136',false)
|
174
174
|
end
|
175
175
|
|
176
176
|
desc "Purge rets data"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-rets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.84
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: caboose-cms
|