lib/rubygems/uri.rb
##
# Parses the #uri, raising if it's invalid
Parses the #uri, raising if it's invalid
Parses the #uri raising if it ' s invalid
def parse!(uri)
    require "uri"
    raise URI::InvalidURIError unless uri
    begin
      URI.parse(uri)
    rescue URI::InvalidURIError
      URI.parse(URI::DEFAULT_PARSER.escape(uri))
    end
  end
def parse! ( uri ) require "uri" raise URI :: InvalidURIError unless uri begin URI . parse ( uri ) rescue URI :: InvalidURIError URI . parse ( URI :: DEFAULT_PARSER . escape ( uri ) ) end end
Parses the #uri, raising if it's invalid
Parses the #uri raising if it ' s invalid
# Always escape URI's to deal with potential spaces and such # It should also be considered that source_uri may already be # a valid URI with escaped characters. e.g. "{DESede}" is encoded # as "%7BDESede%7D". If this is escaped again the percentage # symbols will be escaped.
uri
<not_specific>