-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add support for Rails 6 #3236
Add support for Rails 6 #3236
Conversation
b73c4fd
to
08365dd
Compare
08365dd
to
77fa687
Compare
88c9529
to
1b9d19d
Compare
On @spaghetticode's advice, I have removed the commit that converted |
@aldesantis makes sense, are you going to open a new PR with the |
@kennyadsl yes, probably after we merge this one. |
@aldesantis isn't better to start using |
@kennyadsl definitely, what I meant was that instead of opening a PR now and then having to constantly keep it up to date with |
@aldesantis Can you expand on rspec 3.8 and rails 6 support? I've not seen any issues on any of my rails 6 projects. I'm not saying there aren't issues, but I am curious what those could be that would require solidus to await rspec 4 before upgrading to Rails 6 |
ecc0727
to
f7962b4
Compare
6256770
to
6acc296
Compare
We're almost there guys, we're just waiting for RSpec 4 at this point! |
@aldesantis you can use |
89e62d5
to
31ac5c9
Compare
@tvdeyen you were right on CanCanCan, I went with By the way, should we use |
@aldesantis No worries. You did an amazing job!
Yes, sorry, I just copyied it over from another project ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job 🍨
Lets merge this and let people try master
with Rails 6. Release the new version after everything stabilized.
31ac5c9
to
6b708f8
Compare
Bumped CanCanCan's lower bound to 2.2! |
a5eca6e
to
facbe44
Compare
I have also made Rails 6 the default in CircleCI and in the Gemfile, as per @kennyadsl's request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @aldesantis, this work is amazing. When we'll merge this, I'll try to release a 2.10.0.rc or alpha version so we can start having some store try Solidus with Rails 6 easily!
Are we waiting for a full release of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't wait to see Solidus on Rails 6.0, thank you @aldesantis 🎉 💯 💥 🚀 ❤️
CanCanCan 3.0.0 is the first release with Rails 6 compatibility.
state_machines-activerecord used to have a level constraint on ActiveRecord that prevented us from using it with Rails 6. This was removed[1] in 0.6.0. [1]: state-machines/state_machines-activerecord@e7857a6
Zeitwerk expects file paths to match module names exactly, so we need to use #prepend for files that extend existing modules.
In Rails 6, ActiveRecord will always cast numbers to decimals when comparing them against a decimal column.
In Rails 6, ActiveSupport notifiers use two separate instance variables for string subscribers and object subscribers, so we need to use different setup/teardown logic for the test.
The changes to the CI configuration are needed because teaspoon_env is now[1] searched starting from Rails.root when Rails is available, which breaks our test suite because Rails.root is spec/dummy, while teaspoon_env.rb is in spec. The monkey-patch was removed because Teaspoon now supports passing options to Selenium[2]. [1]: jejacks0n/teaspoon@5b912da [2]: jejacks0n/teaspoon#537
b3d33b5
to
614ecbe
Compare
🎉 🍾 💯 |
Description
Adds Rails 6 support. 🍾
Progress:
Before we can merge this, the following needs to be addressed:
secret_key_base
instead ofsecret_token
(see #160).Checklist: