phcdevworks_core 2.2.2 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73ec3f682497277f92c9da509d7e0a166e98458abd33727da69944fa67359b26
4
- data.tar.gz: a813ae884fc66cbe27b2813fde4ab1823a0dff411e97e93a27891bf8fd302b12
3
+ metadata.gz: 256b02a587318ccb6ec19083c90d196ae5daa94725cdbf173345816eaa6a5028
4
+ data.tar.gz: 22bb71a667cafbdc1e7ab676e601af789f09c55703a8a3b6cbb08b9e65e6276f
5
5
  SHA512:
6
- metadata.gz: 2cc605a28f2d5eb31603e7c219286e1d76481fb644573e3039d561581bedf22f211eecad3cfc80e74a040f92815649c9e43b811c0d8c1af0bff3524b11424b37
7
- data.tar.gz: ebb113c3d03317f27bdf4f0f456bd731289131451ef52ec5903311b8b7c229abc9964e8ecc423bf67530e3000cc4160843cdfd3180e85a87e442dc8321d659d6
6
+ metadata.gz: 673103c6c1717030380ae34a18e1cf8a2ae2ba9dc8acdd4aea137bb9306a25b68d731aa0d7500f03a9e65d033845fdbf4e9bea06f5446d3d11ed936214810e79
7
+ data.tar.gz: d46e762c92f4ac0591efc4615ae4110276fa543220e4596e7fe4ae893bee327ba99659f451e2f728d9fc720e92e195b5487f7d98a4065f72a150460d9e7c2130
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2021 BradPotts
1
+ Copyright 2022 PHCDevworks
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/README.md CHANGED
@@ -0,0 +1,3 @@
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)
@@ -1,4 +1,4 @@
1
- module PhcdevworksCore
2
- module ApplicationHelper
3
- end
4
- end
1
+ module PhcdevworksCore
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -0,0 +1,22 @@
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
+ end
22
+ end
@@ -1,39 +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
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
+ @property_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
@@ -1,12 +1,4 @@
1
1
  module PhcdevworksCore
2
2
  class Engine < ::Rails::Engine
3
-
4
- # Theme Dependencies
5
- require "phcthemes_admin_panel_pack"
6
- require "phcthemes_web_theme_pack"
7
-
8
- # Plugin Namespace
9
- isolate_namespace PhcdevworksCore
10
-
11
3
  end
12
4
  end
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksCore
2
- VERSION = '2.2.2'
2
+ VERSION = "4.0.0"
3
3
  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: 2.2.2
4
+ version: 4.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: 2021-03-07 00:00:00.000000000 Z
11
+ date: 2022-04-13 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: '6.1'
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: '6.1'
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: '4.0'
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: '4.0'
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: '4.0'
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: '4.0'
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 6 core engine and helper files for PHCDevworks plugins.
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.0.3
108
+ rubygems_version: 3.0.3.1
109
109
  signing_key:
110
110
  specification_version: 4
111
- summary: PHCDevworks - Engine - Core
111
+ summary: PHCDevworks - Helpers - Core
112
112
  test_files: []