phcdevworks_core 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +0 -0
- data/Rakefile +32 -0
- data/app/assets/config/phcdevworks_core_manifest.js +1 -0
- data/app/assets/stylesheets/phcdevworks_core/application.css +15 -0
- data/app/controllers/phcdevworks_core/application_controller.rb +5 -0
- data/app/helpers/phcdevworks_core/application_helper.rb +4 -0
- data/app/helpers/phcdevworks_core/phcdevworks_plugins_helper.rb +39 -0
- data/app/jobs/phcdevworks_core/application_job.rb +4 -0
- data/app/mailers/phcdevworks_core/application_mailer.rb +6 -0
- data/app/models/phcdevworks_core/application_record.rb +5 -0
- data/app/views/layouts/phcdevworks_core/application.html.erb +15 -0
- data/lib/phcdevworks_core.rb +5 -0
- data/lib/phcdevworks_core/engine.rb +12 -0
- data/lib/phcdevworks_core/version.rb +3 -0
- data/lib/tasks/phcdevworks_core_tasks.rake +4 -0
- metadata +121 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: cc5e220212735fb2a07f3df0524a5c69c8803ba7a5c6e3daef8ecfcb55a1cece
|
4
|
+
data.tar.gz: 6887f9449d14d8ca745a5848ea7a882e2e5201a9f51ba9c9f17031d53ca7defc
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 71ce227858f0075b1464ef66b957f053db865c057cb69a1e960a76ee55e381ac0e8a00bfd6c314facc1b1971b11ef8bffd415d6362e1e3f03784de0c0decf4b0
|
7
|
+
data.tar.gz: 7dedd96b64a6658973a681fea119351b0fc07c4a53fb3dee91e128c9ad35e2858dda1a69f9504f442d61d4fceed2801daa12542872eab26fb666e2f73bf0cdcb
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2019 - PHCDEVWORKS
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
File without changes
|
data/Rakefile
ADDED
@@ -0,0 +1,32 @@
|
|
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
|
6
|
+
|
7
|
+
require 'rdoc/task'
|
8
|
+
|
9
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
11
|
+
rdoc.title = 'PhcdevworksCore'
|
12
|
+
rdoc.options << '--line-numbers'
|
13
|
+
rdoc.rdoc_files.include('README.md')
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
+
end
|
16
|
+
|
17
|
+
APP_RAKEFILE = File.expand_path("test/dummy/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
|
@@ -0,0 +1 @@
|
|
1
|
+
//= link_directory ../stylesheets/phcdevworks_core .css
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
+
* It is generally better to create a new file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|
@@ -0,0 +1,39 @@
|
|
1
|
+
module PhcdevworksCore
|
2
|
+
module PhcdevworksPluginsHelper
|
3
|
+
|
4
|
+
# PHCDevworks - Accounts - Add Admin Only Filter
|
5
|
+
def phcdevworks_accounts_admin_only
|
6
|
+
unless current_user && current_user.admin?
|
7
|
+
redirect_to main_app.root_path, :flash => { :error => "Sorry Access Denied. Adminisistration Access Required!" }
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
# PHCDevworks - Accounts - Who Dunnit
|
12
|
+
def user_for_paper_trail
|
13
|
+
current_user ? current_user.username : 'Public user'
|
14
|
+
end
|
15
|
+
|
16
|
+
# PHCDevworks - Members - Grab Member Information
|
17
|
+
def phcmembers_get_member_profile_info
|
18
|
+
@members_profile_info = Phcdevworksmembers::Member::Profile.find(params[:profile_id])
|
19
|
+
end
|
20
|
+
|
21
|
+
# PHCDevworks - RealEstate - All Listings
|
22
|
+
def phcdevworks_real_listings_all
|
23
|
+
@perty_real_listings__all = Phcdevworksrealestate::Property::Listing.all
|
24
|
+
end
|
25
|
+
|
26
|
+
# PHCDevworks - RealEstate - Resolve Layouts
|
27
|
+
def resolve_property_listing_layouts
|
28
|
+
case action_name
|
29
|
+
when "new", "create"
|
30
|
+
"application"
|
31
|
+
when "index"
|
32
|
+
"phcdevworks_real_estate/property_list"
|
33
|
+
else
|
34
|
+
"application"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Phcdevworks core</title>
|
5
|
+
<%= csrf_meta_tags %>
|
6
|
+
<%= csp_meta_tag %>
|
7
|
+
|
8
|
+
<%= stylesheet_link_tag "phcdevworks_core/application", media: "all" %>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
|
12
|
+
<%= yield %>
|
13
|
+
|
14
|
+
</body>
|
15
|
+
</html>
|
metadata
ADDED
@@ -0,0 +1,121 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: phcdevworks_core
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- PHCDevworks
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-07-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 6.0.0.rc2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 6.0.0.rc2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: phcthemes_admin_panel_pack
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.27.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.27.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: phcthemes_web_theme_pack
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.14.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.14.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sqlite3
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.4'
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 1.4.1
|
65
|
+
type: :development
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - "~>"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '1.4'
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 1.4.1
|
75
|
+
description: Rails 6 core engine and helper files for PHCDevworks plugins.
|
76
|
+
email:
|
77
|
+
- developers@phcdevworks.com
|
78
|
+
executables: []
|
79
|
+
extensions: []
|
80
|
+
extra_rdoc_files: []
|
81
|
+
files:
|
82
|
+
- MIT-LICENSE
|
83
|
+
- README.md
|
84
|
+
- Rakefile
|
85
|
+
- app/assets/config/phcdevworks_core_manifest.js
|
86
|
+
- app/assets/stylesheets/phcdevworks_core/application.css
|
87
|
+
- app/controllers/phcdevworks_core/application_controller.rb
|
88
|
+
- app/helpers/phcdevworks_core/application_helper.rb
|
89
|
+
- app/helpers/phcdevworks_core/phcdevworks_plugins_helper.rb
|
90
|
+
- app/jobs/phcdevworks_core/application_job.rb
|
91
|
+
- app/mailers/phcdevworks_core/application_mailer.rb
|
92
|
+
- app/models/phcdevworks_core/application_record.rb
|
93
|
+
- app/views/layouts/phcdevworks_core/application.html.erb
|
94
|
+
- lib/phcdevworks_core.rb
|
95
|
+
- lib/phcdevworks_core/engine.rb
|
96
|
+
- lib/phcdevworks_core/version.rb
|
97
|
+
- lib/tasks/phcdevworks_core_tasks.rake
|
98
|
+
homepage: https://phcdevworks.com/
|
99
|
+
licenses:
|
100
|
+
- MIT
|
101
|
+
metadata: {}
|
102
|
+
post_install_message:
|
103
|
+
rdoc_options: []
|
104
|
+
require_paths:
|
105
|
+
- lib
|
106
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '0'
|
116
|
+
requirements: []
|
117
|
+
rubygems_version: 3.0.3
|
118
|
+
signing_key:
|
119
|
+
specification_version: 4
|
120
|
+
summary: PHCDevworks - Engine - Core
|
121
|
+
test_files: []
|