railsblocks-auth 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +31 -0
  4. data/Rakefile +37 -0
  5. data/app/assets/config/block_auth_manifest.js +2 -0
  6. data/app/assets/javascripts/block/auth/application.js +13 -0
  7. data/app/assets/stylesheets/block/auth/application.css +15 -0
  8. data/app/controllers/block/auth/application_controller.rb +17 -0
  9. data/app/controllers/block/auth/passwords_controller.rb +3 -0
  10. data/app/controllers/block/auth/registrations_controller.rb +3 -0
  11. data/app/controllers/block/auth/sessions_controller.rb +3 -0
  12. data/app/helpers/block/auth/application_helper.rb +26 -0
  13. data/app/jobs/block/auth/application_job.rb +6 -0
  14. data/app/mailers/block/auth/application_mailer.rb +8 -0
  15. data/app/models/block/auth/application_record.rb +7 -0
  16. data/app/models/block/auth/user.rb +6 -0
  17. data/app/views/devise/confirmations/new.html.erb +16 -0
  18. data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
  19. data/app/views/devise/mailer/password_change.html.erb +3 -0
  20. data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  21. data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
  22. data/app/views/devise/passwords/edit.html.erb +25 -0
  23. data/app/views/devise/passwords/new.html.erb +32 -0
  24. data/app/views/devise/registrations/edit.html.erb +43 -0
  25. data/app/views/devise/registrations/new.html.erb +33 -0
  26. data/app/views/devise/sessions/new.html.erb +30 -0
  27. data/app/views/devise/shared/_links.html.erb +28 -0
  28. data/app/views/devise/unlocks/new.html.erb +16 -0
  29. data/app/views/layouts/block/auth/application.html.erb +14 -0
  30. data/config/environment.rb +1 -0
  31. data/config/initializers/devise.rb +274 -0
  32. data/config/locales/devise.en.yml +62 -0
  33. data/config/routes.rb +3 -0
  34. data/db/migrate/20160821192721_devise_create_block_auth_users.rb +44 -0
  35. data/lib/block/auth/engine.rb +13 -0
  36. data/lib/block/auth/version.rb +5 -0
  37. data/lib/block/auth.rb +7 -0
  38. data/lib/railsblocks/auth.rb +7 -0
  39. data/lib/tasks/block/auth_tasks.rake +4 -0
  40. metadata +180 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e872c2664da95d773e928551cb7635ef0d27d9d9
4
+ data.tar.gz: 73a344be236b8fe806847d1639f8e74d1cdd10ef
5
+ SHA512:
6
+ metadata.gz: 93d6515c3e94e87920f7f95518d73e697a94297b9d541304f9db6622b6613829d8f9efb4423d0d41762154e5f8deef18fe3f74d3608de5dbbf8e7ba6853429fb
7
+ data.tar.gz: 93f616a9f4eb8a462892f0fd541603e464a368d6f7492006804586885bd105e427b8f0b6cce1a580d7365678604badc647047e5b4de0a6aaf9d9e5be4e69baa0
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2016 Celso Fernandes
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # Railblocks Auth
2
+
3
+ [![Build Status](https://travis-ci.org/railsblocks/auth.svg?branch=master)](https://travis-ci.org/railsblocks/auth)
4
+ [![Code Climate](https://codeclimate.com/github/railsblocks/auth/badges/gpa.svg)](https://codeclimate.com/github/railsblocks/auth)
5
+ [![Test Coverage](https://codeclimate.com/github/railsblocks/auth/badges/coverage.svg)](https://codeclimate.com/github/railsblocks/auth)
6
+ [![security](https://hakiri.io/github/railsblocks/auth/master.svg)](https://hakiri.io/github/railsblocks/auth/master)
7
+ [![Dependency Status](https://gemnasium.com/railsblocks/auth.svg)](https://gemnasium.com/railsblocks/auth)
8
+ [![Inline docs](http://inch-ci.org/github/railsblocks/auth.svg?branch=master)](http://inch-ci.org/github/railsblocks/auth)
9
+
10
+ Block description
11
+
12
+
13
+ ## Installation
14
+
15
+ Add to your Gemfile:
16
+
17
+ `gem 'railsblocks-auth'`
18
+
19
+ ### Questions and Bug reports
20
+
21
+ If you have any question, please open an issue! If you discover any bugs, feel free to create an issue on GitHub. Please add as much information as possible to help us fixing the possible bug. We also encourage you to help even more by forking and sending us a pull request.
22
+
23
+ https://github.com/railsblocks/auth/issues
24
+
25
+ ## Maintainers
26
+
27
+ * Celso Fernandes (https://github.com/fernandes)
28
+
29
+ ## License
30
+
31
+ [MIT License](LICENSE)
data/Rakefile ADDED
@@ -0,0 +1,37 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'Block::Auth'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.md')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+ APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
18
+ load 'rails/tasks/engine.rake'
19
+
20
+
21
+ load 'rails/tasks/statistics.rake'
22
+
23
+
24
+
25
+ require 'bundler/gem_tasks'
26
+
27
+ require 'rake/testtask'
28
+
29
+ Rake::TestTask.new(:test) do |t|
30
+ t.libs << 'lib'
31
+ t.libs << 'test'
32
+ t.pattern = 'test/**/*_test.rb'
33
+ t.verbose = false
34
+ end
35
+
36
+
37
+ task default: :test
@@ -0,0 +1,2 @@
1
+ //= link_directory ../javascripts/block/auth .js
2
+ //= link_directory ../stylesheets/block/auth .css
@@ -0,0 +1,13 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file. JavaScript code in this file should be added after the last require_* statement.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require_tree .
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,17 @@
1
+ module Block
2
+ module Auth
3
+ class ApplicationController < ActionController::Base
4
+ protect_from_forgery with: :exception
5
+
6
+ private
7
+ # Overwriting the sign_out redirect path method
8
+ def after_sign_out_path_for(resource_or_scope)
9
+ new_user_session_path
10
+ end
11
+
12
+ def after_sign_in_path_for(resource_or_scope)
13
+ main_app.root_path
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,3 @@
1
+ class Block::Auth::PasswordsController < Devise::PasswordsController
2
+ helper Block::Auth::ApplicationHelper
3
+ end
@@ -0,0 +1,3 @@
1
+ class Block::Auth::RegistrationsController < Devise::RegistrationsController
2
+ helper Block::Auth::ApplicationHelper
3
+ end
@@ -0,0 +1,3 @@
1
+ class Block::Auth::SessionsController < Devise::SessionsController
2
+ helper Block::Auth::ApplicationHelper
3
+ end
@@ -0,0 +1,26 @@
1
+ module Block
2
+ module Auth
3
+ module ApplicationHelper
4
+ def devise_error_messages!
5
+ return "" unless devise_error_messages?
6
+
7
+ messages = resource.errors.full_messages.map { |msg| content_tag(:li, msg) }.join
8
+ sentence = I18n.t("errors.messages.not_saved",
9
+ :count => resource.errors.count,
10
+ :resource => resource.class.model_name.human.downcase)
11
+
12
+ html = <<-HTML
13
+ <div class="alert alert-danger">
14
+ #{sentence} <small>#{messages}</small>
15
+ </div>
16
+ HTML
17
+
18
+ html.html_safe
19
+ end
20
+
21
+ def devise_error_messages?
22
+ !resource.errors.empty?
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,6 @@
1
+ module Block
2
+ module Auth
3
+ class ApplicationJob < ActiveJob::Base
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,8 @@
1
+ module Block
2
+ module Auth
3
+ class ApplicationMailer < ActionMailer::Base
4
+ default from: 'from@example.com'
5
+ layout 'mailer'
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,7 @@
1
+ module Block
2
+ module Auth
3
+ class ApplicationRecord < ActiveRecord::Base
4
+ self.abstract_class = true
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,6 @@
1
+ class Block::Auth::User < ApplicationRecord
2
+ # Include default devise modules. Others available are:
3
+ # :confirmable, :lockable, :timeoutable and :omniauthable
4
+ devise :database_authenticatable, :registerable,
5
+ :recoverable, :rememberable, :trackable, :validatable
6
+ end
@@ -0,0 +1,16 @@
1
+ <h2>Resend confirmation instructions</h2>
2
+
3
+ <%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %>
4
+ <%= devise_error_messages! %>
5
+
6
+ <div class="field">
7
+ <%= f.label :email %><br />
8
+ <%= f.email_field :email, autofocus: true, value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %>
9
+ </div>
10
+
11
+ <div class="actions">
12
+ <%= f.submit "Resend confirmation instructions" %>
13
+ </div>
14
+ <% end %>
15
+
16
+ <%= render "devise/shared/links" %>
@@ -0,0 +1,5 @@
1
+ <p>Welcome <%= @email %>!</p>
2
+
3
+ <p>You can confirm your account email through the link below:</p>
4
+
5
+ <p><%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %></p>
@@ -0,0 +1,3 @@
1
+ <p>Hello <%= @resource.email %>!</p>
2
+
3
+ <p>We're contacting you to notify you that your password has been changed.</p>
@@ -0,0 +1,8 @@
1
+ <p>Hello <%= @resource.email %>!</p>
2
+
3
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
4
+
5
+ <p><%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %></p>
6
+
7
+ <p>If you didn't request this, please ignore this email.</p>
8
+ <p>Your password won't change until you access the link above and create a new one.</p>
@@ -0,0 +1,7 @@
1
+ <p>Hello <%= @resource.email %>!</p>
2
+
3
+ <p>Your account has been locked due to an excessive number of unsuccessful sign in attempts.</p>
4
+
5
+ <p>Click the link below to unlock your account:</p>
6
+
7
+ <p><%= link_to 'Unlock my account', unlock_url(@resource, unlock_token: @token) %></p>
@@ -0,0 +1,25 @@
1
+ <h2>Change your password</h2>
2
+
3
+ <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
4
+ <%= devise_error_messages! %>
5
+ <%= f.hidden_field :reset_password_token %>
6
+
7
+ <div class="field">
8
+ <%= f.label :password, "New password" %><br />
9
+ <% if @minimum_password_length %>
10
+ <em>(<%= @minimum_password_length %> characters minimum)</em><br />
11
+ <% end %>
12
+ <%= f.password_field :password, autofocus: true, autocomplete: "off" %>
13
+ </div>
14
+
15
+ <div class="field">
16
+ <%= f.label :password_confirmation, "Confirm new password" %><br />
17
+ <%= f.password_field :password_confirmation, autocomplete: "off" %>
18
+ </div>
19
+
20
+ <div class="actions">
21
+ <%= f.submit "Change my password" %>
22
+ </div>
23
+ <% end %>
24
+
25
+ <%= render "devise/shared/links" %>
@@ -0,0 +1,32 @@
1
+ <div class="passwordBox">
2
+ <div class="row">
3
+ <div class="col-md-12">
4
+ <div class="ibox-content">
5
+ <h2 class="font-bold">Forgot password</h2>
6
+ <p>
7
+ Enter your email address and your password will be reset and emailed to you.
8
+ </p>
9
+ <div class="row">
10
+ <div class="col-lg-12">
11
+ <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post, class: "m-t", role: "form" }) do |f| %>
12
+ <%= devise_error_messages! %>
13
+ <div class="form-group">
14
+ <%= f.email_field :email, autofocus: true, class: "form-control", placeholder: "Email address", required: true %>
15
+ </div>
16
+ <%= f.submit "Send me reset password instructions", class: "btn btn-primary block full-width m-b" %>
17
+ <% end %>
18
+ </div>
19
+ </div>
20
+ </div>
21
+ </div>
22
+ </div>
23
+ <hr />
24
+ <div class="row">
25
+ <div class="col-md-6">
26
+ Copyright Rails Blocks
27
+ </div>
28
+ <div class="col-md-6 text-right">
29
+ <small>© 2015-2016</small>
30
+ </div>
31
+ </div>
32
+ </div>
@@ -0,0 +1,43 @@
1
+ <h2>Edit <%= resource_name.to_s.humanize %></h2>
2
+
3
+ <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
4
+ <%= devise_error_messages! %>
5
+
6
+ <div class="field">
7
+ <%= f.label :email %><br />
8
+ <%= f.email_field :email, autofocus: true %>
9
+ </div>
10
+
11
+ <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
12
+ <div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
13
+ <% end %>
14
+
15
+ <div class="field">
16
+ <%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
17
+ <%= f.password_field :password, autocomplete: "off" %>
18
+ <% if @minimum_password_length %>
19
+ <br />
20
+ <em><%= @minimum_password_length %> characters minimum</em>
21
+ <% end %>
22
+ </div>
23
+
24
+ <div class="field">
25
+ <%= f.label :password_confirmation %><br />
26
+ <%= f.password_field :password_confirmation, autocomplete: "off" %>
27
+ </div>
28
+
29
+ <div class="field">
30
+ <%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
31
+ <%= f.password_field :current_password, autocomplete: "off" %>
32
+ </div>
33
+
34
+ <div class="actions">
35
+ <%= f.submit "Update" %>
36
+ </div>
37
+ <% end %>
38
+
39
+ <h3>Cancel my account</h3>
40
+
41
+ <p>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete %></p>
42
+
43
+ <%= link_to "Back", :back %>
@@ -0,0 +1,33 @@
1
+ <div class="middle-box text-center loginscreen">
2
+ <div>
3
+ <div>
4
+ <h1 class="logo-name">RB+</h1>
5
+ </div>
6
+ <h3>Register to RB+</h3>
7
+ <p>Create an account to access it.</p>
8
+
9
+ <%= devise_error_messages! %>
10
+
11
+ <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { class: "mt-t", role: "form"}) do |f| %>
12
+ <div class="form-group">
13
+ <%= f.email_field :email, autofocus: true, class: "form-control", required: true, placeholder: "E-mail" %>
14
+ </div>
15
+
16
+ <div class="form-group">
17
+ <% if @minimum_password_length %>
18
+ <em>(<%= @minimum_password_length %> characters minimum)</em>
19
+ <% end %><br />
20
+ <%= f.password_field :password, autocomplete: "off", class: "form-control", placeholder: "Password", required: true %>
21
+ </div>
22
+
23
+ <div class="form-group">
24
+ <%= f.password_field :password_confirmation, autocomplete: "off", class: "form-control", placeholder: "Confirm Your Password", required: true %>
25
+ </div>
26
+
27
+ <%= f.submit "Sign Up", class: "btn btn-primary block full-width m-b" %>
28
+
29
+ <%= render "devise/shared/links" %>
30
+ <% end %>
31
+ <p class="m-t"> <small>Railsblocks &copy; 2015-2016</small> </p>
32
+ </div>
33
+ </div>
@@ -0,0 +1,30 @@
1
+ <div class="middle-box text-center loginscreen animated fadeInDown">
2
+ <div>
3
+ <div>
4
+ <h1 class="logo-name">RB+</h1>
5
+ </div>
6
+ <h3>Welcome to RB+</h3>
7
+ <p>Railsblocks is the next generation of building block to create web applicaions.</p>
8
+ <p>Login in. To see it in action.</p>
9
+
10
+ <%= form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: "mt-t", role: "form"}) do |f| %>
11
+ <div class="form-group">
12
+ <%= f.email_field :email, autofocus: true, class: "form-control", required: true, placeholder: "E-mail" %>
13
+ </div>
14
+ <div class="form-group">
15
+ <%= f.password_field :password, autocomplete: "off", class: "form-control", placeholder: "Password", required: true %>
16
+ </div>
17
+ <% if devise_mapping.rememberable? -%>
18
+ <div class="field">
19
+ <%= f.check_box :remember_me %>
20
+ <%= f.label :remember_me %>
21
+ </div>
22
+ <% end -%>
23
+ <%= f.submit "Log in", class: "btn btn-primary block full-width m-b" %>
24
+
25
+ <%= render "devise/shared/links" %>
26
+ <% end %>
27
+ <p class="m-t"> <small>Railsblocks &copy; 2015-2016</small> </p>
28
+ </div>
29
+ </div>
30
+
@@ -0,0 +1,28 @@
1
+ <%- if controller_name != 'sessions' %>
2
+ <%= link_to "Log in", new_session_path(resource_name) %><br />
3
+ <% end -%>
4
+
5
+ <%- if devise_mapping.registerable? && controller_name != 'registrations' %>
6
+ <p class="text-muted text-center"><small>Do not have an account?</small></p>
7
+ <%= link_to "Create an account", new_registration_path(resource_name), class: "btn btn-sm btn-white btn-block" %><br />
8
+ <% end -%>
9
+
10
+ <%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
11
+ <%= link_to new_password_path(resource_name) do %>
12
+ <small>Forgot password?</small>
13
+ <% end %><br />
14
+ <% end -%>
15
+
16
+ <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
17
+ <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %><br />
18
+ <% end -%>
19
+
20
+ <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
21
+ <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %><br />
22
+ <% end -%>
23
+
24
+ <%- if devise_mapping.omniauthable? %>
25
+ <%- resource_class.omniauth_providers.each do |provider| %>
26
+ <%= link_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider) %><br />
27
+ <% end -%>
28
+ <% end -%>
@@ -0,0 +1,16 @@
1
+ <h2>Resend unlock instructions</h2>
2
+
3
+ <%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %>
4
+ <%= devise_error_messages! %>
5
+
6
+ <div class="field">
7
+ <%= f.label :email %><br />
8
+ <%= f.email_field :email, autofocus: true %>
9
+ </div>
10
+
11
+ <div class="actions">
12
+ <%= f.submit "Resend unlock instructions" %>
13
+ </div>
14
+ <% end %>
15
+
16
+ <%= render "devise/shared/links" %>
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Block auth</title>
5
+ <%= stylesheet_link_tag "block/auth/application", media: "all" %>
6
+ <%= javascript_include_tag "block/auth/application" %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1 @@
1
+ # Load vim.rails
@@ -0,0 +1,274 @@
1
+ # Use this hook to configure devise mailer, warden hooks and so forth.
2
+ # Many of these configuration options can be set straight in your model.
3
+ Devise.setup do |config|
4
+ # The secret key used by Devise. Devise uses this key to generate
5
+ # random tokens. Changing this key will render invalid all existing
6
+ # confirmation, reset password and unlock tokens in the database.
7
+ # Devise will use the `secret_key_base` as its `secret_key`
8
+ # by default. You can change it below and use your own secret key.
9
+ # config.secret_key = '07f909db1fe31e1c4e607b539dbec086a5023fd13660856b2dca221be4a2d7e557ad88038c749c6f53b6b31ce61f31fd7f970a986f30ef589449fa47b902eb95'
10
+
11
+ # ==> Mailer Configuration
12
+ # Configure the e-mail address which will be shown in Devise::Mailer,
13
+ # note that it will be overwritten if you use your own mailer class
14
+ # with default "from" parameter.
15
+ config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
16
+
17
+ # Configure the class responsible to send e-mails.
18
+ # config.mailer = 'Devise::Mailer'
19
+
20
+ # Configure the parent class responsible to send e-mails.
21
+ # config.parent_mailer = 'ActionMailer::Base'
22
+
23
+ # ==> ORM configuration
24
+ # Load and configure the ORM. Supports :active_record (default) and
25
+ # :mongoid (bson_ext recommended) by default. Other ORMs may be
26
+ # available as additional gems.
27
+ require 'devise/orm/active_record'
28
+
29
+ # ==> Configuration for any authentication mechanism
30
+ # Configure which keys are used when authenticating a user. The default is
31
+ # just :email. You can configure it to use [:username, :subdomain], so for
32
+ # authenticating a user, both parameters are required. Remember that those
33
+ # parameters are used only when authenticating and not when retrieving from
34
+ # session. If you need permissions, you should implement that in a before filter.
35
+ # You can also supply a hash where the value is a boolean determining whether
36
+ # or not authentication should be aborted when the value is not present.
37
+ # config.authentication_keys = [:email]
38
+
39
+ # Configure parameters from the request object used for authentication. Each entry
40
+ # given should be a request method and it will automatically be passed to the
41
+ # find_for_authentication method and considered in your model lookup. For instance,
42
+ # if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
43
+ # The same considerations mentioned for authentication_keys also apply to request_keys.
44
+ # config.request_keys = []
45
+
46
+ # Configure which authentication keys should be case-insensitive.
47
+ # These keys will be downcased upon creating or modifying a user and when used
48
+ # to authenticate or find a user. Default is :email.
49
+ config.case_insensitive_keys = [:email]
50
+
51
+ # Configure which authentication keys should have whitespace stripped.
52
+ # These keys will have whitespace before and after removed upon creating or
53
+ # modifying a user and when used to authenticate or find a user. Default is :email.
54
+ config.strip_whitespace_keys = [:email]
55
+
56
+ # Tell if authentication through request.params is enabled. True by default.
57
+ # It can be set to an array that will enable params authentication only for the
58
+ # given strategies, for example, `config.params_authenticatable = [:database]` will
59
+ # enable it only for database (email + password) authentication.
60
+ # config.params_authenticatable = true
61
+
62
+ # Tell if authentication through HTTP Auth is enabled. False by default.
63
+ # It can be set to an array that will enable http authentication only for the
64
+ # given strategies, for example, `config.http_authenticatable = [:database]` will
65
+ # enable it only for database authentication. The supported strategies are:
66
+ # :database = Support basic authentication with authentication key + password
67
+ # config.http_authenticatable = false
68
+
69
+ # If 401 status code should be returned for AJAX requests. True by default.
70
+ # config.http_authenticatable_on_xhr = true
71
+
72
+ # The realm used in Http Basic Authentication. 'Application' by default.
73
+ # config.http_authentication_realm = 'Application'
74
+
75
+ # It will change confirmation, password recovery and other workflows
76
+ # to behave the same regardless if the e-mail provided was right or wrong.
77
+ # Does not affect registerable.
78
+ # config.paranoid = true
79
+
80
+ # By default Devise will store the user in session. You can skip storage for
81
+ # particular strategies by setting this option.
82
+ # Notice that if you are skipping storage for all authentication paths, you
83
+ # may want to disable generating routes to Devise's sessions controller by
84
+ # passing skip: :sessions to `devise_for` in your config/routes.rb
85
+ config.skip_session_storage = [:http_auth]
86
+
87
+ # By default, Devise cleans up the CSRF token on authentication to
88
+ # avoid CSRF token fixation attacks. This means that, when using AJAX
89
+ # requests for sign in and sign up, you need to get a new CSRF token
90
+ # from the server. You can disable this option at your own risk.
91
+ # config.clean_up_csrf_token_on_authentication = true
92
+
93
+ # When false, Devise will not attempt to reload routes on eager load.
94
+ # This can reduce the time taken to boot the app but if your application
95
+ # requires the Devise mappings to be loaded during boot time the application
96
+ # won't boot properly.
97
+ # config.reload_routes = true
98
+
99
+ # ==> Configuration for :database_authenticatable
100
+ # For bcrypt, this is the cost for hashing the password and defaults to 11. If
101
+ # using other algorithms, it sets how many times you want the password to be hashed.
102
+ #
103
+ # Limiting the stretches to just one in testing will increase the performance of
104
+ # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
105
+ # a value less than 10 in other environments. Note that, for bcrypt (the default
106
+ # algorithm), the cost increases exponentially with the number of stretches (e.g.
107
+ # a value of 20 is already extremely slow: approx. 60 seconds for 1 calculation).
108
+ config.stretches = Rails.env.test? ? 1 : 11
109
+
110
+ # Set up a pepper to generate the hashed password.
111
+ # config.pepper = '6747d23136bcecf98bebc1109c70d5bc7c891cb75c72c06bb92bab30c40aaa05cfb0fbfa3f242587d16a763531deccf667a378c42491e2e84a0e00b8e67ac4f0'
112
+
113
+ # Send a notification email when the user's password is changed
114
+ # config.send_password_change_notification = false
115
+
116
+ # ==> Configuration for :confirmable
117
+ # A period that the user is allowed to access the website even without
118
+ # confirming their account. For instance, if set to 2.days, the user will be
119
+ # able to access the website for two days without confirming their account,
120
+ # access will be blocked just in the third day. Default is 0.days, meaning
121
+ # the user cannot access the website without confirming their account.
122
+ # config.allow_unconfirmed_access_for = 2.days
123
+
124
+ # A period that the user is allowed to confirm their account before their
125
+ # token becomes invalid. For example, if set to 3.days, the user can confirm
126
+ # their account within 3 days after the mail was sent, but on the fourth day
127
+ # their account can't be confirmed with the token any more.
128
+ # Default is nil, meaning there is no restriction on how long a user can take
129
+ # before confirming their account.
130
+ # config.confirm_within = 3.days
131
+
132
+ # If true, requires any email changes to be confirmed (exactly the same way as
133
+ # initial account confirmation) to be applied. Requires additional unconfirmed_email
134
+ # db field (see migrations). Until confirmed, new email is stored in
135
+ # unconfirmed_email column, and copied to email column on successful confirmation.
136
+ config.reconfirmable = true
137
+
138
+ # Defines which key will be used when confirming an account
139
+ # config.confirmation_keys = [:email]
140
+
141
+ # ==> Configuration for :rememberable
142
+ # The time the user will be remembered without asking for credentials again.
143
+ # config.remember_for = 2.weeks
144
+
145
+ # Invalidates all the remember me tokens when the user signs out.
146
+ config.expire_all_remember_me_on_sign_out = true
147
+
148
+ # If true, extends the user's remember period when remembered via cookie.
149
+ # config.extend_remember_period = false
150
+
151
+ # Options to be passed to the created cookie. For instance, you can set
152
+ # secure: true in order to force SSL only cookies.
153
+ # config.rememberable_options = {}
154
+
155
+ # ==> Configuration for :validatable
156
+ # Range for password length.
157
+ config.password_length = 6..128
158
+
159
+ # Email regex used to validate email formats. It simply asserts that
160
+ # one (and only one) @ exists in the given string. This is mainly
161
+ # to give user feedback and not to assert the e-mail validity.
162
+ config.email_regexp = /\A[^@\s]+@[^@\s]+\z/
163
+
164
+ # ==> Configuration for :timeoutable
165
+ # The time you want to timeout the user session without activity. After this
166
+ # time the user will be asked for credentials again. Default is 30 minutes.
167
+ # config.timeout_in = 30.minutes
168
+
169
+ # ==> Configuration for :lockable
170
+ # Defines which strategy will be used to lock an account.
171
+ # :failed_attempts = Locks an account after a number of failed attempts to sign in.
172
+ # :none = No lock strategy. You should handle locking by yourself.
173
+ # config.lock_strategy = :failed_attempts
174
+
175
+ # Defines which key will be used when locking and unlocking an account
176
+ # config.unlock_keys = [:email]
177
+
178
+ # Defines which strategy will be used to unlock an account.
179
+ # :email = Sends an unlock link to the user email
180
+ # :time = Re-enables login after a certain amount of time (see :unlock_in below)
181
+ # :both = Enables both strategies
182
+ # :none = No unlock strategy. You should handle unlocking by yourself.
183
+ # config.unlock_strategy = :both
184
+
185
+ # Number of authentication tries before locking an account if lock_strategy
186
+ # is failed attempts.
187
+ # config.maximum_attempts = 20
188
+
189
+ # Time interval to unlock the account if :time is enabled as unlock_strategy.
190
+ # config.unlock_in = 1.hour
191
+
192
+ # Warn on the last attempt before the account is locked.
193
+ # config.last_attempt_warning = true
194
+
195
+ # ==> Configuration for :recoverable
196
+ #
197
+ # Defines which key will be used when recovering the password for an account
198
+ # config.reset_password_keys = [:email]
199
+
200
+ # Time interval you can reset your password with a reset password key.
201
+ # Don't put a too small interval or your users won't have the time to
202
+ # change their passwords.
203
+ config.reset_password_within = 6.hours
204
+
205
+ # When set to false, does not sign a user in automatically after their password is
206
+ # reset. Defaults to true, so a user is signed in automatically after a reset.
207
+ # config.sign_in_after_reset_password = true
208
+
209
+ # ==> Configuration for :encryptable
210
+ # Allow you to use another hashing or encryption algorithm besides bcrypt (default).
211
+ # You can use :sha1, :sha512 or algorithms from others authentication tools as
212
+ # :clearance_sha1, :authlogic_sha512 (then you should set stretches above to 20
213
+ # for default behavior) and :restful_authentication_sha1 (then you should set
214
+ # stretches to 10, and copy REST_AUTH_SITE_KEY to pepper).
215
+ #
216
+ # Require the `devise-encryptable` gem when using anything other than bcrypt
217
+ # config.encryptor = :sha512
218
+
219
+ # ==> Scopes configuration
220
+ # Turn scoped views on. Before rendering "sessions/new", it will first check for
221
+ # "users/sessions/new". It's turned off by default because it's slower if you
222
+ # are using only default views.
223
+ # config.scoped_views = false
224
+
225
+ # Configure the default scope given to Warden. By default it's the first
226
+ # devise role declared in your routes (usually :user).
227
+ # config.default_scope = :user
228
+
229
+ # Set this configuration to false if you want /users/sign_out to sign out
230
+ # only the current scope. By default, Devise signs out all scopes.
231
+ # config.sign_out_all_scopes = true
232
+
233
+ # ==> Navigation configuration
234
+ # Lists the formats that should be treated as navigational. Formats like
235
+ # :html, should redirect to the sign in page when the user does not have
236
+ # access, but formats like :xml or :json, should return 401.
237
+ #
238
+ # If you have any extra navigational formats, like :iphone or :mobile, you
239
+ # should add them to the navigational formats lists.
240
+ #
241
+ # The "*/*" below is required to match Internet Explorer requests.
242
+ # config.navigational_formats = ['*/*', :html]
243
+
244
+ # The default HTTP method used to sign out a resource. Default is :delete.
245
+ config.sign_out_via = :get
246
+
247
+ # ==> OmniAuth
248
+ # Add a new OmniAuth provider. Check the wiki for more information on setting
249
+ # up on your models and hooks.
250
+ # config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo'
251
+
252
+ # ==> Warden configuration
253
+ # If you want to use other strategies, that are not supported by Devise, or
254
+ # change the failure app, you can configure them inside the config.warden block.
255
+ #
256
+ # config.warden do |manager|
257
+ # manager.intercept_401 = false
258
+ # manager.default_strategies(scope: :user).unshift :some_external_strategy
259
+ # end
260
+
261
+ # ==> Mountable engine configurations
262
+ # When using Devise inside an engine, let's call it `MyEngine`, and this engine
263
+ # is mountable, there are some extra configurations to be taken into account.
264
+ # The following options are available, assuming the engine is mounted as:
265
+ #
266
+ # mount MyEngine, at: '/my_engine'
267
+ #
268
+ # The router that invoked `devise_for`, in the example above, would be:
269
+ config.router_name = :block_auth
270
+ #
271
+ # When using OmniAuth, Devise cannot automatically set OmniAuth path,
272
+ # so you need to do it manually. For the users scope, it would be:
273
+ # config.omniauth_path_prefix = '/my_engine/users/auth'
274
+ end
@@ -0,0 +1,62 @@
1
+ # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2
+
3
+ en:
4
+ devise:
5
+ confirmations:
6
+ confirmed: "Your email address has been successfully confirmed."
7
+ send_instructions: "You will receive an email with instructions for how to confirm your email address in a few minutes."
8
+ send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions for how to confirm your email address in a few minutes."
9
+ failure:
10
+ already_authenticated: "You are already signed in."
11
+ inactive: "Your account is not activated yet."
12
+ invalid: "Invalid %{authentication_keys} or password."
13
+ locked: "Your account is locked."
14
+ last_attempt: "You have one more attempt before your account is locked."
15
+ not_found_in_database: "Invalid %{authentication_keys} or password."
16
+ timeout: "Your session expired. Please sign in again to continue."
17
+ unauthenticated: "You need to sign in or sign up before continuing."
18
+ unconfirmed: "You have to confirm your email address before continuing."
19
+ mailer:
20
+ confirmation_instructions:
21
+ subject: "Confirmation instructions"
22
+ reset_password_instructions:
23
+ subject: "Reset password instructions"
24
+ unlock_instructions:
25
+ subject: "Unlock instructions"
26
+ password_change:
27
+ subject: "Password Changed"
28
+ omniauth_callbacks:
29
+ failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
30
+ success: "Successfully authenticated from %{kind} account."
31
+ passwords:
32
+ no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
33
+ send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
34
+ send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
35
+ updated: "Your password has been changed successfully. You are now signed in."
36
+ updated_not_active: "Your password has been changed successfully."
37
+ registrations:
38
+ destroyed: "Bye! Your account has been successfully cancelled. We hope to see you again soon."
39
+ signed_up: "Welcome! You have signed up successfully."
40
+ signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
41
+ signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
42
+ signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
43
+ update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirm link to confirm your new email address."
44
+ updated: "Your account has been updated successfully."
45
+ sessions:
46
+ signed_in: "Signed in successfully."
47
+ signed_out: "Signed out successfully."
48
+ already_signed_out: "Signed out successfully."
49
+ unlocks:
50
+ send_instructions: "You will receive an email with instructions for how to unlock your account in a few minutes."
51
+ send_paranoid_instructions: "If your account exists, you will receive an email with instructions for how to unlock it in a few minutes."
52
+ unlocked: "Your account has been unlocked successfully. Please sign in to continue."
53
+ errors:
54
+ messages:
55
+ already_confirmed: "was already confirmed, please try signing in"
56
+ confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
57
+ expired: "has expired, please request a new one"
58
+ not_found: "not found"
59
+ not_locked: "was not locked"
60
+ not_saved:
61
+ one: "1 error prohibited this %{resource} from being saved:"
62
+ other: "%{count} errors prohibited this %{resource} from being saved:"
data/config/routes.rb ADDED
@@ -0,0 +1,3 @@
1
+ Block::Auth::Engine.routes.draw do
2
+ devise_for :users, class_name: "Block::Auth::User", path: '', path_names: { sign_in: 'login', sign_out: 'logout', sign_up: 'signup' }
3
+ end
@@ -0,0 +1,44 @@
1
+ class DeviseCreateBlockAuthUsers < ActiveRecord::Migration[5.0]
2
+ def change
3
+ create_table :block_auth_users do |t|
4
+ ## Database authenticatable
5
+ t.string :first_name
6
+ t.string :last_name
7
+ t.string :email, null: false, default: ""
8
+ t.string :encrypted_password, null: false, default: ""
9
+
10
+ ## Recoverable
11
+ t.string :reset_password_token
12
+ t.datetime :reset_password_sent_at
13
+
14
+ ## Rememberable
15
+ t.datetime :remember_created_at
16
+
17
+ ## Trackable
18
+ t.integer :sign_in_count, default: 0, null: false
19
+ t.datetime :current_sign_in_at
20
+ t.datetime :last_sign_in_at
21
+ t.string :current_sign_in_ip
22
+ t.string :last_sign_in_ip
23
+
24
+ ## Confirmable
25
+ # t.string :confirmation_token
26
+ # t.datetime :confirmed_at
27
+ # t.datetime :confirmation_sent_at
28
+ # t.string :unconfirmed_email # Only if using reconfirmable
29
+
30
+ ## Lockable
31
+ # t.integer :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts
32
+ # t.string :unlock_token # Only if unlock strategy is :email or :both
33
+ # t.datetime :locked_at
34
+
35
+
36
+ t.timestamps null: false
37
+ end
38
+
39
+ add_index :block_auth_users, :email, unique: true
40
+ add_index :block_auth_users, :reset_password_token, unique: true
41
+ # add_index :block_auth_users, :confirmation_token, unique: true
42
+ # add_index :block_auth_users, :unlock_token, unique: true
43
+ end
44
+ end
@@ -0,0 +1,13 @@
1
+ require "devise"
2
+ require 'block/common/engine'
3
+
4
+ module Block
5
+ module Auth
6
+ class Engine < ::Rails::Engine
7
+ isolate_namespace Block::Auth
8
+
9
+ # do this before set any initializer
10
+ self.instance_variable_set(:@initializers, Common::Engine.initializers.map { |x| x.dup })
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,5 @@
1
+ module Block
2
+ module Auth
3
+ VERSION = '0.1.1'
4
+ end
5
+ end
data/lib/block/auth.rb ADDED
@@ -0,0 +1,7 @@
1
+ require "block/auth/engine"
2
+
3
+ module Block
4
+ module Auth
5
+ # Your code goes here...
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ require "block/auth/engine"
2
+
3
+ module Railsblocks
4
+ module Auth
5
+ # Your code goes here...
6
+ end
7
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :block_auth do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,180 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: railsblocks-auth
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Celso Fernandes
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-11-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 5.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 5.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: devise
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '4.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '4.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: railsblocks-common
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: sqlite3
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: guard
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2'
83
+ - !ruby/object:Gem::Dependency
84
+ name: guard-minitest
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: pry
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.10'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.10'
111
+ description: Description of Block::Auth.
112
+ email:
113
+ - fernandes@zertico.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - MIT-LICENSE
119
+ - README.md
120
+ - Rakefile
121
+ - app/assets/config/block_auth_manifest.js
122
+ - app/assets/javascripts/block/auth/application.js
123
+ - app/assets/stylesheets/block/auth/application.css
124
+ - app/controllers/block/auth/application_controller.rb
125
+ - app/controllers/block/auth/passwords_controller.rb
126
+ - app/controllers/block/auth/registrations_controller.rb
127
+ - app/controllers/block/auth/sessions_controller.rb
128
+ - app/helpers/block/auth/application_helper.rb
129
+ - app/jobs/block/auth/application_job.rb
130
+ - app/mailers/block/auth/application_mailer.rb
131
+ - app/models/block/auth/application_record.rb
132
+ - app/models/block/auth/user.rb
133
+ - app/views/devise/confirmations/new.html.erb
134
+ - app/views/devise/mailer/confirmation_instructions.html.erb
135
+ - app/views/devise/mailer/password_change.html.erb
136
+ - app/views/devise/mailer/reset_password_instructions.html.erb
137
+ - app/views/devise/mailer/unlock_instructions.html.erb
138
+ - app/views/devise/passwords/edit.html.erb
139
+ - app/views/devise/passwords/new.html.erb
140
+ - app/views/devise/registrations/edit.html.erb
141
+ - app/views/devise/registrations/new.html.erb
142
+ - app/views/devise/sessions/new.html.erb
143
+ - app/views/devise/shared/_links.html.erb
144
+ - app/views/devise/unlocks/new.html.erb
145
+ - app/views/layouts/block/auth/application.html.erb
146
+ - config/environment.rb
147
+ - config/initializers/devise.rb
148
+ - config/locales/devise.en.yml
149
+ - config/routes.rb
150
+ - db/migrate/20160821192721_devise_create_block_auth_users.rb
151
+ - lib/block/auth.rb
152
+ - lib/block/auth/engine.rb
153
+ - lib/block/auth/version.rb
154
+ - lib/railsblocks/auth.rb
155
+ - lib/tasks/block/auth_tasks.rake
156
+ homepage: http://github.com/railsbocks/auth
157
+ licenses:
158
+ - MIT
159
+ metadata: {}
160
+ post_install_message:
161
+ rdoc_options: []
162
+ require_paths:
163
+ - lib
164
+ required_ruby_version: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - ">="
167
+ - !ruby/object:Gem::Version
168
+ version: '0'
169
+ required_rubygems_version: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ requirements: []
175
+ rubyforge_project:
176
+ rubygems_version: 2.6.4
177
+ signing_key:
178
+ specification_version: 4
179
+ summary: Summary of Block::Auth.
180
+ test_files: []