caboose-rets 0.0.4 → 0.0.5
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
|
-
|
4
|
+
NTJjZmFkMmMwYjE3Yjc3ZmQ0ZmU1NDhjZjc0MzdjZjlhZTkwMTc4OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2ZhOWNmMzZiMjFhNDcwNGFhOWVjNzIxZmNmNGNjOWI4ODBmNjE5ZA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Nzc2NWQ4NjQ3NzQ5YTRhZDRkZjg4ODhkMmNkNDMzNmU0YjYzNGZjOWIxYjg4
|
10
|
+
ZGNkNjkzZGY3ZmFlYzhhODk4MzUxNGEzOTA1MmNhMTdkMTRmZTg1ODliZjAw
|
11
|
+
NjY5NjYyMDMyYTQzZTUxZjJiMzg3MTgxNTdiYTU5N2Q4YjRhMGM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDhkNWFjZmFkMjZkYjg0NWRkZWI2NThjMjA2NzAxZGVmODEwNzhiMzdmNWQ2
|
14
|
+
MWNiZGRlZWM1ZmFiMjM0OWNhNjFiYmEwMWQwOTdhNDdjN2ZjM2JlODMxM2Y2
|
15
|
+
NjQ2ZDI1MmVlOTk1YWY1MjBmYzZjN2RmZTExNTg5ZGFkMzRiOTA=
|
@@ -13,8 +13,7 @@ module CabooseRets
|
|
13
13
|
def details
|
14
14
|
la_code = params[:la_code]
|
15
15
|
@agents = Agent.where("lo_code = '46' AND hide IS false").order("last_name, first_name")
|
16
|
-
@agent = Agent.where(:la_code => la_code).first || Agent.where(:la_code => '048540000').first
|
17
|
-
Caboose.log(@agent.last_name)
|
16
|
+
@agent = Agent.where(:la_code => la_code).first || Agent.where(:la_code => '048540000').first
|
18
17
|
@assistants = Agent.where(:assistant_to => la_code).order("last_name, first_name")
|
19
18
|
@next = Agent.where("\'la_code\' > \'#{la_code}\' AND \'la_code\' <> \'048540000\' AND \'lo_code\' = \'46\' AND hide IS false").order("last_name, first_name").first
|
20
19
|
@prev = Agent.where("\'la_code\' < \'#{la_code}\' AND \'la_code\' <> \'048540000\' AND \'lo_code\' = \'46\' AND hide IS false").order("last_name, first_name").first
|
@@ -39,9 +38,7 @@ module CabooseRets
|
|
39
38
|
{ type: 'RES' , title: 'Residential Listings' , url_prefix: 'residential' , properties: residential_properties },
|
40
39
|
{ type: 'COM' , title: 'Commercial Listings' , url_prefix: 'commercial' , properties: commercial_properties },
|
41
40
|
{ type: 'LND' , title: 'Land Listings' , url_prefix: 'land' , properties: land_properties },
|
42
|
-
]
|
43
|
-
|
44
|
-
@message = Message.new
|
41
|
+
]
|
45
42
|
end
|
46
43
|
|
47
44
|
#=============================================================================
|
@@ -199,10 +199,15 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
|
|
199
199
|
#=============================================================================
|
200
200
|
|
201
201
|
def self.download_property_images_modified_after(date_modified, start_with_mls_acct = nil)
|
202
|
-
models = [
|
202
|
+
models = [
|
203
|
+
CabooseRets::CommercialProperty,
|
204
|
+
CabooseRets::LandProperty,
|
205
|
+
CabooseRets::MultiFamilyProperty,
|
206
|
+
CabooseRets::ResidentialProperty
|
207
|
+
]
|
203
208
|
models.each do |model|
|
204
209
|
found_it = start_with_mls_acct ? false : true
|
205
|
-
model.where("photo_date_modified > ?", date_modified.strftime('%FT%T')).each do |p|
|
210
|
+
model.where("photo_date_modified > ?", date_modified.strftime('%FT%T')).reorder(:mls_acct).each do |p|
|
206
211
|
found_it = true if !found_it && p.mls_acct == start_with_mls_acct
|
207
212
|
self.download_property_images(p) if found_it
|
208
213
|
end
|
data/lib/caboose_rets/version.rb
CHANGED
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.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: caboose-cms
|