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

Suppress deprecation warnings in production code #162

Conversation

koic
Copy link
Contributor

@koic koic commented Aug 31, 2017

This PR suppresses the following Ruby warnings in production codes.

  • ⚠️ warning: URI.unescape is obsolete
  • ⚠️ warning: URI.regexp is obsolete
  • ⚠️ warning: instance variable @properties not initialized

Copy link
Member

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

This change really avoids (or even heeds) the warnings. Thank you for all your work on this.

@koic koic force-pushed the suppress_deprecation_warnings_in_production_code branch from 918fdcf to 827a3a8 Compare September 4, 2017 09:41
@koic
Copy link
Contributor Author

koic commented Sep 4, 2017

Thanks for the review. I learned that URI::DEFAULT_PARSER is preferable toURI::Parser.new the other day. I'm updating to use URI::DEFAULT_PARSER also in this PR.

rubocop/rubocop#4694 (comment)

@olleolleolle
Copy link
Member

@bundlerbot retry

@olleolleolle
Copy link
Member

@bundlerbot r+

@bundlerbot
Copy link
Contributor

📌 Commit 827a3a8 has been approved by olleolleolle

@bundlerbot
Copy link
Contributor

⌛ Testing commit 827a3a8 with merge a0a7271...

bundlerbot added a commit that referenced this pull request Sep 4, 2017
…_code, r=olleolleolle

Suppress deprecation warnings in production code

This PR suppresses the following Ruby warnings in production codes.

- ⚠️ `warning: URI.unescape is obsolete`
- ⚠️ `warning: URI.regexp is obsolete`
- ⚠️ `warning: instance variable @properties not initialized`
@bundlerbot
Copy link
Contributor

☀️ Test successful - status-travis
Approved by: olleolleolle
Pushing a0a7271 to master...

@bundlerbot bundlerbot merged commit 827a3a8 into rubygems:master Sep 4, 2017
@koic koic deleted the suppress_deprecation_warnings_in_production_code branch September 4, 2017 22:57
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.

None yet

3 participants