phcdevworks_real_estate 3.0.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/Rakefile +5 -29
  4. data/app/assets/config/phcdevworks_real_estate_manifest.js +2 -1
  5. data/app/assets/stylesheets/phcdevworks_real_estate/application.scss +0 -2
  6. data/app/controllers/phcdevworks_real_estate/application_controller.rb +8 -8
  7. data/app/controllers/phcdevworks_real_estate/property/features_controller.rb +1 -1
  8. data/app/controllers/phcdevworks_real_estate/property/listings_controller.rb +1 -1
  9. data/app/models/phcdevworks_real_estate/property/feature.rb +4 -4
  10. data/app/models/phcdevworks_real_estate/property/listing.rb +7 -7
  11. data/app/views/layouts/phcdevworks_real_estate/application.html.erb +12 -17
  12. data/app/views/layouts/phcdevworks_real_estate/components/backend/sidebars/_side_menu.html.erb +2 -2
  13. data/app/views/phcdevworks_real_estate/property/features/_form.html.erb +2 -2
  14. data/app/views/phcdevworks_real_estate/property/features/index.html.erb +1 -1
  15. data/app/views/phcdevworks_real_estate/property/features/show.html.erb +1 -1
  16. data/app/views/phcdevworks_real_estate/property/listings/_form.html.erb +36 -36
  17. data/app/views/phcdevworks_real_estate/property/listings/index.html.erb +5 -5
  18. data/config/routes.rb +13 -13
  19. data/db/migrate/20190824010811_create_phcdevworks_real_estate_property_listings.rb +20 -20
  20. data/db/migrate/20190824011000_create_phcdevworks_real_estate_property_features.rb +1 -1
  21. data/lib/phcdevworks_real_estate.rb +1 -0
  22. data/lib/phcdevworks_real_estate/engine.rb +45 -35
  23. data/lib/phcdevworks_real_estate/version.rb +1 -1
  24. metadata +112 -41
  25. data/app/assets/javascripts/phcdevworks_real_estate/application.js +0 -2
  26. data/app/assets/javascripts/phcdevworks_real_estate/property/features.coffee +0 -0
  27. data/app/assets/javascripts/phcdevworks_real_estate/property/listings.coffee +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b854ea4fc442119ef7606c1c3688caf224431c87294eeaa7439c8d764320f49f
4
- data.tar.gz: 79d7e37beb9e9ba8b42794267a921866086283951028355721d7964132deaa58
3
+ metadata.gz: 4017ff4cc84f38595976241e50f4cd544ff09aa2db3eb2904737776840079650
4
+ data.tar.gz: 97e7e9a5b6533b9749c5654a402e30de457f6b5fdb9d8de56a3997c4f9807c0d
5
5
  SHA512:
6
- metadata.gz: 346d9409e23f3c0ebabe2de502e5f2764821c9a443606286b112c9799354e36cf57831c4e79e6e49f9392fb59e22efe0c2652f2a780a78c46022cd12a2b405f9
7
- data.tar.gz: 288485349d5e22505420ceecf0531189d439c1b989f9186f6ffcd676ca31f01484c7ba05ec4f72709799bfee9896f84d21cabb2c61b9b7ba746b935f6dde954a
6
+ metadata.gz: d3cb7c8c4ba744fe4cdc3d61982b3a095b19afdab64953ef7a662afdd469cbf2a880b07e2994ae90e5f16d748d035f603767b6fdf33961cd08bb2f27a0e732d4
7
+ data.tar.gz: 42f241dcd770a0996d61f9f503cca66d9d1a9bf291da61e4cce76c8ad35c7cbd845b3bc1e6f48cc3eaf6c47ab8a1d7c1dd12e4b923612bbf1f0ab9c3a81187b9
@@ -1,4 +1,4 @@
1
- Copyright 2010-2020 BradPotts - PHCDevworks
1
+ Copyright 2020 BradPotts
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -1,32 +1,8 @@
1
- begin
2
- require 'bundler/setup'
3
- rescue LoadError
4
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
- end
1
+ require "bundler/setup"
6
2
 
7
- require 'rdoc/task'
3
+ APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
4
+ load "rails/tasks/engine.rake"
8
5
 
9
- RDoc::Task.new(:rdoc) do |rdoc|
10
- rdoc.rdoc_dir = 'rdoc'
11
- rdoc.title = 'PhcdevworksRealEstate'
12
- rdoc.options << '--line-numbers'
13
- rdoc.rdoc_files.include('README.md')
14
- rdoc.rdoc_files.include('lib/**/*.rb')
15
- end
6
+ load "rails/tasks/statistics.rake"
16
7
 
17
- APP_RAKEFILE = File.expand_path("test/test_app/Rakefile", __dir__)
18
- load 'rails/tasks/engine.rake'
19
-
20
- load 'rails/tasks/statistics.rake'
21
-
22
- require 'bundler/gem_tasks'
23
-
24
- require 'rake/testtask'
25
-
26
- Rake::TestTask.new(:test) do |t|
27
- t.libs << 'test'
28
- t.pattern = 'test/**/*_test.rb'
29
- t.verbose = false
30
- end
31
-
32
- task default: :test
8
+ require "bundler/gem_tasks"
@@ -1,2 +1,3 @@
1
- //= link_directory ../javascripts/phcdevworks_real_estate .js
2
1
  //= link_directory ../stylesheets/phcdevworks_real_estate .scss
