You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2026/06/17 21:54:24 UTC
(qpid-proton) branch main updated: [PROTON-2907] Check what parser URI::DEFAULT_PARSER is set to instead of ruby version
This is an automated email from the ASF dual-hosted git repository.
astitcher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
The following commit(s) were added to refs/heads/main by this push:
new 3f4a08cda [PROTON-2907] Check what parser URI::DEFAULT_PARSER is set to instead of ruby version
3f4a08cda is described below
commit 3f4a08cdaf7d177be91d5ff83c77d5aaba790351
Author: Stephen Baldwin <st...@syncromsp.com>
AuthorDate: Fri Oct 31 13:56:31 2025 -0700
[PROTON-2907] Check what parser URI::DEFAULT_PARSER is set to instead of ruby version
---
ruby/lib/core/uri.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ruby/lib/core/uri.rb b/ruby/lib/core/uri.rb
index c1f5671d7..ef21b4692 100644
--- a/ruby/lib/core/uri.rb
+++ b/ruby/lib/core/uri.rb
@@ -47,7 +47,7 @@ module Qpid::Proton
private
# Make sure to allow empty hostnames, Ruby 2.0.0 does not.
DEFAULT_URI_PARSER =
- if RUBY_VERSION >= '3.4'
+ if defined?(URI::RFC3986_Parser) && URI::DEFAULT_PARSER.is_a?(URI::RFC3986_Parser)
URI::RFC2396_Parser.new(:HOSTNAME => /(?:#{URI::PATTERN::HOSTNAME})|/)
else
URI::Parser.new(:HOSTNAME => /(?:#{URI::PATTERN::HOSTNAME})|/)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org