phcdevworks_accounts 2.5.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +6 -5
- data/Rakefile +5 -29
- data/app/assets/config/phcdevworks_accounts_manifest.js +0 -1
- data/app/assets/stylesheets/phcdevworks_accounts/application.scss +0 -2
- data/app/controllers/phcdevworks_accounts/application_controller.rb +1 -1
- data/app/helpers/phcdevworks_accounts/application_helper.rb +2 -2
- data/app/views/layouts/phcdevworks_accounts/components/backend/navigation/_top_menu.html.erb +1 -1
- data/app/views/users/confirmations/new.html.erb +1 -1
- data/app/views/users/passwords/edit.html.erb +1 -1
- data/app/views/users/passwords/new.html.erb +1 -1
- data/app/views/users/registrations/edit.html.erb +2 -2
- data/app/views/users/unlocks/new.html.erb +1 -1
- data/config/initializers/devise.rb +1 -2
- data/config/locales/devise.en.yml +1 -1
- data/config/routes.rb +7 -7
- data/lib/phcdevworks_accounts.rb +1 -0
- data/lib/phcdevworks_accounts/engine.rb +45 -38
- data/lib/phcdevworks_accounts/version.rb +1 -1
- metadata +7 -6
- data/app/assets/javascripts/phcdevworks_accounts/admin/pages.coffee +0 -3
- data/app/assets/javascripts/phcdevworks_accounts/application.js +0 -2
- data/app/assets/javascripts/phcdevworks_accounts/user/pages.coffee +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0532e13841793dfb5a9da385d1df14db0c2e4a929e63b1125660531b64cc434c
|
|
4
|
+
data.tar.gz: f4c98033243b7dd8a7ecddf1c1291239870f15263a496eec81bcc3b96a1350ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 331371eb9d9cfc3c7404deec228123ddabcdcbb205438d4ed74eef8fcebcc4e5d7e00b15a2f47ba8eb0281aaa33b04dd112d13e476eced9994e88fb043f134ee
|
|
7
|
+
data.tar.gz: 155c9186c33035dda499b03ecd1aaea92496fda4ef19aaadb69dbbfad0c381e6a8db6eeb6ac37a291035806a5deed8f031625c03c4d90646d33c2379b2a24d14
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#### PHCDevworks Accounts
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
|
|
3
|
+
Rails devise based user accounts and administration engine.
|
|
4
|
+
|
|
5
|
+
- Using Devise for Authentication
|
|
6
|
+
- Extra user information built in
|
|
7
|
+
- Custom login views included
|
data/Rakefile
CHANGED
|
@@ -1,32 +1,8 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
3
|
+
APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
|
|
4
|
+
load "rails/tasks/engine.rake"
|
|
8
5
|
|
|
9
|
-
|
|
10
|
-
rdoc.rdoc_dir = 'rdoc'
|
|
11
|
-
rdoc.title = 'PhcdevworksAccounts'
|
|
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
|
-
|
|
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,7 +1,7 @@
|
|
|
1
1
|
<!-- PHCTitleSEO Title Variables -->
|
|
2
2
|
<% phc_title resource_name.to_s.humanize + " Unlock Password" %>
|
|
3
3
|
<% phc_title_tagline "Unlock Your " + resource_name.to_s.humanize + " Unlock Password" %>
|
|
4
|
-
<% phc_breadcrumb_one link_to resource_name.to_s.humanize + " Home", phcdevworks_accounts.
|
|
4
|
+
<% phc_breadcrumb_one link_to resource_name.to_s.humanize + " Home", phcdevworks_accounts.user_path %>
|
|
5
5
|
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
|
6
6
|
<!-- PHCTitleSEO Title Variables -->
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- PHCTitleSEO Title Variables -->
|
|
2
2
|
<% phc_title resource_name.to_s.humanize + " Edit Password" %>
|
|
3
3
|
<% phc_title_tagline "Edit Your " + resource_name.to_s.humanize + " Edit Password" %>
|
|
4
|
-
<% phc_breadcrumb_one link_to resource_name.to_s.humanize + " Accounts Home", phcdevworks_accounts.
|
|
4
|
+
<% phc_breadcrumb_one link_to resource_name.to_s.humanize + " Accounts Home", phcdevworks_accounts.user_path %>
|
|
5
5
|
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
|
6
6
|
<!-- PHCTitleSEO Title Variables -->
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- PHCTitleSEO Title Variables -->
|
|
2
2
|
<% phc_title "Send Password Reset Link" %>
|
|
3
3
|
<% phc_title_tagline "Password Reset Form" %>
|
|
4
|
-
<% phc_breadcrumb_one link_to "Home",
|
|
4
|
+
<% phc_breadcrumb_one link_to "Home", phcdevworks_accounts.user_path %>
|
|
5
5
|
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
|
6
6
|
<!-- PHCTitleSEO Title Variables -->
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<!-- PHCTitleSEO Title Variables -->
|
|
2
2
|
<% phc_title resource_name.to_s.humanize + " Account Information" %>
|
|
3
3
|
<% phc_title_tagline "Edit Your " + resource_name.to_s.humanize + " Account Information" %>
|
|
4
|
-
<% phc_breadcrumb_one link_to "Home",
|
|
5
|
-
<% phc_breadcrumb_two link_to "Accounts Dashboard", phcdevworks_accounts.
|
|
4
|
+
<% phc_breadcrumb_one link_to "Home", phcdevworks_accounts.admin_users_all_path %>
|
|
5
|
+
<% phc_breadcrumb_two link_to "Accounts Dashboard", phcdevworks_accounts.user_path %>
|
|
6
6
|
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
|
7
7
|
<!-- PHCTitleSEO Title Variables -->
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- Title System -->
|
|
2
2
|
<% phc_title resource_name.to_s.humanize + " Unlock Password" %>
|
|
3
3
|
<% phc_title_tagline "Unlock Your " + resource_name.to_s.humanize + " Unlock Password" %>
|
|
4
|
-
<% phc_breadcrumb_one link_to resource_name.to_s.humanize + " Home", phcdevworks_accounts.
|
|
4
|
+
<% phc_breadcrumb_one link_to resource_name.to_s.humanize + " Home", phcdevworks_accounts.user_path %>
|
|
5
5
|
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
|
6
6
|
<!-- Title System -->
|
|
7
7
|
|
|
@@ -10,8 +10,7 @@ Devise.setup do |config|
|
|
|
10
10
|
# Devise will use the `secret_key_base` as its `secret_key`
|
|
11
11
|
# by default. You can change it below and use your own secret key.
|
|
12
12
|
config.secret_key = ENV['SECRET_KEY_BASE'] if Rails.env.production?
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
|
|
15
14
|
# ==> Controller configuration
|
|
16
15
|
# Configure the parent class to the devise controllers.
|
|
17
16
|
config.parent_controller = 'PhcdevworksAccounts::ApplicationController'
|
data/config/routes.rb
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
PhcdevworksAccounts::Engine.routes.draw do
|
|
2
2
|
|
|
3
|
-
# User Routes
|
|
4
|
-
devise_for :users, {
|
|
5
|
-
class_name: "PhcdevworksAccounts::User",
|
|
6
|
-
module: :devise
|
|
7
|
-
}
|
|
8
|
-
|
|
9
3
|
# User Dashboard
|
|
10
|
-
match "user
|
|
4
|
+
match "user", to: "user/pages#dashboard", via: "get"
|
|
11
5
|
match "user/profile", to: "user/pages#profile", via: "get"
|
|
12
6
|
|
|
13
7
|
# Admin Routes
|
|
@@ -15,4 +9,10 @@ PhcdevworksAccounts::Engine.routes.draw do
|
|
|
15
9
|
match "/admin/users/all", to: "admin/pages#users_list", via: "get"
|
|
16
10
|
match "/admin/user/:id", to: "admin/pages#user_profile", via: "get"
|
|
17
11
|
|
|
12
|
+
# User Routes
|
|
13
|
+
devise_for :users, {
|
|
14
|
+
class_name: "PhcdevworksAccounts::User",
|
|
15
|
+
module: :devise
|
|
16
|
+
}
|
|
17
|
+
|
|
18
18
|
end
|
data/lib/phcdevworks_accounts.rb
CHANGED
|
@@ -1,40 +1,47 @@
|
|
|
1
1
|
module PhcdevworksAccounts
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
+
# Security Dependencies
|
|
33
|
+
require "devise"
|
|
34
|
+
require "simple_token_authentication"
|
|
35
|
+
|
|
36
|
+
# Plugin Namespace
|
|
37
|
+
isolate_namespace PhcdevworksAccounts
|
|
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
|
|
40
47
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: phcdevworks_accounts
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
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: 2020-12-
|
|
11
|
+
date: 2020-12-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -289,9 +289,6 @@ files:
|
|
|
289
289
|
- README.md
|
|
290
290
|
- Rakefile
|
|
291
291
|
- app/assets/config/phcdevworks_accounts_manifest.js
|
|
292
|
-
- app/assets/javascripts/phcdevworks_accounts/admin/pages.coffee
|
|
293
|
-
- app/assets/javascripts/phcdevworks_accounts/application.js
|
|
294
|
-
- app/assets/javascripts/phcdevworks_accounts/user/pages.coffee
|
|
295
292
|
- app/assets/stylesheets/phcdevworks_accounts/admin/pages.scss
|
|
296
293
|
- app/assets/stylesheets/phcdevworks_accounts/application.scss
|
|
297
294
|
- app/assets/stylesheets/phcdevworks_accounts/user/pages.scss
|
|
@@ -352,7 +349,11 @@ files:
|
|
|
352
349
|
homepage: https://phcdevworks.com/
|
|
353
350
|
licenses:
|
|
354
351
|
- MIT
|
|
355
|
-
metadata:
|
|
352
|
+
metadata:
|
|
353
|
+
allowed_push_host: https://rubygems.org/
|
|
354
|
+
homepage_uri: https://phcdevworks.com/
|
|
355
|
+
source_code_uri: https://github.com/phcdevworks/phcdevworks_accounts
|
|
356
|
+
changelog_uri: https://github.com/phcdevworks/phcdevworks_accounts/releases
|
|
356
357
|
post_install_message:
|
|
357
358
|
rdoc_options: []
|
|
358
359
|
require_paths:
|