caboose-rets 0.0.76 → 0.0.77

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTQxZGQxMDA5MjQwMjQ1YjI4ZTFmZGZiZTljOGY5YWEyY2FmMjUzYg==
4
+ NTJmMGYzMzY4ZmQ4YzIyNjFhOGJiODQxM2JkZGNmZWY0YWYwYTE5Zg==
5
5
  data.tar.gz: !binary |-
6
- YjViZjhlYWNmMmQzZDdjNWUwNjIyMmVmZGVkYjNmMzM5NDQ5NTMxMw==
6
+ ZGFhNmMxM2U4ODg0ZjZlMzQwMTcxMzg5ZjViMmE3MDMxNGFjYzA4OA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTYxYWFhMTAzYzY2Njg1YjBiZDUzMWMyZjI4ZDRhZGIwZDMzZjdkZTYwMjgz
10
- MGEzYWJlOTUxYWQ4OGM5YjAyYTgyMjczYWI5OGZjN2JjODhjNTRlNWRkZTYz
11
- OGJhNDBkZTQzZWZiYjIyZTQzNWQ0YmFkYmQ0MTM2YzdlNmMyNzI=
9
+ ZDgzYTZmZjcxNzdhYWExMDYwY2NmYWM5OGJiMzU4YjJhMmI0ZGIzZjQ2M2I1
10
+ MjgyNGQxNGVlOGU2M2I3YmQ4NTczNTllMWM1NTMyM2I3NjA0N2UyOTRiMGJh
11
+ MTRiMmZhNmJkZDE3ZWQ0MmU0NmRmZTNiMGIxZWQ5ZDIxMmVmMGQ=
12
12
  data.tar.gz: !binary |-
13
- Njk3ZjVlNDk5ZGI4MGM3NzUyM2U1OTM5NTVhYjE2YzdmMzc0YzdlOTc0YTRm
14
- M2ZmYmJhOWM4YTc2Mzk0MTYzMDFkNWFiYTRmYWFmMWM3NDRjMzVjMjkwYTE2
15
- Y2ZiZTk1ODZlOTRmZDcyMDVkMmVjNzU2NDdhNGE2ZjE1NjViYWI=
13
+ NzcxNGExNzE4M2NlN2IyNmM3OTMwNzMwNDI5M2NkOWEwNWE1M2ZmNDdkMGY2
14
+ NWQxNjZhNDJmNTU2ZGI4OGIyYmVjMDE1OWY5NDBkZWJlMmQzMmNhM2ZlZmJk
15
+ MmE3YzE0NDdiYzliYTU4NTIwMGY3ZGIzOWE2ZTk0MTFiNTUwZjk=
@@ -123,9 +123,9 @@ class CabooseRets::Media < ActiveRecord::Base
123
123
  return true
124
124
  end
125
125
 
126
- def image_url(style)
127
- if CabooseRets::use_hosted_images == true
128
- return "#{CabooseRets::media_base_url}/#{self.file_name}"
126
+ def image_url(style)
127
+ if CabooseRets::use_hosted_images == true
128
+ return "#{CabooseRets::media_base_url}/#{self.file_name}"
129
129
  end
130
130
  return "" if self.image.nil?
131
131
  return self.image.url(style)
@@ -337,14 +337,14 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
337
337
  self.purge_media
338
338
  end
339
339
 
340
- def self.purge_residential() self.purge_helper('RES', '2012-01-01') end
341
- def self.purge_commercial() self.purge_helper('COM', '2012-01-01') end
342
- def self.purge_land() self.purge_helper('LND', '2012-01-01') end
343
- def self.purge_multi_family() self.purge_helper('MUL', '2012-01-01') end
344
- def self.purge_offices() self.purge_helper('OFF', '2012-01-01') end
345
- def self.purge_agents() self.purge_helper('AGT', '2012-01-01') end
346
- def self.purge_open_houses() self.purge_helper('OPH', '2012-01-01') end
347
- def self.purge_media() self.purge_helper('GFX', '2012-01-01') end
340
+ def self.purge_residential() self.delay.purge_helper('RES', '2012-01-01') end
341
+ def self.purge_commercial() self.delay.purge_helper('COM', '2012-01-01') end
342
+ def self.purge_land() self.delay.purge_helper('LND', '2012-01-01') end
343
+ def self.purge_multi_family() self.delay.purge_helper('MUL', '2012-01-01') end
344
+ def self.purge_offices() self.delay.purge_helper('OFF', '2012-01-01') end
345
+ def self.purge_agents() self.delay.purge_helper('AGT', '2012-01-01') end
346
+ def self.purge_open_houses() self.delay.purge_helper('OPH', '2012-01-01') end
347
+ def self.purge_media() self.delay.purge_helper('GFX', '2012-01-01') end
348
348
 
349
349
  def self.purge_helper(class_type, date_modified)
350
350
  m = self.meta(class_type)
@@ -491,7 +491,7 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
491
491
  self.purge
492
492
  self.save_last_purged(task_started)
493
493
  # Keep this in here to make sure all updates are caught
494
- overlap = 1.month
494
+ #overlap = 1.month
495
495
  end
496
496
  self.update_after(self.last_updated - overlap)
497
497
  self.save_last_updated(task_started)
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.0.76'
2
+ VERSION = '0.0.77'
3
3
  end
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.0.76
4
+ version: 0.0.77
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-15 00:00:00.000000000 Z
11
+ date: 2014-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: caboose-cms