Просмотр исходного кода

Update Devise to latest version. (#30)

Update Devise to version 4.4.3.
Increase the Rails requirement version so it will work with older versions of rails than Rails 5.2 where Env Credentials are not available.
darkrubyist 6 лет назад
Родитель
Сommit
076c3ccc63
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      template.rb

+ 2 - 2
template.rb

@@ -4,7 +4,7 @@ end
 
 def add_gems
   gem 'administrate', '~> 0.8.1'
-  gem 'devise', '~> 4.3.0'
+  gem 'devise', '~> 4.4.3'
   gem 'devise-bootstrapped', github: 'excid3/devise-bootstrapped', branch: 'bootstrap4'
   gem 'devise_masquerade', '~> 0.6.0'
   gem 'font-awesome-sass', '~> 4.7'
@@ -43,7 +43,7 @@ def add_users
     gsub_file migration, /:admin/, ":admin, default: false"
   end
 
-  requirement = Gem::Requirement.new("> 5.1")
+  requirement = Gem::Requirement.new("> 5.2")
   rails_version = Gem::Version.new(Rails::VERSION::STRING)
 
   if requirement.satisfied_by? rails_version