From 9585b4155b43bd57b697a296706ebae15027c59a Mon Sep 17 00:00:00 2001 From: cryptogopher Date: Sun, 5 Mar 2023 21:24:04 +0100 Subject: [PATCH] Add 'devise' gem --- Gemfile | 5 ++--- Gemfile.lock | 14 ++++++++++++++ config/application.rb | 2 +- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 2e4086b..e10fab9 100644 --- a/Gemfile +++ b/Gemfile @@ -14,12 +14,11 @@ gem "importmap-rails" gem "sassc-rails" -# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword] -# gem "bcrypt", "~> 3.1.7" - # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ] +gem "devise" + group :development, :test do # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem gem "debug", platforms: %i[ mri mingw x64_mingw ] diff --git a/Gemfile.lock b/Gemfile.lock index 0241b9f..4fb6e39 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -68,6 +68,7 @@ GEM tzinfo (~> 2.0) addressable (2.8.1) public_suffix (>= 2.0.2, < 6.0) + bcrypt (3.1.18) bindex (0.8.1) builder (3.2.4) byebug (11.1.3) @@ -86,6 +87,12 @@ GEM debug (1.7.1) irb (>= 1.5.0) reline (>= 0.3.1) + devise (4.9.0) + bcrypt (~> 3.0) + orm_adapter (~> 0.1) + railties (>= 4.1.0) + responders + warden (~> 1.2.3) erubi (1.12.0) ffi (1.15.5) globalid (1.1.0) @@ -124,6 +131,7 @@ GEM nio4r (2.5.8) nokogiri (1.14.2-x86_64-linux) racc (~> 1.4) + orm_adapter (0.5.0) public_suffix (5.0.1) puma (5.6.5) nio4r (~> 2.0) @@ -161,6 +169,9 @@ GEM regexp_parser (2.7.0) reline (0.3.2) io-console (~> 0.5) + responders (3.1.0) + actionpack (>= 5.2) + railties (>= 5.2) rexml (3.2.5) rubyzip (2.3.2) sassc (2.4.0) @@ -187,6 +198,8 @@ GEM timeout (0.3.2) tzinfo (2.0.6) concurrent-ruby (~> 1.0) + warden (1.2.9) + rack (>= 2.0.9) web-console (4.2.0) actionview (>= 6.0.0) activemodel (>= 6.0.0) @@ -211,6 +224,7 @@ DEPENDENCIES byebug capybara debug + devise importmap-rails mysql2 (~> 0.5) puma (~> 5.0) diff --git a/config/application.rb b/config/application.rb index 144aae9..41c0d72 100644 --- a/config/application.rb +++ b/config/application.rb @@ -7,7 +7,7 @@ require "active_model/railtie" require "active_record/railtie" # require "active_storage/engine" require "action_controller/railtie" -# require "action_mailer/railtie" +require "action_mailer/railtie" # require "action_mailbox/engine" # require "action_text/engine" require "action_view/railtie"