From: "hsbt (Hiroshi SHIBATA) via ruby-core" Date: 2024-12-31T10:02:29+00:00 Subject: [ruby-core:120456] [Ruby master Bug#20985] Undefined constant in net/http 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 `
': 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/