Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Rails 6+ ? #5037

Closed
MatthiasRMS opened this issue Mar 5, 2019 · 11 comments · Fixed by #5086
Closed

Support for Rails 6+ ? #5037

MatthiasRMS opened this issue Mar 5, 2019 · 11 comments · Fixed by #5086

Comments

@MatthiasRMS
Copy link

MatthiasRMS commented Mar 5, 2019

Hi,

I'm trying to update my app to Rails 6 but I get this error:

devise was resolved to 4.6.1, which depends on
responders was resolved to 2.4.1, which depends on
actionpack (< 6.0, >= 4.2.0)

Is it planned to update it for Rails 6 ?
I'd be happy to contribute to the upgrade and submit a PR if you already know what there is to do to maintain the compatibility.

Matthias

@georgedrummond
Copy link

I don't think this is a devise issue. I managed to get a rails 5.2.2 and devise 4.6.1 project to update just fine.

Try checking out a clean branch, pinning rails to 6.0.0.beta2 and running bundle update.

@MatthiasRMS
Copy link
Author

Yes 5.2.2 works fine.
But since Devise relies on responders, which relies on actionpack < 6, and Rails 6 on actionpack 6+, there is a conflict.

@feliperenan
Copy link
Collaborator

feliperenan commented Mar 6, 2019

Hi @MatthiasRMS, thanks for the issue report.

Yes, it is planned. See #5009, but we don't have a date to release it yet. Probably when we have the final Rails 6 release.

It seems that responders already supports Rails 6, probably you are getting this error because it's not the final release of Rails.

https://github.com/plataformatec/responders/blob/master/responders.gemspec#L21

@chemic
Copy link

chemic commented Mar 11, 2019

I was migrating my project from rails 4.X to 6-beta2 and that was my roadblock. Went currently with Rails 5.2.2 but hopefully could hop on the 6 train soon when Devise supports it.

@saiqulhaq
Copy link
Contributor

Devise .travis.yml setting for rails 6 is

source "https://rubygems.org"

gemspec path: ".."

gem "rails", '6.0.0.beta1'
gem "omniauth"
gem "omniauth-oauth2"
gem "rdoc"

gem "activemodel-serializers-xml", github: "rails/activemodel-serializers-xml"

gem "rails-controller-testing"

gem "responders", "~> 2.4"

group :test do
  gem "omniauth-facebook"
  gem "omniauth-openid"
  gem "timecop"
  gem "webrat", "0.7.3", require: false
  gem "mocha", "~> 1.1", require: false
  gem 'test_after_commit', require: false
end

platforms :ruby do
  gem "sqlite3", "~> 1.3.6"
end

so it should be OK with responders

but the test doesn't pass
you can see this fror example https://travis-ci.org/plataformatec/devise/jobs/514901392

@tegon
Copy link
Member

tegon commented Apr 3, 2019

@saiqulhaq That's because Rails 6 beta 1 introduced a change in redirects that broke some of our specs. I started updating them but it seems like they have rolled that change back.
Later I'll update our CI to get the latest beta and see if the tests are passing.

@chagar
Copy link

chagar commented Jun 4, 2019

Any idea when devise will support Rails 6? devise.gemspec strictly depends on railties < 6.0

@thenano
Copy link

thenano commented Aug 18, 2019

Any estimate of when this will be released?
Thanks for all the hard work!

@tegon
Copy link
Member

tegon commented Aug 19, 2019

@thenano I'll try to do it today.

@tegon
Copy link
Member

tegon commented Aug 19, 2019

I've released version 4.7.0.

@thenano
Copy link

thenano commented Aug 20, 2019

awesome, thanks so much @tegon !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

8 participants