2
+ //= link phcthemes_admin_panel_pack_coloradmin.css
3
+ //= link phcthemes_admin_panel_pack_coloradmin.js
@@ -1,2 +0,0 @@
1
- // Load Admin Theme
2
- @import "phcthemes_admin_panel_pack_coloradmin";
@@ -1,13 +1,13 @@
1
1
  module PhcdevworksRealEstate
2
- class ApplicationController < ActionController::Base
2
+ class ApplicationController < ActionController::Base
3
3
 
4
- # Security Filters
5
- protect_from_forgery with: :exception
4
+ # Security Filters
5
+ protect_from_forgery with: :exception
6
6
 
7
- # Load Requried Helper Files
8
- helper PhcdevworksActiveMenus::Engine.helpers
9
- helper PhcdevworksNotifications::Engine.helpers
10
- helper PhcdevworksTitleseo::Engine.helpers
7
+ # Load Requried Helper Files
8
+ helper PhcdevworksActiveMenus::Engine.helpers
9
+ helper PhcdevworksNotifications::Engine.helpers
10
+ helper PhcdevworksTitleseo::Engine.helpers
11
11
 
12
- end
12
+ end
13
13
  end
@@ -75,7 +75,7 @@ module PhcdevworksRealEstate
75
75
 
76
76
  # Whitelist
77
77
  def property_feature_params
78
- params.require(:property_feature).permit(:feature_name)
78
+ params.require(:property_feature).permit(:property_feature_name)
79
79
  end
80
80
 
81
81
  end
@@ -75,7 +75,7 @@ module PhcdevworksRealEstate
75
75
 
76
76
  # Whitelist
77
77
  def property_listing_params
78
- params.require(:property_listing).permit(:listing_title, :listing_description, :listing_street_address, :listing_price, :listing_area, :listing_property_area, :listing_garage_area, :listing_room, :listing_bed, :listing_bath, :listing_garage, :listing_type, :listing_status, :listing_year_built, :listing_energy_class, :listing_leed_rating, :listing_upload, :user_id, :org_id, gallery_upload: [], feature_ids: [])
78
+ params.require(:property_listing).permit(:property_listing_title, :property_listing_description, :property_listing_street_address, :property_listing_price, :property_listing_area, :property_listing_property_area, :property_listing_garage_area, :property_listing_room, :property_listing_bed, :property_listing_bath, :property_listing_garage, :property_listing_type, :property_listing_status, :property_listing_year_built, :property_listing_energy_class, :property_listing_leed_rating, :optimization_id, :slug, :user_id, :org_id, gallery_upload: [], feature_ids: [])
79
79
  end
80
80
 
81
81
  end
@@ -8,14 +8,14 @@ module PhcdevworksRealEstate
8
8
  has_and_belongs_to_many :listings, class_name: 'Phcreallistingspro::Property::Listing', :join_table => 'phcdevworks_real_estate_property_features_listings', :dependent => :destroy
9
9
 
10
10
  # Validation for Form Fields
11
- validates :feature_name,
11
+ validates :property_feature_name,
12
12
  presence: true
13
13
 
14
14
  # Clean URL Define
15
- friendly_id :phcdev_property_feature_nice_urls, use: [:slugged, :finders]
15
+ friendly_id :property_feature_nice_urls, use: [:slugged, :finders]
16
16
 
17
- def phcdev_property_feature_nice_urls
18
- [:feature_name]
17
+ def property_feature_nice_urls
18
+ [:property_feature_name]
19
19
  end
20
20
 
21
21
  end
@@ -12,23 +12,23 @@ module PhcdevworksRealEstate
12
12
  has_and_belongs_to_many :features, class_name: 'Phcreallistingspro::Property::Feature', :join_table => 'phcdevworks_real_estate_property_features_listings', :dependent => :destroy
13
13
 
14
14
  # Validation for Form Fields
15
- validates :listing_title,
15
+ validates :property_listing_title,
16
16
  presence: true
17
17
 
18
- validates :listing_description,
18
+ validates :property_listing_description,
19
19
  presence: true
20
20
 
21
- validates :listing_street_address,
21
+ validates :property_listing_street_address,
22
22
  presence: true
23
23
 
24
- validates :listing_price,
24
+ validates :property_listing_price,
25
25
  presence: true
26
26
 
27
27
  # Clean URL Define
28
- friendly_id :phcdev_property_listing_nice_urls, use: [:slugged, :finders]
28
+ friendly_id :property_listing_nice_urls, use: [:slugged, :finders]
29
29
 
30
- def phcdev_property_listing_nice_urls
31
- [:listing_title]
30
+ def property_listing_nice_urls
31
+ [:property_listing_title]
32
32
  end
33
33
 
34
34
  end
@@ -6,27 +6,26 @@
6
6
  <% phc_seo_title "PHCDevworks Real Estate" %>
7
7
  <% phc_seo_description "Ruby on Rails 6 Real Estate Property Listings Management Engine." %>
8
8
  <!-- SEO System -->
9
-
9
+
10
10
  <!-- SEO and Site Description -->
