Как я могу исправить ошибку сервера rails при попытке загрузить гем 'devise' в другую версию ruby?

Мои версии таковы,

  • Rails версия 4.0.13
  • Ruby версия 2.4.2
  • Разработать версию 3.5.10

Я пытаюсь обновить версию ruby ​​с 2.3.6 до 2.4.2 . Я устанавливаю с помощью rvm . Но пока я бегал rails s Я получаю, как показано ниже, ошибку с devise gem. Как я могу это исправить?

Заранее спасибо!

/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/sprockets-
3.6.3/lib/sprockets/digest_utils.rb:47: warning: constant ::Fixnum is 
deprecated
/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/sprockets-
3.6.3/lib/sprockets/digest_utils.rb:51: warning: constant ::Bignum is 
deprecated
/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/sprockets-
3.6.3/lib/sprockets/processor_utils.rb:110: warning: constant ::Fixnum 
is deprecated
/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/sprockets-
3.6.3/lib/sprockets/processor_utils.rb:111: warning: constant ::Bignum 
is deprecated
/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/bundler-
1.16.1/lib/bundler/runtime.rb:84:in `rescue in block (2 levels) in 
require': There was an error while trying to load the gem 'devise'. 
(Bundler::GemRequireError)
Gem Load Error is: ActiveSupport::Duration can't be coerced into 
Integer
Backtrace for gem load error is:
/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/activesupport-
4.0.13/lib/active_support/core_ext/numeric/time.rb:50:in `*'
/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/activesupport-
4.0.13/lib/active_support/core_ext/numeric/time.rb:50:in `days'
/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/activesupport-
4.0.13/lib/active_support/core_ext/numeric/time.rb:55:in `weeks'
/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/devise-
3.5.10/lib/devise.rb:117:in `<module:Devise>'
/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/devise-
3.5.10/lib/devise.rb:9:in `<top (required)>'
/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/bundler-
1.16.1/lib/bundler/runtime.rb:81:in `require'
/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/bundler-
1.16.1/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/bundler-
1.16.1/lib/bundler/runtime.rb:76:in `each'
/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/bundler-
1.16.1/lib/bundler/runtime.rb:76:in `block in require'
/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/bundler-
1.16.1/lib/bundler/runtime.rb:65:in `each'
/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/bundler-
1.16.1/lib/bundler/runtime.rb:65:in `require'
/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/bundler-
1.16.1/lib/bundler.rb:114:in `require'
/Users/leylakapi/Desktop/intranet/config/application.rb:10:in `<top 
(required)>'
/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/railties-
4.0.13/lib/rails/commands.rb:74:in `require'
/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/railties-
4.0.13/lib/rails/commands.rb:74:in `block in <top (required)>'
/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/railties-
4.0.13/lib/rails/commands.rb:71:in `tap'
/Users/leylakapi/.rvm/gems/ruby-2.4.2/gems/railties-
4.0.13/lib/rails/commands.rb:71:in `<top (required)>'
script/rails:6:in `require'
script/rails:6:in `<main>'
Bundler Error Backtrace:

0 ответов

Другие вопросы по тегам