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

constant URI::HOST not defined (NameError) #134

Closed
MarioRuiz opened this issue Nov 13, 2024 · 0 comments · Fixed by #135
Closed

constant URI::HOST not defined (NameError) #134

MarioRuiz opened this issue Nov 13, 2024 · 0 comments · Fixed by #135

Comments

@MarioRuiz
Copy link

URI v 1.0.1
When already defined the constant HOST getting the error
constant URI::HOST not defined (NameError)

To reproduce this issue:

HOST = "http://www.ruby-lang.org/ja/"
require "uri"
uri = URI.parse(HOST)
puts uri.host

output:

/gems/3.2.0/gems/uri-1.0.1/lib/uri/common.rb:42:in `remove_const': constant URI::HOST not defined (NameError)

      remove_const(sym) if const_defined?(sym)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant