Drop support for Rails < 6.0 and Ruby < 2.7#276
Drop support for Rails < 6.0 and Ruby < 2.7#276mcelicalderon merged 3 commits intographql-devise:masterfrom
Conversation
Support for Rails 5.2 and Ruby 2.6 ended in 2018 so I think it's a reasonable time to drop support for it and everything below it. I've changed the Rails version check in `application.rb` because `represent_boolean_as_integer` was deprecated in Rails 6.0[^1]. The target Ruby version in `.rubocop.yml` has been updated but it seems like Rubocop isn't actually being used to autocorrect offenses in the gem and I didn't want to autocorrect everything because there are hundreds of offenses. [^1]:(https://github.com/rails/rails/blob/e29f5e0feb68ee6a9bd44f24991d7494a71884f0/guides/source/6_0_release_notes.md?plain=1#L446)
We will need a newer version of `pry` to support later Ruby versions.
8e5f3d2 to
a45d2a7
Compare
|
Thank you for your contribution, @HeyNonster! @00dav00 and I had similar discussions in the past and I have to admit that back then I was relunctant to drop support for older versions unless we had a good reason to do so (too hard to maintain both old a new versions support). But now, while I still think keeping support for older versions is not extremely complicated in this gem's codebase, I think I'm also leaning towards dropping support. This would of course be a breaking change, meaning the next version we release will be a Major version bump. So, WDYT, @00dav00? On a sidenote, apparently CircleCI changed how organizations are connected and we need to set that up again |
| gemfile: gemfiles/rails5.2_graphql1.10.gemfile | ||
| - ruby-version: '3.0' | ||
| gemfile: gemfiles/rails5.2_graphql1.11.gemfile | ||
| exclude: |
There was a problem hiding this comment.
@HeyNonster indentation is 2 spaces too much to the right here, that's why CI is failing to run as the matrix is production way too many jobs
There was a problem hiding this comment.
Should be fixed now!
500bacb to
c7849d3
Compare
c7849d3 to
f44f9db
Compare
Skips testing Rails 6.0 with Ruby 3.3 due to incompatibilities.
f44f9db to
a822e59
Compare
|
I also think we should remove them 💪 |
|
@mcelicalderon and @00dav00 how would you like to handle GraphQL < 1.12 support? It seems like GraphQL |
|
I see, @HeyNonster. I think we can just skip those failing combinations in the matrix for now. In the future and before another version release, we might drop support for GQL older versions. That might happen when we get to #273 |
|
@mcelicalderon and @00dav00 how would you like to handle GraphQL < 1.12 support? It seems like GraphQL
Hey! I've been at Ruby Conf this week so I haven't been able to finish this but I'll pick it back up next week! |
|
@HeyNonster @00dav00 after reviewing this one, I think I'm going to merge it as is. It will break master, but it's just the build and it would probably fail right now too as it fails to resolve dependencies. I'm working on #277 and it will be easier to do with this changes and I will fix the remaining jobs. Thanks again, @HeyNonster! |
Rails 5.2 and Ruby 2.6 went end-of-life in 2018 so I think they're both safe to drop support for. This PR also starts testing with more recent Ruby versions.