devise_materialize 1.0.0 → 1.1.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.
@@ -7,8 +7,7 @@
7
7
  <%= resource_name.to_s.humanize %>
8
8
  </span>
9
9
  <div class="divider"></div>
10
- <%= form_for resource, as: resource_name, %>
11
- url: registration_path(resource_name), html: { method: :put } do |f|
10
+ <%= form_for resource, as: resource_name, url: registration_path(resource_name), html: { method: :put } do |f| %>
12
11
  <% if devise_error_messages? || alert || (devise_mapping.confirmable? && resource.pending_reconfirmation?) %>
13
12
  <div class="form-errors red lighten-1">
14
13
  <%= devise_error_messages! %>
@@ -27,7 +26,6 @@
27
26
  <%= f.password_field :password, autocomplete: "off" %>
28
27
  <%= f.label :password, %>
29
28
  "Password (leave blank if you don't want to change it)"
30
- <% end %>
31
29
  <span class="hint-text">
32
30
  <%= @minimum_password_length %>
33
31
  Characters Minimum
@@ -46,7 +44,7 @@
46
44
  </div>
47
45
  </div>
48
46
  <div class="form-actions center">
49
- <%= f.button :submit, "Update", class: "btn waves-effect" %>
47
+ <%= f.submit "Update", class: "btn waves-effect" %>
50
48
  </div>
51
49
  <% end %>
52
50
  </div>
@@ -4,8 +4,7 @@
4
4
  <div class="card-content">
5
5
  <span class="card-title center">Sign Up</span>
6
6
  <div class="divider"></div>
7
- <%= form_for resource, as: resource_name, %>
8
- url: registration_path(resource_name) do |f|
7
+ <%= form_for resource, as: resource_name, url: registration_path(resource_name) do |f| %>
9
8
  <% if devise_error_messages? || alert %>
10
9
  <div class="form-errors red lighten-1">
11
10
  <%= devise_error_messages! %>
@@ -29,14 +28,12 @@
29
28
  </div>
30
29
  <div class="input-field col s12">
31
30
  <i class="material-icons prefix">lock</i>
32
- <%= f.password_field :password_confirmation, autocomplete: "off", %>
33
- required: true
34
- <% end %>
31
+ <%= f.password_field :password_confirmation, autocomplete: "off", required: true %>
35
32
  <%= f.label :password_confirmation %>
36
33
  </div>
37
34
  </div>
38
35
  <div class="form-actions center">
39
- <%= f.button :submit, "Sign Up", class: "btn waves-effect" %>
36
+ <%= f.submit "Sign Up", class: "btn waves-effect" %>
40
37
  </div>
41
38
  <% end %>
42
39
  </div>
@@ -4,8 +4,7 @@
4
4
  <div class="card-content">
5
5
  <span class="card-title center">Log In</span>
6
6
  <div class="divider"></div>
7
- <%= form_for resource, as: resource_name, %>
8
- url: session_path(resource_name) do |f|
7
+ <%= form_for resource, as: resource_name, url: session_path(resource_name) do |f| %>
9
8
  <% if devise_error_messages? || alert %>
10
9
  <div class="form-errors red lighten-1">
11
10
  <%= devise_error_messages! %>
@@ -31,7 +30,7 @@
31
30
  <% end %>
32
31
  </div>
33
32
  <div class="form-actions center">
34
- <%= f.button :submit, "Log In", class: "btn waves-effect" %>
33
+ <%= f.submit "Log In", class: "btn waves-effect" %>
35
34
  </div>
36
35
  <% end %>
37
36
  </div>
@@ -14,27 +14,21 @@
14
14
  <br/>
15
15
  <% end %>
16
16
  <% if devise_mapping.confirmable? && controller_name != 'confirmations' %>
17
- <%= link_to "Didn't Receive Confirmation Instructions?", %>
18
- new_confirmation_path(resource_name)
19
- <% end %>
17
+ <%= link_to "Didn't Receive Confirmation Instructions?", new_confirmation_path(resource_name) %>
20
18
  <br/>
