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

Fix build and test against Rails 5.1 and 5.2 #863

Merged
merged 7 commits into from
Apr 24, 2018

Conversation

jhawthorn
Copy link
Contributor

@jhawthorn jhawthorn commented Apr 20, 2018

This fixes some small issues with the build and adds gemfiles to test against Rails 5.1 and 5.2.

It would be wonderful if we could get a new gem release to support Rails 5.2 🙏 💎


EDIT:
I'm still seeing some errors on Rails 4.0 and 4.1. A git bisect suggests this may be introduced by 4bd4300. I'm investigating further 🔍 . (but maybe it is time to drop 4.0 and 4.1)

EDIT2: This is fixed by reverting 4bd4300. Not sure why.


  • Fix mysql dep on Rails 4.2
  • Fix pg dep on Rails 4.x
  • Add gemfiles for Rails 5.1 and 5.2
  • Investigate why defering ActiveRecord patch breaks Rails 4.0 and 4.1
  • Fix jruby jdbc issues

The referenced activerecord-jdbcmysql-adapter branch no longer exists
These older versions of ActiveRecord require pg ~> 0.15, and won't
accept the newest pg version 1.0.0
Copy link

@saiqulhaq saiqulhaq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it work if Rails::Railtie removed?

@jhawthorn
Copy link
Contributor Author

jhawthorn commented Apr 23, 2018

I believe this is ready to go! :shipit:

A quick summary of changes:

  • Adjust gemfiles to specify older pg and mysql2 gems where needed (ActiveRecord has a non-explicit dependency on these, and older AR versions need older versions of these gems)
  • Add some jruby builds to allowed_failures. The jdbc adapters just aren't ready for the latest rails versions (even latest patch versions of 5.0 and 5.1 😞)
  • Adjust the change made by 4bd4300 to be compatible with Rails 4.0 and 4.1 (the build was already failing when that was merged so this wasn't spotted). These versions aren't supported by Rails itself anymore, so friendly_id could consider dropping support as well.
  • Add tests for Rails 5.1 and 5.2 to TravisCI 💪

@parndt could I trouble you for a review and hopefully a new gem release? Thanks so much 🙇‍♂️

The jdbc adapters arent working with the latest patch releases of Rails.
We'd like to test these if they could work, so I've added them to
allowed_failures instead of fully excluding them.
This fixes build errors under Rails 4.0 and 4.1. We always want to
perform this callback, even if ActiveRecord is being used standalone
without the rest of Rails.
@parndt
Copy link
Collaborator

parndt commented Apr 24, 2018

@jhawthorn you could trouble me indeed as it seems you've gone to great trouble to achieve this great work! Thank you, John!

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

Successfully merging this pull request may close these issues.

3 participants