[ruby/uri] Include RFC2396_REGEXP module directly
REGEXP is defined as RFC2396_REGEXP in lib/uri/common.rb. If we include REGEXP then a broken URL is generated in rdoc for URI and URI::MailTo. https://github.com/ruby/uri/commit/ed6ded9c80
This commit is contained in:
parent
c94f964e3f
commit
eab354e17b
@ -13,6 +13,8 @@ require_relative "rfc2396_parser"
|
||||
require_relative "rfc3986_parser"
|
||||
|
||||
module URI
|
||||
include RFC2396_REGEXP
|
||||
|
||||
REGEXP = RFC2396_REGEXP
|
||||
Parser = RFC2396_Parser
|
||||
RFC3986_PARSER = RFC3986_Parser.new
|
||||
@ -62,8 +64,6 @@ module URI
|
||||
module_function :make_components_hash
|
||||
end
|
||||
|
||||
include REGEXP
|
||||
|
||||
module Schemes
|
||||
end
|
||||
private_constant :Schemes
|
||||
|
@ -15,7 +15,7 @@ module URI
|
||||
# RFC6068, the mailto URL scheme.
|
||||
#
|
||||
class MailTo < Generic
|
||||
include REGEXP
|
||||
include RFC2396_REGEXP
|
||||
|
||||
# A Default port of nil for URI::MailTo.
|
||||
DEFAULT_PORT = nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user