credible 0.8.0 → 0.9.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/app/mailers/credible/confirmation_mailer.rb +3 -3
- data/app/mailers/credible/invitation_mailer.rb +3 -3
- data/app/mailers/{credible_mailer.rb → credible/mailer_base.rb} +1 -1
- data/app/mailers/credible/reset_password_mailer.rb +3 -3
- data/app/views/credible/confirmation_mailer/confirmation_email.html.erb +11 -0
- data/app/views/credible/confirmation_mailer/confirmation_email.text.erb +5 -0
- data/app/views/credible/invitation_mailer/invitation_email.html.erb +8 -0
- data/app/views/credible/invitation_mailer/invitation_email.text.erb +4 -0
- data/app/views/credible/reset_password_mailer/reset_password_email.html.erb +6 -0
- data/app/views/credible/reset_password_mailer/{reset_password_email.text.haml → reset_password_email.text.erb} +1 -3
- data/config/routes.rb +1 -1
- data/lib/credible/version.rb +1 -1
- metadata +23 -9
- data/app/views/credible/confirmation_mailer/confirmation_email.html.haml +0 -11
- data/app/views/credible/confirmation_mailer/confirmation_email.text.haml +0 -9
- data/app/views/credible/invitation_mailer/invitation_email.html.haml +0 -7
- data/app/views/credible/invitation_mailer/invitation_email.text.haml +0 -6
- data/app/views/credible/reset_password_mailer/reset_password_email.html.haml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03a8b5244fc23f52c956c6588fba347bbf3f7846415c684cf8c28951d1459d81
|
4
|
+
data.tar.gz: 8db72b4303a461a57364359a0687582b8ed8c6b05b34f6adb9486b9624e3bfcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49d993317e3f3b93aec22d76c11e70669be871d898aa7da6da0e7d599013e23cd7db54b3362b817f9f3971ad5f4351edcfaf9ce35a02bad7f4eeda8bd636223e
|
7
|
+
data.tar.gz: '09002b2259c179980ac39619f81ea1e15b2c8d67ee961b0b9dff3bd5299ed779c97f943efad01458fc205cb7d43b23e4d3b3b27811b29ab17aa4fc4eeac83a2b'
|
@@ -1,9 +1,9 @@
|
|
1
|
-
class Credible::ConfirmationMailer <
|
1
|
+
class Credible::ConfirmationMailer < Credible::MailerBase
|
2
2
|
def confirmation_email
|
3
3
|
@app_name = Rails.application.class.module_parent_name
|
4
4
|
@user = params[:user]
|
5
|
-
|
6
|
-
@confirmation_url =
|
5
|
+
# TODO: Provide a means to have URL set by user
|
6
|
+
@confirmation_url = main_app.root_url + 'confirm/' + @user.confirmation_token + '?email=' + @user.email
|
7
7
|
mail(to: @user.email, subject: "Welcome to #{@app_name} | Please confirm your account")
|
8
8
|
end
|
9
9
|
end
|
@@ -1,9 +1,9 @@
|
|
1
|
-
class Credible::InvitationMailer <
|
1
|
+
class Credible::InvitationMailer < Credible::MailerBase
|
2
2
|
def invitation_email
|
3
3
|
@app_name = Rails.application.class.module_parent_name
|
4
4
|
@user = params[:user]
|
5
|
-
|
6
|
-
@invitation_url =
|
5
|
+
# TODO: Provide a means to have URL set by user
|
6
|
+
@invitation_url = main_app.root_url + 'confirm/' + @user.confirmation_token + '?email=' + @user.email
|
7
7
|
mail(to: @user.email, subject: "You have been invited to #{@app_name}")
|
8
8
|
end
|
9
9
|
end
|
@@ -1,9 +1,9 @@
|
|
1
|
-
class Credible::ResetPasswordMailer <
|
1
|
+
class Credible::ResetPasswordMailer < Credible::MailerBase
|
2
2
|
def reset_password_email
|
3
3
|
@app_name = Rails.application.class.module_parent_name
|
4
4
|
@user = params[:user]
|
5
|
-
|
6
|
-
@reset_password_url =
|
5
|
+
# TODO: Provide a means to have URL set by user
|
6
|
+
@reset_password_url = main_app.root_url + 'confirm/' + @user.confirmation_token + '?email=' + @user.email
|
7
7
|
mail(to: @user.email, subject: "Please reset your #{@app_name} password")
|
8
8
|
end
|
9
9
|
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<h1>
|
2
|
+
<%= "Welcome to #{@app_name}, #{@user.email}" %>
|
3
|
+
</h1>
|
4
|
+
<p>
|
5
|
+
<%= "You have successfully signed up to #{@app_name}, your username is: #{@user.email}." %>
|
6
|
+
<br/>
|
7
|
+
</p>
|
8
|
+
<p>
|
9
|
+
To confirm your account, please follow this link: <%= link_to @confirmation_url, @confirmation_url %>
|
10
|
+
</p>
|
11
|
+
<p>Thanks for joining and have a great day!</p>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<%= "Welcome to #{@app_name}, #{@user.email}" %>
|
2
|
+
\===============================================
|
3
|
+
<%= "You have successfully signed up to #{@app_name}, your username is: #{@user.email}." %>
|
4
|
+
To confirm your account, please follow this link: <%= @confirmation_url %>
|
5
|
+
Thanks for joining and have a great day!
|
data/config/routes.rb
CHANGED
@@ -7,7 +7,7 @@ Credible::Engine.routes.draw do
|
|
7
7
|
# /auth/signup.json
|
8
8
|
post 'signup', to: 'users#create'
|
9
9
|
# /auth/confirm.json
|
10
|
-
get 'confirm/:confirmation_token', to: 'users#confirm'
|
10
|
+
get 'confirm/:confirmation_token', to: 'users#confirm', as: :confirmation
|
11
11
|
# /auth/signout.json
|
12
12
|
delete 'signout', to: 'sessions#destroy'
|
13
13
|
|
data/lib/credible/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: credible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thom Bruce
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,6 +30,20 @@ dependencies:
|
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 6.0.2.2
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: bcrypt
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 3.1.7
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 3.1.7
|
33
47
|
- !ruby/object:Gem::Dependency
|
34
48
|
name: warden
|
35
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -116,19 +130,19 @@ files:
|
|
116
130
|
- app/jobs/credible/application_job.rb
|
117
131
|
- app/mailers/credible/confirmation_mailer.rb
|
118
132
|
- app/mailers/credible/invitation_mailer.rb
|
133
|
+
- app/mailers/credible/mailer_base.rb
|
119
134
|
- app/mailers/credible/reset_password_mailer.rb
|
120
|
-
- app/mailers/credible_mailer.rb
|
121
135
|
- app/models/credible/application_record.rb
|
122
136
|
- app/views/credible/authentication/sessions/_session.json.jbuilder
|
123
137
|
- app/views/credible/authentication/sessions/show.json.jbuilder
|
124
138
|
- app/views/credible/authentication/users/_user.json.jbuilder
|
125
139
|
- app/views/credible/authentication/users/show.json.jbuilder
|
126
|
-
- app/views/credible/confirmation_mailer/confirmation_email.html.
|
127
|
-
- app/views/credible/confirmation_mailer/confirmation_email.text.
|
128
|
-
- app/views/credible/invitation_mailer/invitation_email.html.
|
129
|
-
- app/views/credible/invitation_mailer/invitation_email.text.
|
130
|
-
- app/views/credible/reset_password_mailer/reset_password_email.html.
|
131
|
-
- app/views/credible/reset_password_mailer/reset_password_email.text.
|
140
|
+
- app/views/credible/confirmation_mailer/confirmation_email.html.erb
|
141
|
+
- app/views/credible/confirmation_mailer/confirmation_email.text.erb
|
142
|
+
- app/views/credible/invitation_mailer/invitation_email.html.erb
|
143
|
+
- app/views/credible/invitation_mailer/invitation_email.text.erb
|
144
|
+
- app/views/credible/reset_password_mailer/reset_password_email.html.erb
|
145
|
+
- app/views/credible/reset_password_mailer/reset_password_email.text.erb
|
132
146
|
- config/initializers/warden.rb
|
133
147
|
- config/routes.rb
|
134
148
|
- lib/credible.rb
|
@@ -1,11 +0,0 @@
|
|
1
|
-
%h1= "Welcome to #{@app_name}, #{@user.email}"
|
2
|
-
|
3
|
-
%p
|
4
|
-
= "You have successfully signed up to #{@app_name}, your username is: #{@user.email}."
|
5
|
-
%br/
|
6
|
-
|
7
|
-
%p
|
8
|
-
To confirm your account, please follow this link:
|
9
|
-
= link_to @confirmation_url, @confirmation_url
|
10
|
-
|
11
|
-
%p Thanks for joining and have a great day!
|
@@ -1,9 +0,0 @@
|
|
1
|
-
= "Welcome to #{@app_name}, #{@user.email}"
|
2
|
-
\===============================================
|
3
|
-
|
4
|
-
= "You have successfully signed up to #{@app_name}, your username is: #{@user.email}."
|
5
|
-
|
6
|
-
To confirm your account, please follow this link:
|
7
|
-
= @confirmation_url
|
8
|
-
|
9
|
-
Thanks for joining and have a great day!
|