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

Enable ruby deprecation warning #69

Closed
wants to merge 5 commits into from

Conversation

wendy-clio
Copy link
Contributor

@wendy-clio wendy-clio commented Jun 7, 2024

Enable ruby deprecation warning to find any codes that need refactoring before upgrading to ruby 3.

This PR is only for triggering the ci and inspecting the tests log for deprecation warnings, not for merge.

@wendy-clio wendy-clio requested review from a team as code owners June 7, 2024 13:43
@wendy-clio wendy-clio force-pushed the enable_deprecated_warning branch 3 times, most recently from 166cf58 to a668f49 Compare June 7, 2024 13:52
@wendy-clio wendy-clio mentioned this pull request Jun 7, 2024
@wendy-clio wendy-clio marked this pull request as draft June 7, 2024 17:19
@@ -22,6 +22,7 @@
require 'jit_preloader/preloader'

module JitPreloader
Warning[:deprecated] = true
Copy link
Member

Choose a reason for hiding this comment

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

This looks like it will set Warning[:deprecated] true when this file gets parsed. Is that what we want? Shouldn't we be isolating this to the specs for this gem, putting that line in the spec_helper.rb file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The point of this PR is to enable deprecated warnings with CI run so they can be fixed. However, the PR does not intend to be merged, so I think it matters little where I put it as long as it enables the warnings properly.

@samsarkleio
Copy link
Contributor

Just double checking if we still need this

@wendy-clio
Copy link
Contributor Author

Just double checking if we still need this

No, the version is already updated, I will close this draft.

@wendy-clio wendy-clio closed this Oct 25, 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.

3 participants