caboose-rets 0.1.198 → 0.1.200

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7031da9a57011b4874427b3a075e8fae1ca69eb7891b11bbbaa86355cc8f6b6
4
- data.tar.gz: 458bc2ef48b75e7c9818195a486696281ef6b0d24b4ddb52c320f5ba4f37cd82
3
+ metadata.gz: e58a15caa7ab2646f05b78313f01811c7ce5a7325c65d0ae365c0e55a70a4b82
4
+ data.tar.gz: 0dee44f4abd7a2253da39c0c6bec415b82c053e0868765ffb4b5026da4a05860
5
5
  SHA512:
6
- metadata.gz: 598980b63007e7f7c53201ba3fd124adbe4c809a5a6485bae521cb0d291d88d4bbed771b295a23321217f8fd8ab46d38cb2508826cf4838d11a154cbb028e11b
7
- data.tar.gz: 75a0ddee7d87b554dc65743c73694756a6a78d2304880549bc27ac6e4fa0161c09c41b96ad4e41e009eb56e1f33b426ea8de490e62b334ac911e89e91c7ffa5b
6
+ metadata.gz: 9ff636613c91556cfbaee76ff81bb6bc5c193fbc9404043fa65b0832aa1e1baced9ab92a938272b83fea464741d1a469442cac824afe2241f1bdc4222744a06c
7
+ data.tar.gz: 0ebe526e708478a86bc6fbcc6015a2e051e6e9bbbf86cc8f90febc382f930331d5850e784f6314ca1c70a6b04b2bbd9ec6579039dac6c5ffdb99d36654369a33
@@ -233,7 +233,7 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
233
233
  self.import('Property', "ListingId eq '#{mls_id}'")
234
234
  p = CabooseRets::Property.where(:mls_number => mls_id.to_s).first
235
235
  if p != nil && p.status == 'Active'
236
- self.download_property_images(p) if save_images == true # && Rails.env.production?
236
+ self.download_property_images(p) if save_images
237
237
  if p.latitude.blank? || p.latitude == '0.0' || p.longitude.blank? || p.longitude == '0.0'
238
238
  self.update_coords(p)
239
239
  end
@@ -386,8 +386,8 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
386
386
  # `rm #{tmp_path}`
387
387
  # end
388
388
 
389
- rescue
390
- self.log3("Media",p.mls_number,"Error downloading images for property with MLS # #{p.mls_number}")
389
+ rescue Exception => err
390
+ self.log3("Media",p.mls_number,"Error downloading images for property with MLS # #{p.mls_number}: #{err}")
391
391
  end
392
392
 
393
393
  # If we downloaded new images, look for old images to delete.
@@ -70,7 +70,7 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
70
70
  :search_type => m.search_type,
71
71
  :class => class_type,
72
72
  :query => query,
73
- :timeout => -1
73
+ :timeout => -1
74
74
  }
75
75
  obj = nil
76
76
 
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.1.198'
2
+ VERSION = '0.1.200'
3
3
  end
@@ -218,7 +218,7 @@ namespace :caboose_rets do
218
218
  end
219
219
 
220
220
  task :test_import => :environment do
221
- CabooseRets::RetsImporter.import_one_property('146546')
221
+ CabooseRets::RetsImporter.import_properties('151429', true)
222
222
  end
223
223
 
224
224
  desc "Single Import Test"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-rets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.198
4
+ version: 0.1.200
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry