You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/home/runner/work/tapioca/tapioca/vendor/bundle/ruby/3.4.0/gems/uri-1.1.1/lib/uri/common.rb:123: warning: already initialized constant URI::Schemes::SOURCE
/home/runner/work/tapioca/tapioca/vendor/bundle/ruby/3.4.0/gems/uri-1.1.1/lib/uri/common.rb:123: warning: previous definition of SOURCE was here
We can easily detect this with condition with URI.scheme_list.has_key?("SOURCE"), but that doesn't solve the discrepancy of trying to set two different classes for the same URI. They're really similar, but still distinct.
Activity
amomchilov commentedon Jan 2, 2026
P.s. it would be nice if the URI gem gave better warnings when this happened, and told you where the locations for the old/new definition came from.
https://github.com/ruby/uri/blame/b03605d3eb4071f2b7661e8f781802c1807b5649/lib/uri/common.rb#L123