devise_token_auth icon indicating copy to clipboard operation
devise_token_auth copied to clipboard

Not working in Rails 6.1 with Ruby 3.0

Open frobert opened this issue 4 years ago • 8 comments

Bundler could not find compatible versions for gem "rails": In Gemfile:

rails (~> 6.1)
devise_token_auth (~> 1.1.4) was resolved to 1.1.4, which depends on
  rails (>= 4.2.0, < 6.1)

frobert avatar Jan 29 '21 14:01 frobert

You can fix it by using: gem 'devise_token_auth', github: 'lynndylanhurley/devise_token_auth'

croatech avatar Jan 30 '21 18:01 croatech

Not a great solution though if you depend on gems. Are there any plans to publish the new version of the gem?

dirkjonker avatar Feb 11 '21 14:02 dirkjonker

Can't do that because I don't have git installed in my docker containers and I am not about to install it either :)

Can we have a new release? Obviously, master is working (this I already confirmed). Come on maintainers, cut us a new version!

mhenrixon avatar Apr 16 '21 09:04 mhenrixon

@pnghai @luisalima @enomotodev @melnik0v @theblang @croatech @dirkjonker who's in charge of this project? Who can cut a new release? I verified it is working on rails 6.1 but I can't install git repositories in our docker containers.

mhenrixon avatar Apr 27 '21 09:04 mhenrixon

@mhenrixon there is a v1.1.5 which works fine for me (rails v6.1.3.1, ruby v3.0.1). See here it was committed just before release: https://github.com/lynndylanhurley/devise_token_auth/compare/v1.1.4...v1.1.5

In my Gemfile it's just:

gem 'devise_token_auth', '~> 1.1'

No git required.

KiwiKilian avatar Apr 28 '21 07:04 KiwiKilian

@KiwiKilian I am on version 1.1.5 and I get errors on connection_config being used instead of connection_db_config.

image

mhenrixon avatar Apr 28 '21 09:04 mhenrixon

@mhenrixon which rails version are you on? See here: https://github.com/lynndylanhurley/devise_token_auth/commit/5b2ef6c2d394894d10ffd87a85b633570ee6c4c8

Rails 6.1 generates a deprecation warning since connection_config will be removed from Rails 6.2.

KiwiKilian avatar Apr 28 '21 09:04 KiwiKilian