11
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
12
- <title><%= yield(:phc_seo_title) %></title>
13
- <meta name="description" content="<%= yield(:phc_seo_description) %>">
14
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
15
- <link rel="canonical" href="http://phcdevworks.com">
11
+ <meta charset="utf-8">
12
+ <title><%= yield(:phc_seo_title) %></title>
13
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
14
+ <meta name="description" content="<%= yield(:phc_seo_description) %>">
16
15
  <!-- SEO and Site Description -->
17
-
16
+
18
17
  <!-- Rails Security Tags -->
19
18
  <%= csrf_meta_tags %>
20
19
  <%= csp_meta_tag %>
21
20
  <!-- Rails Security Tags -->
22
-
21
+
23
22
  <!-- CSS Styles -->
24
- <%= stylesheet_link_tag "phcdevworks_real_estate/application", media: "all" %>
23
+ <%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
25
24
  <!-- CSS Styles -->
26
-
27
- <!-- Font -->
28
- <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400%7CRaleway:300,400,500,600,700%7CLato:300,400,400italic,600,700"/>
29
- <!-- Font -->
25
+
26
+ <!-- JavaScript -->
27
+ <%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
28
+ <!-- JavaScript -->
30
29
 
31
30
  </head>
32
31
  <body>
@@ -63,9 +62,5 @@
63
62
  </div>
64
63
  <!-- Page Container -->
65
64
 
66
- <!-- JavaScript -->
67
- <%= javascript_include_tag "phcdevworks_real_estate/application", "data-turbolinks-track": "reload" %>
68
- <!-- JavaScript -->
69
-
70
65
  </body>
71
66
  </html>
@@ -25,7 +25,7 @@
25
25
  <% end %>
26
26
  </li>
27
27
  <li>
28
- <%= link_to phcdevworks_accounts.destroy_user_session_path do %>
28
+ <%= link_to phcdevworks_accounts.destroy_user_session_path, method: :delete do %>
29
29
  <i class="fad fa-sign-out-alt"></i> Logout
30
30
  <% end %>
31
31
  </li>
@@ -270,7 +270,7 @@
270
270
  <span>Admin</span>
271
271
  </a>
272
272
  <ul class="sub-menu">
273
- <li class="<%= phc_menu_active_controller("phcdevworks_accounts/admin/users") %>"><%= link_to "User List", phcdevworks_accounts.admin_users_index_path %></li>
273
+ <li class="<%= phc_menu_active_controller("phcdevworks_accounts/admin/users") %>"><%= link_to "User List", phcdevworks_accounts.admin_users_all_path %></li>
274
274
  </ul>
275
275
  </li>
276
276
  <!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
@@ -7,8 +7,8 @@
7
7
 
8
8
  <!-- Form Input Fields -->
9
9
  <div class="form-group">
10
- <%= phc_pro_property_feature.label :feature_name, "Feature Name" %>
11
- <%= phc_pro_property_feature.text_field :feature_name, placeholder: "Feature Name", class: "form-control" %>
10
+ <%= phc_pro_property_feature.label :property_feature_name, "Feature Name" %>
11
+ <%= phc_pro_property_feature.text_field :property_feature_name, placeholder: "Feature Name", class: "form-control" %>
12
12
  </div>
13
13
  <!-- Form Input Fields -->
14
14
 
@@ -48,7 +48,7 @@
48
48
  <tbody>
49
49
  <% @property_features.each do |property_feature| %>
50
50
  <tr>
51
- <td class="highlight"><%= link_to property_feature.feature_name, property_feature %></td>
51
+ <td class="highlight"><%= link_to property_feature.property_feature_name, property_feature %></td>
52
52
  <td>
53
53
  <div class="btn-group d-flex" role="group" aria-label="Property Listings">
54
54
  <%= link_to "Feature Details", property_feature, class: "btn btn-primary btn-xs" %>
@@ -53,7 +53,7 @@
53
53
  <div class="panel-body">
54
54
  <p>
55
55
  <strong>Feature Name</strong>
56
- <%= @property_feature.feature_name %>
56
+ <%= @property_feature.property_feature_name %>
57
57
  </p>
58
58
  </div>
59
59
  </div>
@@ -7,99 +7,99 @@
7
7
 
8
8
  <!-- Form Input Fields -->
9
9
  <div class="form-group">
10
- <%= form.label :listing_title, "Listing TItle" %>
11
- <%= form.text_field :listing_title, placeholder: "Listing Title", class: "form-control" %>
10
+ <%= form.label :property_listing_title, "Listing TItle" %>
11
+ <%= form.text_field :property_listing_title, placeholder: "Listing Title", class: "form-control" %>
12
12
  </div>
13
13
 
14
14
  <div class="form-group">
15
- <%= form.label :listing_description, "Listing Description" %>
16
- <%= form.text_area :listing_description, placeholder: "Listing Description", class: "form-control" %>
15
+ <%= form.label :property_listing_description, "Listing Description" %>
16
+ <%= form.text_area :property_listing_description, placeholder: "Listing Description", class: "form-control" %>
17
17
  </div>
18
18
 
19
19
  <div class="form-group">
20
- <%= form.label :listing_street_address, "Listing Street Address" %>
21
- <%= form.text_field :listing_street_address, placeholder: "Listing Street Address", class: "form-control", id: "phc-gmaps-input-address" %>
20
+ <%= form.label :property_listing_street_address, "Listing Street Address" %>
21
+ <%= form.text_field :property_listing_street_address, placeholder: "Listing Street Address", class: "form-control", id: "phc-gmaps-input-address" %>
22
22
  </div>
23
23
 
24
24
  <div class="form-group">
25
- <%= form.label :listing_price, "Listing Price" %>
26
- <%= form.text_field :listing_price, placeholder: "Listing Price", class: "form-control" %>
25
+ <%= form.label :property_listing_price, "Listing Price" %>
26
+ <%= form.text_field :property_listing_price, placeholder: "Listing Price", class: "form-control" %>
27
27
  </div>
28
28
 
29
29
  <hr>
30
30
 
31
31
  <div class="form-group">
32
- <%= form.label :listing_area, "Listing Area" %>
33
- <%= form.text_field :listing_area, placeholder: "Listing Area", class: "form-control" %>
32
+ <%= form.label :property_listing_area, "Listing Area" %>
33
+ <%= form.text_field :property_listing_area, placeholder: "Listing Area", class: "form-control" %>
34
34
  </div>
35
35
 
36
36
  <div class="form-group">
37
- <%= form.label :listing_property_area, "Listing Property Area" %>
38
- <%= form.text_field :listing_property_area, placeholder: "Listing Property Area", class: "form-control" %>
37
+ <%= form.label :property_listing_property_area, "Listing Property Area" %>
38
+ <%= form.text_field :property_listing_property_area, placeholder: "Listing Property Area", class: "form-control" %>
39
39
  </div>
40
40
 
41
41
  <div class="form-group">
42
- <%= form.label :listing_garage_area, "Listing Garage Area" %>
43
- <%= form.text_field :listing_garage_area, placeholder: "Listing Garage Area", class: "form-control" %>
42
+ <%= form.label :property_listing_garage_area, "Listing Garage Area" %>
43
+ <%= form.text_field :property_listing_garage_area, placeholder: "Listing Garage Area", class: "form-control" %>
44
44
  </div>
45
45
 
46
46
  <hr>
47
47
 
48
48
  <div class="form-group">
49
- <%= form.label :listing_room, "Listing How Many Rooms" %>
50
- <%= form.select(:listing_room, ["1","2","3","4","5","6","7+"], {}, { :class => "form-control" }) %>
49
+ <%= form.label :property_isting_room, "Listing How Many Rooms" %>
50
+ <%= form.select(:property_listing_room, ["1","2","3","4","5","6","7+"], {}, { :class => "form-control" }) %>
51
51
  </div>
52
52
 
53
53
  <div class="form-group">
54
- <%= form.label :listing_bed, "Listing How Many Bedrooms" %>
55
- <%= form.select(:listing_bed, ["1","2","3","4","5","6","7+"], {}, { :class => "form-control" }) %>
54
+ <%= form.label :property_listing_bed, "Listing How Many Bedrooms" %>
55
+ <%= form.select(:property_listing_bed, ["1","2","3","4","5","6","7+"], {}, { :class => "form-control" }) %>
56
56
  </div>
57
57
 
58
58
  <div class="form-group">
59
- <%= form.label :listing_bath, "Listing How Many Bathrooms" %>
60
- <%= form.select(:listing_bath, ["1","2","3","4+"], {}, { :class => "form-control" }) %>
59
+ <%= form.label :property_listing_bath, "Listing How Many Bathrooms" %>
60
+ <%= form.select(:property_listing_bath, ["1","2","3","4+"], {}, { :class => "form-control" }) %>
61
61
  </div>
62
62
 
63
63
  <div class="form-group">
64
- <%= form.label :listing_garage, "Listing Garage" %>
65
- <%= form.select(:listing_garage, ["1 Car","2 Cars","3 Cars","4+ Cars"], {}, { :class => "form-control" }) %>
64
+ <%= form.label :property_listing_garage, "Listing Garage" %>
65
+ <%= form.select(:property_listing_garage, ["1 Car","2 Cars","3 Cars","4+ Cars"], {}, { :class => "form-control" }) %>
66
66
  </div>
67
67
 
68
68
  <hr>
69
69
 
70
70
  <div class="form-group">
71
- <%= form.label :listing_type, "Listing Type" %>
72
- <%= form.select(:listing_type, ["House","Condominium","Cottage","Land"], {}, { :class => "form-control" }) %>
71
+ <%= form.label :property_listing_type, "Listing Type" %>
72
+ <%= form.select(:property_listing_type, ["House","Condominium","Cottage","Land"], {}, { :class => "form-control" }) %>
73
73
  </div>
74
74
 
75
75
  <div class="form-group">
76
- <%= form.label :listing_status, "Listing Status" %>
77
- <%= form.select(:listing_status, ["For Sale","Sold"], {}, { :class => "form-control" }) %>
76
+ <%= form.label :property_listing_status, "Listing Status" %>
77
+ <%= form.select(:property_listing_status, ["For Sale","Sold"], {}, { :class => "form-control" }) %>
78
78
  </div>
79
79
 
80
80
  <div class="form-group">
81
- <%= form.label :listing_year_built, "" %>
82
- <%= form.select(:listing_year_built, ["1990","2018"], {}, { :class => "form-control" }) %>
81
+ <%= form.label :property_listing_year_built, "" %>
82
+ <%= form.select(:property_listing_year_built, ["1990","2018"], {}, { :class => "form-control" }) %>
83
83
  </div>
