devise_materialize 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +54 -0
- data/.github/CONTRIBUTING.md +17 -0
- data/.github/ISSUE_TEMPLATE.md +21 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +9 -0
- data/.rubocop.yml +1193 -311
- data/CHANGELOG.md +8 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +85 -79
- data/README.md +5 -5
- data/Rakefile +6 -16
- data/_config.yml +1 -0
- data/devise_materialize.gemspec +3 -4
- data/lib/devise_materialize.rb +1 -0
- data/lib/devise_materialize/version.rb +2 -1
- data/lib/generators/devise_materialize/install_generator.rb +1 -0
- data/lib/generators/templates/erb/default/confirmations/new.html.erb +4 -6
- data/lib/generators/templates/erb/default/passwords/edit.html.erb +4 -9
- data/lib/generators/templates/erb/default/passwords/new.html.erb +2 -5
- data/lib/generators/templates/erb/default/registrations/edit.html.erb +2 -4
- data/lib/generators/templates/erb/default/registrations/new.html.erb +3 -6
- data/lib/generators/templates/erb/default/sessions/new.html.erb +2 -3
- data/lib/generators/templates/erb/default/shared/_links.html.erb +6 -12
- data/lib/generators/templates/erb/default/unlocks/new.html.erb +3 -5
- data/test/devise_materialize_test.rb +1 -0
- data/test/lib/install_generator_test.rb +12 -11
- data/test/test_helper.rb +1 -0
- metadata +11 -7
- data/circle.yml +0 -21
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,45 +1,45 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
devise_materialize (1.
|
5
|
-
railties (>= 4.1.0, < 5.
|
4
|
+
devise_materialize (1.1.0)
|
5
|
+
railties (>= 4.1.0, < 5.2)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actioncable (5.0.
|
11
|
-
actionpack (= 5.0.
|
12
|
-
nio4r (
|
10
|
+
actioncable (5.0.6)
|
11
|
+
actionpack (= 5.0.6)
|
12
|
+
nio4r (>= 1.2, < 3.0)
|
13
13
|
websocket-driver (~> 0.6.1)
|
14
|
-
actionmailer (5.0.
|
15
|
-
actionpack (= 5.0.
|
16
|
-
actionview (= 5.0.
|
17
|
-
activejob (= 5.0.
|
14
|
+
actionmailer (5.0.6)
|
15
|
+
actionpack (= 5.0.6)
|
16
|
+
actionview (= 5.0.6)
|
17
|
+
activejob (= 5.0.6)
|
18
18
|
mail (~> 2.5, >= 2.5.4)
|
19
19
|
rails-dom-testing (~> 2.0)
|
20
|
-
actionpack (5.0.
|
21
|
-
actionview (= 5.0.
|
22
|
-
activesupport (= 5.0.
|
20
|
+
actionpack (5.0.6)
|
21
|
+
actionview (= 5.0.6)
|
22
|
+
activesupport (= 5.0.6)
|
23
23
|
rack (~> 2.0)
|
24
24
|
rack-test (~> 0.6.3)
|
25
25
|
rails-dom-testing (~> 2.0)
|
26
26
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
27
|
-
actionview (5.0.
|
28
|
-
activesupport (= 5.0.
|
27
|
+
actionview (5.0.6)
|
28
|
+
activesupport (= 5.0.6)
|
29
29
|
builder (~> 3.1)
|
30
30
|
erubis (~> 2.7.0)
|
31
31
|
rails-dom-testing (~> 2.0)
|
32
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.
|
33
|
-
activejob (5.0.
|
34
|
-
activesupport (= 5.0.
|
32
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
33
|
+
activejob (5.0.6)
|
34
|
+
activesupport (= 5.0.6)
|
35
35
|
globalid (>= 0.3.6)
|
36
|
-
activemodel (5.0.
|
37
|
-
activesupport (= 5.0.
|
38
|
-
activerecord (5.0.
|
39
|
-
activemodel (= 5.0.
|
40
|
-
activesupport (= 5.0.
|
36
|
+
activemodel (5.0.6)
|
37
|
+
activesupport (= 5.0.6)
|
38
|
+
activerecord (5.0.6)
|
39
|
+
activemodel (= 5.0.6)
|
40
|
+
activesupport (= 5.0.6)
|
41
41
|
arel (~> 7.0)
|
42
|
-
activesupport (5.0.
|
42
|
+
activesupport (5.0.6)
|
43
43
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
44
44
|
i18n (~> 0.7)
|
45
45
|
minitest (~> 5.1)
|
@@ -47,89 +47,92 @@ GEM
|
|
47
47
|
arel (7.1.4)
|
48
48
|
ast (2.3.0)
|
49
49
|
builder (3.2.3)
|
50
|
-
codeclimate-test-reporter (1.0.
|
50
|
+
codeclimate-test-reporter (1.0.7)
|
51
51
|
simplecov
|
52
|
-
concurrent-ruby (1.0.
|
52
|
+
concurrent-ruby (1.0.5)
|
53
|
+
crass (1.0.3)
|
53
54
|
docile (1.1.5)
|
54
55
|
erubis (2.7.0)
|
55
|
-
globalid (0.
|
56
|
-
activesupport (>= 4.
|
57
|
-
i18n (0.
|
58
|
-
|
59
|
-
|
56
|
+
globalid (0.4.1)
|
57
|
+
activesupport (>= 4.2.0)
|
58
|
+
i18n (0.9.1)
|
59
|
+
concurrent-ruby (~> 1.0)
|
60
|
+
json (2.1.0)
|
61
|
+
loofah (2.1.1)
|
62
|
+
crass (~> 1.0.2)
|
60
63
|
nokogiri (>= 1.5.9)
|
61
|
-
mail (2.
|
62
|
-
|
63
|
-
method_source (0.
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
ast (~> 2.2)
|
64
|
+
mail (2.7.0)
|
65
|
+
mini_mime (>= 0.1.1)
|
66
|
+
method_source (0.9.0)
|
67
|
+
mini_mime (1.0.0)
|
68
|
+
mini_portile2 (2.3.0)
|
69
|
+
minitest (5.10.3)
|
70
|
+
minitest-ci (3.3.0)
|
71
|
+
minitest (>= 5.0.6)
|
72
|
+
nio4r (2.1.0)
|
73
|
+
nokogiri (1.8.1)
|
74
|
+
mini_portile2 (~> 2.3.0)
|
75
|
+
parallel (1.12.1)
|
76
|
+
parser (2.4.0.2)
|
77
|
+
ast (~> 2.3)
|
76
78
|
powerpack (0.1.1)
|
77
|
-
rack (2.0.
|
79
|
+
rack (2.0.3)
|
78
80
|
rack-test (0.6.3)
|
79
81
|
rack (>= 1.0)
|
80
|
-
rails (5.0.
|
81
|
-
actioncable (= 5.0.
|
82
|
-
actionmailer (= 5.0.
|
83
|
-
actionpack (= 5.0.
|
84
|
-
actionview (= 5.0.
|
85
|
-
activejob (= 5.0.
|
86
|
-
activemodel (= 5.0.
|
87
|
-
activerecord (= 5.0.
|
88
|
-
activesupport (= 5.0.
|
89
|
-
bundler (>= 1.3.0
|
90
|
-
railties (= 5.0.
|
82
|
+
rails (5.0.6)
|
83
|
+
actioncable (= 5.0.6)
|
84
|
+
actionmailer (= 5.0.6)
|
85
|
+
actionpack (= 5.0.6)
|
86
|
+
actionview (= 5.0.6)
|
87
|
+
activejob (= 5.0.6)
|
88
|
+
activemodel (= 5.0.6)
|
89
|
+
activerecord (= 5.0.6)
|
90
|
+
activesupport (= 5.0.6)
|
91
|
+
bundler (>= 1.3.0)
|
92
|
+
railties (= 5.0.6)
|
91
93
|
sprockets-rails (>= 2.0.0)
|
92
|
-
rails-dom-testing (2.0.
|
93
|
-
activesupport (>= 4.2.0
|
94
|
-
nokogiri (
|
94
|
+
rails-dom-testing (2.0.3)
|
95
|
+
activesupport (>= 4.2.0)
|
96
|
+
nokogiri (>= 1.6)
|
95
97
|
rails-html-sanitizer (1.0.3)
|
96
98
|
loofah (~> 2.0)
|
97
|
-
railties (5.0.
|
98
|
-
actionpack (= 5.0.
|
99
|
-
activesupport (= 5.0.
|
99
|
+
railties (5.0.6)
|
100
|
+
actionpack (= 5.0.6)
|
101
|
+
activesupport (= 5.0.6)
|
100
102
|
method_source
|
101
103
|
rake (>= 0.8.7)
|
102
104
|
thor (>= 0.18.1, < 2.0)
|
103
|
-
rainbow (
|
104
|
-
rake (
|
105
|
-
rubocop (0.
|
106
|
-
|
105
|
+
rainbow (3.0.0)
|
106
|
+
rake (12.3.0)
|
107
|
+
rubocop (0.52.0)
|
108
|
+
parallel (~> 1.10)
|
109
|
+
parser (>= 2.4.0.2, < 3.0)
|
107
110
|
powerpack (~> 0.1)
|
108
|
-
rainbow (>=
|
111
|
+
rainbow (>= 2.2.2, < 4.0)
|
109
112
|
ruby-progressbar (~> 1.7)
|
110
113
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
111
|
-
ruby-progressbar (1.
|
112
|
-
simplecov (0.
|
114
|
+
ruby-progressbar (1.9.0)
|
115
|
+
simplecov (0.15.1)
|
113
116
|
docile (~> 1.1.0)
|
114
117
|
json (>= 1.8, < 3)
|
115
118
|
simplecov-html (~> 0.10.0)
|
116
|
-
simplecov-html (0.10.
|
119
|
+
simplecov-html (0.10.2)
|
117
120
|
sprockets (3.7.1)
|
118
121
|
concurrent-ruby (~> 1.0)
|
119
122
|
rack (> 1, < 3)
|
120
|
-
sprockets-rails (3.2.
|
123
|
+
sprockets-rails (3.2.1)
|
121
124
|
actionpack (>= 4.0)
|
122
125
|
activesupport (>= 4.0)
|
123
126
|
sprockets (>= 3.0.0)
|
124
|
-
thor (0.
|
125
|
-
thread_safe (0.3.
|
126
|
-
tzinfo (1.2.
|
127
|
+
thor (0.20.0)
|
128
|
+
thread_safe (0.3.6)
|
129
|
+
tzinfo (1.2.4)
|
127
130
|
thread_safe (~> 0.1)
|
128
|
-
unicode-display_width (1.
|
131
|
+
unicode-display_width (1.3.0)
|
129
132
|
websocket-driver (0.6.5)
|
130
133
|
websocket-extensions (>= 0.1.0)
|
131
|
-
websocket-extensions (0.1.
|
132
|
-
yard (0.9.
|
134
|
+
websocket-extensions (0.1.3)
|
135
|
+
yard (0.9.12)
|
133
136
|
|
134
137
|
PLATFORMS
|
135
138
|
ruby
|
@@ -143,5 +146,8 @@ DEPENDENCIES
|
|
143
146
|
simplecov
|
144
147
|
yard
|
145
148
|
|
149
|
+
RUBY VERSION
|
150
|
+
ruby 2.4.1p111
|
151
|
+
|
146
152
|
BUNDLED WITH
|
147
|
-
1.
|
153
|
+
1.16.1
|
data/README.md
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
[![Gem](https://img.shields.io/gem/v/devise_materialize.svg?style=flat-square)](https://rubygems.org/gems/devise_materialize)
|
4
4
|
[![CircleCI](https://img.shields.io/circleci/project/github/techgurupezza/devise_materialize.svg?style=flat-square)](https://circleci.com/gh/techgurupezza/devise_materialize)
|
5
|
-
[![
|
6
|
-
[![Test Coverage](https://
|
7
|
-
[![Gemnasium](https://img.shields.io/gemnasium/
|
5
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/aa4da7ff94af7db3bc66/maintainability)](https://codeclimate.com/github/techgurupezza/devise_materialize/maintainability)
|
6
|
+
[![Test Coverage](https://api.codeclimate.com/v1/badges/aa4da7ff94af7db3bc66/test_coverage)](https://codeclimate.com/github/techgurupezza/devise_materialize/test_coverage)
|
7
|
+
[![Gemnasium](https://img.shields.io/gemnasium/mathiasbynens/he.svg?style=flat-square)](https://gemnasium.com/github.com/techgurupezza/devise_materialize)
|
8
8
|
[![Gem](https://img.shields.io/gem/dt/devise_materialize.svg?style=flat-square)](https://rubygems.org/gems/devise_materialize)
|
9
9
|
|
10
10
|
|
@@ -31,7 +31,7 @@ gem "slim"
|
|
31
31
|
# Required if using Simple Form
|
32
32
|
gem "simple_form"
|
33
33
|
|
34
|
-
gem "devise_materialize", "~>1.
|
34
|
+
gem "devise_materialize", "~>1.1.0"
|
35
35
|
```
|
36
36
|
|
37
37
|
## Usage
|
@@ -62,7 +62,7 @@ This will generate the views in simple form usage and HAML syntax
|
|
62
62
|
|
63
63
|
## Change Log
|
64
64
|
|
65
|
-
Check out the [Change Log](https://github.com/techgurupezza/devise_materialize/CHANGELOG.md) for new features/bug fixes per release of a new version.
|
65
|
+
Check out the [Change Log](https://github.com/techgurupezza/devise_materialize/blob/master/CHANGELOG.md) for new features/bug fixes per release of a new version.
|
66
66
|
|
67
67
|
## Development
|
68
68
|
|
data/Rakefile
CHANGED
@@ -1,29 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "bundler/gem_tasks"
|
2
4
|
require "rake/testtask"
|
3
5
|
require "rubocop/rake_task"
|
4
6
|
|
5
|
-
if ENV['CIRCLECI']
|
6
|
-
dir = File.join(ENV['CIRCLE_ARTIFACTS'], 'linters')
|
7
|
-
end
|
8
|
-
|
9
7
|
Rake::TestTask.new(:test) do |t|
|
10
8
|
t.libs << "test"
|
11
9
|
t.libs << "lib"
|
12
|
-
t.test_files = FileList[
|
10
|
+
t.test_files = FileList["test/**/*_test.rb"]
|
13
11
|
end
|
14
12
|
|
15
|
-
desc
|
16
|
-
task
|
17
|
-
outputpath =
|
18
|
-
if ENV['CIRCLECI']
|
19
|
-
"#{dir}/rubocop-results.html"
|
20
|
-
else
|
21
|
-
'rubocop-results.html'
|
22
|
-
end
|
13
|
+
desc "Rubocop Task"
|
14
|
+
task(:rubocop) do
|
23
15
|
RuboCop::RakeTask.new do |t|
|
24
|
-
t.options = [
|
25
|
-
'-c', '.rubocop.yml', '-D', '-f', 'html', '-o', outputpath,
|
26
|
-
]
|
16
|
+
t.options = ["-c", ".rubocop.yml", "-D"]
|
27
17
|
t.fail_on_error = true
|
28
18
|
end
|
29
19
|
end
|
data/_config.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
theme: jekyll-theme-minimal
|
data/devise_materialize.gemspec
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
# coding: utf-8
|
2
1
|
# frozen_string_literal: true
|
2
|
+
|
3
3
|
lib = File.expand_path("../lib", __FILE__)
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
5
|
require "devise_materialize/version"
|
@@ -18,13 +18,12 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.homepage = "https://github.com/techgurupezza/devise_materialize"
|
19
19
|
spec.license = "MIT"
|
20
20
|
|
21
|
-
|
22
21
|
spec.files = `git ls-files`.split("\n")
|
23
22
|
spec.test_files = `git ls-files -- test/*`.split("\n")
|
24
23
|
spec.require_paths = ["lib"]
|
25
24
|
|
26
|
-
spec.required_ruby_version = ">= 2.
|
25
|
+
spec.required_ruby_version = ">= 2.4.0"
|
27
26
|
spec.required_rubygems_version = "> 1.3.1"
|
28
27
|
|
29
|
-
spec.add_dependency("railties", ">= 4.1.0", "< 5.
|
28
|
+
spec.add_dependency("railties", ">= 4.1.0", "< 5.2")
|
30
29
|
end
|
data/lib/devise_materialize.rb
CHANGED
@@ -4,8 +4,7 @@
|
|
4
4
|
<div class="card-content">
|
5
5
|
<span class="card-title center">Resend Confirmation Instructions</span>
|
6
6
|
<div class="divider"></div>
|
7
|
-
<%= form_for resource, as: resource_name, %>
|
8
|
-
url: confirmation_path(resource_name), html: { method: :post } do |f|
|
7
|
+
<%= form_for resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post } do |f| %>
|
9
8
|
<% if devise_error_messages? || alert %>
|
10
9
|
<div class="form-errors red lighten-1">
|
11
10
|
<%= devise_error_messages! %>
|
@@ -15,14 +14,13 @@
|
|
15
14
|
<div class="form-inputs row">
|
16
15
|
<div class="input-field col s12">
|
17
16
|
<i class="material-icons prefix">email</i>
|
18
|
-
<%= f.email_field :email, autofocus: true, required: true, class: "validate"
|
19
|
-
|
20
|
-
<% end %>
|
17
|
+
<%= f.email_field :email, autofocus: true, required: true, class: "validate",
|
18
|
+
value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %>
|
21
19
|
<%= f.label :email %>
|
22
20
|
</div>
|
23
21
|
</div>
|
24
22
|
<div class="form-actions center">
|
25
|
-
<%= f.
|
23
|
+
<%= f.submit "Resend Confirmation Instructions", class: "btn wave-effects" %>
|
26
24
|
</div>
|
27
25
|
<% end %>
|
28
26
|
</div>
|
@@ -4,8 +4,7 @@
|
|
4
4
|
<div class="card-content">
|
5
5
|
<span class="card-title center">Change your Password</span>
|
6
6
|
<div class="divider"></div>
|
7
|
-
<%= form_for resource, as: resource_name, %>
|
8
|
-
url: password_path(resource_name), html: { method: :put } do |f|
|
7
|
+
<%= form_for resource, as: resource_name, url: password_path(resource_name), html: { method: :put } do |f| %>
|
9
8
|
<% if devise_error_messages? || alert %>
|
10
9
|
<div class="form-errors red lighten-1">
|
11
10
|
<%= devise_error_messages! %>
|
@@ -16,9 +15,7 @@
|
|
16
15
|
<%= f.hidden_field :reset_password_token %>
|
17
16
|
<div class="input-field col s12">
|
18
17
|
<i class="material-icons prefix">lock</i>
|
19
|
-
<%= f.password_field :password, autofocus: true, required: true, %>
|
20
|
-
autocomplete: false
|
21
|
-
<% end %>
|
18
|
+
<%= f.password_field :password, autofocus: true, required: true, autocomplete: false %>
|
22
19
|
<%= f.label :password %>
|
23
20
|
<span class="help-text">
|
24
21
|
<%= @minimum_password_length %>
|
@@ -27,14 +24,12 @@
|
|
27
24
|
</div>
|
28
25
|
<div class="input-field col s12">
|
29
26
|
<i class="material-icons prefix">lock</i>
|
30
|
-
<%= f.password_field :password_confirmation, autofocus: true, required: true, %>
|
31
|
-
autocomplete: false
|
32
|
-
<% end %>
|
27
|
+
<%= f.password_field :password_confirmation, autofocus: true, required: true, autocomplete: false %>
|
33
28
|
<%= f.label :password_confirmation %>
|
34
29
|
</div>
|
35
30
|
</div>
|
36
31
|
<div class="form-actions center">
|
37
|
-
<%= f.
|
32
|
+
<%= f.submit "Change my Password", class: "btn waves-effect" %>
|
38
33
|
</div>
|
39
34
|
<% end %>
|
40
35
|
</div>
|
@@ -4,8 +4,7 @@
|
|
4
4
|
<div class="card-content">
|
5
5
|
<span class="card-title center">Forgot your Password?</span>
|
6
6
|
<div class="divider"></div>
|
7
|
-
<%= form_for resource, as: resource_name, %>
|
8
|
-
url: password_path(resource_name), html: { method: :post } do |f|
|
7
|
+
<%= form_for resource, as: resource_name, url: password_path(resource_name), html: { method: :post } do |f| %>
|
9
8
|
<% if devise_error_messages? || alert %>
|
10
9
|
<div class="form-errors red lighten-1">
|
11
10
|
<%= devise_error_messages! %>
|
@@ -20,9 +19,7 @@
|
|
20
19
|
</div>
|
21
20
|
</div>
|
22
21
|
<div class="form-actions center">
|
23
|
-
<%= f.
|
24
|
-
class: "btn waves-effect"
|
25
|
-
<% end %>
|
22
|
+
<%= f.submit "Send Me Reset Instructions", class: "btn waves-effect" %>
|
26
23
|
</div>
|
27
24
|
<% end %>
|
28
25
|
</div>
|