caboose-rets 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +5 -13
  2. data/app/controllers/caboose_rets/residential_controller.rb +24 -5
  3. data/app/models/caboose_rets/agent.rb +5 -1
  4. data/app/models/caboose_rets/rets_importer.rb +4 -3
  5. data/app/models/caboose_rets/schema.rb +41 -1
  6. data/app/views/caboose/blocks/_layout_rets.html.erb +56 -0
  7. data/app/views/caboose/blocks/_rets_agent_details.html.erb +88 -0
  8. data/app/views/caboose/blocks/_rets_agent_listings.html.erb +122 -0
  9. data/app/views/caboose/blocks/_rets_agents_index.html.erb +51 -0
  10. data/app/views/caboose/blocks/_rets_commercial_details.html.erb +192 -0
  11. data/app/views/caboose/blocks/_rets_commercial_headers.html.erb +17 -0
  12. data/app/views/caboose/blocks/_rets_commercial_index.html.erb +71 -0
  13. data/app/views/caboose/blocks/_rets_commercial_row.html.erb +39 -0
  14. data/app/views/caboose/blocks/_rets_commercial_search_form.html.erb +201 -0
  15. data/app/views/caboose/blocks/_rets_land_details.html.erb +165 -0
  16. data/app/views/caboose/blocks/_rets_land_index.html.erb +63 -0
  17. data/app/views/caboose/blocks/_rets_land_row.html.erb +58 -0
  18. data/app/views/caboose/blocks/_rets_land_search_form.html.erb +194 -0
  19. data/app/views/caboose/blocks/_rets_multifamily_details.html.erb +161 -0
  20. data/app/views/caboose/blocks/_rets_multifamily_index.html.erb +63 -0
  21. data/app/views/caboose/blocks/_rets_multifamily_row.html.erb +56 -0
  22. data/app/views/caboose/blocks/_rets_multifamily_search_form.html.erb +273 -0
  23. data/app/views/caboose/blocks/_rets_openhouse_details.html.erb +12 -0
  24. data/app/views/caboose/blocks/_rets_openhouses_index.html.erb +79 -0
  25. data/app/views/caboose/blocks/_rets_residential_details.html.erb +243 -0
  26. data/app/views/caboose/blocks/_rets_residential_index.html.erb +65 -0
  27. data/app/views/caboose/blocks/_rets_residential_row.html.erb +59 -0
  28. data/app/views/caboose/blocks/_rets_residential_search_form.html.erb +304 -0
  29. data/app/views/caboose/blocks/_rets_savedproperties_index.html.erb +28 -0
  30. data/app/views/caboose_rets/residential/details.html.erb +0 -139
  31. data/app/views/caboose_rets/residential/index.html.erb +0 -49
  32. data/lib/caboose_rets/version.rb +1 -1
  33. metadata +33 -9
@@ -1,49 +0,0 @@
1
-
2
- <%= render :partial => 'caboose_rets/residential/search_form' %>
3
-
4
- <div class='listings'>
5
- <% if @properties.nil? || @properties == [] %>
6
- <div class='no-results'>No results found</div>
7
- <% else %>
8
- <ul>
9
- <% @properties.each do |p| %>
10
- <li>
11
- <% if p.images && p.images.count > 0 %>
12
- <div class='image'><a href="/residential/<%= p.mls_acct %>/details"><img src="<%= p.images[0].image_url(:thumb) %>" /></a></div>
13
- <% end %>
14
- <div class="address"><% if !p.unit_num.nil? && p.unit_num.strip.length > 0 %>Unit <%= p.unit_num %>, <% end %><%= p.street_num %> <%= p.street_name.titleize %></div>
15
- <% if p.agent %>
16
- <div class="agent">
17
- Listing Courtesy of <%= p.agent.first_name.titleize %> <%= p.agent.last_name.titleize %>
18
- <% if p.office %> with <%= p.office.name.titleize %><% end %>
19
- </div>
20
- <% end %>
21
- <% if p.current_price != 0 %><span class='price' >$<%= p.current_price %></span><% end %>
22
- <% if p.foreclosure_yn == 'Y' %><span class='foreclosure' >(Foreclosure)</span><% end %>
23
- <ul class="meta">
24
- <li class='sq_footage' ><label>Sq. footage: </label><span><%= p.tot_heat_sqft %></span></li>
25
- <li class='bedrooms' ><label>Bedrooms: </label><span><%= p.bedrooms %></span></li>
26
- <li class='full_baths' ><label>Full baths: </label><span><%= p.baths_full %></span></li>
27
- <li class='half_baths' ><label>Half baths: </label><span><%= p.baths_half %></span></li>
28
- </div>
29
- <ul class='schools'>
30
- <li><label>Elementary: </label><span><%= p.elem_school.titleize %><span></li>
31
- <li><label>Middle: </label><span><%= p.middle_school.titleize %><span></li>
32
- <li><label>High: </label><span><%= p.high_school.titleize %><span></li>
33
- </ul>
34
- <div class='mls_acct'><label>MLS#: </label><span><%= p.mls_acct %></span></div>
35
- <div class='remarks'><%= p.remarks %></div>
36
- <div class='more_details'><a href='/residential/<%= p.mls_acct %>/details'>MORE DETAILS</a></div>
37
- <% if p.agent || p.office %>
38
- <div class='contact lo_code_<%= p.lo_code %>'>Contact
39
- <% if p.agent %><a href="/agents/<%= p.la_code %>"><%= p.agent.first_name.titleize %> <%= p.agent.last_name.titleize %></a>
40
- <% else %><a href="/offices/<%= p.lo_code %>"><%= p.office.name %></a><% end %>
41
- </div>
42
- <% end %>
43
- <% if p.virtual_tour %><div class='virtual_tour'><a href="<%= p.virtual_tour %>">Take Virtual Tour</a></div><% end %>
44
- </li>
45
- <% end %>
46
- </ul>
47
- <%= @gen.generate.html_safe %>
48
- <% end %>
49
- </div>
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-rets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-17 00:00:00.000000000 Z
11
+ date: 2015-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: caboose-cms
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.6.22
19
+ version: 0.7.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.6.22
26
+ version: 0.7.1
27
27
  description: Library to download RETS data to a local website for easy use.
