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
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.
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.
Hi @MatthiasRMS, thanks for the issue report.
Yes, it is planned. See https://github.com/plataformatec/devise/pull/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
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.
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
@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.
Any idea when devise will support Rails 6? devise.gemspec strictly depends on railties < 6.0
Any estimate of when this will be released?
Thanks for all the hard work!
@thenano I'll try to do it today.
I've released version 4.7.0.
awesome, thanks so much @tegon !
Most helpful comment
I've released version
4.7.0.