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 deprecation warning on Ruby 2.7 and test against on Travis #130

Merged
merged 4 commits into from
May 12, 2020

Conversation

gaffneyc
Copy link
Contributor

@gaffneyc gaffneyc commented Apr 3, 2020

This adds Ruby 2.7 to the test matrix, reorganizes it to make 2.3 and 2.4 (both end-of-life) to be included exceptions, and fixes a deprecation warning on Ruby 2.7. I also ran into a different deprecation warning running under and old version of Rake so I've tried to relax the constraint.

Closes #129

gaffneyc added 4 commits April 2, 2020 23:00
Travis allows you to include Ruby versions that are not in the matrix.
The goal is to make it so newer versions are defined and any older
versions are exceptions. As of this change Ruby 2.3 and 2.4 are
officially end of life.
Adds Ruby 2.7 so tests are run against it. It appears Rails 5.1+ will
run on Ruby 2.7. I've also switched rails-master to use whatever the
current stable version of ruby is which should avoid having to update
the line again in the future.
Using `Proc.new` to capture the block is deprecated. I believe this
supports the intended behavior or accepting either an object that
responds to #call or a block.
Constraint was added in 4986fce due to some dependencies of
dependencies. I'm betting those have been fixed in the last 3 years.
@coveralls
Copy link

coveralls commented Apr 3, 2020

Coverage Status

Coverage decreased (-0.9%) to 99.099% when pulling decf1df on gaffneyc:ruby-2-7 into 4e15c7f on integrallis:master.

Copy link
Member

@rmm5t rmm5t left a comment

Choose a reason for hiding this comment

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

Thanks for the work here! I'm not going to hold this up, but for future reference, this is conflating two areas of concern and should have been two separate PRs.
https://medium.com/@fagnerbrack/one-pull-request-one-concern-e84a27dfe9f1

  1. Fix the deprecation warning in 2.7 while adding 2.7 to build matrix.
  2. Remove deprecated ruby versions from build matrix (and reorganize) Refactor build matrix

@gaffneyc
Copy link
Contributor Author

gaffneyc commented Apr 3, 2020

Remove deprecated ruby versions from build matrix (and reorganize)

Just want to clarify that it's really just reorganizing how those older versions are run. The set of builds for old versions of Ruby and Rails before and after this change are the same, so none of the end-of-life versions of Ruby have been removed from the build matrix.

@gaffneyc
Copy link
Contributor Author

gaffneyc commented May 5, 2020

@rmm5t If the changes look good, any chance we could get this merged?

@rmm5t
Copy link
Member

rmm5t commented May 12, 2020

Sorry for the delay. Thanks for the excellent work here!

@rmm5t rmm5t merged commit 31d759d into integrallis:master May 12, 2020
@gaffneyc gaffneyc deleted the ruby-2-7 branch May 12, 2020 16:34
@nfm
Copy link

nfm commented May 13, 2020

Thanks @gaffneyc you're a legend ❤️

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.

Ruby >= 2.7 deprecation warning
4 participants