caboose-rets 0.1.199 → 0.1.201

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: 10b3335574760bea42e853c4c2fa92a22fe69d437891f9f8c797717085194bf2
4
- data.tar.gz: 0d38d67d87072622ade25442a6509482c597708aafb6fb6951bf675af5b4daaf
3
+ metadata.gz: f1b4b6ff0c775671f9a244f839c13cef1434ff88aec91e6350986e90576dbd33
4
+ data.tar.gz: 4a73e4b7cfa26103d560b26a8186154dd178cecfe3997892cc41fc206dc21f07
5
5
  SHA512:
6
- metadata.gz: 9d3795fe30799268fc683d640596839717bafff3c31c142421bca193a156b5428d0b231485c7292331c499b9437f3b196e5619703e869f96bbd7b1a930a765aa
7
- data.tar.gz: f55c7fde6d480e1bbffbc5ce43b038c10eb42ccece6e3869eb3a5ca00e58a5f2867023466ed854ba408abb8cad0b9ecd92c43724c3debe2be90c1900d2a6446e
6
+ metadata.gz: e6ad2462c021a949d8ddfa45ebabd09d9a6b5b503364008863f41bc8b296c1d83f385917abea7ea7e33c369e78c0e577882c518b34ea56986d3f8be4ecd4c521
7
+ data.tar.gz: 85a52e88f700a5a84e06a65d4c0767c8059901d9fa65288dd4674e6ff849b0677a2e7a4e1172408e6ac9f0068a65f74139ed3e14ec26f2277226f7903a426b9a
@@ -314,7 +314,8 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
314
314
 
315
315
  old_cm_id = is_new ? nil : m.media_id
316
316
 
317
- cm = is_new ? Caboose::Media.new : Caboose::Media.where(:id => old_cm_id).first
317
+ cm = Caboose::Media.where(:id => old_cm_id).first
318
+ cm = Caboose::Media.new if cm.nil?
318
319
 
319
320
  cm.name = "rets_media_#{photo['ResourceRecordKey']}_#{ind}"
320
321
  cm.save
@@ -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.199'
2
+ VERSION = '0.1.201'
3
3
  end
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.199
4
+ version: 0.1.201
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry