phcdevworks_accounts_devise 0.1.0.pre.beta → 0.1.3.pre.beta

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: a59f872567bbbd92218ad9594a4e47bf580fafc0b3b1df76d4fcd6f314ea2452
4
- data.tar.gz: 6a511dc4386446b24ef853ffdea4a67301596dcab4ee80fef42f2c0589e9a701
3
+ metadata.gz: 38caebd130cf026160191484bc9d2b8b938a66cabbd58708edc5d52eddd275de
4
+ data.tar.gz: 307eef1b784250d9a7356f694527c596a3b2fcd6c1a4c287020c4b9f8155fac0
5
5
  SHA512:
6
- metadata.gz: b2902a85a120873ee02f2aeed4de6027d3fe6795d97216505391a347b5157791aa821dde7453101d387fde5ded74c43da88b8d622d2da1691c82c041b831fd07
7
- data.tar.gz: 3329c5f33718e0c415713531491b9b153aa58312b6f8205c23bfc63d2702d52c82dc34f03d1c359c1eca6e67b960408640162b13fa7317d1687e1f1384c1225a
6
+ metadata.gz: 91d1ca011eb3e31b2bbb630cda839fb91ad2014e453bdcdb40b25cbf88a240a701f590cd4432ac6c67d7406c23d8f79d5f23390da3987e727401cfbce1e667f9
7
+ data.tar.gz: 3447619711e246cde5dace9cfadf18f997bb62ef68d3d39a6209f3116f306f697df1cb43d60a8c146a9d6927c875fbc2df90fb3e9dd4bc6c45db55bd573aa7b9
@@ -3,7 +3,7 @@
3
3
  class Users::RegistrationsController < Devise::RegistrationsController
4
4
  # before_action :configure_sign_up_params, only: [:create]
5
5
  # before_action :configure_account_update_params, only: [:update]
6
- after_action :phcdevworks_accounts_devise_payments_add_customer, :only => :create, if: -> {defined?(PhcdevworksAccountsStripe)}
6
+ after_action :phcdevworks_accounts_stripe_add_customer, :only => :create, if: -> {defined?(PhcdevworksAccountsStripe)}
7
7
 
8
8
  # GET /resource/sign_up
9
9
  # def new
@@ -61,12 +61,12 @@ class Users::RegistrationsController < Devise::RegistrationsController
61
61
  # super(resource)
62
62
  # end
63
63
 
64
- def phcdevworks_accounts_payments_add_customer
64
+ def phcdevworks_accounts_stripe_add_customer
65
65
  if resource.valid?
66
66
  phcdevworks_accounts_devise_customer = Stripe::Customer.create({
67
67
  email: current_user.email, name: current_user.firstname + " " + current_user.lastname
68
68
  })
69
- @user.payments_customer_id = phcdevworks_accounts_customer.id
69
+ @user.payments_customer_id = phcdevworks_accounts_devise_customer.id
70
70
  @user.save
71
71
  end
72
72
  end
@@ -2,7 +2,7 @@
2
2
  <span>
3
3
  <!-- -PHCDev- Page Container - Footer - Left - Copyright -->
4
4
  <i class="fab fa-osi font-weight-bolder"></i> 2012-<%= Time.now.year %> -
5
- <span class="font-weight-bold">PHC</span>Devworks Accounts (Devise) - Engine v<%= Gem.loaded_specs["phcdevworks_accounts_devise"].version.to_s %>
5
+ <span class="phc_dev_strong_plugin">PHC</span><span class="phc_dev_light_plugin">Devworks</span> Accounts (Devise) - Engine v<%= Gem.loaded_specs["phcdevworks_accounts_devise"].version.to_s %>
6
6
  <!-- -PHCDev- Page Container - Footer - Left - Copyright -->
7
7
  </span>
8
8
  <!-- -PHCDev- Page Container - Footer - Left -->
@@ -11,7 +11,7 @@
11
11
  <span class="float-right">
12
12
  <!-- -PHCDev- Page Container - Footer - Right - Developed -->
13
13
  Developed with <i class="fas fa-heart hanna_hearts"></i> by
14
- <a class="phcnet_copyright text-dark" href="https://phcdevworks.com/"><u><span class="font-weight-bold">PHC</span>Devworks</u></a>
14
+ <a class="phcnet_copyright text-dark" href="https://phcdevworks.com/"><u><span class="phc_dev_strong_plugin">PHC</span><span class="phc_dev_light_plugin">Devworks</span></u></a>
15
15
  <!-- -PHCDev- Page Container - Footer - Right - Developed -->
16
16
  </span>
17
17
  <!-- -PHCDev- Page Container - Footer - Right -->
@@ -1,4 +1,4 @@
1
- <!-- -PHC- Topbar - Navigation Header -->
1
+ <!-- -PHCDev- Topbar - Navigation Header -->
2
2
  <div class="navbar-header">
3
3
 
4
4
  <button type="button" class="navbar-mobile-toggler" data-toggle="app-sidebar-mobile">
@@ -8,13 +8,13 @@
8
8
  </button>
9
9
 
10
10
  <%= link_to phcdevworks_accounts_devise.user_path, class: "navbar-brand" do %>
11
- <strong>PHCDevworks</strong>Accounts
11
+ <span class="phc_dev_strong_plugin_logo">PHC</span><span class="phc_dev_light_plugin_logo">Devworks</span>
12
12
  <% end %>
13
13
 
14
14
  </div>
15
- <!-- -PHC- Topbar - Navigation Header -->
15
+ <!-- -PHCDev- Topbar - Navigation Header -->
16
16
 
