phcdevworks_accounts_devise 0.1.0.pre.beta → 0.1.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b68d025d013ad69d1a3d31779e5b7da0e144adeae882d8683fa764abf9154a0
|
4
|
+
data.tar.gz: d556264a93c21fab3d7e32e3ad77668d2300823bc158d702d1d4743fd47b7e88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a7600ab15fd2228e57f57c6034f27adffa6477e56090d7ecb636e05bde142afaaac82cd650b4ce721a532f3f22aed13737beee7fedcc1766acbe58e6eed5d0d
|
7
|
+
data.tar.gz: 677f6264083d31f473d1f34e1a3c9b3dedd1f947e31579237c8b94cef7aea79cdecde7b3b9d48d5d149ea2716f093ae43b0fd2e20d635bd005f0c8cec7e72ece
|
@@ -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 :
|
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,7 +61,7 @@ class Users::RegistrationsController < Devise::RegistrationsController
|
|
61
61
|
# super(resource)
|
62
62
|
# end
|
63
63
|
|
64
|
-
def
|
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
|
@@ -1,43 +1,46 @@
|
|
1
1
|
module PhcdevworksAccountsDevise
|
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
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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
|
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.
|
4
|
+
version: 0.1.1.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-
|
11
|
+
date: 2022-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|