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.
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## v1.1.0
4
+
5
+ #### Features
6
+ - Touch up Repo with various items (Issue #2)
7
+
8
+ #### Bugs
9
+ - Fix ERB markup (Issue #1)
10
+
3
11
  ## v1.0.0
4
12
 
5
13
  #### Features
data/Gemfile CHANGED
@@ -1,6 +1,9 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  source "https://rubygems.org"
3
4
 
5
+ ruby "2.4.1"
6
+
4
7
  gemspec
5
8
 
6
9
  gem "minitest-ci"
@@ -1,45 +1,45 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- devise_materialize (1.0.0)
5
- railties (>= 4.1.0, < 5.1)
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.1)
11
- actionpack (= 5.0.1)
12
- nio4r (~> 1.2)
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.1)
15
- actionpack (= 5.0.1)
16
- actionview (= 5.0.1)
17
- activejob (= 5.0.1)
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.1)
21
- actionview (= 5.0.1)
22
- activesupport (= 5.0.1)
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.1)
28
- activesupport (= 5.0.1)
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.2)
33
- activejob (5.0.1)
34
- activesupport (= 5.0.1)
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.1)
37
- activesupport (= 5.0.1)
38
- activerecord (5.0.1)
39
- activemodel (= 5.0.1)
40
- activesupport (= 5.0.1)
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.1)
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.5)
50
+ codeclimate-test-reporter (1.0.7)
51
51
  simplecov
52
- concurrent-ruby (1.0.4)
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.3.7)
56
- activesupport (>= 4.1.0)
57
- i18n (0.8.0)
58
- json (2.0.3)
59
- loofah (2.0.3)
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.6.4)
62
- mime-types (>= 1.16, < 4)
63
- method_source (0.8.2)
64
- mime-types (3.1)
65
- mime-types-data (~> 3.2015)
66
- mime-types-data (3.2016.0521)
67
- mini_portile2 (2.1.0)
68
- minitest (5.10.1)
69
- minitest-ci (3.1.0)
70
- minitest (~> 5.0, >= 5.0.6)
71
- nio4r (1.2.1)
72
- nokogiri (1.7.0.1)
73
- mini_portile2 (~> 2.1.0)
74
- parser (2.3.3.1)
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.1)
79
+ rack (2.0.3)
78
80
  rack-test (0.6.3)
79
81
  rack (>= 1.0)
80
- rails (5.0.1)
81
- actioncable (= 5.0.1)
82
- actionmailer (= 5.0.1)
83
- actionpack (= 5.0.1)
84
- actionview (= 5.0.1)
85
- activejob (= 5.0.1)
86
- activemodel (= 5.0.1)
87
- activerecord (= 5.0.1)
88
- activesupport (= 5.0.1)
89
- bundler (>= 1.3.0, < 2.0)
90
- railties (= 5.0.1)
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.2)
93
- activesupport (>= 4.2.0, < 6.0)
94
- nokogiri (~> 1.6)
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.1)
98
- actionpack (= 5.0.1)
99
- activesupport (= 5.0.1)
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 (2.2.1)
104
- rake (10.5.0)
105
- rubocop (0.47.1)
106
- parser (>= 2.3.3.1, < 3.0)
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 (>= 1.99.1, < 3.0)
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.8.1)
112
- simplecov (0.13.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.0)
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.0)
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.19.4)
125
- thread_safe (0.3.5)
126
- tzinfo (1.2.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.1.3)
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.2)
132
- yard (0.9.8)
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.13.7
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
- [![Code Climate](https://img.shields.io/codeclimate/github/techgurupezza/devise_materialize.svg?style=flat-square)](https://lima.codeclimate.com/github/techgurupezza/devise_materialize)
6
- [![Test Coverage](https://img.shields.io/codeclimate/coverage/github/techgurupezza/devise_materialize.svg?style=flat-square)](https://lima.codeclimate.com/github/techgurupezza/devise_materialize/coverage)
7
- [![Gemnasium](https://img.shields.io/gemnasium/techgurupezza/devise_materialize.svg?style=flat-square)](https://gemnasium.com/github.com/techgurupezza/devise_materialize)
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.0.0"
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['test/**/*_test.rb']
10
+ t.test_files = FileList["test/**/*_test.rb"]
13
11
  end
14
12
 
15
- desc 'Rubocop Task'
16
- task (:rubocop) do
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
@@ -0,0 +1 @@
1
+ theme: jekyll-theme-minimal
@@ -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.2.0"
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.1")
28
+ spec.add_dependency("railties", ">= 4.1.0", "< 5.2")
30
29
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require "devise_materialize/version"
3
4
 
4
5
  module DeviseMaterialize
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module DeviseMaterialize
3
- VERSION = "1.0.0"
4
+ VERSION = "1.1.0"
4
5
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require "rails/generators"
3
4
 
4
5
  module DeviseMaterialize
@@ -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
- value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email)
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.button :submit, "Resend Confirmation Instructions", class: "btn wave-effects" %>
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.button :submit, "Change my Password", class: "btn waves-effect" %>
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.button :submit, "Send Me Reset Instructions", %>
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>