-
Notifications
You must be signed in to change notification settings - Fork 630
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
Rails 7.1 support #1371
Rails 7.1 support #1371
Conversation
@lsylvester I'm not a maintainer or anything, but I think you could also update the CI at For this I think you also need to run |
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.
Looked through all the changes and it looks great, did you try to run the tests on Rails 6.0 as well?
Test the tests have run against all the Gemfiles.
Good catch. I have updated the test.yml to include the Rails 7.0 and Rails 7.1 gemfiles (I also added a Rails 7.1 gemfile as it has been released since the PR was originally made). I also had to relax the version of rspec-mocks to get a fix for rspec/rspec-mocks#1514 |
@lsylvester I'm not a maintainer. I've asked someone who is and they've approved CI so you should be able to review and address test failures. Thank you for doing this! |
CI was failing due to script/integration.sh script, and I had only verified the that The issue is that password is not an expected type, which now raises an error since rails/rails#42311. I have made a change to not pass in the attribute type which should make it pass, and the generator doesn't seem to use the type so I think this should be sufficient. |
Latest CI run failed due to
I am not sure why this was working on the ruby 2.7.2 run - but this has been fixed by using the main branch for rack. |
Hei! Sorry for not attending this earlier. I think that failure you got also exists in the current master branch. The problem is that Your fix works too, but I'd rather go with using the latest Bundler everywhere to hopefully avoid similar issues in the future, so I proposed that separately to get a green baseline here: #1373. |
ActiveSupport::SafeBuffer no longer has the capture method. ActionView::OutputBuffer cannot have the contents replaced, so a new instance was assigned in placed where this was occuring, and they need to explictily converted to strings.
…s 5 as those warnings no longer occur in supported versions
…ed attribute type and will raise error since Rails 7
9338b55
to
6f49c86
Compare
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.
This looks great to me!
I would remove the latest commit since it should no longer be necessary after #1373. I don't think it will cause any harm either since I bet these gems are not going to rename their default branch again, but still. Anyways, non blocking!
6f49c86
to
7e64d26
Compare
Thanks @lsylvester, merging this! @mikz @justinfrench Any chance we can get a release out with Rails 7.1 support? |
Thanks @deivid-rodriguez. I really appreciate your help with this. |
Thanks @lsylvester @deivid-rodriguez I've shipped a new 5.0.0 gem release |
Updates to support Rails 7.1.0 which is now in beta:
column_for_attribute
- which was related to upgrading to Rails 5 and is no longer required.