84
84
 
85
85
  <div class="form-group">
86
- <%= form.label :listing_energy_class, "Listing Energy Class" %>
87
- <%= form.select(:listing_energy_class, ["A","B"], {}, { :class => "form-control" }) %>
86
+ <%= form.label :property_listing_energy_class, "Listing Energy Class" %>
87
+ <%= form.select(:property_listing_energy_class, ["A","B"], {}, { :class => "form-control" }) %>
88
88
  </div>
89
89
 
90
90
  <div class="form-group">
91
- <%= form.label :listing_leed_rating, "Listing LEED Rating" %>
92
- <%= form.select(:listing_leed_rating, ["Certified","Silver", "Gold", ""], {}, { :class => "form-control" }) %>
91
+ <%= form.label :property_listing_leed_rating, "Listing LEED Rating" %>
92
+ <%= form.select(:property_listing_leed_rating, ["Certified","Silver", "Gold", ""], {}, { :class => "form-control" }) %>
93
93
  </div>
94
94
 
95
95
  <div class="form-group">
96
- <%= form.label :listing_upload, "" %>
97
- <%= form.file_field :listing_upload, placeholder: "", class: "form-control" %>
96
+ <%= form.label :property_listing_upload, "" %>
97
+ <%= form.file_field :property_listing_upload, placeholder: "", class: "form-control" %>
98
98
  </div>
99
99
 
100
100
  <div class="form-group">
101
- <%= form.label :gallery_upload, "" %>
102
- <%= form.file_field :gallery_upload, multiple: true , placeholder: "", class: "form-control" %>
101
+ <%= form.label :property_gallery_upload, "" %>
102
+ <%= form.file_field :property_gallery_upload, multiple: true , placeholder: "", class: "form-control" %>
103
103
  </div>
104
104
  <!-- Form Input Fields -->
105
105
 
@@ -52,11 +52,11 @@
52
52
  <tbody>
53
53
  <% @property_listings.each do |property_listing| %>
54
54
  <tr>
55
- <td><%= property_listing.listing_title %></td>
56
- <td><%= property_listing.listing_price %></td>
57
- <td><%= property_listing.listing_year_built %></td>
58
- <td><%= property_listing.listing_type %></td>
59
- <td><%= property_listing.listing_status %></td>
55
+ <td><%= property_listing.property_listing_title %></td>
56
+ <td><%= property_listing.property_listing_price %></td>
57
+ <td><%= property_listing.property_listing_year_built %></td>
58
+ <td><%= property_listing.property_listing_type %></td>
59
+ <td><%= property_listing.property_listing_status %></td>
60
60
  <td>
61
61
  <div class="btn-group d-flex" role="group" aria-label="Property Listings">
62
62
  <%= link_to "Listing Details", property_listing, class: "btn btn-primary btn-xs" %>
@@ -1,19 +1,19 @@
1
1
  PhcdevworksRealEstate::Engine.routes.draw do
2
2
 
3
- # Applications Admin Area
4
- namespace :admin do
5
- resources :listings
6
- resources :features
7
- end
3
+ # Applications Admin Area
4
+ namespace :admin do
5
+ resources :listings
6
+ resources :features
7
+ end
8
8
 
9
- # Applications User Area
10
- namespace :property do
11
- resources :listings
12
- resources :features
13
- end
9
+ # Applications User Area
10
+ namespace :property do
11
+ resources :listings
12
+ resources :features
13
+ end
14
14
 
15
- # Mount Routes
16
- mount PhcdevworksAccounts::Engine, :at => '/'
17
- mount PhcdevworksCoreModules::Engine, :at => '/'
15
+ # Mount Routes
16
+ mount PhcdevworksAccounts::Engine, :at => '/'
17
+ mount PhcdevworksCoreModules::Engine, :at => '/'
18
18
 
19
19
  end
@@ -2,26 +2,26 @@ class CreatePhcdevworksRealEstatePropertyListings < ActiveRecord::Migration[6.0]
2
2
  def change
3
3
  create_table :phcdevworks_real_estate_property_listings do |t|
4
4
 
5
- t.string :listing_title
6
- t.text :listing_description
7
- t.string :listing_street_address
8
- t.string :listing_price
9
-
10
- t.string :listing_area
11
- t.string :listing_property_area
12
- t.string :listing_garage_area
13
-
14
- t.string :listing_room
15
- t.string :listing_bed
16
- t.string :listing_bath
17
- t.string :listing_garage
18
-
19
- t.string :listing_type
20
- t.string :listing_status
21
-
22
- t.string :listing_year_built
23
- t.string :listing_energy_class
24
- t.string :listing_leed_rating
5
+ t.string :property_listing_title
6
+ t.text :property_listing_description
7
+ t.string :property_listing_street_address
8
+ t.string :property_listing_price
9
+
10
+ t.string :property_listing_area
11
+ t.string :property_listing_property_area
12
+ t.string :property_listing_garage_area
13
+
14
+ t.string :property_listing_room
15
+ t.string :property_listing_bed
16
+ t.string :property_listing_bath
17
+ t.string :property_listing_garage
18
+
19
+ t.string :property_listing_type
20
+ t.string :property_listing_status
21
+
22
+ t.string :property_listing_year_built
23
+ t.string :property_listing_energy_class
24
+ t.string :property_listing_leed_rating
25
25
 
26
26
  t.string :optimization_id
27
27
 
@@ -2,7 +2,7 @@ class CreatePhcdevworksRealEstatePropertyFeatures < ActiveRecord::Migration[6.0]
2
2
  def change
3
3
  create_table :phcdevworks_real_estate_property_features do |t|
4
4
 
5
- t.string :feature_name
5
+ t.string :property_feature_name
6
6
 
7
7
  t.string :optimization_id
8
8
 
@@ -1,3 +1,4 @@
1
+ require "phcdevworks_real_estate/version"
1
2
  require "phcdevworks_real_estate/engine"
2
3
 
3
4
  module PhcdevworksRealEstate
@@ -1,37 +1,47 @@
1
1
  module PhcdevworksRealEstate
2
- class Engine < ::Rails::Engine
3
-
4
- # Load Main Dependencies
5
- require "jbuilder"
6
- require "paper_trail"
7
- require "friendly_id"
8
-
9
- # Load Theme Dependencies
10
- require "phcthemes_admin_panel_pack"
11
- require "phcthemes_web_theme_pack"
12
-
13
- # Load Helper Dependencies
14
- require "phcdevworks_core"
15
- require "phcdevworks_active_menus"
16
- require "phcdevworks_notifications"
17
- require "phcdevworks_titleseo"
18
-
19
- # Load Upload Dependencies
20
- require "aws-sdk-s3"
21
- require "google-cloud-storage"
22
- require "mini_magick"
23
-
24
- # Frontend Dependencies
25
- require "wicked"
26
- require "gravtastic"
27
- require "friendly_id"
28
-
29
- # Load User Accounts
30
- require "phcdevworks_accounts"
31
- require "phcdevworks_core_modules"
32
-
33
- # Engine Namespace
34
- isolate_namespace PhcdevworksRealEstate
35
-
36
- end
2
+ class Engine < ::Rails::Engine
3
+
4
+ # Load Main Dependencies
5
+ require "jbuilder"
6
+ require "paper_trail"
7
+ require "friendly_id"
8
+
9
+ # Load Theme Dependencies
10
+ require "phcthemes_admin_panel_pack"
11
+ require "phcthemes_web_theme_pack"
12
+
13
+ # Load Helper Dependencies
14
+ require "phcdevworks_core"
15
+ require "phcdevworks_active_menus"
16
+ require "phcdevworks_notifications"
17
+ require "phcdevworks_titleseo"
18
+
19
+ # Load Upload Dependencies
20
+ require "aws-sdk-s3"
21
+ require "google-cloud-storage"
22
+ require "mini_magick"
23
+
24
+ # Frontend Dependencies
25
+ require "wicked"
26
+ require "gravtastic"
27
+ require "friendly_id"
28
+
29
+ # Mailer Dependencies
30
+ require "mail_form"
31
+
32
+ # Load User Accounts
33
+ require "phcdevworks_accounts"
34
+ require "phcdevworks_core_modules"
35
+
36
+ # Engine Namespace
37
+ isolate_namespace PhcdevworksRealEstate
38
+
39
+ # Rspec Generators
40
+ config.generators do |g|
41
+ g.test_framework :rspec
42
+ g.fixture_replacement :factory_bot
43
+ g.factory_bot dir: 'spec/factories'
44
+ end
45
+
46
+ end
37
47
  end
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksRealEstate
2
- VERSION = "3.0.0"
2
+ VERSION = '5.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_real_estate
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-19 00:00:00.000000000 Z
11
+ date: 2020-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '6.0'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 6.0.3.2
19
+ version: '6.1'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '6.0'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 6.0.3.2
26
+ version: '6.1'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: jbuilder
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -50,112 +44,112 @@ dependencies:
50
44
  requirements:
51
45
  - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: '10.3'
47
+ version: '11.0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
51
  requirements:
58
52
  - - "~>"
59
53
  - !ruby/object:Gem::Version
60
- version: '10.3'
54
+ version: '11.0'
61
55
  - !ruby/object:Gem::Dependency
62
56
  name: phcthemes_admin_panel_pack
63
57
  requirement: !ruby/object:Gem::Requirement
64
58
  requirements:
65
59
  - - "~>"
66
60
  - !ruby/object:Gem::Version
67
- version: '2.0'
61
+ version: '3.2'
68
62
  type: :runtime
69
63
  prerelease: false
70
64
  version_requirements: !ruby/object:Gem::Requirement
71
65
  requirements:
72
66
  - - "~>"
73
67
  - !ruby/object:Gem::Version
74
- version: '2.0'
68
+ version: '3.2'
75
69
  - !ruby/object:Gem::Dependency
76
70
  name: phcthemes_web_theme_pack
77
71
  requirement: !ruby/object:Gem::Requirement
78
72
  requirements:
79
73
  - - "~>"
80
74
  - !ruby/object:Gem::Version
81
- version: '2.0'
75
+ version: '3.2'
82
76
  type: :runtime
83
77
  prerelease: false
84
78
  version_requirements: !ruby/object:Gem::Requirement
85
79
  requirements:
86
80
  - - "~>"
87
81
  - !ruby/object:Gem::Version
88
- version: '2.0'
82
+ version: '3.2'
89
83
  - !ruby/object:Gem::Dependency
90
84
  name: phcdevworks_active_menus
91
85
  requirement: !ruby/object:Gem::Requirement
92
86
  requirements:
93
87
  - - "~>"
94
88
  - !ruby/object:Gem::Version
95
- version: '2.0'
89
+ version: '2.2'
96
90
  type: :runtime
97
91
  prerelease: false
98
92
  version_requirements: !ruby/object:Gem::Requirement
99
93
  requirements:
100
94
  - - "~>"
101
95
  - !ruby/object:Gem::Version
102
- version: '2.0'
96
+ version: '2.2'
103
97
  - !ruby/object:Gem::Dependency
104
98
  name: phcdevworks_core
105
99
  requirement: !ruby/object:Gem::Requirement
106
100
  requirements:
107
101
  - - "~>"
108
102
  - !ruby/object:Gem::Version
109
- version: '2.0'
103
+ version: '2.2'
110
104
  type: :runtime
111
105
  prerelease: false
112
106
  version_requirements: !ruby/object:Gem::Requirement
113
107
  requirements:
114
108
  - - "~>"
115
109
  - !ruby/object:Gem::Version
116
- version: '2.0'
110
+ version: '2.2'
117
111
  - !ruby/object:Gem::Dependency
118
112
  name: phcdevworks_notifications
119
113
  requirement: !ruby/object:Gem::Requirement
120
114
  requirements:
121
115
  - - "~>"
122
116
  - !ruby/object:Gem::Version
123
- version: '2.0'
117
+ version: '2.2'
124
118
  type: :runtime
125
119
  prerelease: false
126
120
  version_requirements: !ruby/object:Gem::Requirement
127
121
  requirements:
128
122
  - - "~>"
129
123
  - !ruby/object:Gem::Version
130
- version: '2.0'
124
+ version: '2.2'
131
125
  - !ruby/object:Gem::Dependency
132
126
  name: phcdevworks_titleseo
133
127
  requirement: !ruby/object:Gem::Requirement
134
128
  requirements:
135
129
  - - "~>"
136
130
  - !ruby/object:Gem::Version
137
- version: '3.0'
131
+ version: '3.2'
138
132
  type: :runtime
139
133
  prerelease: false
140
134
  version_requirements: !ruby/object:Gem::Requirement
141
135
  requirements:
142
136
  - - "~>"
143
137
  - !ruby/object:Gem::Version
144
- version: '3.0'
138
+ version: '3.2'
145
139
  - !ruby/object:Gem::Dependency
146
140
  name: phcdevworks_core_modules
147
141
  requirement: !ruby/object:Gem::Requirement
148
142
  requirements:
149
143
  - - "~>"
150
144
  - !ruby/object:Gem::Version
151
- version: '6.0'
145
+ version: '7.0'
152
146
  type: :runtime
153
147
  prerelease: false
154
148
  version_requirements: !ruby/object:Gem::Requirement
155
149
  requirements:
156
150
  - - "~>"
157
151
  - !ruby/object:Gem::Version
158
- version: '6.0'
152
+ version: '7.0'
159
153
  - !ruby/object:Gem::Dependency
160
154
  name: wicked
161
155
  requirement: !ruby/object:Gem::Requirement
@@ -176,14 +170,14 @@ dependencies:
176
170
  requirements:
177
171
  - - "~>"
178
172
  - !ruby/object:Gem::Version
179
- version: '5.3'
173
+ version: '5.4'
180
174
  type: :runtime
181
175
  prerelease: false
182
176
  version_requirements: !ruby/object:Gem::Requirement
183
177
  requirements:
184
178
  - - "~>"
185
179
  - !ruby/object:Gem::Version
186
- version: '5.3'
180
+ version: '5.4'
187
181
  - !ruby/object:Gem::Dependency
188
182
  name: gravtastic
189
183
  requirement: !ruby/object:Gem::Requirement
@@ -198,62 +192,138 @@ dependencies:
198
192
  - - "~>"
199
193
  - !ruby/object:Gem::Version
200
194
  version: '3.2'
195
+ - !ruby/object:Gem::Dependency
196
+ name: mail_form
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '1.8'
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '1.8'
201
209
  - !ruby/object:Gem::Dependency
202
210
  name: aws-sdk-s3
203
211
  requirement: !ruby/object:Gem::Requirement
204
212
  requirements:
205
213
  - - "~>"
206
214
  - !ruby/object:Gem::Version
207
- version: '1.74'
215
+ version: '1.85'
208
216
  type: :runtime
209
217
  prerelease: false
210
218
  version_requirements: !ruby/object:Gem::Requirement
211
219
  requirements:
212
220
  - - "~>"
213
221
  - !ruby/object:Gem::Version
214
- version: '1.74'
222
+ version: '1.85'
215
223
  - !ruby/object:Gem::Dependency
216
224
  name: google-cloud-storage
217
225
  requirement: !ruby/object:Gem::Requirement
218
226
  requirements:
219
227
  - - "~>"
220
228
  - !ruby/object:Gem::Version
221
- version: '1.26'
229
+ version: '1.29'
222
230
  type: :runtime
223
231
  prerelease: false
224
232
  version_requirements: !ruby/object:Gem::Requirement
225
233
  requirements:
226
234
  - - "~>"
227
235
  - !ruby/object:Gem::Version
