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

Resolves Rails 7 Time.now.to_s deprecation warning #630

Merged
merged 1 commit into from
Jan 10, 2022

Conversation

gregblake
Copy link
Contributor

As @culov mentioned on #628, the following deprecation warning happens when upgrading to Rails 7:

DEPRECATION WARNING: Time#to_s(:db) is deprecated. Please use Time#to_formatted_s(:db) instead. (called from log at /Users/greg/code/rpush/lib/rpush/logger.rb:72)

This PR resolves the deprecation warning and closes #628.

@aried3r
Copy link
Member

aried3r commented Jan 10, 2022

For some time now, GitHub Actions seems to have problems with Rails 5.2 with Ruby 2.3 which cancels all the other runs. Perhaps with the next version where we'll support Rails 7, we can also drop Ruby 2.3 and keep Rails 5.2 support for a little longer.

What do you think?

@aried3r aried3r merged commit 7670a6e into rpush:master Jan 10, 2022
@gregblake
Copy link
Contributor Author

gregblake commented Jan 10, 2022

I'm in favor of doing that, @aried3r.

The ruby-lang team ended all support for Ruby 2.3 in 2019, so I think it's reasonable to drop support in rpush at this time. And the Rails team will continue supporting Rails 5.2 until June 2022, so I like the idea of rpush supporting 5.2 for a bit longer.

@gregblake gregblake deleted the resolve_deprecation_warning branch January 10, 2022 14:17
@aried3r
Copy link
Member

aried3r commented Jan 10, 2022

Ok, I've opened #631 and finally the CI has successful runs again. My only concern is that there are apparently still a lot of Ruby 2.3 users https://stats.rubygems.org/. But for those, the old gem versions should continue to work.

I'll go forward with dropping support and wait a bit more for feedback this week before shipping a new major release.

Adrian1707 pushed a commit to Adrian1707/rpush that referenced this pull request Apr 24, 2024
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.

Rails 7 Time.now.to_s deprecation warning
2 participants