21
19
  <% end %>
22
20
  <% if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
23
- <%= link_to "Didn't Receive Unlock Instructions?", %>
24
- new_unlock_path(resource_name)
25
- <% end %>
21
+ <%= link_to "Didn't Receive Unlock Instructions?", new_unlock_path(resource_name) %>
26
22
  <br/>
27
23
  <% end %>
28
24
  <% if devise_mapping.omniauthable? %>
29
25
  <% resource_class.omniauth_providers.each do |provider| %>
30
- <%= link_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", %>
31
- omniauth_authorize_path(resource_name, provider)
32
- <% end %>
26
+ <%= link_to "Sign in with #{OmniAuth::Utils.camelize(provider)}",
27
+ omniauth_authorize_path(resource_name, provider) %>
33
28
  <% end %>
34
29
  <% end %>
35
30
  <% if controller_name == 'registrations' && current_user.present? %>
36
- <%= link_to "Cancel My Account", registration_path(resource_name), %>
31
+ <%= link_to "Cancel My Account", registration_path(resource_name),
37
32
  data: { confirm: "Are You Sure you want to Delete Your Account?",
38
- method: :delete }, class: "btn waves-effect red"
39
- <% end %>
33
+ method: :delete }, class: "btn waves-effect red" %>
40
34
  <% end %>
@@ -4,8 +4,8 @@
4
4
  <div class="card-content">
5
5
  <span class="card-title center">Resend Unlock Instructions</span>
6
6
  <div class="divider"></div>
7
- <%= form_for resource, as: resource_name, url: unlock_path(resource_name), %>
8
- html: { method: :post } do |f|
7
+ <%= form_for resource, as: resource_name, url: unlock_path(resource_name),
8
+ html: { method: :post } do |f| %>
9
9
  <% if devise_error_messages? || alert %>
10
10
  <div class="form-errors red lighten-1">
11
11
  <%= devise_error_messages! %>
@@ -20,9 +20,7 @@
20
20
  </div>
21
21
  </div>
22
22
  <div class="form-actions center">
23
- <%= f.button :submit, "Resend Unlock Instructions", %>
24
- class: "btn waves-effect"
25
- <% end %>
23
+ <%= f.submit, "Resend Unlock Instructions", class: "btn waves-effect" %>
26
24
  </div>
27
25
  <% end %>
28
26
  </div>
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require "test_helper"
3
4
 
4
5
  class DeviseMaterializeTest < Minitest::Test
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require "test_helper"
3
4
 
4
5
  class InstallGeneratorTest < Rails::Generators::TestCase
@@ -12,57 +13,57 @@ class InstallGeneratorTest < Rails::Generators::TestCase
12
13
  end
13
14
 
14
15
  test "assert files created for default namespace with haml" do
15
- run_generator %w(-v haml)
16
+ run_generator %w[-v haml]
16
17
  assert_files nil, view_engine: "html.haml"
17
18
  end
18
19
 
19
20
  test "assert files created for default namespace wil slim" do
20
- run_generator %w(-v slim)
21
+ run_generator %w[-v slim]
21
22
  assert_files nil, view_engine: "html.slim"
22
23
  end
23
24
 
24
25
  test "assert files created for users namespace with no params" do
25
- run_generator %w(User)
26
+ run_generator %w[User]
26
27
  assert_files "users"
27
28
  end
28
29
 
29
30
  test "assert files created for users namespace with haml" do
30
- run_generator %w(User -v haml)
31
+ run_generator %w[User -v haml]
31
32
  assert_files "users", view_engine: "html.haml"
32
33
  end
33
34
 
34
35
  test "assert files created for users namespace wil slim" do
35
- run_generator %w(User -v slim)
36
+ run_generator %w[User -v slim]
36
37
  assert_files "users", view_engine: "html.slim"
37
38
  end
38
39
 
39
40
  test "assert files created for default namespace and simple form" do
40
- run_generator %w(-f simple_form)
41
+ run_generator %w[-f simple_form]
41
42
  assert_files