17
- <!-- -PHC- Topbar - Navigation Main -->
17
+ <!-- -PHCDev- Topbar - Navigation Main -->
18
18
  <% if current_user %>
19
19
  <div class="navbar-nav">
20
20
  <div class="navbar-item navbar-user dropdown">
@@ -38,4 +38,4 @@
38
38
  <% end %>
39
39
 
40
40
  </div>
41
- <!-- -PHC- Topbar - Navigation Main -->
41
+ <!-- -PHCDev- Topbar - Navigation Main -->
@@ -1,68 +1,64 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDev- Title System -->
2
2
  <% phc_title "User Manager" %>
3
3
  <% phc_title_tagline "Useer Index" %>
4
4
  <% phc_breadcrumb_one yield(:phc_title) %>
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- PHCTitleSEO Title Variables -->
6
+ <!-- -PHCDev- Title System -->
7
7
 
8
- <!-- Page Bradcrumbs -->
8
+ <!-- -PHCDev- Page Bradcrumbs -->
9
9
  <ol class="breadcrumb float-xl-end">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
11
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
- <!-- Page Bradcrumbs -->
13
+ <!-- -PHCDev- Page Bradcrumbs -->
14
14
 
15
- <!-- Page Header -->
15
+ <!-- -PHCDev- Page Header -->
16
16
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
- <!-- Page Header -->
17
+ <!-- -PHCDev- Page Header -->
18
18
 
19
- <!-- Page Content -->
19
+ <!-- -PHCDev- Panel -->
20
+ <div class="panel panel-inverse">
20
21
 
21
- <!-- Panel -->
22
- <div class="panel panel-inverse">
22
+ <!-- -PHCDev- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
25
+ </div>
26
+ <!-- -PHCDev- Panel - Heading -->
23
27
 
24
- <!-- Panel - Heading -->
25
- <div class="panel-heading">
26
- <h4 class="panel-title"><%= yield(:phc_title) %></h4>
27
- </div>
28
- <!-- Panel - Heading -->
28
+ <!-- -PHCDev- Panel - Body -->
29
+ <div class="panel-body">
29
30
 
30
- <!-- Panel - Body -->
31
- <div class="panel-body">
31
+ <!-- -PHCDev- Index - Table -->
32
+ <div class="table-responsive">
33
+ <table class="table table-striped table-bordered">
32
34
 
33
- <!-- Index - Table -->
34
- <div class="table-responsive">
35
- <table class="table table-striped table-bordered">
35
+ <thead>
36
+ <tr>
37
+ <th>Username</th>
38
+ <th>Full Name</th>
39
+ <th>Email</th>
40
+ </tr>
41
+ </thead>
36
42
 
37
- <thead>
43
+ <tbody>
44
+ <% @admin_users.each do |user| %>
38
45
  <tr>
39
- <th>Username</th>
40
- <th>Full Name</th>
41
- <th>Email</th>
46
+ <td><%= user.username %></td>
47
+ <td><%= user.firstname %> <%= user.lastname %></td>
48
+ <td><%= user.email %></td>
42
49
  </tr>
43
- </thead>
44
-
45
- <tbody>
46
- <% @admin_users.each do |user| %>
47
- <tr>
48
- <td><%= user.username %></td>
49
- <td><%= user.firstname %> <%= user.lastname %></td>
50
- <td><%= user.email %></td>
51
- </tr>
52
- <% end %>
53
- </tbody>
54
-
55
- </table>
56
- </div>
57
- <!-- Index - Table -->
58
-
59
- <!-- New Button -->
60
- <!-- New Button -->
50
+ <% end %>
51
+ </tbody>
61
52
 
53
+ </table>
62
54
  </div>
63
- <!-- Panel - Body -->
55
+ <!-- -PHCDev- Index - Table -->
56
+
57
+ <!-- -PHCDev- New Button -->
58
+ <!-- -PHCDev- New Button -->
64
59
 
65
60
  </div>
66
- <!-- Panel -->
61
+ <!-- -PHCDev- Panel - Body -->
67
62
 
68
- <!-- Page Content -->
63
+ </div>
64
+ <!-- -PHCDev- Panel -->
@@ -1,43 +1,46 @@
1
1
  module PhcdevworksAccountsDevise
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 "friendly_id"
27
-
28
- # Mailer Dependencies
29
- require "mail_form"
30
-
31
- # Security & Payment Dependencies
32
- require "devise"
33
- require "stripe"
34
- isolate_namespace PhcdevworksAccountsDevise
35
- # Rspec Generators
36
- config.generators do |g|
37
- g.test_framework :rspec
38
- g.fixture_replacement :factory_bot
39
- g.factory_bot dir: 'spec/factories'
40
- end
41
-
42
- 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 "friendly_id"
27
+
28
+ # Mailer Dependencies
29
+ require "mail_form"
30
+
31
+ # Security & Payment Dependencies
32
+ require "devise"
33
+ require "stripe"
34
+
35
+ # Engine Namespace
36
+ isolate_namespace PhcdevworksAccountsDevise
37
+
38
+ # Rspec Generators
39
+ config.generators do |g|
40
+ g.test_framework :rspec
41
+ g.fixture_replacement :factory_bot
42
+ g.factory_bot dir: 'spec/factories'
43
+ end
44
+
45
+ end
43
46
  end
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksAccountsDevise
2
- VERSION = "0.1.0-beta"
2
+ VERSION = "0.1.3-beta"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_accounts_devise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.beta
4
+ version: 0.1.3.pre.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-13 00:00:00.000000000 Z
11
+ date: 2022-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails