caboose-rets 0.1.198 → 0.1.199

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: b7031da9a57011b4874427b3a075e8fae1ca69eb7891b11bbbaa86355cc8f6b6
4
- data.tar.gz: 458bc2ef48b75e7c9818195a486696281ef6b0d24b4ddb52c320f5ba4f37cd82
3
+ metadata.gz: 10b3335574760bea42e853c4c2fa92a22fe69d437891f9f8c797717085194bf2
4
+ data.tar.gz: 0d38d67d87072622ade25442a6509482c597708aafb6fb6951bf675af5b4daaf
5
5
  SHA512:
6
- metadata.gz: 598980b63007e7f7c53201ba3fd124adbe4c809a5a6485bae521cb0d291d88d4bbed771b295a23321217f8fd8ab46d38cb2508826cf4838d11a154cbb028e11b
7
- data.tar.gz: 75a0ddee7d87b554dc65743c73694756a6a78d2304880549bc27ac6e4fa0161c09c41b96ad4e41e009eb56e1f33b426ea8de490e62b334ac911e89e91c7ffa5b
6
+ metadata.gz: 9d3795fe30799268fc683d640596839717bafff3c31c142421bca193a156b5428d0b231485c7292331c499b9437f3b196e5619703e869f96bbd7b1a930a765aa
7
+ data.tar.gz: f55c7fde6d480e1bbffbc5ce43b038c10eb42ccece6e3869eb3a5ca00e58a5f2867023466ed854ba408abb8cad0b9ecd92c43724c3debe2be90c1900d2a6446e
@@ -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.
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.1.198'
2
+ VERSION = '0.1.199'
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.199
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry