Devise: Devise syntax errors in ruby 2.5.0

Created on 28 Dec 2017  路  4Comments  路  Source: heartcombo/devise

Environment

  • Ruby 2.5.0
  • Rails 5.x
  • Devise 4.3.0

Current behavior

Starting a Rails server with ruby 2.5.0 yields these syntax errors:

[36171] ! Unable to load application: SyntaxError: /Users/vwoo/.gem/ruby/2.5.0/gems/devise-4.3.0/app/controllers/devise/sessions_controller.rb:5: syntax error, unexpected '{', expecting keyword_end
...ion only: [:create, :destroy] { request.env["devise.skip_tim...
...                              ^
/Users/vwoo/.gem/ruby/2.5.0/gems/devise-4.3.0/app/controllers/devise/sessions_controller.rb:5: syntax error, unexpected '}', expecting keyword_end
..."devise.skip_timeout"] = true }
...

Expected behavior

The app starts normally

Most helpful comment

Hi everyone, sorry for the delay. I had a lot of work to do lately. I was only able to work on this today. Anyway, version 4.4.0 is out.

Thanks

All 4 comments

Duplicate of #4738 , #4736, #4719 and #4703 . Devise is currently not compatible with latest stable version of ruby

@tegon @carlosantoniodasilva @rafaelfranca Since the change is already on master, what is the expected timeframe for releasing this?

Hi everyone, sorry for the delay. I had a lot of work to do lately. I was only able to work on this today. Anyway, version 4.4.0 is out.

Thanks

Was this page helpful?
0 / 5 - 0 ratings