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

Drop support for ruby 2.4.x #407

Merged
merged 7 commits into from
May 13, 2022
Merged

Conversation

rishijain
Copy link
Contributor

@rishijain rishijain commented May 9, 2022

Fixes #406

Check list:

@rishijain rishijain changed the title updated gemspec ruby version to >2.4, updated README Drop support for ruby 2.4 May 9, 2022
@rishijain rishijain changed the title Drop support for ruby 2.4 Drop support for ruby 2.4.x May 10, 2022
@rishijain
Copy link
Contributor Author

Hey @etagwerker,
instead of auto-running the build, it says this
First-time contributors need a maintainer to approve running workflows

Will you need anything from me to make this happen?

Copy link
Collaborator

@nunosilva800 nunosilva800 left a comment

Choose a reason for hiding this comment

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

Thanks @rishijain for your first contribution! I've allowed the tests to go through.
There's only a small consideration here, let me know what you think.

rubycritic.gemspec Outdated Show resolved Hide resolved
@rishijain
Copy link
Contributor Author

Hey @nunosilva800,
I have tried to make sense of the failures in build https://github.com/whitesmith/rubycritic/actions/runs/2301117538
but no luck so far.

Can you help me understand what broke this?

Also, I saw similar failures in the last release #405. So this suggests that these failures may not be related to any change I did.

What do you think?

Dir.chdir(PathHelper.project_path)
yield
ensure
FakeFS::FileSystem.clear
end
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removing the begin from the block since th target ruby version in rubocop.yml is set to 2.5 and from ruby 2.5 onwards begin block is seemed redundant as per rubocop rules.
here is that PR when the change was done in rubocop rubocop/rubocop#5175

@nunosilva800
Copy link
Collaborator

@rishijain I'm still unsure on the exactly why builds for ruby 2.5 are failing. Since Ruby 2.5 is also no longer maintained, I think we can also remove it from the build steps. I'll merge this PR in and raise a new issue. Thanks!

@nunosilva800 nunosilva800 merged commit 6cfb9c5 into whitesmith:main May 13, 2022
@rishijain
Copy link
Contributor Author

rishijain commented May 13, 2022

awesome. thanks, @nunosilva800 .
I will be happy to take that up as well since it would be similar changes. I see that even ruby 2.6 is EOL, why don't we remove both 2.5 and 2.6?

ref: https://www.ruby-lang.org/en/downloads/branches/

@nunosilva800
Copy link
Collaborator

2.6 is EOL, but if the CI is still happy with it, I'd say keep it in there. We just not bother with fixing things when the underlying infra / dependencies stop working.

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.

Drop support for Ruby 2.4.x
2 participants