diff --git a/Gemfile.lock b/Gemfile.lock index 179e588db..7507aff6d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -386,7 +386,7 @@ GEM unicode-display_width (3.2.0) unicode-emoji (~> 4.1) unicode-emoji (4.1.0) - uri (0.13.2) + uri (0.13.3) useragent (0.16.11) webmock (3.26.1) addressable (>= 2.8.0) diff --git a/sorbet/rbi/gems/uri@0.13.2.rbi b/sorbet/rbi/gems/uri@0.13.3.rbi similarity index 96% rename from sorbet/rbi/gems/uri@0.13.2.rbi rename to sorbet/rbi/gems/uri@0.13.3.rbi index f18bde3ff..4883f7f8e 100644 --- a/sorbet/rbi/gems/uri@0.13.2.rbi +++ b/sorbet/rbi/gems/uri@0.13.3.rbi @@ -759,7 +759,7 @@ class URI::Generic # # => "http://my.example.com/main.rbx?page=1" # merge # - # source://uri//lib/uri/generic.rb#1151 + # source://uri//lib/uri/generic.rb#1164 def +(oth); end # == Args @@ -779,28 +779,34 @@ class URI::Generic # uri.route_from('http://my.example.com') # #=> # # - # source://uri//lib/uri/generic.rb#1281 + # source://uri//lib/uri/generic.rb#1294 def -(oth); end # Compares two URIs. # - # source://uri//lib/uri/generic.rb#1383 + # source://uri//lib/uri/generic.rb#1396 def ==(oth); end # Returns true if URI has a scheme (e.g. http:// or https://) specified. # # @return [Boolean] # - # source://uri//lib/uri/generic.rb#979 + # source://uri//lib/uri/generic.rb#994 def absolute; end # Returns true if URI has a scheme (e.g. http:// or https://) specified. # # @return [Boolean] # - # source://uri//lib/uri/generic.rb#972 + # source://uri//lib/uri/generic.rb#987 def absolute?; end + # Returns the authority info (array of user, password, host and + # port), if any is set. Or returns +nil+. + # + # source://uri//lib/uri/generic.rb#579 + def authority; end + # == Args # # +v+:: @@ -819,7 +825,7 @@ class URI::Generic # uri.coerce("http://foo.com") # #=> [#, #] # - # source://uri//lib/uri/generic.rb#1473 + # source://uri//lib/uri/generic.rb#1486 def coerce(oth); end # Components of the URI in the order. @@ -829,12 +835,12 @@ class URI::Generic # Returns the password component after URI decoding. # - # source://uri//lib/uri/generic.rb#583 + # source://uri//lib/uri/generic.rb#589 def decoded_password; end # Returns the user component after URI decoding. # - # source://uri//lib/uri/generic.rb#578 + # source://uri//lib/uri/generic.rb#584 def decoded_user; end # Returns default port. @@ -844,7 +850,7 @@ class URI::Generic # @return [Boolean] # - # source://uri//lib/uri/generic.rb#1395 + # source://uri//lib/uri/generic.rb#1408 def eql?(oth); end # Returns a proxy URI. @@ -865,7 +871,7 @@ class URI::Generic # # @raise [BadURIError] # - # source://uri//lib/uri/generic.rb#1499 + # source://uri//lib/uri/generic.rb#1512 def find_proxy(env = T.unsafe(nil)); end # Returns the fragment component of the URI. @@ -896,10 +902,10 @@ class URI::Generic # uri.fragment = "time=1305212086" # uri.to_s #=> "http://my.example.com/?id=25#time=1305212086" # - # source://uri//lib/uri/generic.rb#929 + # source://uri//lib/uri/generic.rb#944 def fragment=(v); end - # source://uri//lib/uri/generic.rb#1391 + # source://uri//lib/uri/generic.rb#1404 def hash; end # Returns true if URI is hierarchical. @@ -922,7 +928,7 @@ class URI::Generic # # @return [Boolean] # - # source://uri//lib/uri/generic.rb#961 + # source://uri//lib/uri/generic.rb#976 def hierarchical?; end # Returns the host component of the URI. @@ -968,7 +974,7 @@ class URI::Generic # uri.host = "foo.com" # uri.to_s #=> "http://foo.com" # - # source://uri//lib/uri/generic.rb#639 + # source://uri//lib/uri/generic.rb#652 def host=(v); end # Extract the host part of the URI and unwrap brackets for IPv6 addresses. @@ -980,7 +986,7 @@ class URI::Generic # uri.hostname #=> "::1" # uri.host #=> "[::1]" # - # source://uri//lib/uri/generic.rb#654 + # source://uri//lib/uri/generic.rb#668 def hostname; end # Sets the host part of the URI as the argument with brackets for IPv6 addresses. @@ -995,10 +1001,10 @@ class URI::Generic # If the argument seems to be an IPv6 address, # it is wrapped with brackets. # - # source://uri//lib/uri/generic.rb#671 + # source://uri//lib/uri/generic.rb#685 def hostname=(v); end - # source://uri//lib/uri/generic.rb#1450 + # source://uri//lib/uri/generic.rb#1463 def inspect; end # == Args @@ -1018,7 +1024,7 @@ class URI::Generic # uri.merge("/main.rbx?page=1") # # => "http://my.example.com/main.rbx?page=1" # - # source://uri//lib/uri/generic.rb#1109 + # source://uri//lib/uri/generic.rb#1124 def merge(oth); end # == Args @@ -1038,7 +1044,7 @@ class URI::Generic # uri.merge!("/main.rbx?page=1") # uri.to_s # => "http://my.example.com/main.rbx?page=1" # - # source://uri//lib/uri/generic.rb#1081 + # source://uri//lib/uri/generic.rb#1096 def merge!(oth); end # Returns normalized URI. @@ -1053,12 +1059,12 @@ class URI::Generic # * scheme and host are converted to lowercase, # * an empty path component is set to "/". # - # source://uri//lib/uri/generic.rb#1318 + # source://uri//lib/uri/generic.rb#1331 def normalize; end # Destructive version of #normalize. # - # source://uri//lib/uri/generic.rb#1327 + # source://uri//lib/uri/generic.rb#1340 def normalize!; end # Returns the opaque part of the URI. @@ -1085,7 +1091,7 @@ class URI::Generic # # See also URI::Generic.check_opaque. # - # source://uri//lib/uri/generic.rb#901 + # source://uri//lib/uri/generic.rb#916 def opaque=(v); end # Returns the parser to be used. @@ -1150,7 +1156,7 @@ class URI::Generic # uri.path = "/faq/" # uri.to_s #=> "http://my.example.com/faq/" # - # source://uri//lib/uri/generic.rb#815 + # source://uri//lib/uri/generic.rb#830 def path=(v); end # Returns the port component of the URI. @@ -1181,7 +1187,7 @@ class URI::Generic # uri.port = 8080 # uri.to_s #=> "http://my.example.com:8080" # - # source://uri//lib/uri/generic.rb#729 + # source://uri//lib/uri/generic.rb#743 def port=(v); end # Returns the query component of the URI. @@ -1210,7 +1216,7 @@ class URI::Generic # # @raise [InvalidURIError] # - # source://uri//lib/uri/generic.rb#839 + # source://uri//lib/uri/generic.rb#854 def query=(v); end # source://uri//lib/uri/generic.rb#252 @@ -1218,14 +1224,14 @@ class URI::Generic # @raise [InvalidURIError] # - # source://uri//lib/uri/generic.rb#745 + # source://uri//lib/uri/generic.rb#760 def registry=(v); end # Returns true if URI does not have a scheme (e.g. http:// or https://) specified. # # @return [Boolean] # - # source://uri//lib/uri/generic.rb#984 + # source://uri//lib/uri/generic.rb#999 def relative?; end # == Args @@ -1245,7 +1251,7 @@ class URI::Generic # uri.route_from('http://my.example.com') # #=> # # - # source://uri//lib/uri/generic.rb#1261 + # source://uri//lib/uri/generic.rb#1274 def route_from(oth); end # == Args @@ -1265,7 +1271,7 @@ class URI::Generic # uri.route_to('http://my.example.com/main.rbx?page=1') # #=> # # - # source://uri//lib/uri/generic.rb#1301 + # source://uri//lib/uri/generic.rb#1314 def route_to(oth); end # Returns the scheme component of the URI. @@ -1315,17 +1321,17 @@ class URI::Generic # uri.select(:userinfo, :host, :path) # # => ["myuser:mypass", "my.example.com", "/test.rbx"] # - # source://uri//lib/uri/generic.rb#1439 + # source://uri//lib/uri/generic.rb#1452 def select(*components); end # Constructs String from URI. # - # source://uri//lib/uri/generic.rb#1342 + # source://uri//lib/uri/generic.rb#1355 def to_s; end # Constructs String from URI. # - # source://uri//lib/uri/generic.rb#1378 + # source://uri//lib/uri/generic.rb#1391 def to_str; end # Returns the user component (without URI decoding). @@ -1370,21 +1376,27 @@ class URI::Generic # Returns an Array of the components defined from the COMPONENT Array. # - # source://uri//lib/uri/generic.rb#1415 + # source://uri//lib/uri/generic.rb#1428 def component_ary; end + # Protected setter for the authority info (+user+, +password+, +host+ + # and +port+). If +port+ is +nil+, +default_port+ will be set. + # + # source://uri//lib/uri/generic.rb#627 + def set_authority(user, password, host, port = T.unsafe(nil)); end + # Protected setter for the host component +v+. # # See also URI::Generic.host=. # - # source://uri//lib/uri/generic.rb#613 + # source://uri//lib/uri/generic.rb#619 def set_host(v); end # Protected setter for the opaque component +v+. # # See also URI::Generic.opaque=. # - # source://uri//lib/uri/generic.rb#883 + # source://uri//lib/uri/generic.rb#898 def set_opaque(v); end # Protected setter for the password component +v+. @@ -1398,19 +1410,19 @@ class URI::Generic # # See also URI::Generic.path=. # - # source://uri//lib/uri/generic.rb#789 + # source://uri//lib/uri/generic.rb#804 def set_path(v); end # Protected setter for the port component +v+. # # See also URI::Generic.port=. # - # source://uri//lib/uri/generic.rb#702 + # source://uri//lib/uri/generic.rb#716 def set_port(v); end # @raise [InvalidURIError] # - # source://uri//lib/uri/generic.rb#740 + # source://uri//lib/uri/generic.rb#755 def set_registry(v); end # Protected setter for the scheme component +v+. @@ -1443,7 +1455,7 @@ class URI::Generic # Can not have a registry or opaque component defined, # with a host component defined. # - # source://uri//lib/uri/generic.rb#594 + # source://uri//lib/uri/generic.rb#600 def check_host(v); end # Checks the opaque +v+ component for RFC2396 compliance and @@ -1452,7 +1464,7 @@ class URI::Generic # Can not have a host, port, user, or path component defined, # with an opaque component defined. # - # source://uri//lib/uri/generic.rb#861 + # source://uri//lib/uri/generic.rb#876 def check_opaque(v); end # Checks the password +v+ component for RFC2396 compliance @@ -1471,7 +1483,7 @@ class URI::Generic # Can not have a opaque component defined, # with a path component defined. # - # source://uri//lib/uri/generic.rb#757 + # source://uri//lib/uri/generic.rb#772 def check_path(v); end # Checks the port +v+ component for RFC2396 compliance @@ -1480,12 +1492,12 @@ class URI::Generic # Can not have a registry or opaque component defined, # with a port component defined. # - # source://uri//lib/uri/generic.rb#683 + # source://uri//lib/uri/generic.rb#697 def check_port(v); end # @raise [InvalidURIError] # - # source://uri//lib/uri/generic.rb#735 + # source://uri//lib/uri/generic.rb#750 def check_registry(v); end # Checks the scheme +v+ component against the URI::Parser Regexp for :SCHEME. @@ -1521,7 +1533,7 @@ class URI::Generic # Merges a base path +base+, with relative path +rel+, # returns a modified base path. # - # source://uri//lib/uri/generic.rb#1000 + # source://uri//lib/uri/generic.rb#1015 def merge_path(base, rel); end # Replaces self by other URI object. @@ -1531,17 +1543,17 @@ class URI::Generic # :stopdoc: # - # source://uri//lib/uri/generic.rb#1193 + # source://uri//lib/uri/generic.rb#1206 def route_from0(oth); end # :stopdoc: # - # source://uri//lib/uri/generic.rb#1154 + # source://uri//lib/uri/generic.rb#1167 def route_from_path(src, dst); end # Returns an Array of the path split on '/'. # - # source://uri//lib/uri/generic.rb#991 + # source://uri//lib/uri/generic.rb#1006 def split_path(path); end # Returns the userinfo +ui+ as [user, password] @@ -1590,7 +1602,7 @@ class URI::Generic # @return [Boolean] # - # source://uri//lib/uri/generic.rb#1565 + # source://uri//lib/uri/generic.rb#1578 def use_proxy?(hostname, addr, port, no_proxy); end # source://uri//lib/uri/generic.rb#63