28
28
  email:
29
29
  - william@nine.is
@@ -65,6 +65,30 @@ files:
65
65
  - app/models/caboose_rets/saved_property.rb
66
66
  - app/models/caboose_rets/saved_search.rb
67
67
  - app/models/caboose_rets/schema.rb
68
+ - app/views/caboose/blocks/_layout_rets.html.erb
69
+ - app/views/caboose/blocks/_rets_agent_details.html.erb
70
+ - app/views/caboose/blocks/_rets_agent_listings.html.erb
71
+ - app/views/caboose/blocks/_rets_agents_index.html.erb
72
+ - app/views/caboose/blocks/_rets_commercial_details.html.erb
73
+ - app/views/caboose/blocks/_rets_commercial_headers.html.erb
74
+ - app/views/caboose/blocks/_rets_commercial_index.html.erb
75
+ - app/views/caboose/blocks/_rets_commercial_row.html.erb
76
+ - app/views/caboose/blocks/_rets_commercial_search_form.html.erb
77
+ - app/views/caboose/blocks/_rets_land_details.html.erb
78
+ - app/views/caboose/blocks/_rets_land_index.html.erb
79
+ - app/views/caboose/blocks/_rets_land_row.html.erb
80
+ - app/views/caboose/blocks/_rets_land_search_form.html.erb
81
+ - app/views/caboose/blocks/_rets_multifamily_details.html.erb
82
+ - app/views/caboose/blocks/_rets_multifamily_index.html.erb
83
+ - app/views/caboose/blocks/_rets_multifamily_row.html.erb
84
+ - app/views/caboose/blocks/_rets_multifamily_search_form.html.erb
85
+ - app/views/caboose/blocks/_rets_openhouse_details.html.erb
86
+ - app/views/caboose/blocks/_rets_openhouses_index.html.erb
87
+ - app/views/caboose/blocks/_rets_residential_details.html.erb
88
+ - app/views/caboose/blocks/_rets_residential_index.html.erb
89
+ - app/views/caboose/blocks/_rets_residential_row.html.erb
90
+ - app/views/caboose/blocks/_rets_residential_search_form.html.erb
91
+ - app/views/caboose/blocks/_rets_savedproperties_index.html.erb
68
92
  - app/views/caboose_rets/agents/_admin_top_nav.html.erb
69
93
  - app/views/caboose_rets/agents/admin_edit.html.erb
70
94
  - app/views/caboose_rets/agents/admin_edit_bio.html.erb
@@ -155,17 +179,17 @@ require_paths:
155
179
  - lib
156
180
  required_ruby_version: !ruby/object:Gem::Requirement
157
181
  requirements:
158
- - - ! '>='
182
+ - - ">="
159
183
  - !ruby/object:Gem::Version
160
184
  version: '0'
161
185
  required_rubygems_version: !ruby/object:Gem::Requirement
162
186
  requirements:
163
- - - ! '>='
187
+ - - ">="
164
188
  - !ruby/object:Gem::Version
165
189
  version: '0'
166
190
  requirements: []
167
191
  rubyforge_project:
168
- rubygems_version: 2.2.2
192
+ rubygems_version: 2.4.5.1
169
193
  signing_key:
170
194
  specification_version: 4
171
195
  summary: Library to download RETS data to a local website.