phcdevworks_accounts 2.5.0 → 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: 661b7b49dc5b80d794d51a7fad2f9e5e7e5e1475f6feada9ec22ddf6023862ca
4
- data.tar.gz: cd044de09145a204a12787d7af605fbf4be8effbb2f202488df91e8cc849e868
3
+ metadata.gz: 0532e13841793dfb5a9da385d1df14db0c2e4a929e63b1125660531b64cc434c
4
+ data.tar.gz: f4c98033243b7dd8a7ecddf1c1291239870f15263a496eec81bcc3b96a1350ed
5
5
  SHA512:
6
- metadata.gz: 66a13c34e8f136b769e4c8b2c4c429a044203e265e716d1e33becc8ffcc64250c7f8062ecd40c7c158d0d0d78c87b0766a704e2e4d954dce9b170e936b88ec33
7
- data.tar.gz: 23b2528fe0aed46a1a4c371112e54b1f9fb9cc81368c78c94123d1ebe2756cad3cde2564bb4b40c52f4797b8f2afc84686cbfb04226b23bbcd8b3d7bd0772b5d
6
+ metadata.gz: 331371eb9d9cfc3c7404deec228123ddabcdcbb205438d4ed74eef8fcebcc4e5d7e00b15a2f47ba8eb0281aaa33b04dd112d13e476eced9994e88fb043f134ee
7
+ data.tar.gz: 155c9186c33035dda499b03ecd1aaea92496fda4ef19aaadb69dbbfad0c381e6a8db6eeb6ac37a291035806a5deed8f031625c03c4d90646d33c2379b2a24d14
@@ -1,4 +1,4 @@
1
- Copyright 2010-2020 BradPotts - PHCDevworks
1
+ Copyright 2020 BradPotts
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
@@ -1,6 +1,7 @@
1
1
  #### PHCDevworks Accounts
2
- Rails devise based user accounts and administration engine.
3
-
4
- Using Devise for Authentication
5
- Extra user information built in
6
- Custom login views included
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
- 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 = '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
- APP_RAKEFILE = File.expand_path("test/test_app/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,3 @@
1
- //= link_directory ../javascripts/phcdevworks_accounts .js
2
1
  //= link_directory ../stylesheets/phcdevworks_accounts .scss
3
2
  //= link phcthemes_admin_panel_pack_coloradmin.css
4
3
  //= link phcthemes_admin_panel_pack_coloradmin.js
@@ -1,2 +0,0 @@
1
- // Load Admin Theme
2
- @import "phcthemes_admin_panel_pack_coloradmin";
@@ -1,6 +1,6 @@
1
1
  module PhcdevworksAccounts
2
2
  class ApplicationController < ActionController::Base
3
-
3
+
4
4
  # Devise Filter
5
5
  before_action :phcdevworks_accounts_permitted_parameters, if: :devise_controller?
6
6
 
@@ -1,4 +1,4 @@
1
1
  module PhcdevworksAccounts
2
- module ApplicationHelper
3
- end
2
+ module ApplicationHelper
3
+ end
4
4
  end
@@ -1,7 +1,7 @@
1
1
  <!-- -PHC- Topbar - Navigation Header -->
2
2
  <div class="navbar-header">
3
3
 
4
- <%= link_to main_app.root_path, class: "navbar-brand" do %>
4
+ <%= link_to phcdevworks_accounts.user_path, class: "navbar-brand" do %>
5
5
  <strong>PHCDevworks</strong>Accounts
6
6
  <% end %>
7
7
 
@@ -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.user_dashboard_path %>
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.user_dashboard_path %>
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", main_app.root_path %>
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", main_app.root_path %>
5
- <% phc_breadcrumb_two link_to "Accounts Dashboard", phcdevworks_accounts.user_dashboard_path %>
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.user_dashboard_path %>
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
- # config.secret_key = 'c820cfaf52fdef30f175df6613d15419b36c28179b3853c7a2814f1e804286c6b82a7b88677aa958ac56937a8c9331575fee09fa25ac4295d007cc5c7cfa5117'
14
-
13
+
15
14
  # ==> Controller configuration
16
15
  # Configure the parent class to the devise controllers.
17
16
  config.parent_controller = 'PhcdevworksAccounts::ApplicationController'
@@ -1,4 +1,4 @@
1
- # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
1
+ # Additional translations at https://github.com/heartcombo/devise/wiki/I18n
2
2
 
3
3
  en:
4
4
  devise:
@@ -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/dashboard", to: "user/pages#dashboard", via: "get"
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
@@ -1,3 +1,4 @@
1
+ require "phcdevworks_accounts/version"
1
2
  require "phcdevworks_accounts/engine"
2
3
 
3
4
  module PhcdevworksAccounts
@@ -1,40 +1,47 @@
1
1
  module PhcdevworksAccounts
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
- end
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
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksAccounts
2
- VERSION = "2.5.0"
2
+ VERSION = '3.0.0'
3
3
  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: 2.5.0
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-21 00:00:00.000000000 Z
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:
@@ -1,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -1,2 +0,0 @@
1
- // Load Admin Theme
2
- //= require phcthemes_admin_panel_pack_coloradmin
@@ -1,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://coffeescript.org/