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 ruby "remove top-level constant lookup" issue #5

Merged
merged 3 commits into from
Mar 5, 2020

Conversation

wppurking
Copy link
Contributor

ruby 2.5 has removed top level constant lookup. so when use URI.parse in ruby 2.5+ will raise NameError: uninitialized constant URI.

to fix this:

  1. require the uri module
  2. use ::URI instead of URI

@archfish archfish merged commit af3543d into archfish:master Mar 5, 2020
@archfish
Copy link
Owner

archfish commented Mar 5, 2020

Thanks for your contribution!

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.

2 participants