From: "hsbt (Hiroshi SHIBATA) via ruby-core" <ruby-core@ml.ruby-lang.org>
To: ruby-core@ml.ruby-lang.org
Cc: "hsbt (Hiroshi SHIBATA)" <noreply@ruby-lang.org>
Subject: [ruby-core:120456] [Ruby master Bug#20985] Undefined constant in net/http
Date: Tue, 31 Dec 2024 10:02:29 +0000 (UTC) [thread overview]
Message-ID: <redmine.journal-111237.20241231100228.7577@ruby-lang.org> (raw)
In-Reply-To: <redmine.issue-20985.20241226193257.7577@ruby-lang.org>
Issue #20985 has been updated by hsbt (Hiroshi SHIBATA).
Status changed from Open to Closed
We should handle this on https://github.com/ruby/net-http.
----------------------------------------
Bug #20985: Undefined constant in net/http
https://bugs.ruby-lang.org/issues/20985#change-111237
* Author: BertramScharpf (Bertram Scharpf)
* Status: Closed
* ruby -v: ruby 3.3.6 (2024-11-05 revision 75015d4c1f) [amd64-freebsd14]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
```console
$ grep -rnH HTTPAuthenticationError /usr/local/lib/ruby
/usr/local/lib/ruby/site_ruby/3.3/rubygems/vendor/net-http/lib/net/http.rb:2455: raise HTTPAuthenticationError.new('HTTP authentication failed', err)
/usr/local/lib/ruby/3.3/net/http.rb:2455: raise HTTPAuthenticationError.new('HTTP authentication failed', err)
/usr/local/lib/ruby/3.3/rubygems/vendor/net-http/lib/net/http.rb:2455: raise HTTPAuthenticationError.new('HTTP authentication failed', err)
$ ruby -r net/http -e 'HTTPAuthenticationError'
-e:1:in `<main>': uninitialized constant HTTPAuthenticationError (NameError)
HTTPAuthenticationError
^^^^^^^^^^^^^^^^^^^^^^^
```
The `raise` statement will just transform a meaningful error into a `NameError`.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
prev parent reply other threads:[~2024-12-31 10:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-26 19:32 [ruby-core:120420] " BertramScharpf (Bertram Scharpf) via ruby-core
2024-12-29 4:41 ` [ruby-core:120442] " nobu (Nobuyoshi Nakada) via ruby-core
2024-12-31 3:48 ` [ruby-core:120453] " BertramScharpf (Bertram Scharpf) via ruby-core
2024-12-31 10:02 ` hsbt (Hiroshi SHIBATA) via ruby-core [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-111237.20241231100228.7577@ruby-lang.org \
--to=ruby-core@ml.ruby-lang.org \
--cc=noreply@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).