phcdevworks_core 2.3.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.md +3 -1
- data/Rakefile +8 -8
- data/app/helpers/phcdevworks_core/application_helper.rb +0 -0
- data/app/helpers/phcdevworks_core/phcdev_plugins_helper.rb +27 -0
- data/app/helpers/phcdevworks_core/phcdevworks_plugins_helper.rb +32 -32
- data/lib/phcdevworks_core/engine.rb +4 -12
- data/lib/phcdevworks_core/version.rb +3 -3
- data/lib/phcdevworks_core.rb +6 -6
- data/lib/tasks/phcdevworks_core_tasks.rake +4 -4
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85ca5d25655cad4d18bebba66b552f6f8c14129946b5b041e4518c46d3b728a8
|
4
|
+
data.tar.gz: bfc1ee9d19d90676368a4a8a2374fc8641bc82a085ef750e3c51487509c19d14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 464b2e07c4639a85d181c6e857ee75c2c6c3259f7995f07396d1fb8a0f09ed6c8a341cdd40b0fa55dcdce86e63940a4252503058da1ee8e6c13ea6ab73797e9e
|
7
|
+
data.tar.gz: cf18f79d2eee193983071d0696c0371b3ebe353151c5591131312f5e216dd57fcb7c550c3aaf689492b3e2c1316e8bf7beef6fe634558df74d4f8d70bbc4ccfd
|
data/MIT-LICENSE
CHANGED
@@ -1,20 +1,20 @@
|
|
1
|
-
Copyright
|
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.
|
1
|
+
Copyright 2022 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
CHANGED
@@ -1 +1,3 @@
|
|
1
|
-
|
1
|
+
### Status
|
2
|
+
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/phcdevworks_core.svg)](https://badge.fury.io/rb/phcdevworks_core) [![Publish to Github.com](https://github.com/phcdevworks/phcdevworks_core/actions/workflows/publish_gem_github_com.yml/badge.svg)](https://github.com/phcdevworks/phcdevworks_core/actions/workflows/publish_gem_github_com.yml) [![Publish to Rubygems.org](https://github.com/phcdevworks/phcdevworks_core/actions/workflows/publish_gem_rubygems_org.yml/badge.svg)](https://github.com/phcdevworks/phcdevworks_core/actions/workflows/publish_gem_rubygems_org.yml)
|
data/Rakefile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
require "bundler/setup"
|
2
|
-
|
3
|
-
APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
|
4
|
-
load "rails/tasks/engine.rake"
|
5
|
-
|
6
|
-
load "rails/tasks/statistics.rake"
|
7
|
-
|
8
|
-
require "bundler/gem_tasks"
|
1
|
+
require "bundler/setup"
|
2
|
+
|
3
|
+
APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
|
4
|
+
load "rails/tasks/engine.rake"
|
5
|
+
|
6
|
+
load "rails/tasks/statistics.rake"
|
7
|
+
|
8
|
+
require "bundler/gem_tasks"
|
File without changes
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module PhcdevworksCore
|
2
|
+
module PhcdevPluginsHelper
|
3
|
+
|
4
|
+
# PHCDev - 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
|
+
# PHCDev - Accounts - Who Dunnit
|
12
|
+
def user_for_paper_trail
|
13
|
+
current_user ? current_user.username : "Public user"
|
14
|
+
end
|
15
|
+
|
16
|
+
# PHCDev - Members - Grab Member Information
|
17
|
+
def phcmembers_get_member_profile_info
|
18
|
+
@members_profile_info = Phcmembers::Member::Profile.find(params[:profile_id])
|
19
|
+
end
|
20
|
+
|
21
|
+
# PHCDev - Members - Grab Member Information
|
22
|
+
def phcmemberspro_get_member_profile_info
|
23
|
+
@members_profile_info = Phcmemberspro::Member::Profile.find(params[:profile_id])
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -1,39 +1,39 @@
|
|
1
1
|
module PhcdevworksCore
|
2
|
-
|
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
|
2
|
+
module PhcdevworksPluginsHelper
|
10
3
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
15
10
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
11
|
+
# PHCDevworks - Accounts - Who Dunnit
|
12
|
+
def user_for_paper_trail
|
13
|
+
current_user ? current_user.username : "Public user"
|
14
|
+
end
|
20
15
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
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
|
25
20
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
"application"
|
31
|
-
when "index"
|
32
|
-
"phcdevworks_real_estate/property_list"
|
33
|
-
else
|
34
|
-
"application"
|
35
|
-
end
|
36
|
-
end
|
21
|
+
# PHCDevworks - RealEstate - All Listings
|
22
|
+
def phcdevworks_real_listings_all
|
23
|
+
@property_real_listings_all = Phcdevworksrealestate::Property::Listing.all
|
24
|
+
end
|
37
25
|
|
38
|
-
|
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
39
|
end
|
@@ -1,12 +1,4 @@
|
|
1
|
-
module PhcdevworksCore
|
2
|
-
class Engine < ::Rails::Engine
|
3
|
-
|
4
|
-
|
5
|
-
require "phcthemes_admin_panel_pack"
|
6
|
-
require "phcthemes_web_theme_pack"
|
7
|
-
|
8
|
-
# Plugin Namespace
|
9
|
-
isolate_namespace PhcdevworksCore
|
10
|
-
|
11
|
-
end
|
12
|
-
end
|
1
|
+
module PhcdevworksCore
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
end
|
4
|
+
end
|
@@ -1,3 +1,3 @@
|
|
1
|
-
module PhcdevworksCore
|
2
|
-
|
3
|
-
end
|
1
|
+
module PhcdevworksCore
|
2
|
+
VERSION = "4.0.1"
|
3
|
+
end
|
data/lib/phcdevworks_core.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
require "phcdevworks_core/version"
|
2
|
-
require "phcdevworks_core/engine"
|
3
|
-
|
4
|
-
module PhcdevworksCore
|
5
|
-
# Your code goes here...
|
6
|
-
end
|
1
|
+
require "phcdevworks_core/version"
|
2
|
+
require "phcdevworks_core/engine"
|
3
|
+
|
4
|
+
module PhcdevworksCore
|
5
|
+
# Your code goes here...
|
6
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# desc "Explaining what the task does"
|
2
|
-
# task :phcdevworks_core do
|
3
|
-
# # Task goes here
|
4
|
-
# end
|
1
|
+
# desc "Explaining what the task does"
|
2
|
+
# task :phcdevworks_core do
|
3
|
+
# # Task goes here
|
4
|
+
# end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcdevworks_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '7.0'
|
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: '
|
26
|
+
version: '7.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: phcthemes_admin_panel_pack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '5.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '5.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: phcthemes_web_theme_pack
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '5.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '5.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: sqlite3
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '1.4'
|
69
|
-
description: Rails
|
69
|
+
description: Rails 7 adds core helper files for PHCDevworks plugins.
|
70
70
|
email:
|
71
71
|
- imfo@phcdevworks.com
|
72
72
|
executables: []
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- README.md
|
78
78
|
- Rakefile
|
79
79
|
- app/helpers/phcdevworks_core/application_helper.rb
|
80
|
+
- app/helpers/phcdevworks_core/phcdev_plugins_helper.rb
|
80
81
|
- app/helpers/phcdevworks_core/phcdevworks_plugins_helper.rb
|
81
82
|
- lib/phcdevworks_core.rb
|
82
83
|
- lib/phcdevworks_core/engine.rb
|
@@ -86,7 +87,6 @@ homepage: https://phcdevworks.com/
|
|
86
87
|
licenses:
|
87
88
|
- MIT
|
88
89
|
metadata:
|
89
|
-
allowed_push_host: https://rubygems.org/
|
90
90
|
homepage_uri: https://phcdevworks.com/
|
91
91
|
source_code_uri: https://github.com/phcdevworks/phcdevworks_core
|
92
92
|
changelog_uri: https://github.com/phcdevworks/phcdevworks_core/releases
|
@@ -105,8 +105,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
|
-
rubygems_version: 3.
|
108
|
+
rubygems_version: 3.0.3.1
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
|
-
summary: PHCDevworks -
|
111
|
+
summary: PHCDevworks - Helpers - Core
|
112
112
|
test_files: []
|