lunchmoney 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +7 -0
- data/.github/workflows/build_and_publish_yard_docs.yml +2 -2
- data/.github/workflows/ci.yml +1 -1
- data/.ruby-version +1 -1
- data/.simplecov +1 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +65 -57
- data/lib/lunchmoney/api.rb +1 -0
- data/lib/lunchmoney/calls/categories.rb +0 -2
- data/lib/lunchmoney/calls/transactions.rb +0 -1
- data/lib/lunchmoney/deprecate.rb +35 -0
- data/lib/lunchmoney/objects/asset.rb +6 -1
- data/lib/lunchmoney/objects/plaid_account.rb +6 -1
- data/lib/lunchmoney/version.rb +1 -1
- data/sorbet/rbi/annotations/activesupport.rbi +5 -0
- data/sorbet/rbi/gems/{activesupport@7.2.1.rbi → activesupport@7.2.2.1.rbi} +109 -86
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
- data/sorbet/rbi/gems/{concurrent-ruby@1.3.4.rbi → concurrent-ruby@1.3.5.rbi} +44 -32
- data/sorbet/rbi/gems/{connection_pool@2.4.1.rbi → connection_pool@2.5.0.rbi} +1 -0
- data/sorbet/rbi/gems/{dotenv@3.1.2.rbi → dotenv@3.1.7.rbi} +21 -29
- data/sorbet/rbi/gems/{erubi@1.13.0.rbi → erubi@1.13.1.rbi} +14 -9
- data/sorbet/rbi/gems/{faraday-net_http@3.1.1.rbi → faraday-net_http@3.4.0.rbi} +34 -34
- data/sorbet/rbi/gems/{faraday@2.10.1.rbi → faraday@2.12.2.rbi} +43 -34
- data/sorbet/rbi/gems/{i18n@1.14.5.rbi → i18n@1.14.7.rbi} +80 -80
- data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.10.2.rbi} +697 -146
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.4.rbi +9 -0
- data/sorbet/rbi/gems/{logger@1.6.0.rbi → logger@1.6.6.rbi} +109 -72
- data/sorbet/rbi/gems/{minitest@5.25.1.rbi → minitest@5.25.5.rbi} +227 -220
- data/sorbet/rbi/gems/{mocha@2.4.5.rbi → mocha@2.7.1.rbi} +154 -118
- data/sorbet/rbi/gems/{net-http@0.4.1.rbi → net-http@0.6.0.rbi} +360 -181
- data/sorbet/rbi/gems/{parser@3.3.4.2.rbi → parser@3.3.7.1.rbi} +23 -17
- data/sorbet/rbi/gems/{prism@0.30.0.rbi → prism@1.4.0.rbi} +12440 -9920
- data/sorbet/rbi/gems/{rack@3.1.7.rbi → rack@3.1.9.rbi} +91 -83
- data/sorbet/rbi/gems/rbi@0.3.1.rbi +6599 -0
- data/sorbet/rbi/gems/rbs@3.9.0.rbi +6978 -0
- data/sorbet/rbi/gems/{regexp_parser@2.9.2.rbi → regexp_parser@2.10.0.rbi} +193 -170
- data/sorbet/rbi/gems/{rexml@3.3.6.rbi → rexml@3.4.1.rbi} +541 -114
- data/sorbet/rbi/gems/{rubocop-ast@1.32.1.rbi → rubocop-ast@1.38.0.rbi} +1224 -622
- data/sorbet/rbi/gems/{rubocop-minitest@0.35.1.rbi → rubocop-minitest@0.36.0.rbi} +5 -5
- data/sorbet/rbi/gems/{rubocop-rails@2.26.0.rbi → rubocop-rails@2.29.1.rbi} +9412 -6480
- data/sorbet/rbi/gems/{rubocop-sorbet@0.8.5.rbi → rubocop-sorbet@0.8.7.rbi} +44 -1
- data/sorbet/rbi/gems/{rubocop@1.65.1.rbi → rubocop@1.71.2.rbi} +5606 -3467
- data/sorbet/rbi/gems/{securerandom@0.3.1.rbi → securerandom@0.4.1.rbi} +7 -5
- data/sorbet/rbi/gems/{spoom@1.4.2.rbi → spoom@1.6.1.rbi} +3315 -973
- data/sorbet/rbi/gems/{tapioca@0.16.1.rbi → tapioca@0.16.11.rbi} +300 -234
- data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.3.2.rbi} +58 -31
- data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
- data/sorbet/rbi/gems/{uri@0.13.0.rbi → uri@1.0.3.rbi} +278 -256
- data/sorbet/rbi/gems/{webmock@3.23.1.rbi → webmock@3.25.1.rbi} +101 -78
- data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +394 -235
- metadata +42 -44
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14237
- data/sorbet/rbi/gems/rbi@0.1.14.rbi +0 -3305
- data/sorbet/rbi/gems/strscan@3.1.0.rbi +0 -9
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
- /data/sorbet/rbi/gems/{bigdecimal@3.1.8.rbi → bigdecimal@3.1.9.rbi} +0 -0
- /data/sorbet/rbi/gems/{hashdiff@1.1.1.rbi → hashdiff@1.1.2.rbi} +0 -0
@@ -4,7 +4,10 @@
|
|
4
4
|
# This is an autogenerated file for types exported from the `uri` gem.
|
5
5
|
# Please instead update this file by running `bin/tapioca gem uri`.
|
6
6
|
|
7
|
+
|
7
8
|
# module URI
|
9
|
+
#
|
10
|
+
# source://uri//lib/uri/common.rb#856
|
8
11
|
module Kernel
|
9
12
|
private
|
10
13
|
|
@@ -18,7 +21,7 @@ module Kernel
|
|
18
21
|
# URI(uri)
|
19
22
|
# # => #<URI::HTTP http://github.com/ruby/ruby>
|
20
23
|
#
|
21
|
-
# source://uri//uri/common.rb#
|
24
|
+
# source://uri//lib/uri/common.rb#869
|
22
25
|
def URI(uri); end
|
23
26
|
|
24
27
|
class << self
|
@@ -32,18 +35,20 @@ module Kernel
|
|
32
35
|
# URI(uri)
|
33
36
|
# # => #<URI::HTTP http://github.com/ruby/ruby>
|
34
37
|
#
|
35
|
-
# source://uri//uri/common.rb#
|
38
|
+
# source://uri//lib/uri/common.rb#869
|
36
39
|
def URI(uri); end
|
37
40
|
end
|
38
41
|
end
|
39
42
|
|
43
|
+
# source://uri//lib/uri.rb#90
|
40
44
|
module URI
|
41
|
-
include ::URI::RFC2396_REGEXP
|
42
|
-
|
43
45
|
class << self
|
46
|
+
# source://uri//lib/uri/common.rb#47
|
47
|
+
def const_missing(const); end
|
48
|
+
|
44
49
|
# Like URI.decode_www_form_component, except that <tt>'+'</tt> is preserved.
|
45
50
|
#
|
46
|
-
# source://uri//uri/common.rb#
|
51
|
+
# source://uri//lib/uri/common.rb#406
|
47
52
|
def decode_uri_component(str, enc = T.unsafe(nil)); end
|
48
53
|
|
49
54
|
# Returns name/value pairs derived from the given string +str+,
|
@@ -56,7 +61,7 @@ module URI
|
|
56
61
|
# each subarray is a name/value pair (both are strings).
|
57
62
|
# Each returned string has encoding +enc+,
|
58
63
|
# and has had invalid characters removed via
|
59
|
-
# {String#scrub}[
|
64
|
+
# {String#scrub}[https://docs.ruby-lang.org/en/master/String.html#method-i-scrub].
|
60
65
|
#
|
61
66
|
# A simple example:
|
62
67
|
#
|
@@ -81,7 +86,7 @@ module URI
|
|
81
86
|
#
|
82
87
|
# @raise [ArgumentError]
|
83
88
|
#
|
84
|
-
# source://uri//uri/common.rb#
|
89
|
+
# source://uri//lib/uri/common.rb#581
|
85
90
|
def decode_www_form(str, enc = T.unsafe(nil), separator: T.unsafe(nil), use__charset_: T.unsafe(nil), isindex: T.unsafe(nil)); end
|
86
91
|
|
87
92
|
# Returns a string decoded from the given \URL-encoded string +str+.
|
@@ -114,17 +119,17 @@ module URI
|
|
114
119
|
#
|
115
120
|
# Related: URI.decode_uri_component (preserves <tt>'+'</tt>).
|
116
121
|
#
|
117
|
-
# source://uri//uri/common.rb#
|
122
|
+
# source://uri//lib/uri/common.rb#395
|
118
123
|
def decode_www_form_component(str, enc = T.unsafe(nil)); end
|
119
124
|
|
120
125
|
# Like URI.encode_www_form_component, except that <tt>' '</tt> (space)
|
121
126
|
# is encoded as <tt>'%20'</tt> (instead of <tt>'+'</tt>).
|
122
127
|
#
|
123
|
-
# source://uri//uri/common.rb#
|
128
|
+
# source://uri//lib/uri/common.rb#401
|
124
129
|
def encode_uri_component(str, enc = T.unsafe(nil)); end
|
125
130
|
|
126
131
|
# Returns a URL-encoded string derived from the given
|
127
|
-
# {Enumerable}[
|
132
|
+
# {Enumerable}[https://docs.ruby-lang.org/en/master/Enumerable.html#module-Enumerable-label-Enumerable+in+Ruby+Classes]
|
128
133
|
# +enum+.
|
129
134
|
#
|
130
135
|
# The result is suitable for use as form data
|
@@ -193,7 +198,7 @@ module URI
|
|
193
198
|
# each +key+/+value+ pair is converted to one or more fields:
|
194
199
|
#
|
195
200
|
# - If +value+ is
|
196
|
-
# {Array-convertible}[
|
201
|
+
# {Array-convertible}[https://docs.ruby-lang.org/en/master/implicit_conversion_rdoc.html#label-Array-Convertible+Objects],
|
197
202
|
# each element +ele+ in +value+ is paired with +key+ to form a field:
|
198
203
|
#
|
199
204
|
# name = URI.encode_www_form_component(key, enc)
|
@@ -221,7 +226,7 @@ module URI
|
|
221
226
|
# URI.encode_www_form({foo: [0, 1], bar: 2})
|
222
227
|
# # => "foo=0&foo=1&bar=2"
|
223
228
|
#
|
224
|
-
# source://uri//uri/common.rb#
|
229
|
+
# source://uri//lib/uri/common.rb#528
|
225
230
|
def encode_www_form(enum, enc = T.unsafe(nil)); end
|
226
231
|
|
227
232
|
# Returns a URL-encoded string derived from the given string +str+.
|
@@ -261,7 +266,7 @@ module URI
|
|
261
266
|
#
|
262
267
|
# Related: URI.encode_uri_component (encodes <tt>' '</tt> as <tt>'%20'</tt>).
|
263
268
|
#
|
264
|
-
# source://uri//uri/common.rb#
|
269
|
+
# source://uri//lib/uri/common.rb#362
|
265
270
|
def encode_www_form_component(str, enc = T.unsafe(nil)); end
|
266
271
|
|
267
272
|
# == Synopsis
|
@@ -287,7 +292,7 @@ module URI
|
|
287
292
|
# URI.extract("text here http://foo.example.org/bla and here mailto:test@example.com and here also.")
|
288
293
|
# # => ["http://foo.example.com/bla", "mailto:test@example.com"]
|
289
294
|
#
|
290
|
-
# source://uri//uri/common.rb#
|
295
|
+
# source://uri//lib/uri/common.rb#266
|
291
296
|
def extract(str, schemes = T.unsafe(nil), &block); end
|
292
297
|
|
293
298
|
# Returns a new object constructed from the given +scheme+, +arguments+,
|
@@ -306,13 +311,13 @@ module URI
|
|
306
311
|
# URI.for('foo', *values, default: URI::HTTP)
|
307
312
|
# # => #<URI::HTTP foo://john.doe@www.example.com:123/forum/questions/?tag=networking&order=newest#top>
|
308
313
|
#
|
309
|
-
# source://uri//uri/common.rb#
|
314
|
+
# source://uri//lib/uri/common.rb#150
|
310
315
|
def for(scheme, *arguments, default: T.unsafe(nil)); end
|
311
316
|
|
312
317
|
# return encoding or nil
|
313
318
|
# http://encoding.spec.whatwg.org/#concept-encoding-get
|
314
319
|
#
|
315
|
-
# source://uri//uri/common.rb#
|
320
|
+
# source://uri//lib/uri/common.rb#851
|
316
321
|
def get_encoding(label); end
|
317
322
|
|
318
323
|
# Merges the given URI strings +str+
|
@@ -338,7 +343,7 @@ module URI
|
|
338
343
|
# URI.join('http://example.com', '/foo/', 'bar')
|
339
344
|
# # => #<URI::HTTP http://example.com/foo/bar>
|
340
345
|
#
|
341
|
-
# source://uri//uri/common.rb#
|
346
|
+
# source://uri//lib/uri/common.rb#238
|
342
347
|
def join(*str); end
|
343
348
|
|
344
349
|
# Returns a new \URI object constructed from the given string +uri+:
|
@@ -351,9 +356,14 @@ module URI
|
|
351
356
|
# It's recommended to first ::escape string +uri+
|
352
357
|
# if it may contain invalid URI characters.
|
353
358
|
#
|
354
|
-
# source://uri//uri/common.rb#
|
359
|
+
# source://uri//lib/uri/common.rb#211
|
355
360
|
def parse(uri); end
|
356
361
|
|
362
|
+
# Set the default parser instance.
|
363
|
+
#
|
364
|
+
# source://uri//lib/uri/common.rb#29
|
365
|
+
def parser=(parser = T.unsafe(nil)); end
|
366
|
+
|
357
367
|
# == Synopsis
|
358
368
|
#
|
359
369
|
# URI::regexp([match_schemes])
|
@@ -385,7 +395,7 @@ module URI
|
|
385
395
|
# p $&
|
386
396
|
# end
|
387
397
|
#
|
388
|
-
# source://uri//uri/common.rb#
|
398
|
+
# source://uri//lib/uri/common.rb#303
|
389
399
|
def regexp(schemes = T.unsafe(nil)); end
|
390
400
|
|
391
401
|
# Registers the given +klass+ as the class to be instantiated
|
@@ -397,7 +407,7 @@ module URI
|
|
397
407
|
# Note that after calling String#upcase on +scheme+, it must be a valid
|
398
408
|
# constant name.
|
399
409
|
#
|
400
|
-
# source://uri//uri/common.rb#
|
410
|
+
# source://uri//lib/uri/common.rb#106
|
401
411
|
def register_scheme(scheme, klass); end
|
402
412
|
|
403
413
|
# Returns a hash of the defined schemes:
|
@@ -415,7 +425,7 @@ module URI
|
|
415
425
|
#
|
416
426
|
# Related: URI.register_scheme.
|
417
427
|
#
|
418
|
-
# source://uri//uri/common.rb#
|
428
|
+
# source://uri//lib/uri/common.rb#124
|
419
429
|
def scheme_list; end
|
420
430
|
|
421
431
|
# Returns a 9-element array representing the parts of the \URI
|
@@ -436,17 +446,17 @@ module URI
|
|
436
446
|
# ["query", "tag=networking&order=newest"],
|
437
447
|
# ["fragment", "top"]]
|
438
448
|
#
|
439
|
-
# source://uri//uri/common.rb#
|
449
|
+
# source://uri//lib/uri/common.rb#197
|
440
450
|
def split(uri); end
|
441
451
|
|
442
452
|
private
|
443
453
|
|
444
454
|
# @raise [ArgumentError]
|
445
455
|
#
|
446
|
-
# source://uri//uri/common.rb#
|
456
|
+
# source://uri//lib/uri/common.rb#424
|
447
457
|
def _decode_uri_component(regexp, str, enc); end
|
448
458
|
|
449
|
-
# source://uri//uri/common.rb#
|
459
|
+
# source://uri//lib/uri/common.rb#410
|
450
460
|
def _encode_uri_component(regexp, table, str, enc); end
|
451
461
|
end
|
452
462
|
end
|
@@ -456,7 +466,9 @@ end
|
|
456
466
|
# This class will be redesigned because of difference of implementations;
|
457
467
|
# the structure of its path. draft-hoffman-ftp-uri-04 is a draft but it
|
458
468
|
# is a good summary about the de facto spec.
|
459
|
-
#
|
469
|
+
# https://datatracker.ietf.org/doc/html/draft-hoffman-ftp-uri-04
|
470
|
+
#
|
471
|
+
# source://uri//lib/uri/ftp.rb#22
|
460
472
|
class URI::FTP < ::URI::Generic
|
461
473
|
# == Description
|
462
474
|
#
|
@@ -472,10 +484,10 @@ class URI::FTP < ::URI::Generic
|
|
472
484
|
# @raise [InvalidURIError]
|
473
485
|
# @return [FTP] a new instance of FTP
|
474
486
|
#
|
475
|
-
# source://uri//uri/ftp.rb#133
|
487
|
+
# source://uri//lib/uri/ftp.rb#133
|
476
488
|
def initialize(scheme, userinfo, host, port, registry, path, opaque, query, fragment, parser = T.unsafe(nil), arg_check = T.unsafe(nil)); end
|
477
489
|
|
478
|
-
# source://uri//uri/ftp.rb#214
|
490
|
+
# source://uri//lib/uri/ftp.rb#214
|
479
491
|
def merge(oth); end
|
480
492
|
|
481
493
|
# Returns the path from an FTP URI.
|
@@ -495,19 +507,19 @@ class URI::FTP < ::URI::Generic
|
|
495
507
|
#
|
496
508
|
# This method will then return "/pub/ruby".
|
497
509
|
#
|
498
|
-
# source://uri//uri/ftp.rb#240
|
510
|
+
# source://uri//lib/uri/ftp.rb#240
|
499
511
|
def path; end
|
500
512
|
|
501
513
|
# Returns a String representation of the URI::FTP.
|
502
514
|
#
|
503
|
-
# source://uri//uri/ftp.rb#251
|
515
|
+
# source://uri//lib/uri/ftp.rb#251
|
504
516
|
def to_s; end
|
505
517
|
|
506
518
|
# typecode accessor.
|
507
519
|
#
|
508
520
|
# See URI::FTP::COMPONENT.
|
509
521
|
#
|
510
|
-
# source://uri//uri/ftp.rb#161
|
522
|
+
# source://uri//lib/uri/ftp.rb#161
|
511
523
|
def typecode; end
|
512
524
|
|
513
525
|
# == Args
|
@@ -532,21 +544,21 @@ class URI::FTP < ::URI::Generic
|
|
532
544
|
# uri
|
533
545
|
# #=> #<URI::FTP ftp://john@ftp.example.com/my_file.img;type=i>
|
534
546
|
#
|
535
|
-
# source://uri//uri/ftp.rb#208
|
547
|
+
# source://uri//lib/uri/ftp.rb#208
|
536
548
|
def typecode=(typecode); end
|
537
549
|
|
538
550
|
protected
|
539
551
|
|
540
552
|
# Private setter for the path of the URI::FTP.
|
541
553
|
#
|
542
|
-
# source://uri//uri/ftp.rb#245
|
554
|
+
# source://uri//lib/uri/ftp.rb#245
|
543
555
|
def set_path(v); end
|
544
556
|
|
545
557
|
# Private setter for the typecode +v+.
|
546
558
|
#
|
547
559
|
# See also URI::FTP.typecode=.
|
548
560
|
#
|
549
|
-
# source://uri//uri/ftp.rb#180
|
561
|
+
# source://uri//lib/uri/ftp.rb#180
|
550
562
|
def set_typecode(v); end
|
551
563
|
|
552
564
|
private
|
@@ -554,7 +566,7 @@ class URI::FTP < ::URI::Generic
|
|
554
566
|
# Validates typecode +v+,
|
555
567
|
# returns +true+ or +false+.
|
556
568
|
#
|
557
|
-
# source://uri//uri/ftp.rb#166
|
569
|
+
# source://uri//lib/uri/ftp.rb#166
|
558
570
|
def check_typecode(v); end
|
559
571
|
|
560
572
|
class << self
|
@@ -586,62 +598,64 @@ class URI::FTP < ::URI::Generic
|
|
586
598
|
# :path => 'ruby/src'})
|
587
599
|
# uri2.to_s # => "ftp://ftp.example.com/ruby/src"
|
588
600
|
#
|
589
|
-
# source://uri//uri/ftp.rb#96
|
601
|
+
# source://uri//lib/uri/ftp.rb#96
|
590
602
|
def build(args); end
|
591
603
|
|
592
|
-
# source://uri//uri/ftp.rb#47
|
604
|
+
# source://uri//lib/uri/ftp.rb#47
|
593
605
|
def new2(user, password, host, port, path, typecode = T.unsafe(nil), arg_check = T.unsafe(nil)); end
|
594
606
|
end
|
595
607
|
end
|
596
608
|
|
597
609
|
# The "file" URI is defined by RFC8089.
|
610
|
+
#
|
611
|
+
# source://uri//lib/uri/file.rb#10
|
598
612
|
class URI::File < ::URI::Generic
|
599
613
|
# raise InvalidURIError
|
600
614
|
#
|
601
615
|
# @raise [URI::InvalidURIError]
|
602
616
|
#
|
603
|
-
# source://uri//uri/file.rb#82
|
617
|
+
# source://uri//lib/uri/file.rb#82
|
604
618
|
def check_password(user); end
|
605
619
|
|
606
620
|
# raise InvalidURIError
|
607
621
|
#
|
608
622
|
# @raise [URI::InvalidURIError]
|
609
623
|
#
|
610
|
-
# source://uri//uri/file.rb#77
|
624
|
+
# source://uri//lib/uri/file.rb#77
|
611
625
|
def check_user(user); end
|
612
626
|
|
613
627
|
# raise InvalidURIError
|
614
628
|
#
|
615
629
|
# @raise [URI::InvalidURIError]
|
616
630
|
#
|
617
|
-
# source://uri//uri/file.rb#72
|
631
|
+
# source://uri//lib/uri/file.rb#72
|
618
632
|
def check_userinfo(user); end
|
619
633
|
|
620
634
|
# Protected setter for the host component +v+.
|
621
635
|
#
|
622
636
|
# See also URI::Generic.host=.
|
623
637
|
#
|
624
|
-
# source://uri//uri/file.rb#62
|
638
|
+
# source://uri//lib/uri/file.rb#62
|
625
639
|
def set_host(v); end
|
626
640
|
|
627
641
|
# do nothing
|
628
642
|
#
|
629
|
-
# source://uri//uri/file.rb#95
|
643
|
+
# source://uri//lib/uri/file.rb#95
|
630
644
|
def set_password(v); end
|
631
645
|
|
632
646
|
# do nothing
|
633
647
|
#
|
634
|
-
# source://uri//uri/file.rb#68
|
648
|
+
# source://uri//lib/uri/file.rb#68
|
635
649
|
def set_port(v); end
|
636
650
|
|
637
651
|
# do nothing
|
638
652
|
#
|
639
|
-
# source://uri//uri/file.rb#91
|
653
|
+
# source://uri//lib/uri/file.rb#91
|
640
654
|
def set_user(v); end
|
641
655
|
|
642
656
|
# do nothing
|
643
657
|
#
|
644
|
-
# source://uri//uri/file.rb#87
|
658
|
+
# source://uri//lib/uri/file.rb#87
|
645
659
|
def set_userinfo(v); end
|
646
660
|
|
647
661
|
class << self
|
@@ -674,25 +688,26 @@ class URI::File < ::URI::Generic
|
|
674
688
|
# uri3 = URI::File.build({:path => URI::escape('/path/my file.txt')})
|
675
689
|
# uri3.to_s # => "file:///path/my%20file.txt"
|
676
690
|
#
|
677
|
-
# source://uri//uri/file.rb#53
|
691
|
+
# source://uri//lib/uri/file.rb#53
|
678
692
|
def build(args); end
|
679
693
|
end
|
680
694
|
end
|
681
695
|
|
682
696
|
# An Array of the available components for URI::File.
|
683
697
|
#
|
684
|
-
# source://uri//uri/file.rb#17
|
698
|
+
# source://uri//lib/uri/file.rb#17
|
685
699
|
URI::File::COMPONENT = T.let(T.unsafe(nil), Array)
|
686
700
|
|
687
701
|
# A Default port of nil for URI::File.
|
688
702
|
#
|
689
|
-
# source://uri//uri/file.rb#12
|
703
|
+
# source://uri//lib/uri/file.rb#12
|
690
704
|
URI::File::DEFAULT_PORT = T.let(T.unsafe(nil), T.untyped)
|
691
705
|
|
692
706
|
# Base class for all URI classes.
|
693
707
|
# Implements generic URI syntax as per RFC 2396.
|
708
|
+
#
|
709
|
+
# source://uri//lib/uri/generic.rb#21
|
694
710
|
class URI::Generic
|
695
|
-
include ::URI::RFC2396_REGEXP
|
696
711
|
include ::URI
|
697
712
|
|
698
713
|
# == Args
|
@@ -726,7 +741,7 @@ class URI::Generic
|
|
726
741
|
#
|
727
742
|
# @return [Generic] a new instance of Generic
|
728
743
|
#
|
729
|
-
# source://uri//uri/generic.rb#169
|
744
|
+
# source://uri//lib/uri/generic.rb#169
|
730
745
|
def initialize(scheme, userinfo, host, port, registry, path, opaque, query, fragment, parser = T.unsafe(nil), arg_check = T.unsafe(nil)); end
|
731
746
|
|
732
747
|
# == Args
|
@@ -747,7 +762,7 @@ class URI::Generic
|
|
747
762
|
# # => "http://my.example.com/main.rbx?page=1"
|
748
763
|
# merge
|
749
764
|
#
|
750
|
-
# source://uri//uri/generic.rb#1109
|
765
|
+
# source://uri//lib/uri/generic.rb#1109
|
751
766
|
def +(oth); end
|
752
767
|
|
753
768
|
# == Args
|
@@ -767,26 +782,26 @@ class URI::Generic
|
|
767
782
|
# uri.route_from('http://my.example.com')
|
768
783
|
# #=> #<URI::Generic /main.rbx?page=1>
|
769
784
|
#
|
770
|
-
# source://uri//uri/generic.rb#
|
785
|
+
# source://uri//lib/uri/generic.rb#1261
|
771
786
|
def -(oth); end
|
772
787
|
|
773
788
|
# Compares two URIs.
|
774
789
|
#
|
775
|
-
# source://uri//uri/generic.rb#
|
790
|
+
# source://uri//lib/uri/generic.rb#1386
|
776
791
|
def ==(oth); end
|
777
792
|
|
778
793
|
# Returns true if URI has a scheme (e.g. http:// or https://) specified.
|
779
794
|
#
|
780
795
|
# @return [Boolean]
|
781
796
|
#
|
782
|
-
# source://uri//uri/generic.rb#972
|
797
|
+
# source://uri//lib/uri/generic.rb#972
|
783
798
|
def absolute; end
|
784
799
|
|
785
800
|
# Returns true if URI has a scheme (e.g. http:// or https://) specified.
|
786
801
|
#
|
787
802
|
# @return [Boolean]
|
788
803
|
#
|
789
|
-
# source://uri//uri/generic.rb#972
|
804
|
+
# source://uri//lib/uri/generic.rb#972
|
790
805
|
def absolute?; end
|
791
806
|
|
792
807
|
# == Args
|
@@ -807,32 +822,34 @@ class URI::Generic
|
|
807
822
|
# uri.coerce("http://foo.com")
|
808
823
|
# #=> [#<URI::HTTP http://foo.com>, #<URI::HTTP http://my.example.com>]
|
809
824
|
#
|
810
|
-
# source://uri//uri/generic.rb#
|
825
|
+
# source://uri//lib/uri/generic.rb#1465
|
811
826
|
def coerce(oth); end
|
812
827
|
|
813
828
|
# Components of the URI in the order.
|
814
829
|
#
|
815
|
-
# source://uri//uri/generic.rb#313
|
830
|
+
# source://uri//lib/uri/generic.rb#313
|
816
831
|
def component; end
|
817
832
|
|
818
833
|
# Returns the password component after URI decoding.
|
819
834
|
#
|
820
|
-
# source://uri//uri/generic.rb#583
|
835
|
+
# source://uri//lib/uri/generic.rb#583
|
821
836
|
def decoded_password; end
|
822
837
|
|
823
838
|
# Returns the user component after URI decoding.
|
824
839
|
#
|
825
|
-
# source://uri//uri/generic.rb#578
|
840
|
+
# source://uri//lib/uri/generic.rb#578
|
826
841
|
def decoded_user; end
|
827
842
|
|
828
843
|
# Returns default port.
|
829
844
|
#
|
830
|
-
# source://uri//uri/generic.rb#39
|
845
|
+
# source://uri//lib/uri/generic.rb#39
|
831
846
|
def default_port; end
|
832
847
|
|
848
|
+
# Compares with _oth_ for Hash.
|
849
|
+
#
|
833
850
|
# @return [Boolean]
|
834
851
|
#
|
835
|
-
# source://uri//uri/generic.rb#
|
852
|
+
# source://uri//lib/uri/generic.rb#1400
|
836
853
|
def eql?(oth); end
|
837
854
|
|
838
855
|
# Returns a proxy URI.
|
@@ -853,14 +870,14 @@ class URI::Generic
|
|
853
870
|
#
|
854
871
|
# @raise [BadURIError]
|
855
872
|
#
|
856
|
-
# source://uri//uri/generic.rb#
|
873
|
+
# source://uri//lib/uri/generic.rb#1491
|
857
874
|
def find_proxy(env = T.unsafe(nil)); end
|
858
875
|
|
859
876
|
# Returns the fragment component of the URI.
|
860
877
|
#
|
861
878
|
# URI("http://foo/bar/baz?search=FooBar#ponies").fragment #=> "ponies"
|
862
879
|
#
|
863
|
-
# source://uri//uri/generic.rb#283
|
880
|
+
# source://uri//lib/uri/generic.rb#283
|
864
881
|
def fragment; end
|
865
882
|
|
866
883
|
# Checks the fragment +v+ component against the URI::Parser Regexp for :FRAGMENT.
|
@@ -884,10 +901,12 @@ class URI::Generic
|
|
884
901
|
# uri.fragment = "time=1305212086"
|
885
902
|
# uri.to_s #=> "http://my.example.com/?id=25#time=1305212086"
|
886
903
|
#
|
887
|
-
# source://uri//uri/generic.rb#929
|
904
|
+
# source://uri//lib/uri/generic.rb#929
|
888
905
|
def fragment=(v); end
|
889
906
|
|
890
|
-
#
|
907
|
+
# Returns the hash value.
|
908
|
+
#
|
909
|
+
# source://uri//lib/uri/generic.rb#1395
|
891
910
|
def hash; end
|
892
911
|
|
893
912
|
# Returns true if URI is hierarchical.
|
@@ -895,7 +914,7 @@ class URI::Generic
|
|
895
914
|
# == Description
|
896
915
|
#
|
897
916
|
# URI has components listed in order of decreasing significance from left to right,
|
898
|
-
# see RFC3986 https://
|
917
|
+
# see RFC3986 https://www.rfc-editor.org/rfc/rfc3986 1.2.3.
|
899
918
|
#
|
900
919
|
# == Usage
|
901
920
|
#
|
@@ -910,7 +929,7 @@ class URI::Generic
|
|
910
929
|
#
|
911
930
|
# @return [Boolean]
|
912
931
|
#
|
913
|
-
# source://uri//uri/generic.rb#961
|
932
|
+
# source://uri//lib/uri/generic.rb#961
|
914
933
|
def hierarchical?; end
|
915
934
|
|
916
935
|
# Returns the host component of the URI.
|
@@ -933,7 +952,7 @@ class URI::Generic
|
|
933
952
|
# URI("http://[::1]/bar/baz").host #=> "[::1]"
|
934
953
|
# URI("http://[::1]/bar/baz").hostname #=> "::1"
|
935
954
|
#
|
936
|
-
# source://uri//uri/generic.rb#243
|
955
|
+
# source://uri//lib/uri/generic.rb#243
|
937
956
|
def host; end
|
938
957
|
|
939
958
|
# == Args
|
@@ -956,7 +975,7 @@ class URI::Generic
|
|
956
975
|
# uri.host = "foo.com"
|
957
976
|
# uri.to_s #=> "http://foo.com"
|
958
977
|
#
|
959
|
-
# source://uri//uri/generic.rb#639
|
978
|
+
# source://uri//lib/uri/generic.rb#639
|
960
979
|
def host=(v); end
|
961
980
|
|
962
981
|
# Extract the host part of the URI and unwrap brackets for IPv6 addresses.
|
@@ -968,7 +987,7 @@ class URI::Generic
|
|
968
987
|
# uri.hostname #=> "::1"
|
969
988
|
# uri.host #=> "[::1]"
|
970
989
|
#
|
971
|
-
# source://uri//uri/generic.rb#654
|
990
|
+
# source://uri//lib/uri/generic.rb#654
|
972
991
|
def hostname; end
|
973
992
|
|
974
993
|
# Sets the host part of the URI as the argument with brackets for IPv6 addresses.
|
@@ -983,10 +1002,10 @@ class URI::Generic
|
|
983
1002
|
# If the argument seems to be an IPv6 address,
|
984
1003
|
# it is wrapped with brackets.
|
985
1004
|
#
|
986
|
-
# source://uri//uri/generic.rb#671
|
1005
|
+
# source://uri//lib/uri/generic.rb#671
|
987
1006
|
def hostname=(v); end
|
988
1007
|
|
989
|
-
# source://uri//uri/generic.rb#
|
1008
|
+
# source://uri//lib/uri/generic.rb#1442
|
990
1009
|
def inspect; end
|
991
1010
|
|
992
1011
|
# == Args
|
@@ -1006,7 +1025,7 @@ class URI::Generic
|
|
1006
1025
|
# uri.merge("/main.rbx?page=1")
|
1007
1026
|
# # => "http://my.example.com/main.rbx?page=1"
|
1008
1027
|
#
|
1009
|
-
# source://uri//uri/generic.rb#1109
|
1028
|
+
# source://uri//lib/uri/generic.rb#1109
|
1010
1029
|
def merge(oth); end
|
1011
1030
|
|
1012
1031
|
# == Args
|
@@ -1026,7 +1045,7 @@ class URI::Generic
|
|
1026
1045
|
# uri.merge!("/main.rbx?page=1")
|
1027
1046
|
# uri.to_s # => "http://my.example.com/main.rbx?page=1"
|
1028
1047
|
#
|
1029
|
-
# source://uri//uri/generic.rb#1081
|
1048
|
+
# source://uri//lib/uri/generic.rb#1081
|
1030
1049
|
def merge!(oth); end
|
1031
1050
|
|
1032
1051
|
# Returns normalized URI.
|
@@ -1041,12 +1060,12 @@ class URI::Generic
|
|
1041
1060
|
# * scheme and host are converted to lowercase,
|
1042
1061
|
# * an empty path component is set to "/".
|
1043
1062
|
#
|
1044
|
-
# source://uri//uri/generic.rb#
|
1063
|
+
# source://uri//lib/uri/generic.rb#1318
|
1045
1064
|
def normalize; end
|
1046
1065
|
|
1047
1066
|
# Destructive version of #normalize.
|
1048
1067
|
#
|
1049
|
-
# source://uri//uri/generic.rb#
|
1068
|
+
# source://uri//lib/uri/generic.rb#1327
|
1050
1069
|
def normalize!; end
|
1051
1070
|
|
1052
1071
|
# Returns the opaque part of the URI.
|
@@ -1058,7 +1077,7 @@ class URI::Generic
|
|
1058
1077
|
# The path typically refers to an absolute path or an opaque part.
|
1059
1078
|
# (See RFC2396 Section 3 and 5.2.)
|
1060
1079
|
#
|
1061
|
-
# source://uri//uri/generic.rb#277
|
1080
|
+
# source://uri//lib/uri/generic.rb#277
|
1062
1081
|
def opaque; end
|
1063
1082
|
|
1064
1083
|
# == Args
|
@@ -1073,19 +1092,19 @@ class URI::Generic
|
|
1073
1092
|
#
|
1074
1093
|
# See also URI::Generic.check_opaque.
|
1075
1094
|
#
|
1076
|
-
# source://uri//uri/generic.rb#901
|
1095
|
+
# source://uri//lib/uri/generic.rb#901
|
1077
1096
|
def opaque=(v); end
|
1078
1097
|
|
1079
1098
|
# Returns the parser to be used.
|
1080
1099
|
#
|
1081
1100
|
# Unless a URI::Parser is defined, DEFAULT_PARSER is used.
|
1082
1101
|
#
|
1083
|
-
# source://uri//uri/generic.rb#289
|
1102
|
+
# source://uri//lib/uri/generic.rb#289
|
1084
1103
|
def parser; end
|
1085
1104
|
|
1086
1105
|
# Returns the password component (without URI decoding).
|
1087
1106
|
#
|
1088
|
-
# source://uri//uri/generic.rb#573
|
1107
|
+
# source://uri//lib/uri/generic.rb#573
|
1089
1108
|
def password; end
|
1090
1109
|
|
1091
1110
|
# == Args
|
@@ -1108,14 +1127,14 @@ class URI::Generic
|
|
1108
1127
|
# uri.password = "V3ry_S3nsit1ve"
|
1109
1128
|
# uri.to_s #=> "http://john:V3ry_S3nsit1ve@my.example.com"
|
1110
1129
|
#
|
1111
|
-
# source://uri//uri/generic.rb#498
|
1130
|
+
# source://uri//lib/uri/generic.rb#498
|
1112
1131
|
def password=(password); end
|
1113
1132
|
|
1114
1133
|
# Returns the path component of the URI.
|
1115
1134
|
#
|
1116
1135
|
# URI("http://foo/bar/baz").path #=> "/bar/baz"
|
1117
1136
|
#
|
1118
|
-
# source://uri//uri/generic.rb#260
|
1137
|
+
# source://uri//lib/uri/generic.rb#260
|
1119
1138
|
def path; end
|
1120
1139
|
|
1121
1140
|
# == Args
|
@@ -1138,7 +1157,7 @@ class URI::Generic
|
|
1138
1157
|
# uri.path = "/faq/"
|
1139
1158
|
# uri.to_s #=> "http://my.example.com/faq/"
|
1140
1159
|
#
|
1141
|
-
# source://uri//uri/generic.rb#815
|
1160
|
+
# source://uri//lib/uri/generic.rb#815
|
1142
1161
|
def path=(v); end
|
1143
1162
|
|
1144
1163
|
# Returns the port component of the URI.
|
@@ -1146,7 +1165,7 @@ class URI::Generic
|
|
1146
1165
|
# URI("http://foo/bar/baz").port #=> 80
|
1147
1166
|
# URI("http://foo:8080/bar/baz").port #=> 8080
|
1148
1167
|
#
|
1149
|
-
# source://uri//uri/generic.rb#250
|
1168
|
+
# source://uri//lib/uri/generic.rb#250
|
1150
1169
|
def port; end
|
1151
1170
|
|
1152
1171
|
# == Args
|
@@ -1169,14 +1188,14 @@ class URI::Generic
|
|
1169
1188
|
# uri.port = 8080
|
1170
1189
|
# uri.to_s #=> "http://my.example.com:8080"
|
1171
1190
|
#
|
1172
|
-
# source://uri//uri/generic.rb#729
|
1191
|
+
# source://uri//lib/uri/generic.rb#729
|
1173
1192
|
def port=(v); end
|
1174
1193
|
|
1175
1194
|
# Returns the query component of the URI.
|
1176
1195
|
#
|
1177
1196
|
# URI("http://foo/bar/baz?search=FooBar").query #=> "search=FooBar"
|
1178
1197
|
#
|
1179
|
-
# source://uri//uri/generic.rb#266
|
1198
|
+
# source://uri//lib/uri/generic.rb#266
|
1180
1199
|
def query; end
|
1181
1200
|
|
1182
1201
|
# == Args
|
@@ -1198,22 +1217,22 @@ class URI::Generic
|
|
1198
1217
|
#
|
1199
1218
|
# @raise [InvalidURIError]
|
1200
1219
|
#
|
1201
|
-
# source://uri//uri/generic.rb#839
|
1220
|
+
# source://uri//lib/uri/generic.rb#839
|
1202
1221
|
def query=(v); end
|
1203
1222
|
|
1204
|
-
# source://uri//uri/generic.rb#252
|
1223
|
+
# source://uri//lib/uri/generic.rb#252
|
1205
1224
|
def registry; end
|
1206
1225
|
|
1207
1226
|
# @raise [InvalidURIError]
|
1208
1227
|
#
|
1209
|
-
# source://uri//uri/generic.rb#745
|
1228
|
+
# source://uri//lib/uri/generic.rb#745
|
1210
1229
|
def registry=(v); end
|
1211
1230
|
|
1212
1231
|
# Returns true if URI does not have a scheme (e.g. http:// or https://) specified.
|
1213
1232
|
#
|
1214
1233
|
# @return [Boolean]
|
1215
1234
|
#
|
1216
|
-
# source://uri//uri/generic.rb#984
|
1235
|
+
# source://uri//lib/uri/generic.rb#984
|
1217
1236
|
def relative?; end
|
1218
1237
|
|
1219
1238
|
# == Args
|
@@ -1233,7 +1252,7 @@ class URI::Generic
|
|
1233
1252
|
# uri.route_from('http://my.example.com')
|
1234
1253
|
# #=> #<URI::Generic /main.rbx?page=1>
|
1235
1254
|
#
|
1236
|
-
# source://uri//uri/generic.rb#
|
1255
|
+
# source://uri//lib/uri/generic.rb#1261
|
1237
1256
|
def route_from(oth); end
|
1238
1257
|
|
1239
1258
|
# == Args
|
@@ -1253,14 +1272,14 @@ class URI::Generic
|
|
1253
1272
|
# uri.route_to('http://my.example.com/main.rbx?page=1')
|
1254
1273
|
# #=> #<URI::Generic /main.rbx?page=1>
|
1255
1274
|
#
|
1256
|
-
# source://uri//uri/generic.rb#
|
1275
|
+
# source://uri//lib/uri/generic.rb#1301
|
1257
1276
|
def route_to(oth); end
|
1258
1277
|
|
1259
1278
|
# Returns the scheme component of the URI.
|
1260
1279
|
#
|
1261
1280
|
# URI("http://foo/bar/baz").scheme #=> "http"
|
1262
1281
|
#
|
1263
|
-
# source://uri//uri/generic.rb#221
|
1282
|
+
# source://uri//lib/uri/generic.rb#221
|
1264
1283
|
def scheme; end
|
1265
1284
|
|
1266
1285
|
# == Args
|
@@ -1283,7 +1302,7 @@ class URI::Generic
|
|
1283
1302
|
# uri.scheme = "https"
|
1284
1303
|
# uri.to_s #=> "https://my.example.com"
|
1285
1304
|
#
|
1286
|
-
# source://uri//uri/generic.rb#360
|
1305
|
+
# source://uri//lib/uri/generic.rb#360
|
1287
1306
|
def scheme=(v); end
|
1288
1307
|
|
1289
1308
|
# == Args
|
@@ -1303,22 +1322,22 @@ class URI::Generic
|
|
1303
1322
|
# uri.select(:userinfo, :host, :path)
|
1304
1323
|
# # => ["myuser:mypass", "my.example.com", "/test.rbx"]
|
1305
1324
|
#
|
1306
|
-
# source://uri//uri/generic.rb#
|
1325
|
+
# source://uri//lib/uri/generic.rb#1431
|
1307
1326
|
def select(*components); end
|
1308
1327
|
|
1309
1328
|
# Constructs String from URI.
|
1310
1329
|
#
|
1311
|
-
# source://uri//uri/generic.rb#
|
1330
|
+
# source://uri//lib/uri/generic.rb#1342
|
1312
1331
|
def to_s; end
|
1313
1332
|
|
1314
1333
|
# Constructs String from URI.
|
1315
1334
|
#
|
1316
|
-
# source://uri//uri/generic.rb#
|
1335
|
+
# source://uri//lib/uri/generic.rb#1342
|
1317
1336
|
def to_str; end
|
1318
1337
|
|
1319
1338
|
# Returns the user component (without URI decoding).
|
1320
1339
|
#
|
1321
|
-
# source://uri//uri/generic.rb#568
|
1340
|
+
# source://uri//lib/uri/generic.rb#568
|
1322
1341
|
def user; end
|
1323
1342
|
|
1324
1343
|
# == Args
|
@@ -1341,78 +1360,78 @@ class URI::Generic
|
|
1341
1360
|
# uri.user = "sam"
|
1342
1361
|
# uri.to_s #=> "http://sam:V3ry_S3nsit1ve@my.example.com"
|
1343
1362
|
#
|
1344
|
-
# source://uri//uri/generic.rb#471
|
1363
|
+
# source://uri//lib/uri/generic.rb#471
|
1345
1364
|
def user=(user); end
|
1346
1365
|
|
1347
1366
|
# Returns the userinfo, either as 'user' or 'user:password'.
|
1348
1367
|
#
|
1349
|
-
# source://uri//uri/generic.rb#557
|
1368
|
+
# source://uri//lib/uri/generic.rb#557
|
1350
1369
|
def userinfo; end
|
1351
1370
|
|
1352
1371
|
# Sets userinfo, argument is string like 'name:pass'.
|
1353
1372
|
#
|
1354
|
-
# source://uri//uri/generic.rb#441
|
1373
|
+
# source://uri//lib/uri/generic.rb#441
|
1355
1374
|
def userinfo=(userinfo); end
|
1356
1375
|
|
1357
1376
|
protected
|
1358
1377
|
|
1359
1378
|
# Returns an Array of the components defined from the COMPONENT Array.
|
1360
1379
|
#
|
1361
|
-
# source://uri//uri/generic.rb#
|
1380
|
+
# source://uri//lib/uri/generic.rb#1407
|
1362
1381
|
def component_ary; end
|
1363
1382
|
|
1364
1383
|
# Protected setter for the host component +v+.
|
1365
1384
|
#
|
1366
1385
|
# See also URI::Generic.host=.
|
1367
1386
|
#
|
1368
|
-
# source://uri//uri/generic.rb#613
|
1387
|
+
# source://uri//lib/uri/generic.rb#613
|
1369
1388
|
def set_host(v); end
|
1370
1389
|
|
1371
1390
|
# Protected setter for the opaque component +v+.
|
1372
1391
|
#
|
1373
1392
|
# See also URI::Generic.opaque=.
|
1374
1393
|
#
|
1375
|
-
# source://uri//uri/generic.rb#883
|
1394
|
+
# source://uri//lib/uri/generic.rb#883
|
1376
1395
|
def set_opaque(v); end
|
1377
1396
|
|
1378
1397
|
# Protected setter for the password component +v+.
|
1379
1398
|
#
|
1380
1399
|
# See also URI::Generic.password=.
|
1381
1400
|
#
|
1382
|
-
# source://uri//uri/generic.rb#534
|
1401
|
+
# source://uri//lib/uri/generic.rb#534
|
1383
1402
|
def set_password(v); end
|
1384
1403
|
|
1385
1404
|
# Protected setter for the path component +v+.
|
1386
1405
|
#
|
1387
1406
|
# See also URI::Generic.path=.
|
1388
1407
|
#
|
1389
|
-
# source://uri//uri/generic.rb#789
|
1408
|
+
# source://uri//lib/uri/generic.rb#789
|
1390
1409
|
def set_path(v); end
|
1391
1410
|
|
1392
1411
|
# Protected setter for the port component +v+.
|
1393
1412
|
#
|
1394
1413
|
# See also URI::Generic.port=.
|
1395
1414
|
#
|
1396
|
-
# source://uri//uri/generic.rb#702
|
1415
|
+
# source://uri//lib/uri/generic.rb#702
|
1397
1416
|
def set_port(v); end
|
1398
1417
|
|
1399
1418
|
# @raise [InvalidURIError]
|
1400
1419
|
#
|
1401
|
-
# source://uri//uri/generic.rb#740
|
1420
|
+
# source://uri//lib/uri/generic.rb#740
|
1402
1421
|
def set_registry(v); end
|
1403
1422
|
|
1404
1423
|
# Protected setter for the scheme component +v+.
|
1405
1424
|
#
|
1406
1425
|
# See also URI::Generic.scheme=.
|
1407
1426
|
#
|
1408
|
-
# source://uri//uri/generic.rb#334
|
1427
|
+
# source://uri//lib/uri/generic.rb#334
|
1409
1428
|
def set_scheme(v); end
|
1410
1429
|
|
1411
1430
|
# Protected setter for the user component +v+.
|
1412
1431
|
#
|
1413
1432
|
# See also URI::Generic.user=.
|
1414
1433
|
#
|
1415
|
-
# source://uri//uri/generic.rb#524
|
1434
|
+
# source://uri//lib/uri/generic.rb#524
|
1416
1435
|
def set_user(v); end
|
1417
1436
|
|
1418
1437
|
# Protected setter for the +user+ component, and +password+ if available
|
@@ -1420,7 +1439,7 @@ class URI::Generic
|
|
1420
1439
|
#
|
1421
1440
|
# See also URI::Generic.userinfo=.
|
1422
1441
|
#
|
1423
|
-
# source://uri//uri/generic.rb#509
|
1442
|
+
# source://uri//lib/uri/generic.rb#509
|
1424
1443
|
def set_userinfo(user, password = T.unsafe(nil)); end
|
1425
1444
|
|
1426
1445
|
private
|
@@ -1431,7 +1450,7 @@ class URI::Generic
|
|
1431
1450
|
# Can not have a registry or opaque component defined,
|
1432
1451
|
# with a host component defined.
|
1433
1452
|
#
|
1434
|
-
# source://uri//uri/generic.rb#594
|
1453
|
+
# source://uri//lib/uri/generic.rb#594
|
1435
1454
|
def check_host(v); end
|
1436
1455
|
|
1437
1456
|
# Checks the opaque +v+ component for RFC2396 compliance and
|
@@ -1440,7 +1459,7 @@ class URI::Generic
|
|
1440
1459
|
# Can not have a host, port, user, or path component defined,
|
1441
1460
|
# with an opaque component defined.
|
1442
1461
|
#
|
1443
|
-
# source://uri//uri/generic.rb#861
|
1462
|
+
# source://uri//lib/uri/generic.rb#861
|
1444
1463
|
def check_opaque(v); end
|
1445
1464
|
|
1446
1465
|
# Checks the password +v+ component for RFC2396 compliance
|
@@ -1449,7 +1468,7 @@ class URI::Generic
|
|
1449
1468
|
# Can not have a registry or opaque component defined,
|
1450
1469
|
# with a user component defined.
|
1451
1470
|
#
|
1452
|
-
# source://uri//uri/generic.rb#417
|
1471
|
+
# source://uri//lib/uri/generic.rb#417
|
1453
1472
|
def check_password(v, user = T.unsafe(nil)); end
|
1454
1473
|
|
1455
1474
|
# Checks the path +v+ component for RFC2396 compliance
|
@@ -1459,7 +1478,7 @@ class URI::Generic
|
|
1459
1478
|
# Can not have a opaque component defined,
|
1460
1479
|
# with a path component defined.
|
1461
1480
|
#
|
1462
|
-
# source://uri//uri/generic.rb#757
|
1481
|
+
# source://uri//lib/uri/generic.rb#757
|
1463
1482
|
def check_path(v); end
|
1464
1483
|
|
1465
1484
|
# Checks the port +v+ component for RFC2396 compliance
|
@@ -1468,17 +1487,17 @@ class URI::Generic
|
|
1468
1487
|
# Can not have a registry or opaque component defined,
|
1469
1488
|
# with a port component defined.
|
1470
1489
|
#
|
1471
|
-
# source://uri//uri/generic.rb#683
|
1490
|
+
# source://uri//lib/uri/generic.rb#683
|
1472
1491
|
def check_port(v); end
|
1473
1492
|
|
1474
1493
|
# @raise [InvalidURIError]
|
1475
1494
|
#
|
1476
|
-
# source://uri//uri/generic.rb#735
|
1495
|
+
# source://uri//lib/uri/generic.rb#735
|
1477
1496
|
def check_registry(v); end
|
1478
1497
|
|
1479
1498
|
# Checks the scheme +v+ component against the URI::Parser Regexp for :SCHEME.
|
1480
1499
|
#
|
1481
|
-
# source://uri//uri/generic.rb#320
|
1500
|
+
# source://uri//lib/uri/generic.rb#320
|
1482
1501
|
def check_scheme(v); end
|
1483
1502
|
|
1484
1503
|
# Checks the user +v+ component for RFC2396 compliance
|
@@ -1487,7 +1506,7 @@ class URI::Generic
|
|
1487
1506
|
# Can not have a registry or opaque component defined,
|
1488
1507
|
# with a user component defined.
|
1489
1508
|
#
|
1490
|
-
# source://uri//uri/generic.rb#393
|
1509
|
+
# source://uri//lib/uri/generic.rb#393
|
1491
1510
|
def check_user(v); end
|
1492
1511
|
|
1493
1512
|
# Checks the +user+ and +password+.
|
@@ -1498,44 +1517,44 @@ class URI::Generic
|
|
1498
1517
|
#
|
1499
1518
|
# See also URI::Generic.check_user, URI::Generic.check_password.
|
1500
1519
|
#
|
1501
|
-
# source://uri//uri/generic.rb#375
|
1520
|
+
# source://uri//lib/uri/generic.rb#375
|
1502
1521
|
def check_userinfo(user, password = T.unsafe(nil)); end
|
1503
1522
|
|
1504
1523
|
# Escapes 'user:password' +v+ based on RFC 1738 section 3.1.
|
1505
1524
|
#
|
1506
|
-
# source://uri//uri/generic.rb#551
|
1525
|
+
# source://uri//lib/uri/generic.rb#551
|
1507
1526
|
def escape_userpass(v); end
|
1508
1527
|
|
1509
1528
|
# Merges a base path +base+, with relative path +rel+,
|
1510
1529
|
# returns a modified base path.
|
1511
1530
|
#
|
1512
|
-
# source://uri//uri/generic.rb#1000
|
1531
|
+
# source://uri//lib/uri/generic.rb#1000
|
1513
1532
|
def merge_path(base, rel); end
|
1514
1533
|
|
1515
1534
|
# Replaces self by other URI object.
|
1516
1535
|
#
|
1517
|
-
# source://uri//uri/generic.rb#299
|
1536
|
+
# source://uri//lib/uri/generic.rb#299
|
1518
1537
|
def replace!(oth); end
|
1519
1538
|
|
1520
1539
|
# :stopdoc:
|
1521
1540
|
#
|
1522
|
-
# source://uri//uri/generic.rb#
|
1541
|
+
# source://uri//lib/uri/generic.rb#1193
|
1523
1542
|
def route_from0(oth); end
|
1524
1543
|
|
1525
1544
|
# :stopdoc:
|
1526
1545
|
#
|
1527
|
-
# source://uri//uri/generic.rb#
|
1546
|
+
# source://uri//lib/uri/generic.rb#1154
|
1528
1547
|
def route_from_path(src, dst); end
|
1529
1548
|
|
1530
1549
|
# Returns an Array of the path split on '/'.
|
1531
1550
|
#
|
1532
|
-
# source://uri//uri/generic.rb#991
|
1551
|
+
# source://uri//lib/uri/generic.rb#991
|
1533
1552
|
def split_path(path); end
|
1534
1553
|
|
1535
1554
|
# Returns the userinfo +ui+ as <code>[user, password]</code>
|
1536
1555
|
# if properly formatted as 'user:password'.
|
1537
1556
|
#
|
1538
|
-
# source://uri//uri/generic.rb#542
|
1557
|
+
# source://uri//lib/uri/generic.rb#542
|
1539
1558
|
def split_userinfo(ui); end
|
1540
1559
|
|
1541
1560
|
class << self
|
@@ -1550,7 +1569,7 @@ class URI::Generic
|
|
1550
1569
|
# opaque, query, and fragment. You can provide arguments either by an Array or a Hash.
|
1551
1570
|
# See ::new for hash keys to use or for order of array items.
|
1552
1571
|
#
|
1553
|
-
# source://uri//uri/generic.rb#116
|
1572
|
+
# source://uri//lib/uri/generic.rb#116
|
1554
1573
|
def build(args); end
|
1555
1574
|
|
1556
1575
|
# == Synopsis
|
@@ -1563,25 +1582,25 @@ class URI::Generic
|
|
1563
1582
|
# URI::Generic::build. But, if exception URI::InvalidComponentError is raised,
|
1564
1583
|
# then it does URI::Escape.escape all URI components and tries again.
|
1565
1584
|
#
|
1566
|
-
# source://uri//uri/generic.rb#78
|
1585
|
+
# source://uri//lib/uri/generic.rb#78
|
1567
1586
|
def build2(args); end
|
1568
1587
|
|
1569
1588
|
# Components of the URI in the order.
|
1570
1589
|
#
|
1571
|
-
# source://uri//uri/generic.rb#57
|
1590
|
+
# source://uri//lib/uri/generic.rb#57
|
1572
1591
|
def component; end
|
1573
1592
|
|
1574
1593
|
# Returns default port.
|
1575
1594
|
#
|
1576
|
-
# source://uri//uri/generic.rb#32
|
1595
|
+
# source://uri//lib/uri/generic.rb#32
|
1577
1596
|
def default_port; end
|
1578
1597
|
|
1579
1598
|
# @return [Boolean]
|
1580
1599
|
#
|
1581
|
-
# source://uri//uri/generic.rb#
|
1600
|
+
# source://uri//lib/uri/generic.rb#1557
|
1582
1601
|
def use_proxy?(hostname, addr, port, no_proxy); end
|
1583
1602
|
|
1584
|
-
# source://uri//uri/generic.rb#63
|
1603
|
+
# source://uri//lib/uri/generic.rb#63
|
1585
1604
|
def use_registry; end
|
1586
1605
|
end
|
1587
1606
|
end
|
@@ -1592,11 +1611,13 @@ end
|
|
1592
1611
|
# passwords. This is not legal as per the RFC, but used to be
|
1593
1612
|
# supported in Internet Explorer 5 and 6, before the MS04-004 security
|
1594
1613
|
# update. See <URL:http://support.microsoft.com/kb/834489>.
|
1614
|
+
#
|
1615
|
+
# source://uri//lib/uri/http.rb#22
|
1595
1616
|
class URI::HTTP < ::URI::Generic
|
1596
1617
|
# == Description
|
1597
1618
|
#
|
1598
1619
|
# Returns the authority for an HTTP uri, as defined in
|
1599
|
-
# https://
|
1620
|
+
# https://www.rfc-editor.org/rfc/rfc3986#section-3.2.
|
1600
1621
|
#
|
1601
1622
|
#
|
1602
1623
|
# Example:
|
@@ -1605,13 +1626,13 @@ class URI::HTTP < ::URI::Generic
|
|
1605
1626
|
# URI::HTTP.build(host: 'www.example.com', port: 8000, path: '/foo/bar').authority #=> "www.example.com:8000"
|
1606
1627
|
# URI::HTTP.build(host: 'www.example.com', port: 80, path: '/foo/bar').authority #=> "www.example.com"
|
1607
1628
|
#
|
1608
|
-
# source://uri//uri/http.rb#97
|
1629
|
+
# source://uri//lib/uri/http.rb#97
|
1609
1630
|
def authority; end
|
1610
1631
|
|
1611
1632
|
# == Description
|
1612
1633
|
#
|
1613
1634
|
# Returns the origin for an HTTP uri, as defined in
|
1614
|
-
# https://
|
1635
|
+
# https://www.rfc-editor.org/rfc/rfc6454.
|
1615
1636
|
#
|
1616
1637
|
#
|
1617
1638
|
# Example:
|
@@ -1621,7 +1642,7 @@ class URI::HTTP < ::URI::Generic
|
|
1621
1642
|
# URI::HTTP.build(host: 'www.example.com', port: 80, path: '/foo/bar').origin #=> "http://www.example.com"
|
1622
1643
|
# URI::HTTPS.build(host: 'www.example.com', path: '/foo/bar').origin #=> "https://www.example.com"
|
1623
1644
|
#
|
1624
|
-
# source://uri//uri/http.rb#119
|
1645
|
+
# source://uri//lib/uri/http.rb#119
|
1625
1646
|
def origin; end
|
1626
1647
|
|
1627
1648
|
# == Description
|
@@ -1636,7 +1657,7 @@ class URI::HTTP < ::URI::Generic
|
|
1636
1657
|
# uri = URI::HTTP.build(path: '/foo/bar', query: 'test=true')
|
1637
1658
|
# uri.request_uri # => "/foo/bar?test=true"
|
1638
1659
|
#
|
1639
|
-
# source://uri//uri/http.rb#77
|
1660
|
+
# source://uri//lib/uri/http.rb#77
|
1640
1661
|
def request_uri; end
|
1641
1662
|
|
1642
1663
|
class << self
|
@@ -1663,18 +1684,20 @@ class URI::HTTP < ::URI::Generic
|
|
1663
1684
|
# Currently, if passed userinfo components this method generates
|
1664
1685
|
# invalid HTTP URIs as per RFC 1738.
|
1665
1686
|
#
|
1666
|
-
# source://uri//uri/http.rb#59
|
1687
|
+
# source://uri//lib/uri/http.rb#59
|
1667
1688
|
def build(args); end
|
1668
1689
|
end
|
1669
1690
|
end
|
1670
1691
|
|
1671
|
-
# source://uri//uri/common.rb#
|
1692
|
+
# source://uri//lib/uri/common.rb#130
|
1672
1693
|
URI::INITIAL_SCHEMES = T.let(T.unsafe(nil), Hash)
|
1673
1694
|
|
1674
1695
|
# LDAP URI SCHEMA (described in RFC2255).
|
1675
1696
|
# --
|
1676
1697
|
# ldap://<host>/<dn>[?<attrs>[?<scope>[?<filter>[?<extensions>]]]]
|
1677
1698
|
# ++
|
1699
|
+
#
|
1700
|
+
# source://uri//lib/uri/ldap.rb#23
|
1678
1701
|
class URI::LDAP < ::URI::Generic
|
1679
1702
|
# == Description
|
1680
1703
|
#
|
@@ -1693,47 +1716,47 @@ class URI::LDAP < ::URI::Generic
|
|
1693
1716
|
#
|
1694
1717
|
# @return [LDAP] a new instance of LDAP
|
1695
1718
|
#
|
1696
|
-
# source://uri//uri/ldap.rb#108
|
1719
|
+
# source://uri//lib/uri/ldap.rb#108
|
1697
1720
|
def initialize(*arg); end
|
1698
1721
|
|
1699
1722
|
# Returns attributes.
|
1700
1723
|
#
|
1701
|
-
# source://uri//uri/ldap.rb#178
|
1724
|
+
# source://uri//lib/uri/ldap.rb#178
|
1702
1725
|
def attributes; end
|
1703
1726
|
|
1704
1727
|
# Setter for attributes +val+.
|
1705
1728
|
#
|
1706
|
-
# source://uri//uri/ldap.rb#191
|
1729
|
+
# source://uri//lib/uri/ldap.rb#191
|
1707
1730
|
def attributes=(val); end
|
1708
1731
|
|
1709
1732
|
# Returns dn.
|
1710
1733
|
#
|
1711
|
-
# source://uri//uri/ldap.rb#159
|
1734
|
+
# source://uri//lib/uri/ldap.rb#159
|
1712
1735
|
def dn; end
|
1713
1736
|
|
1714
1737
|
# Setter for dn +val+.
|
1715
1738
|
#
|
1716
|
-
# source://uri//uri/ldap.rb#172
|
1739
|
+
# source://uri//lib/uri/ldap.rb#172
|
1717
1740
|
def dn=(val); end
|
1718
1741
|
|
1719
1742
|
# Returns extensions.
|
1720
1743
|
#
|
1721
|
-
# source://uri//uri/ldap.rb#235
|
1744
|
+
# source://uri//lib/uri/ldap.rb#235
|
1722
1745
|
def extensions; end
|
1723
1746
|
|
1724
1747
|
# Setter for extensions +val+.
|
1725
1748
|
#
|
1726
|
-
# source://uri//uri/ldap.rb#248
|
1749
|
+
# source://uri//lib/uri/ldap.rb#248
|
1727
1750
|
def extensions=(val); end
|
1728
1751
|
|
1729
1752
|
# Returns filter.
|
1730
1753
|
#
|
1731
|
-
# source://uri//uri/ldap.rb#216
|
1754
|
+
# source://uri//lib/uri/ldap.rb#216
|
1732
1755
|
def filter; end
|
1733
1756
|
|
1734
1757
|
# Setter for filter +val+.
|
1735
1758
|
#
|
1736
|
-
# source://uri//uri/ldap.rb#229
|
1759
|
+
# source://uri//lib/uri/ldap.rb#229
|
1737
1760
|
def filter=(val); end
|
1738
1761
|
|
1739
1762
|
# Checks if URI has a path.
|
@@ -1741,64 +1764,64 @@ class URI::LDAP < ::URI::Generic
|
|
1741
1764
|
#
|
1742
1765
|
# @return [Boolean]
|
1743
1766
|
#
|
1744
|
-
# source://uri//uri/ldap.rb#255
|
1767
|
+
# source://uri//lib/uri/ldap.rb#255
|
1745
1768
|
def hierarchical?; end
|
1746
1769
|
|
1747
1770
|
# Returns scope.
|
1748
1771
|
#
|
1749
|
-
# source://uri//uri/ldap.rb#197
|
1772
|
+
# source://uri//lib/uri/ldap.rb#197
|
1750
1773
|
def scope; end
|
1751
1774
|
|
1752
1775
|
# Setter for scope +val+.
|
1753
1776
|
#
|
1754
|
-
# source://uri//uri/ldap.rb#210
|
1777
|
+
# source://uri//lib/uri/ldap.rb#210
|
1755
1778
|
def scope=(val); end
|
1756
1779
|
|
1757
1780
|
protected
|
1758
1781
|
|
1759
1782
|
# Private setter for attributes +val+.
|
1760
1783
|
#
|
1761
|
-
# source://uri//uri/ldap.rb#183
|
1784
|
+
# source://uri//lib/uri/ldap.rb#183
|
1762
1785
|
def set_attributes(val); end
|
1763
1786
|
|
1764
1787
|
# Private setter for dn +val+.
|
1765
1788
|
#
|
1766
|
-
# source://uri//uri/ldap.rb#164
|
1789
|
+
# source://uri//lib/uri/ldap.rb#164
|
1767
1790
|
def set_dn(val); end
|
1768
1791
|
|
1769
1792
|
# Private setter for extensions +val+.
|
1770
1793
|
#
|
1771
|
-
# source://uri//uri/ldap.rb#240
|
1794
|
+
# source://uri//lib/uri/ldap.rb#240
|
1772
1795
|
def set_extensions(val); end
|
1773
1796
|
|
1774
1797
|
# Private setter for filter +val+.
|
1775
1798
|
#
|
1776
|
-
# source://uri//uri/ldap.rb#221
|
1799
|
+
# source://uri//lib/uri/ldap.rb#221
|
1777
1800
|
def set_filter(val); end
|
1778
1801
|
|
1779
1802
|
# Private setter for scope +val+.
|
1780
1803
|
#
|
1781
|
-
# source://uri//uri/ldap.rb#202
|
1804
|
+
# source://uri//lib/uri/ldap.rb#202
|
1782
1805
|
def set_scope(val); end
|
1783
1806
|
|
1784
1807
|
private
|
1785
1808
|
|
1786
1809
|
# Private method to assemble +query+ from +attributes+, +scope+, +filter+, and +extensions+.
|
1787
1810
|
#
|
1788
|
-
# source://uri//uri/ldap.rb#146
|
1811
|
+
# source://uri//lib/uri/ldap.rb#146
|
1789
1812
|
def build_path_query; end
|
1790
1813
|
|
1791
1814
|
# Private method to cleanup +dn+ from using the +path+ component attribute.
|
1792
1815
|
#
|
1793
1816
|
# @raise [InvalidURIError]
|
1794
1817
|
#
|
1795
|
-
# source://uri//uri/ldap.rb#120
|
1818
|
+
# source://uri//lib/uri/ldap.rb#120
|
1796
1819
|
def parse_dn; end
|
1797
1820
|
|
1798
1821
|
# Private method to cleanup +attributes+, +scope+, +filter+, and +extensions+
|
1799
1822
|
# from using the +query+ component attribute.
|
1800
1823
|
#
|
1801
|
-
# source://uri//uri/ldap.rb#128
|
1824
|
+
# source://uri//lib/uri/ldap.rb#128
|
1802
1825
|
def parse_query; end
|
1803
1826
|
|
1804
1827
|
class << self
|
@@ -1823,13 +1846,17 @@ class URI::LDAP < ::URI::Generic
|
|
1823
1846
|
# uri = URI::LDAP.build(["ldap.example.com", nil,
|
1824
1847
|
# "/dc=example;dc=com", "query", nil, nil, nil])
|
1825
1848
|
#
|
1826
|
-
# source://uri//uri/ldap.rb#74
|
1849
|
+
# source://uri//lib/uri/ldap.rb#74
|
1827
1850
|
def build(args); end
|
1828
1851
|
end
|
1829
1852
|
end
|
1830
1853
|
|
1831
1854
|
# RFC6068, the mailto URL scheme.
|
1855
|
+
#
|
1856
|
+
# source://uri//lib/uri/mailto.rb#17
|
1832
1857
|
class URI::MailTo < ::URI::Generic
|
1858
|
+
include ::URI::RFC2396_REGEXP
|
1859
|
+
|
1833
1860
|
# == Description
|
1834
1861
|
#
|
1835
1862
|
# Creates a new URI::MailTo object from generic URL components with
|
@@ -1840,27 +1867,27 @@ class URI::MailTo < ::URI::Generic
|
|
1840
1867
|
#
|
1841
1868
|
# @return [MailTo] a new instance of MailTo
|
1842
1869
|
#
|
1843
|
-
# source://uri//uri/mailto.rb#132
|
1870
|
+
# source://uri//lib/uri/mailto.rb#132
|
1844
1871
|
def initialize(*arg); end
|
1845
1872
|
|
1846
1873
|
# E-mail headers set by the URL, as an Array of Arrays.
|
1847
1874
|
#
|
1848
|
-
# source://uri//uri/mailto.rb#166
|
1875
|
+
# source://uri//lib/uri/mailto.rb#166
|
1849
1876
|
def headers; end
|
1850
1877
|
|
1851
1878
|
# Setter for headers +v+.
|
1852
1879
|
#
|
1853
|
-
# source://uri//uri/mailto.rb#232
|
1880
|
+
# source://uri//lib/uri/mailto.rb#232
|
1854
1881
|
def headers=(v); end
|
1855
1882
|
|
1856
1883
|
# The primary e-mail address of the URL, as a String.
|
1857
1884
|
#
|
1858
|
-
# source://uri//uri/mailto.rb#163
|
1885
|
+
# source://uri//lib/uri/mailto.rb#163
|
1859
1886
|
def to; end
|
1860
1887
|
|
1861
1888
|
# Setter for to +v+.
|
1862
1889
|
#
|
1863
|
-
# source://uri//uri/mailto.rb#200
|
1890
|
+
# source://uri//lib/uri/mailto.rb#200
|
1864
1891
|
def to=(v); end
|
1865
1892
|
|
1866
1893
|
# Returns the RFC822 e-mail text equivalent of the URL, as a String.
|
@@ -1873,7 +1900,7 @@ class URI::MailTo < ::URI::Generic
|
|
1873
1900
|
# uri.to_mailtext
|
1874
1901
|
# # => "To: ruby-list@ruby-lang.org\nSubject: subscribe\nCc: myaddr\n\n\n"
|
1875
1902
|
#
|
1876
|
-
# source://uri//uri/mailto.rb#268
|
1903
|
+
# source://uri//lib/uri/mailto.rb#268
|
1877
1904
|
def to_mailtext; end
|
1878
1905
|
|
1879
1906
|
# Returns the RFC822 e-mail text equivalent of the URL, as a String.
|
@@ -1886,24 +1913,24 @@ class URI::MailTo < ::URI::Generic
|
|
1886
1913
|
# uri.to_mailtext
|
1887
1914
|
# # => "To: ruby-list@ruby-lang.org\nSubject: subscribe\nCc: myaddr\n\n\n"
|
1888
1915
|
#
|
1889
|
-
# source://uri//uri/mailto.rb#268
|
1916
|
+
# source://uri//lib/uri/mailto.rb#268
|
1890
1917
|
def to_rfc822text; end
|
1891
1918
|
|
1892
1919
|
# Constructs String from URI.
|
1893
1920
|
#
|
1894
|
-
# source://uri//uri/mailto.rb#239
|
1921
|
+
# source://uri//lib/uri/mailto.rb#239
|
1895
1922
|
def to_s; end
|
1896
1923
|
|
1897
1924
|
protected
|
1898
1925
|
|
1899
1926
|
# Private setter for headers +v+.
|
1900
1927
|
#
|
1901
|
-
# source://uri//uri/mailto.rb#221
|
1928
|
+
# source://uri//lib/uri/mailto.rb#221
|
1902
1929
|
def set_headers(v); end
|
1903
1930
|
|
1904
1931
|
# Private setter for to +v+.
|
1905
1932
|
#
|
1906
|
-
# source://uri//uri/mailto.rb#194
|
1933
|
+
# source://uri//lib/uri/mailto.rb#194
|
1907
1934
|
def set_to(v); end
|
1908
1935
|
|
1909
1936
|
private
|
@@ -1911,12 +1938,12 @@ class URI::MailTo < ::URI::Generic
|
|
1911
1938
|
# Checks the headers +v+ component against either
|
1912
1939
|
# * HEADER_REGEXP
|
1913
1940
|
#
|
1914
|
-
# source://uri//uri/mailto.rb#208
|
1941
|
+
# source://uri//lib/uri/mailto.rb#208
|
1915
1942
|
def check_headers(v); end
|
1916
1943
|
|
1917
1944
|
# Checks the to +v+ component.
|
1918
1945
|
#
|
1919
|
-
# source://uri//uri/mailto.rb#169
|
1946
|
+
# source://uri//lib/uri/mailto.rb#169
|
1920
1947
|
def check_to(v); end
|
1921
1948
|
|
1922
1949
|
class << self
|
@@ -1946,7 +1973,7 @@ class URI::MailTo < ::URI::Generic
|
|
1946
1973
|
# m3 = URI::MailTo.build({:to => 'listman@example.com', :headers => [['subject', 'subscribe']]})
|
1947
1974
|
# m3.to_s # => "mailto:listman@example.com?subject=subscribe"
|
1948
1975
|
#
|
1949
|
-
# source://uri//uri/mailto.rb#85
|
1976
|
+
# source://uri//lib/uri/mailto.rb#85
|
1950
1977
|
def build(args); end
|
1951
1978
|
end
|
1952
1979
|
end
|
@@ -1954,6 +1981,8 @@ end
|
|
1954
1981
|
# Class that parses String's into URI's.
|
1955
1982
|
#
|
1956
1983
|
# It contains a Hash set of patterns and Regexp's that match and validate.
|
1984
|
+
#
|
1985
|
+
# source://uri//lib/uri/rfc2396_parser.rb#64
|
1957
1986
|
class URI::RFC2396_Parser
|
1958
1987
|
include ::URI::RFC2396_REGEXP
|
1959
1988
|
|
@@ -1990,7 +2019,7 @@ class URI::RFC2396_Parser
|
|
1990
2019
|
#
|
1991
2020
|
# @return [RFC2396_Parser] a new instance of RFC2396_Parser
|
1992
2021
|
#
|
1993
|
-
# source://uri//uri/rfc2396_parser.rb#99
|
2022
|
+
# source://uri//lib/uri/rfc2396_parser.rb#99
|
1994
2023
|
def initialize(opts = T.unsafe(nil)); end
|
1995
2024
|
|
1996
2025
|
# :call-seq:
|
@@ -2009,7 +2038,7 @@ class URI::RFC2396_Parser
|
|
2009
2038
|
# Constructs a safe String from +str+, removing unsafe characters,
|
2010
2039
|
# replacing them with codes.
|
2011
2040
|
#
|
2012
|
-
# source://uri//uri/rfc2396_parser.rb#287
|
2041
|
+
# source://uri//lib/uri/rfc2396_parser.rb#287
|
2013
2042
|
def escape(str, unsafe = T.unsafe(nil)); end
|
2014
2043
|
|
2015
2044
|
# :call-seq:
|
@@ -2032,10 +2061,10 @@ class URI::RFC2396_Parser
|
|
2032
2061
|
#
|
2033
2062
|
# See also URI::Parser.make_regexp.
|
2034
2063
|
#
|
2035
|
-
# source://uri//uri/rfc2396_parser.rb#249
|
2064
|
+
# source://uri//lib/uri/rfc2396_parser.rb#249
|
2036
2065
|
def extract(str, schemes = T.unsafe(nil)); end
|
2037
2066
|
|
2038
|
-
# source://uri//uri/rfc2396_parser.rb#326
|
2067
|
+
# source://uri//lib/uri/rfc2396_parser.rb#326
|
2039
2068
|
def inspect; end
|
2040
2069
|
|
2041
2070
|
# == Args
|
@@ -2047,13 +2076,13 @@ class URI::RFC2396_Parser
|
|
2047
2076
|
#
|
2048
2077
|
# Attempts to parse and merge a set of URIs.
|
2049
2078
|
#
|
2050
|
-
# source://uri//uri/rfc2396_parser.rb#223
|
2079
|
+
# source://uri//lib/uri/rfc2396_parser.rb#223
|
2051
2080
|
def join(*uris); end
|
2052
2081
|
|
2053
2082
|
# Returns Regexp that is default +self.regexp[:ABS_URI_REF]+,
|
2054
2083
|
# unless +schemes+ is provided. Then it is a Regexp.union with +self.pattern[:X_ABS_URI]+.
|
2055
2084
|
#
|
2056
|
-
# source://uri//uri/rfc2396_parser.rb#262
|
2085
|
+
# source://uri//lib/uri/rfc2396_parser.rb#262
|
2057
2086
|
def make_regexp(schemes = T.unsafe(nil)); end
|
2058
2087
|
|
2059
2088
|
# == Args
|
@@ -2072,26 +2101,26 @@ class URI::RFC2396_Parser
|
|
2072
2101
|
# p.parse("ldap://ldap.example.com/dc=example?user=john")
|
2073
2102
|
# #=> #<URI::LDAP ldap://ldap.example.com/dc=example?user=john>
|
2074
2103
|
#
|
2075
|
-
# source://uri//uri/rfc2396_parser.rb#209
|
2104
|
+
# source://uri//lib/uri/rfc2396_parser.rb#209
|
2076
2105
|
def parse(uri); end
|
2077
2106
|
|
2078
2107
|
# The Hash of patterns.
|
2079
2108
|
#
|
2080
2109
|
# See also URI::Parser.initialize_pattern.
|
2081
2110
|
#
|
2082
|
-
# source://uri//uri/rfc2396_parser.rb#112
|
2111
|
+
# source://uri//lib/uri/rfc2396_parser.rb#112
|
2083
2112
|
def pattern; end
|
2084
2113
|
|
2085
2114
|
# The Hash of Regexp.
|
2086
2115
|
#
|
2087
2116
|
# See also URI::Parser.initialize_regexp.
|
2088
2117
|
#
|
2089
|
-
# source://uri//uri/rfc2396_parser.rb#117
|
2118
|
+
# source://uri//lib/uri/rfc2396_parser.rb#117
|
2090
2119
|
def regexp; end
|
2091
2120
|
|
2092
2121
|
# Returns a split URI against +regexp[:ABS_URI]+.
|
2093
2122
|
#
|
2094
|
-
# source://uri//uri/rfc2396_parser.rb#120
|
2123
|
+
# source://uri//lib/uri/rfc2396_parser.rb#120
|
2095
2124
|
def split(uri); end
|
2096
2125
|
|
2097
2126
|
# :call-seq:
|
@@ -2109,160 +2138,149 @@ class URI::RFC2396_Parser
|
|
2109
2138
|
#
|
2110
2139
|
# Removes escapes from +str+.
|
2111
2140
|
#
|
2112
|
-
# source://uri//uri/rfc2396_parser.rb#318
|
2141
|
+
# source://uri//lib/uri/rfc2396_parser.rb#318
|
2113
2142
|
def unescape(str, escaped = T.unsafe(nil)); end
|
2114
2143
|
|
2115
2144
|
private
|
2116
2145
|
|
2117
|
-
# source://uri//uri/rfc2396_parser.rb#527
|
2146
|
+
# source://uri//lib/uri/rfc2396_parser.rb#527
|
2118
2147
|
def convert_to_uri(uri); end
|
2119
2148
|
|
2120
2149
|
# Constructs the default Hash of patterns.
|
2121
2150
|
#
|
2122
|
-
# source://uri//uri/rfc2396_parser.rb#338
|
2151
|
+
# source://uri//lib/uri/rfc2396_parser.rb#338
|
2123
2152
|
def initialize_pattern(opts = T.unsafe(nil)); end
|
2124
2153
|
|
2125
2154
|
# Constructs the default Hash of Regexp's.
|
2126
2155
|
#
|
2127
|
-
# source://uri//uri/rfc2396_parser.rb#496
|
2156
|
+
# source://uri//lib/uri/rfc2396_parser.rb#496
|
2128
2157
|
def initialize_regexp(pattern); end
|
2129
2158
|
end
|
2130
2159
|
|
2160
|
+
# source://uri//lib/uri/rfc2396_parser.rb#324
|
2161
|
+
URI::RFC2396_Parser::TO_S = T.let(T.unsafe(nil), UnboundMethod)
|
2162
|
+
|
2163
|
+
# source://uri//lib/uri/rfc3986_parser.rb#3
|
2131
2164
|
class URI::RFC3986_Parser
|
2132
2165
|
# @return [RFC3986_Parser] a new instance of RFC3986_Parser
|
2133
2166
|
#
|
2134
|
-
# source://uri//uri/rfc3986_parser.rb#73
|
2167
|
+
# source://uri//lib/uri/rfc3986_parser.rb#73
|
2135
2168
|
def initialize; end
|
2136
2169
|
|
2137
|
-
#
|
2170
|
+
# Compatibility for RFC2396 parser
|
2171
|
+
#
|
2172
|
+
# source://uri//lib/uri/rfc3986_parser.rb#156
|
2173
|
+
def escape(str, unsafe = T.unsafe(nil)); end
|
2174
|
+
|
2175
|
+
# Compatibility for RFC2396 parser
|
2176
|
+
#
|
2177
|
+
# source://uri//lib/uri/rfc3986_parser.rb#144
|
2178
|
+
def extract(str, schemes = T.unsafe(nil), &block); end
|
2179
|
+
|
2180
|
+
# source://uri//lib/uri/rfc3986_parser.rb#169
|
2138
2181
|
def inspect; end
|
2139
2182
|
|
2140
|
-
# source://uri//uri/rfc3986_parser.rb#
|
2183
|
+
# source://uri//lib/uri/rfc3986_parser.rb#138
|
2141
2184
|
def join(*uris); end
|
2142
2185
|
|
2143
|
-
#
|
2186
|
+
# Compatibility for RFC2396 parser
|
2187
|
+
#
|
2188
|
+
# source://uri//lib/uri/rfc3986_parser.rb#150
|
2189
|
+
def make_regexp(schemes = T.unsafe(nil)); end
|
2190
|
+
|
2191
|
+
# source://uri//lib/uri/rfc3986_parser.rb#134
|
2144
2192
|
def parse(uri); end
|
2145
2193
|
|
2146
2194
|
# Returns the value of attribute regexp.
|
2147
2195
|
#
|
2148
|
-
# source://uri//uri/rfc3986_parser.rb#71
|
2196
|
+
# source://uri//lib/uri/rfc3986_parser.rb#71
|
2149
2197
|
def regexp; end
|
2150
2198
|
|
2151
|
-
# source://uri//uri/rfc3986_parser.rb#77
|
2199
|
+
# source://uri//lib/uri/rfc3986_parser.rb#77
|
2152
2200
|
def split(uri); end
|
2153
2201
|
|
2202
|
+
# Compatibility for RFC2396 parser
|
2203
|
+
#
|
2204
|
+
# source://uri//lib/uri/rfc3986_parser.rb#162
|
2205
|
+
def unescape(str, escaped = T.unsafe(nil)); end
|
2206
|
+
|
2154
2207
|
private
|
2155
2208
|
|
2156
|
-
# source://uri//uri/rfc3986_parser.rb#
|
2209
|
+
# source://uri//lib/uri/rfc3986_parser.rb#194
|
2157
2210
|
def convert_to_uri(uri); end
|
2158
2211
|
|
2159
|
-
# source://uri//uri/rfc3986_parser.rb#
|
2212
|
+
# source://uri//lib/uri/rfc3986_parser.rb#180
|
2160
2213
|
def default_regexp; end
|
2161
2214
|
end
|
2162
2215
|
|
2163
|
-
# source://uri//uri/rfc3986_parser.rb#33
|
2216
|
+
# source://uri//lib/uri/rfc3986_parser.rb#33
|
2164
2217
|
URI::RFC3986_Parser::FRAGMENT = T.let(T.unsafe(nil), String)
|
2165
2218
|
|
2166
2219
|
# URI defined in RFC3986
|
2167
2220
|
#
|
2168
|
-
# source://uri//uri/rfc3986_parser.rb#5
|
2221
|
+
# source://uri//lib/uri/rfc3986_parser.rb#5
|
2169
2222
|
URI::RFC3986_Parser::HOST = T.let(T.unsafe(nil), Regexp)
|
2170
2223
|
|
2171
|
-
# source://uri//uri/rfc3986_parser.rb#54
|
2224
|
+
# source://uri//lib/uri/rfc3986_parser.rb#54
|
2172
2225
|
URI::RFC3986_Parser::RFC3986_relative_ref = T.let(T.unsafe(nil), Regexp)
|
2173
2226
|
|
2174
|
-
# source://uri//uri/rfc3986_parser.rb#30
|
2227
|
+
# source://uri//lib/uri/rfc3986_parser.rb#30
|
2175
2228
|
URI::RFC3986_Parser::SCHEME = T.let(T.unsafe(nil), String)
|
2176
2229
|
|
2177
|
-
# source://uri//uri/rfc3986_parser.rb#31
|
2230
|
+
# source://uri//lib/uri/rfc3986_parser.rb#31
|
2178
2231
|
URI::RFC3986_Parser::SEG = T.let(T.unsafe(nil), String)
|
2179
2232
|
|
2180
|
-
# source://uri//uri/rfc3986_parser.rb#32
|
2233
|
+
# source://uri//lib/uri/rfc3986_parser.rb#32
|
2181
2234
|
URI::RFC3986_Parser::SEG_NC = T.let(T.unsafe(nil), String)
|
2182
2235
|
|
2183
|
-
# source://uri//uri/rfc3986_parser.rb#28
|
2236
|
+
# source://uri//lib/uri/rfc3986_parser.rb#28
|
2184
2237
|
URI::RFC3986_Parser::USERINFO = T.let(T.unsafe(nil), Regexp)
|
2185
2238
|
|
2239
|
+
# source://uri//lib/uri/common.rb#94
|
2186
2240
|
module URI::Schemes; end
|
2187
2241
|
|
2188
|
-
# source://uri//uri/common.rb#
|
2242
|
+
# source://uri//lib/uri/common.rb#107
|
2189
2243
|
URI::Schemes::FILE = URI::File
|
2190
2244
|
|
2191
|
-
# source://uri//uri/common.rb#
|
2245
|
+
# source://uri//lib/uri/common.rb#107
|
2192
2246
|
URI::Schemes::FTP = URI::FTP
|
2193
2247
|
|
2194
|
-
# source://uri//uri/common.rb#
|
2248
|
+
# source://uri//lib/uri/common.rb#107
|
2195
2249
|
URI::Schemes::HTTP = URI::HTTP
|
2196
2250
|
|
2197
|
-
# source://uri//uri/common.rb#
|
2251
|
+
# source://uri//lib/uri/common.rb#107
|
2198
2252
|
URI::Schemes::HTTPS = URI::HTTPS
|
2199
2253
|
|
2200
|
-
# source://uri//uri/common.rb#
|
2254
|
+
# source://uri//lib/uri/common.rb#107
|
2201
2255
|
URI::Schemes::LDAP = URI::LDAP
|
2202
2256
|
|
2203
|
-
# source://uri//uri/common.rb#
|
2257
|
+
# source://uri//lib/uri/common.rb#107
|
2204
2258
|
URI::Schemes::LDAPS = URI::LDAPS
|
2205
2259
|
|
2206
|
-
# source://uri//uri/common.rb#
|
2260
|
+
# source://uri//lib/uri/common.rb#107
|
2207
2261
|
URI::Schemes::MAILTO = URI::MailTo
|
2208
2262
|
|
2209
|
-
# source://uri//uri/common.rb#
|
2210
|
-
URI::Schemes::SOURCE =
|
2263
|
+
# source://uri//lib/uri/common.rb#107
|
2264
|
+
URI::Schemes::SOURCE = Tapioca::SourceURI
|
2211
2265
|
|
2212
|
-
# source://uri//uri/common.rb#
|
2266
|
+
# source://uri//lib/uri/common.rb#107
|
2213
2267
|
URI::Schemes::WS = URI::WS
|
2214
2268
|
|
2215
|
-
# source://uri//uri/common.rb#
|
2269
|
+
# source://uri//lib/uri/common.rb#107
|
2216
2270
|
URI::Schemes::WSS = URI::WSS
|
2217
2271
|
|
2218
|
-
|
2219
|
-
# source://tapioca/0.11.14/lib/tapioca/helpers/source_uri.rb#58
|
2220
|
-
sig { params(v: T.nilable(::String)).returns(T::Boolean) }
|
2221
|
-
def check_host(v); end
|
2222
|
-
|
2223
|
-
# source://uri//uri/generic.rb#243
|
2224
|
-
def gem_name; end
|
2225
|
-
|
2226
|
-
# source://tapioca/0.11.14/lib/tapioca/helpers/source_uri.rb#25
|
2227
|
-
sig { returns(T.nilable(::String)) }
|
2228
|
-
def gem_version; end
|
2229
|
-
|
2230
|
-
# source://uri//uri/generic.rb#283
|
2231
|
-
def line_number; end
|
2232
|
-
|
2233
|
-
# source://tapioca/0.11.14/lib/tapioca/helpers/source_uri.rb#51
|
2234
|
-
sig { params(v: T.nilable(::String)).void }
|
2235
|
-
def set_path(v); end
|
2236
|
-
|
2237
|
-
# source://tapioca/0.11.14/lib/tapioca/helpers/source_uri.rb#70
|
2238
|
-
sig { returns(::String) }
|
2239
|
-
def to_s; end
|
2240
|
-
|
2241
|
-
class << self
|
2242
|
-
# source://tapioca/0.11.14/lib/tapioca/helpers/source_uri.rb#38
|
2243
|
-
sig do
|
2244
|
-
params(
|
2245
|
-
gem_name: ::String,
|
2246
|
-
gem_version: T.nilable(::String),
|
2247
|
-
path: ::String,
|
2248
|
-
line_number: T.nilable(::String)
|
2249
|
-
).returns(::URI::Source)
|
2250
|
-
end
|
2251
|
-
def build(gem_name:, gem_version:, path:, line_number:); end
|
2252
|
-
end
|
2253
|
-
end
|
2254
|
-
|
2255
|
-
# source://uri//uri/common.rb#285
|
2272
|
+
# source://uri//lib/uri/common.rb#312
|
2256
2273
|
URI::TBLENCURICOMP_ = T.let(T.unsafe(nil), Hash)
|
2257
2274
|
|
2275
|
+
# source://uri//lib/uri/common.rb#62
|
2258
2276
|
module URI::Util
|
2259
2277
|
private
|
2260
2278
|
|
2261
|
-
# source://uri//uri/common.rb#
|
2279
|
+
# source://uri//lib/uri/common.rb#63
|
2262
2280
|
def make_components_hash(klass, array_hash); end
|
2263
2281
|
|
2264
2282
|
class << self
|
2265
|
-
# source://uri//uri/common.rb#
|
2283
|
+
# source://uri//lib/uri/common.rb#63
|
2266
2284
|
def make_components_hash(klass, array_hash); end
|
2267
2285
|
end
|
2268
2286
|
end
|
@@ -2273,6 +2291,8 @@ end
|
|
2273
2291
|
# passwords. This is not legal as per the RFC, but used to be
|
2274
2292
|
# supported in Internet Explorer 5 and 6, before the MS04-004 security
|
2275
2293
|
# update. See <URL:http://support.microsoft.com/kb/834489>.
|
2294
|
+
#
|
2295
|
+
# source://uri//lib/uri/ws.rb#22
|
2276
2296
|
class URI::WS < ::URI::Generic
|
2277
2297
|
# == Description
|
2278
2298
|
#
|
@@ -2286,7 +2306,7 @@ class URI::WS < ::URI::Generic
|
|
2286
2306
|
# uri = URI::WS.build(path: '/foo/bar', query: 'test=true')
|
2287
2307
|
# uri.request_uri # => "/foo/bar?test=true"
|
2288
2308
|
#
|
2289
|
-
# source://uri//uri/ws.rb#74
|
2309
|
+
# source://uri//lib/uri/ws.rb#74
|
2290
2310
|
def request_uri; end
|
2291
2311
|
|
2292
2312
|
class << self
|
@@ -2311,7 +2331,7 @@ class URI::WS < ::URI::Generic
|
|
2311
2331
|
# Currently, if passed userinfo components this method generates
|
2312
2332
|
# invalid WS URIs as per RFC 1738.
|
2313
2333
|
#
|
2314
|
-
# source://uri//uri/ws.rb#56
|
2334
|
+
# source://uri//lib/uri/ws.rb#56
|
2315
2335
|
def build(args); end
|
2316
2336
|
end
|
2317
2337
|
end
|
@@ -2319,9 +2339,11 @@ end
|
|
2319
2339
|
# The default port for WSS URIs is 443, and the scheme is 'wss:' rather
|
2320
2340
|
# than 'ws:'. Other than that, WSS URIs are identical to WS URIs;
|
2321
2341
|
# see URI::WS.
|
2342
|
+
#
|
2343
|
+
# source://uri//lib/uri/wss.rb#17
|
2322
2344
|
class URI::WSS < ::URI::WS; end
|
2323
2345
|
|
2324
2346
|
# A Default port of 443 for URI::WSS
|
2325
2347
|
#
|
2326
|
-
# source://uri//uri/wss.rb#19
|
2348
|
+
# source://uri//lib/uri/wss.rb#19
|
2327
2349
|
URI::WSS::DEFAULT_PORT = T.let(T.unsafe(nil), Integer)
|