phcdevworks_core 2.2.1 → 3.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: 5d9fe55fbf79d292fa70c4a457ae399dd8209fb4d0619d7e59775f4413a0658e
4
- data.tar.gz: 85512f6e59f8882827c952c761eb75715dd0822cbd13a92317c8a994816ab08b
3
+ metadata.gz: ae53128e92337e40e584d1fd9cb291534d405f2186956bbb6b899ffdcb36b4ed
4
+ data.tar.gz: c43fbf847ce50515a5882beab263babd95666d3c00f8fd7e0d21006f813cf50a
5
5
  SHA512:
6
- metadata.gz: 810a10c7ba7234a144a96a1b92b439853c8e8572248ed5e02b2ddcf05b1eca4154f735ffa715310870c8c73e91b5fad2cfed8f013cdca05ae36ccdc27caba37a
7
- data.tar.gz: 45325aad4ab5eaeae8f6041d5c8d6a1db35b9bd0048aca71736985dfd5c112d3dcf98530f63a355211df3bf921a8347a5ea8ca067a00c2e1fa154da2d16d0886
6
+ metadata.gz: e1df6d459ed2c55c7c3a2885580775fea2cb2b3d1d5f4042765a8c2c2afd12d3c3c0ce57cbfcdc50534cd3134a8bfe126719be27abab1605899e797130a3bd5c
7
+ data.tar.gz: 179fabaf0863236c4738526ee41a8a98e1bb2a5b4a68eb3eaebbb8fb6c72d0c54c014b14ed7d484a7795c34a3691bc7a52bd7e382acdbc8df8b3823deafb2157
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2010-2020 BradPotts - PHCDevworks
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
@@ -17,4 +17,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
17
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
18
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
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.
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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)
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 = 'PhcdevworksCore'
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/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
8
+ require "bundler/gem_tasks"
@@ -1,4 +1,4 @@
1
- module PhcdevworksCore
2
- module ApplicationHelper
3
- end
4
- end
1
+ module PhcdevworksCore
2
+ module ApplicationHelper
3
+ end
4
+ 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
+ @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,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.1"
2
+ VERSION = "3.0.0"
3
3
  end
@@ -1,3 +1,4 @@
1
+ require "phcdevworks_core/version"
1
2
  require "phcdevworks_core/engine"
2
3
 
3
4
  module PhcdevworksCore
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.1
4
+ version: 3.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-02-07 00:00:00.000000000 Z
11
+ date: 2022-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,48 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '6.1'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 6.1.1
19
+ version: '7.0'
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.1'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 6.1.1
26
+ version: '7.0'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: phcthemes_admin_panel_pack
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
- version: '4.0'
33
+ version: '5.1'
40
34
  type: :runtime
41
35
  prerelease: false
42
36
  version_requirements: !ruby/object:Gem::Requirement
43
37
  requirements:
44
38
  - - "~>"
45
39
  - !ruby/object:Gem::Version
46
- version: '4.0'
40
+ version: '5.1'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: phcthemes_web_theme_pack
49
43
  requirement: !ruby/object:Gem::Requirement
50
44
  requirements:
51
45
  - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: '4.0'
47
+ version: '5.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: '4.0'
54
+ version: '5.0'
61
55
  - !ruby/object:Gem::Dependency
62
56
  name: sqlite3
63
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,9 +66,9 @@ dependencies:
72
66
  - - "~>"
73
67
  - !ruby/object:Gem::Version
74
68
  version: '1.4'
75
- description: Rails 6 core engine and helper files for PHCDevworks plugins.
69
+ description: Rails 7 adds core helper files for PHCDevworks plugins.
76
70
  email:
77
- - info@phcdevworks.com
71
+ - imfo@phcdevworks.com
78
72
  executables: []
79
73
  extensions: []
80
74
  extra_rdoc_files: []
@@ -82,15 +76,8 @@ files:
82
76
  - MIT-LICENSE
83
77
  - README.md
84
78
  - 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
79
  - app/helpers/phcdevworks_core/application_helper.rb
89
80
  - 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
81
  - lib/phcdevworks_core.rb
95
82
  - lib/phcdevworks_core/engine.rb
96
83
  - lib/phcdevworks_core/version.rb
@@ -98,7 +85,10 @@ files:
98
85
  homepage: https://phcdevworks.com/
99
86
  licenses:
100
87
  - MIT
101
- metadata: {}
88
+ metadata:
89
+ homepage_uri: https://phcdevworks.com/
90
+ source_code_uri: https://github.com/phcdevworks/phcdevworks_core
91
+ changelog_uri: https://github.com/phcdevworks/phcdevworks_core/releases
102
92
  post_install_message:
103
93
  rdoc_options: []
104
94
  require_paths:
@@ -114,8 +104,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
104
  - !ruby/object:Gem::Version
115
105
  version: '0'
116
106
  requirements: []
117
- rubygems_version: 3.0.3
107
+ rubygems_version: 3.0.3.1
118
108
  signing_key:
119
109
  specification_version: 4
120
- summary: PHCDevworks - Engine - Core
110
+ summary: PHCDevworks - Helpers - Core
121
111
  test_files: []
@@ -1 +0,0 @@
1
- //= link_directory ../stylesheets/phcdevworks_core .css
@@ -1,15 +0,0 @@
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
- */
@@ -1,5 +0,0 @@
1
- module PhcdevworksCore
2
- class ApplicationController < ActionController::Base
3
- protect_from_forgery with: :exception
4
- end
5
- end
@@ -1,4 +0,0 @@
1
- module PhcdevworksCore
2
- class ApplicationJob < ActiveJob::Base
3
- end
4
- end
@@ -1,6 +0,0 @@
1
- module PhcdevworksCore
2
- class ApplicationMailer < ActionMailer::Base
3
- default from: 'from@example.com'
4
- layout 'mailer'
5
- end
6
- end
@@ -1,5 +0,0 @@
1
- module PhcdevworksCore
2
- class ApplicationRecord < ActiveRecord::Base
3
- self.abstract_class = true
4
- end
5
- end
@@ -1,15 +0,0 @@
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>