42
43
  end
43
44
 
44
45
  test "assert files created for default namespace with haml and simple_form" do
45
- run_generator %w(-v haml -f simple_form)
46
+ run_generator %w[-v haml -f simple_form]
46
47
  assert_files nil, view_engine: "html.haml"
47
48
  end
48
49
 
49
50
  test "assert files created for default namespace wil slim and simple form" do
50
- run_generator %w(-v slim -f simple_form)
51
+ run_generator %w[-v slim -f simple_form]
51
52
  assert_files nil, view_engine: "html.slim"
52
53
  end
53
54
 
54
55
  test "assert files created for users namespace with and simple form" do
55
- run_generator %w(User -f simple_form)
56
+ run_generator %w[User -f simple_form]
56
57
  assert_files "users"
57
58
  end
58
59
 
59
60
  test "assert files created for users namespace with haml and simple form" do
60
- run_generator %w(User -v haml -f simple_form)
61
+ run_generator %w[User -v haml -f simple_form]
61
62
  assert_files "users", view_engine: "html.haml"
62
63
  end
63
64
 
64
65
  test "assert files created for users namespace wil slim and simple form" do
65
- run_generator %w(User -v slim -f simple_form)
66
+ run_generator %w[User -v slim -f simple_form]
66
67
  assert_files "users", view_engine: "html.slim"
67
68
  end
68
69
 
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  ENV["RAILS_ENV"] = "test"
3
4
  $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
4
5
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_materialize
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Pezza
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-12 00:00:00.000000000 Z
11
+ date: 2017-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 4.1.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '5.1'
22
+ version: '5.2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 4.1.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5.1'
32
+ version: '5.2'
33
33
  description: This Gem provides a generator for Materialize styled Devise Views in
34
34
  HAML, SLIM, and ERB format with standard Form or simple form functionality
35
35
  email:
@@ -38,7 +38,11 @@ executables: []
38
38
  extensions: []
39
39
  extra_rdoc_files: []
40
40
  files:
41
+ - ".circleci/config.yml"
41
42
  - ".codeclimate.yml"
43
+ - ".github/CONTRIBUTING.md"
44
+ - ".github/ISSUE_TEMPLATE.md"
45
+ - ".github/PULL_REQUEST_TEMPLATE.md"
42
46
  - ".gitignore"
43
47
  - ".rubocop.yml"
44
48
  - ".ruby-version"
@@ -50,9 +54,9 @@ files:
50
54
  - LICENSE.txt
51
55
  - README.md
52
56
  - Rakefile
57
+ - _config.yml
53
58
  - bin/console
54
59
  - bin/setup
55
- - circle.yml
56
60
  - devise_materialize.gemspec
57
61
  - lib/devise_materialize.rb
58
62
  - lib/devise_materialize/version.rb
@@ -173,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
177
  requirements:
174
178
  - - ">="
175
179
  - !ruby/object:Gem::Version
176
- version: 2.2.0
180
+ version: 2.4.0
177
181
  required_rubygems_version: !ruby/object:Gem::Requirement
178
182
  requirements:
179
183
  - - ">"
@@ -181,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
185
  version: 1.3.1
182
186
  requirements: []
183
187
  rubyforge_project:
184
- rubygems_version: 2.6.8
188
+ rubygems_version: 2.6.12
185
189
  signing_key:
186
190
  specification_version: 4
187
191
  summary: Generator for Materialize styled Devise Views
data/circle.yml DELETED
@@ -1,21 +0,0 @@
1
- machine:
2
- timezone: America/New_York
3
- ruby:
4
- version: 2.4.0
5
-
6
- dependencies:
7
- pre:
8
- - gem update --system
9
- - gem install rainbow -v "2.2.1"
10
- - gem install bundler
11
-
12
- test:
13
- override:
14
- - bundle exec rake test:
15
- parallel: true
16
- files:
17
- - test/**/*_test.rb
18
-
19
- post:
20
- - bundle exec codeclimate-test-reporter
21
- - bundle exec rake rubocop