devise_materialize 0.0.4.test2

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.
Files changed (92) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +50 -0
  3. data/.rubocop.yml +859 -0
  4. data/.ruby-version +1 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +4 -0
  7. data/Gemfile.lock +126 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +40 -0
  10. data/Rakefile +10 -0
  11. data/bin/console +11 -0
  12. data/bin/setup +8 -0
  13. data/circle.yml +0 -0
  14. data/devise_materialize.gemspec +41 -0
  15. data/lib/devise_materialize.rb +5 -0
  16. data/lib/devise_materialize/version.rb +4 -0
  17. data/lib/generators/devise_materialize/USAGE +5 -0
  18. data/lib/generators/devise_materialize/install_generator.rb +47 -0
  19. data/lib/generators/templates/.keep +0 -0
  20. data/lib/generators/templates/erb/default/confirmations/new.html.erb +0 -0
  21. data/lib/generators/templates/erb/default/mailer/confirmation_instructions.html.erb +0 -0
  22. data/lib/generators/templates/erb/default/mailer/password_change.html.erb +0 -0
  23. data/lib/generators/templates/erb/default/mailer/reset_password_instructions.html.erb +0 -0
  24. data/lib/generators/templates/erb/default/mailer/unlock_instructions.html.erb +0 -0
  25. data/lib/generators/templates/erb/default/passwords/edit.html.erb +0 -0
  26. data/lib/generators/templates/erb/default/passwords/new.html.erb +0 -0
  27. data/lib/generators/templates/erb/default/registrations/edit.html.erb +0 -0
  28. data/lib/generators/templates/erb/default/registrations/new.html.erb +0 -0
  29. data/lib/generators/templates/erb/default/sessions/new.html.erb +0 -0
  30. data/lib/generators/templates/erb/default/shared/_links.html.erb +0 -0
  31. data/lib/generators/templates/erb/default/unlocks/new.html.erb +0 -0
  32. data/lib/generators/templates/erb/simple_form/confirmations/new.html.erb +31 -0
  33. data/lib/generators/templates/erb/simple_form/mailer/confirmation_instructions.html.erb +37 -0
  34. data/lib/generators/templates/erb/simple_form/mailer/password_change.html.erb +39 -0
  35. data/lib/generators/templates/erb/simple_form/mailer/reset_password_instructions.html.erb +46 -0
  36. data/lib/generators/templates/erb/simple_form/mailer/unlock_instructions.html.erb +36 -0
  37. data/lib/generators/templates/erb/simple_form/passwords/edit.html.erb +0 -0
  38. data/lib/generators/templates/erb/simple_form/passwords/new.html.erb +0 -0
  39. data/lib/generators/templates/erb/simple_form/registrations/edit.html.erb +0 -0
  40. data/lib/generators/templates/erb/simple_form/registrations/new.html.erb +0 -0
  41. data/lib/generators/templates/erb/simple_form/sessions/new.html.erb +0 -0
  42. data/lib/generators/templates/erb/simple_form/shared/_links.html.erb +0 -0
  43. data/lib/generators/templates/erb/simple_form/unlocks/new.html.erb +0 -0
  44. data/lib/generators/templates/haml/default/confirmations/new.html.haml +0 -0
  45. data/lib/generators/templates/haml/default/mailer/confirmation_instructions.html.haml +0 -0
  46. data/lib/generators/templates/haml/default/mailer/password_change.html.haml +0 -0
  47. data/lib/generators/templates/haml/default/mailer/reset_password_instructions.html.haml +0 -0
  48. data/lib/generators/templates/haml/default/mailer/unlock_instructions.html.haml +0 -0
  49. data/lib/generators/templates/haml/default/passwords/edit.html.haml +0 -0
  50. data/lib/generators/templates/haml/default/passwords/new.html.haml +0 -0
  51. data/lib/generators/templates/haml/default/registrations/edit.html.haml +0 -0
  52. data/lib/generators/templates/haml/default/registrations/new.html.haml +0 -0
  53. data/lib/generators/templates/haml/default/sessions/new.html.haml +0 -0
  54. data/lib/generators/templates/haml/default/shared/_links.html.haml +0 -0
  55. data/lib/generators/templates/haml/default/unlocks/new.html.haml +0 -0
  56. data/lib/generators/templates/haml/simple_form/confirmations/new.html.haml +20 -0
  57. data/lib/generators/templates/haml/simple_form/mailer/confirmation_instructions.html.haml +30 -0
  58. data/lib/generators/templates/haml/simple_form/mailer/password_change.html.haml +31 -0
  59. data/lib/generators/templates/haml/simple_form/mailer/reset_password_instructions.html.haml +37 -0
  60. data/lib/generators/templates/haml/simple_form/mailer/unlock_instructions.html.haml +34 -0
  61. data/lib/generators/templates/haml/simple_form/passwords/edit.html.haml +16 -0
  62. data/lib/generators/templates/haml/simple_form/passwords/new.html.haml +12 -0
  63. data/lib/generators/templates/haml/simple_form/registrations/edit.html.haml +29 -0
  64. data/lib/generators/templates/haml/simple_form/registrations/new.html.haml +16 -0
  65. data/lib/generators/templates/haml/simple_form/sessions/new.html.haml +15 -0
  66. data/lib/generators/templates/haml/simple_form/shared/_links.html.haml +34 -0
  67. data/lib/generators/templates/haml/simple_form/unlocks/new.html.haml +12 -0
  68. data/lib/generators/templates/slim/default/confirmations/new.html.slim +0 -0
  69. data/lib/generators/templates/slim/default/mailer/confirmation_instructions.html.slim +0 -0
  70. data/lib/generators/templates/slim/default/mailer/password_change.html.slim +0 -0
  71. data/lib/generators/templates/slim/default/mailer/reset_password_instructions.html.slim +0 -0
  72. data/lib/generators/templates/slim/default/mailer/unlock_instructions.html.slim +0 -0
  73. data/lib/generators/templates/slim/default/passwords/edit.html.slim +0 -0
  74. data/lib/generators/templates/slim/default/passwords/new.html.slim +0 -0
  75. data/lib/generators/templates/slim/default/registrations/edit.html.slim +0 -0
  76. data/lib/generators/templates/slim/default/registrations/new.html.slim +0 -0
  77. data/lib/generators/templates/slim/default/sessions/new.html.slim +0 -0
  78. data/lib/generators/templates/slim/default/shared/_links.html.slim +0 -0
  79. data/lib/generators/templates/slim/default/unlocks/new.html.slim +0 -0
  80. data/lib/generators/templates/slim/simple_form/confirmations/new.html.slim +0 -0
  81. data/lib/generators/templates/slim/simple_form/mailer/confirmation_instructions.html.slim +0 -0
  82. data/lib/generators/templates/slim/simple_form/mailer/password_change.html.slim +0 -0
  83. data/lib/generators/templates/slim/simple_form/mailer/reset_password_instructions.html.slim +0 -0
  84. data/lib/generators/templates/slim/simple_form/mailer/unlock_instructions.html.slim +0 -0
  85. data/lib/generators/templates/slim/simple_form/passwords/edit.html.slim +0 -0
  86. data/lib/generators/templates/slim/simple_form/passwords/new.html.slim +0 -0
  87. data/lib/generators/templates/slim/simple_form/registrations/edit.html.slim +0 -0
  88. data/lib/generators/templates/slim/simple_form/registrations/new.html.slim +0 -0
  89. data/lib/generators/templates/slim/simple_form/sessions/new.html.slim +0 -0
  90. data/lib/generators/templates/slim/simple_form/shared/_links.html.slim +0 -0
  91. data/lib/generators/templates/slim/simple_form/unlocks/new.html.slim +0 -0
  92. metadata +206 -0
