caboose-rets 0.0.56 → 0.0.57

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZWIyNWJhMzBlZTJlYWIxZTRhOTZjMmEzYTgwOGIwNDkwMDk5MzA2ZQ==
4
+ ODAxYTczY2U0NzIxNWY3NTgwNzc1MDQ5NTQ5NGMxMWNmZmMwNjIxNQ==
5
5
  data.tar.gz: !binary |-
6
- ZjU3NDhlYTQwMzhjMWU4ZTZlM2ZiZjNjNTRjMWYzYWQ5ZjYwZWM0Yw==
6
+ ZjQzOGVhYWJmMGVjOGU3MzQwNWFjYTQyNTUxYzdmNGUwMWIyYzhmYQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- Y2I1Y2NhZjdhZGYwNWY1OTYyMWVmNzU2MzY1NGE0ZTMzNjQ1YTcyNzhiZmYx
10
- Yjg3ZDI2YzhmNWVjMTg5OGJhNTIyYTk0ZjI1NDAzOWRiOThjNTNkODNlYmJj
11
- OTMxNzZjN2Y1Mzc5NThhYmY2MWU2ZmY3M2ViMjYwMTM0NGUxZWQ=
9
+ OGM0ZjVhNThjOTc0ZjI2YThmZjE0MDk5YzI0NmY2NjI0ZGRjOGMyNzVkM2M5
10
+ MDgyNWM5OTJiNWY1ZWQxYWE1ZDVlZTE0OTcxMmYzZmE1NTYxODdhOWE2NTNi
11
+ ZDRiNTZiNjJjMTcwNDBjOTY1YzE3MDcwNzA2Nzk5NjhmMDFlZDg=
12
12
  data.tar.gz: !binary |-
13
- NTM2YmNjZDMzZThkODg1YTRiNzI1YTNiZTZlMTcyNzZkNDBhNTJmODNiMTI2
14
- NTg5YTY4ODdlN2NhMjk5YWUyOGU2MDgxNWE2ODE4ODVlN2QyNDc1ZmZiNDhl
15
- NTBlMzZiNTlhZDVjYjA4MGEyYjZiNGFjN2VlYTQzYTgwNTQ1OTI=
13
+ OWE1YTU0OWNmMzExM2Q2N2U2YWNkNzA5ZjFlNTdhYzk5MmQ3NTQ0MmEwZDQ1
14
+ MjgzZTA5N2JkODhmOTE3NmVkMTNhM2JlMzQ2MzY3MWYzNTNjZjFmMGVhZTky
15
+ Y2ZjMmRhYjkzZGJlYTU3MzBhODVkZTVkZTI0NGE2NmZkNjg3ZmQ=
@@ -14,6 +14,8 @@ module CabooseRets
14
14
 
15
15
  @gen = Caboose::PageBarGenerator.new(params, {
16
16
  'name' => '',
17
+ 'acreage_gte' => '',
18
+ 'acreage_lte' => '',
17
19
  'current_price_gte' => '',
18
20
  'current_price_lte' => '',
19
21
  'bedrooms_gte' => '',
@@ -92,6 +92,28 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
92
92
  return obj
93
93
  end
94
94
 
95
+ #def self.delete_old_properties
96
+ # self.log("Deleting old residential properties...")
97
+ # self.get_config if @@config.nil? || @@config['url'].nil?
98
+ #
99
+ # d = DateTime.new(2000, 1, 1)
100
+ # now = DateTime.now
101
+ # while d < now
102
+ # d2 = d + 3.months
103
+ # puts "- Getting ids for #{d.strftime("%Y-%m-%d")} - #{d2.strftime("%Y-%m-%d")}..."
104
+ # q = "((DATE_CREATED=#{d.strftime("%Y-%m-%d")}+),(DATE_CREATED=#{d2.strftime("%Y-%m-%d")}-))",
105
+ # params = { :search_type => 'Property', :class => 'RES', :query => q, :limit => -1, :timeout => -1, :select => 'MLS_ACCT' }
106
+ # ids = []
107
+ # self.client.search(params) do |data|
108
+ # ids << data['MLS_ACCT'].to_i
109
+ # end
110
+ # d = d + 3.months
111
+ # end
112
+ #
113
+ # puts "Deleting properties..."
114
+ # #CabooseRets::ResidentialProperty.where("id not in (?)", ids).destroy_all
115
+ #end
116
+
95
117
  #=============================================================================
96
118
  # Main updater
97
119
  #=============================================================================
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.0.56'
2
+ VERSION = '0.0.57'
3
3
  end
@@ -2,6 +2,11 @@ require "caboose_rets/version"
2
2
 
3
3
  namespace :caboose_rets do
4
4
 
5
+ #desc "Delete old rets properties"
6
+ #task :delete_old_properties => :environment do
7
+ # CabooseRets::RetsImporter.delete_old_properties
8
+ #end
9
+
5
10
  desc "Initializes the database for a caboose installation"
6
11
  task :rename_media => :environment do
7
12
  CabooseRets::Media.rename_media
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.56
4
+ version: 0.0.57
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-07-17 00:00:00.000000000 Z
11
+ date: 2014-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: caboose-cms