228
- version: '1.26'
236
+ version: '1.29'
229
237
  - !ruby/object:Gem::Dependency
230
238
  name: mini_magick
231
239
  requirement: !ruby/object:Gem::Requirement
232
240
  requirements:
233
241
  - - "~>"
234
242
  - !ruby/object:Gem::Version
235
- version: '4.10'
243
+ version: '4.11'
236
244
  type: :runtime
237
245
  prerelease: false
238
246
  version_requirements: !ruby/object:Gem::Requirement
239
247
  requirements:
240
248
  - - "~>"
241
249
  - !ruby/object:Gem::Version
242
- version: '4.10'
250
+ version: '4.11'
243
251
  - !ruby/object:Gem::Dependency
244
252
  name: phcdevworks_accounts
245
253
  requirement: !ruby/object:Gem::Requirement
246
254
  requirements:
247
255
  - - "~>"
248
256
  - !ruby/object:Gem::Version
249
- version: '2.0'
257
+ version: '3.0'
250
258
  type: :runtime
251
259
  prerelease: false
252
260
  version_requirements: !ruby/object:Gem::Requirement
253
261
  requirements:
254
262
  - - "~>"
255
263
  - !ruby/object:Gem::Version
256
- version: '2.0'
264
+ version: '3.0'
265
+ - !ruby/object:Gem::Dependency
266
+ name: factory_bot_rails
267
+ requirement: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - "~>"
270
+ - !ruby/object:Gem::Version
271
+ version: '6.1'
272
+ type: :development
273
+ prerelease: false
274
+ version_requirements: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - "~>"
277
+ - !ruby/object:Gem::Version
278
+ version: '6.1'
279
+ - !ruby/object:Gem::Dependency
280
+ name: rspec-rails
281
+ requirement: !ruby/object:Gem::Requirement
282
+ requirements:
283
+ - - "~>"
284
+ - !ruby/object:Gem::Version
285
+ version: '4.0'
286
+ type: :development
287
+ prerelease: false
288
+ version_requirements: !ruby/object:Gem::Requirement
289
+ requirements:
290
+ - - "~>"
291
+ - !ruby/object:Gem::Version
292
+ version: '4.0'
293
+ - !ruby/object:Gem::Dependency
294
+ name: spring
295
+ requirement: !ruby/object:Gem::Requirement
296
+ requirements:
297
+ - - "~>"
298
+ - !ruby/object:Gem::Version
299
+ version: '2.1'
300
+ - - ">="
301
+ - !ruby/object:Gem::Version
302
+ version: 2.1.1
303
+ type: :development
304
+ prerelease: false
305
+ version_requirements: !ruby/object:Gem::Requirement
306
+ requirements:
307
+ - - "~>"
308
+ - !ruby/object:Gem::Version
309
+ version: '2.1'
310
+ - - ">="
311
+ - !ruby/object:Gem::Version
312
+ version: 2.1.1
313
+ - !ruby/object:Gem::Dependency
314
+ name: spring-commands-rspec
315
+ requirement: !ruby/object:Gem::Requirement
316
+ requirements:
317
+ - - "~>"
318
+ - !ruby/object:Gem::Version
319
+ version: '1.0'
320
+ type: :development
321
+ prerelease: false
322
+ version_requirements: !ruby/object:Gem::Requirement
323
+ requirements:
324
+ - - "~>"
325
+ - !ruby/object:Gem::Version
326
+ version: '1.0'
257
327
  - !ruby/object:Gem::Dependency
258
328
  name: sqlite3
259
329
  requirement: !ruby/object:Gem::Requirement
@@ -270,7 +340,7 @@ dependencies:
270
340
  version: '1.4'
271
341
  description: Ruby on Rails 6 Real Estate Property Listings Management Engine.
272
342
  email:
273
- - developers@phcdevworks.com
343
+ - imfo@phcdevworks.com
274
344
  executables: []
275
345
  extensions: []
276
346
  extra_rdoc_files: []
@@ -279,9 +349,6 @@ files:
279
349
  - README.md
280
350
  - Rakefile
281
351
  - app/assets/config/phcdevworks_real_estate_manifest.js
282
- - app/assets/javascripts/phcdevworks_real_estate/application.js
283
- - app/assets/javascripts/phcdevworks_real_estate/property/features.coffee
284
- - app/assets/javascripts/phcdevworks_real_estate/property/listings.coffee
285
352
  - app/assets/stylesheets/phcdevworks_real_estate/application.scss
286
353
  - app/assets/stylesheets/phcdevworks_real_estate/property/features.scss
287
354
  - app/assets/stylesheets/phcdevworks_real_estate/property/listings.scss
@@ -322,7 +389,11 @@ files:
322
389
  homepage: https://phcdevworks.com/
323
390
  licenses:
324
391
  - MIT
325
- metadata: {}
392
+ metadata:
393
+ allowed_push_host: https://rubygems.org/
394
+ homepage_uri: https://phcdevworks.com/
395
+ source_code_uri: https://github.com/phcdevworks/phcdevworks_real_estate
396
+ changelog_uri: https://github.com/phcdevworks/phcdevworks_real_estate/releases
326
397
  post_install_message:
327
398
  rdoc_options: []
328
399
  require_paths:
@@ -1,2 +0,0 @@
1
- // Load Admin Theme
2
- //= require phcthemes_admin_panel_pack_coloradmin