@@ -0,0 +1,31 @@
1
+ <div class="row login-form">
2
+ <div class="col s12">
3
+ <div class="card hoverable">
4
+ <div class="card-content">
5
+ <span class="card-title center">Resend Confirmation Instructions</span>
6
+ <div class="divider"></div>
7
+ <%= simple_form_for resource, as: resource_name,
8
+ url: confirmation_path(resource_name), html: { method: :post } do |f| %>
9
+ <%- if devise_error_messages? || alert %>
10
+ <div class="form-errors red lighten-1">
11
+ <%= devise_error_messages! %>
12
+ <%= alert %>
13
+ </div>
14
+ <% end %>
15
+ <div class="form-inputs row">
16
+ <%= f.input :email, autofocus: true, required: true,
17
+ value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %>
18
+ </div>
19
+ <div class="form-actions center">
20
+ <%= f.button :submit, "Resend Confirmation Instructions" %>
21
+ </div>
22
+ <% end %>
23
+ </div>
24
+ <div class="card-action">
25
+ <div class="devise-links">
26
+ <%= render 'devise/shared/links' %>
27
+ </div>
28
+ </div>
29
+ </div>
30
+ </div>
31
+ </div>
@@ -0,0 +1,37 @@
1
+ <html>
2
+ <head>
3
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
4
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css" rel="stylesheet"/>
5
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"/>
6
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js"/>
7
+ <style type="text/scss">
8
+ .form {
9
+ max-width: 650px;
10
+ margin: auto;
11
+ }
12
+
13
+ .btn {
14
+ margin-top: 20px;
15
+ }
16
+ </style>
17
+ </head>
18
+ <body class="blue-grey">
19
+ <div class="row form">
20
+ <div class="col s12">
21
+ <div class="card hoverable">
22
+ <div class="card-content">
23
+ <span class="card-title center">
24
+ Welcome <%= @resource.email %>!
25
+ </span>
26
+ <div class="divider"></div>
27
+ <div class="center">
28
+ <p> You can confirm your account email through the link below:</p>
29
+ <%= link_to 'Confirm my Account', class: 'btn waves-effect cyan',
30
+ confirmation_url(@resource, confirmation_token: @token) %>
31
+ </div>
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </body>
37
+ </html>
@@ -0,0 +1,39 @@
1
+ <html>
2
+ <head>
3
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
4
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css" rel="stylesheet"/>
5
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"/>
6
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js"/>
7
+ <style type="text/scss">
8
+ .form {
9
+ max-width: 650px;
10
+ margin: auto;
11
+ }
12
+
13
+ .btn {
14
+ margin-bottom: 20px;
15
+ margin-top: 20px;
16
+ }
17
+ </style>
18
+ </head>
19
+ <body class="blue-grey">
20
+ <div class="row form">
21
+ <div class="col s12">
22
+ <div class="card hoverable">
23
+ <div class="card-content">
24
+ <span class="card-title center">
25
+ Hello <%= @resource.email %>!
26
+ </span>
27
+ <div class"divider"></div>
28
+ <div class="center">
29
+ <p>
30
+ We're contacting you to notify you that your password has
31
+ been changed.
32
+ </p>
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </div>
37
+ </div>
38
+ </body>
39
+ </html>
@@ -0,0 +1,46 @@
1
+ <html>
2
+ <head>
3
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
4
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css" rel="stylesheet"/>
5
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"/>
6
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js"/>
7
+ <style type="text/scss">
8
+ .form {
9
+ max-width: 650px;
10
+ margin: auto;
11
+ }
12
+
13
+ .btn {
14
+ margin-bottom: 20px;
15
+ margin-top: 20px;
16
+ }
17
+ </style>
18
+ </head>
19
+ <body class="blue-grey">
20
+ <div class="row form">
21
+ <div class="col s12">
22
+ <div class="card hoverable">
23
+ <div class="card-content">
24
+ <span class="card-title center">
25
+ Hello <%= @resource.email %>!
26
+ </span>
27
+ <div class"divider"></div>
28
+ <div class="center">
29
+ <p>
30
+ Someone has requested a link to change your password. You can
31
+ do this through the link below.
32
+ </p>
33
+ = link_to 'Change my Password', class: 'btn waves-effect cyan',
34
+ edit_password_url(@resource, reset_password_token: @token)
35
+ <p> If you didn't request this, please ignore this email.<p>
36
+ %p
37
+ Your password won't change until you access the link above and
38
+ create a new one.
39
+
40
+ </div>
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ </body>
46
+ </html>
@@ -0,0 +1,36 @@
1
+ <html>
2
+ <head>
3
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
4
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css" rel="stylesheet"/>
5
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"/>
6
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js"/>
7
+ <style type="text/scss">
8
+ .form {
9
+ max-width: 650px;
10
+ margin: auto;
11
+ }
12
+
13
+ .btn {
14
+ margin-bottom: 20px;
15
+ margin-top: 20px;
16
+ }
17
+ </style>
18
+ </head>
19
+ <body class="blue-grey">
20
+ <div class="row form">
21
+ <div class="col s12">
22
+ <div class="card hoverable">
23
+ <div class="card-content">
24
+ <span class="card-title center">
25
+ Hello <%= @resource.email %>!
26
+ </span>
27
+ <div class"divider"></div>
28
+ <div class="center">
29
+
30
+ </div>
31
+ </div>
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </body>
36
+ </html>
@@ -0,0 +1,20 @@
1
+ .row.login-form
2
+ .col.s12
3
+ .card.hoverable
4
+ .card-content
5
+ %span.card-title.center Resend Confirmation Instructions
6
+ .divider
7
+ = simple_form_for resource, as: resource_name,
8
+ url: confirmation_path(resource_name), html: { method: :post } do |f|
9
+ - if devise_error_messages? || alert
10
+ .form-errors.red.lighten-1
11
+ = devise_error_messages!
12
+ = alert
13
+ .form-inputs.row
14
+ = f.input :email, autofocus: true, required: true,
15
+ value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email)
16
+ .form-actions.center
17
+ = f.button :submit, "Resend Confirmation Instructions"
18
+ .card-action
19
+ .devise-links
20
+ = render 'devise/shared/links'
@@ -0,0 +1,30 @@
1
+ !!!
2
+ %html
3
+ %head
4
+ %meta{ content: "text/html; charset=utf-8", "http-equiv": "Content-Type" }/
5
+ %link{ href: "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css", rel: "stylesheet" }/
6
+ %script{ src: "https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js" }
7
+ %script{ src: "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js" }
8
+ :scss
9
+ .form {
10
+ max-width: 650px;
11
+ margin: auto;
12
+ }
13
+
14
+ .btn {
15
+ margin-top: 20px;
16
+ }
17
+ %body.blue-grey
18
+ .row.form
19
+ .col.s12
20
+ .card.hoverable
21
+ .card-content
22
+ %span.card-title.center
23
+ Welcome
24
+ = @resource.email
25
+ !
26
+ .divider
27
+ .center
28
+ %p You can confirm your account email through the link below:
29
+ = link_to 'Confirm my Account', class: 'btn waves-effect cyan',
30
+ confirmation_url(@resource, confirmation_token: @token)
@@ -0,0 +1,31 @@
1
+ !!!
2
+ %html
3
+ %head
4
+ %meta{ content: "text/html; charset=utf-8", "http-equiv": "Content-Type" }/
5
+ %link{ href: "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css", rel: "stylesheet" }/
6
+ %script{ src: "https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js" }
7
+ %script{ src: "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js" }
8
+ :scss
9
+ .form {
10
+ max-width: 650px;
11
+ margin: auto;
12
+ }
13
+
14
+ .btn {
15
+ margin-bottom: 20px;
16
+ margin-top: 20px;
17
+ }
18
+ %body.blue-grey
19
+ .row.form
20
+ .col.s12
21
+ .card.hoverable
22
+ .card-content
23
+ %span.card-title.center
24
+ Hello
25
+ = @resource.email
26
+ !
27
+ .divider
28
+ .center
29
+ %p
30
+ We're contacting you to notify you that your password has
31
+ been changed.
@@ -0,0 +1,37 @@
1
+ !!!
2
+ %html
3
+ %head
4
+ %meta{ content: "text/html; charset=utf-8", "http-equiv": "Content-Type" }/
5
+ %link{ href: "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css", rel: "stylesheet" }/
6
+ %script{ src: "https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js" }
7
+ %script{ src: "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js" }
8
+ :scss
9
+ .form {
10
+ max-width: 650px;
11
+ margin: auto;
12
+ }
13
+
14
+ .btn {
15
+ margin-bottom: 20px;
16
+ margin-top: 20px;
17
+ }
18
+ %body.blue-grey
19
+ .row.form
20
+ .col.s12
21
+ .card.hoverable
22
+ .card-content
23
+ %span.card-title.center
24
+ Hello
25
+ = @resource.email
26
+ !
27
+ .divider
28
+ .center
29
+ %p
30
+ Someone has requested a link to change your password. You can
31
+ do this through the link below.
32
+ = link_to 'Change my Password', class: 'btn waves-effect cyan',
33
+ edit_password_url(@resource, reset_password_token: @token)
34
+ %p If you didn't request this, please ignore this email.
35
+ %p
36
+ Your password won't change until you access the link above and
37
+ create a new one.
@@ -0,0 +1,34 @@
1
+ !!!
2
+ %html
3
+ %head
4
+ %meta{ content: "text/html; charset=utf-8", "http-equiv": "Content-Type" }/
5
+ %link{ href: "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css", rel: "stylesheet" }/
6
+ %script{ src: "https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js" }
7
+ %script{ src: "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js" }
8
+ :scss
9
+ .form {
10
+ max-width: 650px;
11
+ margin: auto;
12
+ }
13
+
14
+ .btn {
15
+ margin-bottom: 20px;
16
+ margin-top: 20px;
17
+ }
18
+ %body.blue-grey
19
+ .row.form
20
+ .col.s12
21
+ .card.hoverable
22
+ .card-content
23
+ %span.card-title.center
24
+ Hello
25
+ = @resource.email
26
+ !
27
+ .divider
28
+ .center
29
+ %p
30
+ Your account has been locked due to an excessive number of
31
+ unsuccessful sign in attempts.
32
+ %p Click the link below to unlock your account:
33
+ = link_to 'Unlock my Account', class: 'btn waves-effect cyan',
34
+ unlock_url(@resource, unlock_token: @token)
@@ -0,0 +1,16 @@
1
+ %span.card-title.center Change your Password
2
+ .divider
3
+ = simple_form_for resource, as: resource_name,
4
+ url: password_path(resource_name), html: { method: :put } do |f|
5
+ - if devise_error_messages? || alert
6
+ .form-errors.red.lighten-1
7
+ = devise_error_messages!
8
+ = alert
9
+ .form-inputs.row
10
+ = f.hidden_field :reset_password_token
11
+ = f.input :password, autofocus: true, required: true, autocomplete: false,
12
+ hint: "#{@minimum_password_length} Characters Minimum"
13
+ = f.input :password_confirmation, autofocus: true, required: true,
14
+ autocomplete: false
15
+ .form-actions.center
16
+ = f.button :submit, "Change my Password"
@@ -0,0 +1,12 @@
1
+ %span.card-title.center Forgot your Password?
2
+ .divider
3
+ = simple_form_for resource, as: resource_name,
4
+ url: password_path(resource_name), html: { method: :post } do |f|
5
+ - if devise_error_messages? || alert
6
+ .form-errors.red.lighten-1
7
+ = devise_error_messages!
8
+ = alert
9
+ .form-inputs.row
10
+ = f.input :email, autofocus: true, required: true
11
+ .form-actions.center
12
+ = f.button :submit, "Send Me Reset Instructions"