packwerk 3.2.2 → 3.2.3

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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/packwerk/application_validator.rb +2 -1
  3. data/lib/packwerk/graph.rb +15 -56
  4. data/lib/packwerk/reference_checking/checkers/dependency_checker.rb +1 -2
  5. data/lib/packwerk/run_context.rb +5 -0
  6. data/lib/packwerk/validators/dependency_validator.rb +5 -4
  7. data/lib/packwerk/version.rb +1 -1
  8. data/sorbet/rbi/gems/{actionpack@7.0.3.1.rbi → actionpack@7.0.8.7.rbi} +1338 -1227
  9. data/sorbet/rbi/gems/{actionview@7.0.3.1.rbi → actionview@7.0.8.7.rbi} +548 -503
  10. data/sorbet/rbi/gems/{activesupport@7.0.3.1.rbi → activesupport@7.0.8.7.rbi} +714 -635
  11. data/sorbet/rbi/gems/{better_html@2.0.1.rbi → better_html@2.1.1.rbi} +21 -21
  12. data/sorbet/rbi/gems/{concurrent-ruby@1.1.10.rbi → concurrent-ruby@1.3.5.rbi} +1390 -1366
  13. data/sorbet/rbi/gems/{constant_resolver@0.2.0.rbi → constant_resolver@0.3.0.rbi} +22 -13
  14. data/sorbet/rbi/gems/{erubi@1.11.0.rbi → erubi@1.13.1.rbi} +28 -17
  15. data/sorbet/rbi/gems/{i18n@1.12.0.rbi → i18n@1.14.7.rbi} +234 -172
  16. data/sorbet/rbi/gems/{json@2.6.2.rbi → json@2.7.2.rbi} +94 -74
  17. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
  18. data/sorbet/rbi/gems/{loofah@2.18.0.rbi → loofah@2.24.0.rbi} +470 -243
  19. data/sorbet/rbi/gems/{minitest@5.16.2.rbi → minitest@5.25.4.rbi} +577 -472
  20. data/sorbet/rbi/gems/{mocha@1.14.0.rbi → mocha@2.5.0.rbi} +468 -684
  21. data/sorbet/rbi/gems/{nokogiri@1.15.3.rbi → nokogiri@1.18.4.rbi} +1756 -869
  22. data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.25.1.rbi} +26 -20
  23. data/sorbet/rbi/gems/{racc@1.7.1.rbi → racc@1.8.1.rbi} +36 -36
  24. data/sorbet/rbi/gems/{rack-test@2.0.2.rbi → rack-test@2.2.0.rbi} +87 -114
  25. data/sorbet/rbi/gems/{rack@2.2.4.rbi → rack@2.2.13.rbi} +243 -195
  26. data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +754 -0
  27. data/sorbet/rbi/gems/rails-html-sanitizer@1.6.2.rbi +764 -0
  28. data/sorbet/rbi/gems/{railties@7.0.3.1.rbi → railties@7.0.8.7.rbi} +146 -140
  29. data/sorbet/rbi/gems/{regexp_parser@2.5.0.rbi → regexp_parser@2.9.2.rbi} +947 -542
  30. data/sorbet/rbi/gems/{rexml@3.2.5.rbi → rexml@3.3.9.rbi} +452 -312
  31. data/sorbet/rbi/gems/{rubocop-ast@1.21.0.rbi → rubocop-ast@1.31.3.rbi} +717 -588
  32. data/sorbet/rbi/gems/{rubocop@1.34.1.rbi → rubocop@1.64.1.rbi} +10916 -4406
  33. data/sorbet/rbi/gems/{ruby-progressbar@1.11.0.rbi → ruby-progressbar@1.13.0.rbi} +359 -281
  34. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
  35. data/sorbet/rbi/gems/{tzinfo@2.0.5.rbi → tzinfo@2.0.6.rbi} +144 -141
  36. data/sorbet/rbi/gems/{unicode-display_width@2.2.0.rbi → unicode-display_width@2.5.0.rbi} +24 -7
  37. metadata +36 -41
  38. data/sorbet/rbi/gems/language_server-protocol@3.16.0.3.rbi +0 -8
  39. data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +0 -8
  40. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +0 -455
  41. data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +0 -542
  42. data/sorbet/rbi/gems/ruby-lsp@0.2.3.rbi +0 -11
  43. data/sorbet/rbi/gems/syntax_tree@3.3.0.rbi +0 -8
  44. /data/sorbet/rbi/gems/{builder@3.2.4.rbi → builder@3.3.0.rbi} +0 -0
  45. /data/sorbet/rbi/gems/{parser@3.3.1.0.rbi → parser@3.3.3.0.rbi} +0 -0
@@ -4,22 +4,20 @@
4
4
  # This is an autogenerated file for types exported from the `rack-test` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem rack-test`.
6
6
 
7
- # :nocov:
8
- #
9
7
  # source://rack-test//lib/rack/test/cookie_jar.rb#6
10
8
  module Rack
11
9
  class << self
12
- # source://rack/2.2.4/lib/rack/version.rb#26
10
+ # source://rack/2.2.13/lib/rack/version.rb#26
13
11
  def release; end
14
12
 
15
- # source://rack/2.2.4/lib/rack/version.rb#19
13
+ # source://rack/2.2.13/lib/rack/version.rb#19
16
14
  def version; end
17
15
  end
18
16
  end
19
17
 
20
18
  # For backwards compatibility with 1.1.0 and below
21
19
  #
22
- # source://rack-test//lib/rack/test.rb#413
20
+ # source://rack-test//lib/rack/test.rb#381
23
21
  Rack::MockSession = Rack::Test::Session
24
22
 
25
23
  # source://rack-test//lib/rack/test/cookie_jar.rb#7
@@ -29,7 +27,7 @@ module Rack::Test
29
27
  #
30
28
  # @return [Boolean]
31
29
  #
32
- # source://rack-test//lib/rack/test.rb#407
30
+ # source://rack-test//lib/rack/test.rb#375
33
31
  def encoding_aware_strings?; end
34
32
  end
35
33
  end
@@ -48,31 +46,31 @@ class Rack::Test::Cookie
48
46
 
49
47
  # Order cookies by name, path, and domain.
50
48
  #
51
- # source://rack-test//lib/rack/test/cookie_jar.rb#107
49
+ # source://rack-test//lib/rack/test/cookie_jar.rb#106
52
50
  def <=>(other); end
53
51
 
54
52
  # The explicit or implicit domain for the cookie.
55
53
  #
56
- # source://rack-test//lib/rack/test/cookie_jar.rb#58
54
+ # source://rack-test//lib/rack/test/cookie_jar.rb#59
57
55
  def domain; end
58
56
 
59
57
  # Whether the cookie has a value.
60
58
  #
61
59
  # @return [Boolean]
62
60
  #
63
- # source://rack-test//lib/rack/test/cookie_jar.rb#53
61
+ # source://rack-test//lib/rack/test/cookie_jar.rb#54
64
62
  def empty?; end
65
63
 
66
64
  # Whether the cookie is currently expired.
67
65
  #
68
66
  # @return [Boolean]
69
67
  #
70
- # source://rack-test//lib/rack/test/cookie_jar.rb#85
68
+ # source://rack-test//lib/rack/test/cookie_jar.rb#86
71
69
  def expired?; end
72
70
 
73
71
  # A Time value for when the cookie expires, if the expires option is set.
74
72
  #
75
- # source://rack-test//lib/rack/test/cookie_jar.rb#80
73
+ # source://rack-test//lib/rack/test/cookie_jar.rb#81
76
74
  def expires; end
77
75
 
78
76
  # Whether the cookie has the httponly flag, indicating it is not available via
@@ -80,14 +78,14 @@ class Rack::Test::Cookie
80
78
  #
81
79
  # @return [Boolean]
82
80
  #
83
- # source://rack-test//lib/rack/test/cookie_jar.rb#70
81
+ # source://rack-test//lib/rack/test/cookie_jar.rb#71
84
82
  def http_only?; end
85
83
 
86
84
  # Cookies that do not match the URI will not be sent in requests to the URI.
87
85
  #
88
86
  # @return [Boolean]
89
87
  #
90
- # source://rack-test//lib/rack/test/cookie_jar.rb#102
88
+ # source://rack-test//lib/rack/test/cookie_jar.rb#101
91
89
  def matches?(uri); end
92
90
 
93
91
  # The name of the cookie, will be a string
@@ -97,7 +95,7 @@ class Rack::Test::Cookie
97
95
 
98
96
  # The explicit or implicit path for the cookie.
99
97
  #
100
- # source://rack-test//lib/rack/test/cookie_jar.rb#75
98
+ # source://rack-test//lib/rack/test/cookie_jar.rb#76
101
99
  def path; end
102
100
 
103
101
  # The raw string for the cookie, without options. Will generally be in
@@ -110,7 +108,7 @@ class Rack::Test::Cookie
110
108
  #
111
109
  # @return [Boolean]
112
110
  #
113
- # source://rack-test//lib/rack/test/cookie_jar.rb#48
111
+ # source://rack-test//lib/rack/test/cookie_jar.rb#49
114
112
  def replaces?(other); end
115
113
 
116
114
  # Whether the cookie has the secure flag, indicating it can only be sent over
@@ -118,24 +116,24 @@ class Rack::Test::Cookie
118
116
  #
119
117
  # @return [Boolean]
120
118
  #
121
- # source://rack-test//lib/rack/test/cookie_jar.rb#64
119
+ # source://rack-test//lib/rack/test/cookie_jar.rb#65
122
120
  def secure?; end
123
121
 
124
122
  # A hash of cookie options, including the cookie value, but excluding the cookie name.
125
123
  #
126
- # source://rack-test//lib/rack/test/cookie_jar.rb#112
124
+ # source://rack-test//lib/rack/test/cookie_jar.rb#111
127
125
  def to_h; end
128
126
 
129
127
  # A hash of cookie options, including the cookie value, but excluding the cookie name.
130
128
  #
131
- # source://rack-test//lib/rack/test/cookie_jar.rb#112
129
+ # source://rack-test//lib/rack/test/cookie_jar.rb#111
132
130
  def to_hash; end
133
131
 
134
132
  # Whether the cookie is valid for the given URI.
135
133
  #
136
134
  # @return [Boolean]
137
135
  #
138
- # source://rack-test//lib/rack/test/cookie_jar.rb#90
136
+ # source://rack-test//lib/rack/test/cookie_jar.rb#91
139
137
  def valid?(uri); end
140
138
 
141
139
  # The value of the cookie, will be a string or nil if there is no value.
@@ -147,7 +145,7 @@ class Rack::Test::Cookie
147
145
 
148
146
  # The default URI to use for the cookie, including just the host.
149
147
  #
150
- # source://rack-test//lib/rack/test/cookie_jar.rb#124
148
+ # source://rack-test//lib/rack/test/cookie_jar.rb#125
151
149
  def default_uri; end
152
150
  end
153
151
 
@@ -156,57 +154,57 @@ end
156
154
  # request. This is considered private API and behavior of this
157
155
  # class can change at any time.
158
156
  #
159
- # source://rack-test//lib/rack/test/cookie_jar.rb#133
157
+ # source://rack-test//lib/rack/test/cookie_jar.rb#134
160
158
  class Rack::Test::CookieJar
161
159
  # @return [CookieJar] a new instance of CookieJar
162
160
  #
163
- # source://rack-test//lib/rack/test/cookie_jar.rb#136
161
+ # source://rack-test//lib/rack/test/cookie_jar.rb#137
164
162
  def initialize(cookies = T.unsafe(nil), default_host = T.unsafe(nil)); end
165
163
 
166
164
  # Add a Cookie to the cookie jar.
167
165
  #
168
- # source://rack-test//lib/rack/test/cookie_jar.rb#192
166
+ # source://rack-test//lib/rack/test/cookie_jar.rb#197
169
167
  def <<(new_cookie); end
170
168
 
171
169
  # Return the value for first cookie with the given name, or nil
172
170
  # if no such cookie exists.
173
171
  #
174
- # source://rack-test//lib/rack/test/cookie_jar.rb#143
172
+ # source://rack-test//lib/rack/test/cookie_jar.rb#150
175
173
  def [](name); end
176
174
 
177
175
  # Set a cookie with the given name and value in the
178
176
  # cookie jar.
179
177
  #
180
- # source://rack-test//lib/rack/test/cookie_jar.rb#153
178
+ # source://rack-test//lib/rack/test/cookie_jar.rb#160
181
179
  def []=(name, value); end
182
180
 
183
181
  # Delete all cookies with the given name from the cookie jar.
184
182
  #
185
- # source://rack-test//lib/rack/test/cookie_jar.rb#167
183
+ # source://rack-test//lib/rack/test/cookie_jar.rb#174
186
184
  def delete(name); end
187
185
 
188
186
  # Return a raw cookie string for the cookie header to
189
187
  # use for the given URI.
190
188
  #
191
- # source://rack-test//lib/rack/test/cookie_jar.rb#203
189
+ # source://rack-test//lib/rack/test/cookie_jar.rb#208
192
190
  def for(uri); end
193
191
 
194
192
  # Return the first cookie with the given name, or nil if
195
193
  # no such cookie exists.
196
194
  #
197
- # source://rack-test//lib/rack/test/cookie_jar.rb#159
195
+ # source://rack-test//lib/rack/test/cookie_jar.rb#166
198
196
  def get_cookie(name); end
199
197
 
200
198
  # Add a string of raw cookie information to the cookie jar,
201
199
  # if the cookie is valid for the given URI.
202
200
  # Cookies should be separated with a newline.
203
201
  #
204
- # source://rack-test//lib/rack/test/cookie_jar.rb#177
202
+ # source://rack-test//lib/rack/test/cookie_jar.rb#184
205
203
  def merge(raw_cookies, uri = T.unsafe(nil)); end
206
204
 
207
205
  # Return a hash cookie names and cookie values for cookies in the jar.
208
206
  #
209
- # source://rack-test//lib/rack/test/cookie_jar.rb#220
207
+ # source://rack-test//lib/rack/test/cookie_jar.rb#225
210
208
  def to_hash; end
211
209
 
212
210
  private
@@ -219,11 +217,16 @@ class Rack::Test::CookieJar
219
217
  # so that when we are done, the cookies will be unique by name and
220
218
  # we'll have grabbed the most specific to the URI.
221
219
  #
222
- # source://rack-test//lib/rack/test/cookie_jar.rb#239
220
+ # source://rack-test//lib/rack/test/cookie_jar.rb#244
223
221
  def each_cookie_for(uri); end
222
+
223
+ # Ensure the copy uses a distinct cookies array.
224
+ #
225
+ # source://rack-test//lib/rack/test/cookie_jar.rb#143
226
+ def initialize_copy(other); end
224
227
  end
225
228
 
226
- # source://rack-test//lib/rack/test/cookie_jar.rb#134
229
+ # source://rack-test//lib/rack/test/cookie_jar.rb#135
227
230
  Rack::Test::CookieJar::DELIMITER = T.let(T.unsafe(nil), String)
228
231
 
229
232
  # The default host to use for requests, when a full URI is not
@@ -271,7 +274,7 @@ module Rack::Test::Methods
271
274
 
272
275
  # Private accessor to avoid uninitialized instance variable warning in Ruby 2.*
273
276
  #
274
- # source://rack-test//lib/rack/test/methods.rb#91
277
+ # source://rack-test//lib/rack/test/methods.rb#90
275
278
  def _rack_test_current_session=(_arg0); end
276
279
 
277
280
  # source://forwardable/1.3.3/forwardable.rb#231
@@ -291,7 +294,7 @@ module Rack::Test::Methods
291
294
  # Return the currently actively session. This is the session to
292
295
  # which the delegated methods are sent.
293
296
  #
294
- # source://rack-test//lib/rack/test/methods.rb#51
297
+ # source://rack-test//lib/rack/test/methods.rb#55
295
298
  def current_session; end
296
299
 
297
300
  # source://forwardable/1.3.3/forwardable.rb#231
@@ -300,9 +303,6 @@ module Rack::Test::Methods
300
303
  # source://forwardable/1.3.3/forwardable.rb#231
301
304
  def delete(*args, **_arg1, &block); end
302
305
 
303
- # source://rack-test//lib/rack/test/methods.rb#64
304
- def digest_authorize(username, password); end
305
-
306
306
  # source://forwardable/1.3.3/forwardable.rb#231
307
307
  def env(*args, **_arg1, &block); end
308
308
 
@@ -358,14 +358,14 @@ module Rack::Test::Methods
358
358
  # Create a new session (or reuse an existing session with the given name),
359
359
  # and make it the current session for the given block.
360
360
  #
361
- # source://rack-test//lib/rack/test/methods.rb#57
361
+ # source://rack-test//lib/rack/test/methods.rb#61
362
362
  def with_session(name); end
363
363
 
364
364
  private
365
365
 
366
366
  # Private accessor to avoid uninitialized instance variable warning in Ruby 2.*
367
367
  #
368
- # source://rack-test//lib/rack/test/methods.rb#91
368
+ # source://rack-test//lib/rack/test/methods.rb#90
369
369
  def _rack_test_current_session; end
370
370
  end
371
371
 
@@ -420,12 +420,9 @@ class Rack::Test::Session
420
420
  # source://rack-test//lib/rack/test.rb#99
421
421
  def initialize(app, default_host = T.unsafe(nil)); end
422
422
 
423
- # source://rack-test//lib/rack/test.rb#217
424
- def _digest_authorize(username, password); end
425
-
426
423
  # Run a block after the each request completes.
427
424
  #
428
- # source://rack-test//lib/rack/test.rb#120
425
+ # source://rack-test//lib/rack/test.rb#118
429
426
  def after_request(&block); end
430
427
 
431
428
  # Set the username and password for HTTP Basic authorization, to be
@@ -434,7 +431,7 @@ class Rack::Test::Session
434
431
  # Example:
435
432
  # basic_authorize "bryan", "secret"
436
433
  #
437
- # source://rack-test//lib/rack/test.rb#200
434
+ # source://rack-test//lib/rack/test.rb#198
438
435
  def authorize(username, password); end
439
436
 
440
437
  # Set the username and password for HTTP Basic authorization, to be
@@ -443,12 +440,12 @@ class Rack::Test::Session
443
440
  # Example:
444
441
  # basic_authorize "bryan", "secret"
445
442
  #
446
- # source://rack-test//lib/rack/test.rb#200
443
+ # source://rack-test//lib/rack/test.rb#198
447
444
  def basic_authorize(username, password); end
448
445
 
449
446
  # Replace the current cookie jar with an empty cookie jar.
450
447
  #
451
- # source://rack-test//lib/rack/test.rb#125
448
+ # source://rack-test//lib/rack/test.rb#123
452
449
  def clear_cookies; end
453
450
 
454
451
  # The Rack::Test::CookieJar for the cookies for the current session.
@@ -466,7 +463,7 @@ class Rack::Test::Session
466
463
  #
467
464
  # custom_request "LINK", "/"
468
465
  #
469
- # source://rack-test//lib/rack/test.rb#162
466
+ # source://rack-test//lib/rack/test.rb#160
470
467
  def custom_request(verb, uri, params = T.unsafe(nil), env = T.unsafe(nil), &block); end
471
468
 
472
469
  # The default host used for the session for when using paths for URIs.
@@ -474,26 +471,16 @@ class Rack::Test::Session
474
471
  # source://rack-test//lib/rack/test.rb#70
475
472
  def default_host; end
476
473
 
477
- # source://rack-test//lib/rack/test.rb#113
474
+ # source://rack-test//lib/rack/test.rb#111
478
475
  def delete(uri, params = T.unsafe(nil), env = T.unsafe(nil), &block); end
479
476
 
480
- # Set the username and password for HTTP Digest authorization, to be
481
- # included in subsequent requests in the HTTP_AUTHORIZATION header.
482
- # This method is deprecated and will be removed in rack-test 2.1
483
- #
484
- # Example:
485
- # digest_authorize "bryan", "secret"
486
- #
487
- # source://rack-test//lib/rack/test.rb#213
488
- def digest_authorize(username, password); end
489
-
490
477
  # Set an entry in the rack environment to be included on all subsequent
491
478
  # requests through the session. Use a value of nil to remove a previously
492
479
  # value. Example:
493
480
  #
494
481
  # env "rack.session", {:csrf => 'token'}
495
482
  #
496
- # source://rack-test//lib/rack/test.rb#187
483
+ # source://rack-test//lib/rack/test.rb#185
497
484
  def env(name, value); end
498
485
 
499
486
  # Rack::Test will not follow any redirects automatically. This method
@@ -501,13 +488,13 @@ class Rack::Test::Session
501
488
  # on the new request) in the last response. If the last response was not
502
489
  # a redirect, an error will be raised.
503
490
  #
504
- # source://rack-test//lib/rack/test.rb#226
491
+ # source://rack-test//lib/rack/test.rb#209
505
492
  def follow_redirect!; end
506
493
 
507
- # source://rack-test//lib/rack/test.rb#113
494
+ # source://rack-test//lib/rack/test.rb#111
508
495
  def get(uri, params = T.unsafe(nil), env = T.unsafe(nil), &block); end
509
496
 
510
- # source://rack-test//lib/rack/test.rb#113
497
+ # source://rack-test//lib/rack/test.rb#111
511
498
  def head(uri, params = T.unsafe(nil), env = T.unsafe(nil), &block); end
512
499
 
513
500
  # Set a header to be included on all subsequent requests through the
@@ -518,7 +505,7 @@ class Rack::Test::Session
518
505
  #
519
506
  # header "user-agent", "Firefox"
520
507
  #
521
- # source://rack-test//lib/rack/test.rb#175
508
+ # source://rack-test//lib/rack/test.rb#173
522
509
  def header(name, value); end
523
510
 
524
511
  # Return the last request issued in the session. Raises an error if no
@@ -526,7 +513,7 @@ class Rack::Test::Session
526
513
  #
527
514
  # @raise [Error]
528
515
  #
529
- # source://rack-test//lib/rack/test.rb#136
516
+ # source://rack-test//lib/rack/test.rb#134
530
517
  def last_request; end
531
518
 
532
519
  # Return the last response received in the session. Raises an error if
@@ -534,19 +521,19 @@ class Rack::Test::Session
534
521
  #
535
522
  # @raise [Error]
536
523
  #
537
- # source://rack-test//lib/rack/test.rb#143
524
+ # source://rack-test//lib/rack/test.rb#141
538
525
  def last_response; end
539
526
 
540
- # source://rack-test//lib/rack/test.rb#113
527
+ # source://rack-test//lib/rack/test.rb#111
541
528
  def options(uri, params = T.unsafe(nil), env = T.unsafe(nil), &block); end
542
529
 
543
- # source://rack-test//lib/rack/test.rb#113
530
+ # source://rack-test//lib/rack/test.rb#111
544
531
  def patch(uri, params = T.unsafe(nil), env = T.unsafe(nil), &block); end
545
532
 
546
- # source://rack-test//lib/rack/test.rb#113
533
+ # source://rack-test//lib/rack/test.rb#111
547
534
  def post(uri, params = T.unsafe(nil), env = T.unsafe(nil), &block); end
548
535
 
549
- # source://rack-test//lib/rack/test.rb#113
536
+ # source://rack-test//lib/rack/test.rb#111
550
537
  def put(uri, params = T.unsafe(nil), env = T.unsafe(nil), &block); end
551
538
 
552
539
  # Issue a request to the Rack app for the given URI and optional Rack
@@ -554,59 +541,55 @@ class Rack::Test::Session
554
541
  #
555
542
  # request "/"
556
543
  #
557
- # source://rack-test//lib/rack/test.rb#152
544
+ # source://rack-test//lib/rack/test.rb#150
558
545
  def request(uri, env = T.unsafe(nil), &block); end
559
546
 
547
+ # Yield to the block, and restore the last request, last response, and
548
+ # cookie jar to the state they were prior to block execution upon
549
+ # exiting the block.
550
+ #
551
+ # source://rack-test//lib/rack/test.rb#240
552
+ def restore_state; end
553
+
560
554
  # Set a cookie in the current cookie jar.
561
555
  #
562
- # source://rack-test//lib/rack/test.rb#130
556
+ # source://rack-test//lib/rack/test.rb#128
563
557
  def set_cookie(cookie, uri = T.unsafe(nil)); end
564
558
 
565
559
  private
566
560
 
567
561
  # Append a string version of the query params to the array of query params.
568
562
  #
569
- # source://rack-test//lib/rack/test.rb#338
563
+ # source://rack-test//lib/rack/test.rb#340
570
564
  def append_query_params(query_array, query_params); end
571
565
 
572
566
  # close() gets called automatically in newer Rack versions.
573
567
  #
574
- # source://rack-test//lib/rack/test.rb#264
568
+ # source://rack-test//lib/rack/test.rb#266
575
569
  def close_body(body); end
576
570
 
577
- # @return [Boolean]
578
- #
579
- # source://rack-test//lib/rack/test.rb#401
580
- def digest_auth_configured?; end
581
-
582
- # source://rack-test//lib/rack/test.rb#378
583
- def digest_auth_header; end
584
-
585
571
  # Update environment to use based on given URI.
586
572
  #
587
- # source://rack-test//lib/rack/test.rb#291
573
+ # source://rack-test//lib/rack/test.rb#293
588
574
  def env_for(uri, env); end
589
575
 
590
576
  # Return the multipart content type to use based on the environment.
591
577
  #
592
- # source://rack-test//lib/rack/test.rb#344
578
+ # source://rack-test//lib/rack/test.rb#346
593
579
  def multipart_content_type(env); end
594
580
 
595
581
  # Normalize URI based on given URI/path and environment.
596
582
  #
597
- # source://rack-test//lib/rack/test.rb#269
583
+ # source://rack-test//lib/rack/test.rb#271
598
584
  def parse_uri(path, env); end
599
585
 
600
586
  # Submit the request with the given URI and rack environment to
601
587
  # the mock session. Returns and potentially yields the last response.
602
588
  #
603
- # source://rack-test//lib/rack/test.rb#355
604
- def process_request(uri, env); end
605
-
606
- # @return [Boolean]
589
+ # @yield [@last_response]
607
590
  #
608
- # source://rack-test//lib/rack/test.rb#395
609
- def retry_with_digest_auth?(env); end
591
+ # source://rack-test//lib/rack/test.rb#357
592
+ def process_request(uri, env); end
610
593
 
611
594
  class << self
612
595
  # source://rack-test//lib/rack/test.rb#57
@@ -614,7 +597,7 @@ class Rack::Test::Session
614
597
  end
615
598
  end
616
599
 
617
- # source://rack-test//lib/rack/test.rb#277
600
+ # source://rack-test//lib/rack/test.rb#279
618
601
  Rack::Test::Session::DEFAULT_ENV = T.let(T.unsafe(nil), Hash)
619
602
 
620
603
  # Wraps a Tempfile with a content type. Including one or more UploadedFile's
@@ -631,7 +614,7 @@ class Rack::Test::UploadedFile
631
614
  # content :: is a path to a file, or an {IO} or {StringIO} object representing the content.
632
615
  # content_type :: MIME type of the file
633
616
  # binary :: Whether the file should be set to binmode (content treated as binary).
634
- # original_filename :: The filename to use for the file if +content+ is a StringIO.
617
+ # original_filename :: The filename to use for the file. Required if content is StringIO, optional override if not
635
618
  #
636
619
  # @return [UploadedFile] a new instance of UploadedFile
637
620
  #
@@ -643,7 +626,7 @@ class Rack::Test::UploadedFile
643
626
  # after to make sure all data in tempfile is appended to the
644
627
  # buffer.
645
628
  #
646
- # source://rack-test//lib/rack/test/uploaded_file.rb#58
629
+ # source://rack-test//lib/rack/test/uploaded_file.rb#60
647
630
  def append_to(buffer); end
648
631
 
649
632
  # The content type of the "uploaded" file
@@ -658,12 +641,12 @@ class Rack::Test::UploadedFile
658
641
 
659
642
  # The path to the tempfile. Will not work if the receiver's content is from a StringIO.
660
643
  #
661
- # source://rack-test//lib/rack/test/uploaded_file.rb#44
644
+ # source://rack-test//lib/rack/test/uploaded_file.rb#46
662
645
  def local_path; end
663
646
 
664
647
  # Delegate all methods not handled to the tempfile.
665
648
  #
666
- # source://rack-test//lib/rack/test/uploaded_file.rb#50
649
+ # source://rack-test//lib/rack/test/uploaded_file.rb#52
667
650
  def method_missing(method_name, *args, &block); end
668
651
 
669
652
  # The filename, *not* including the path, of the "uploaded" file
@@ -673,7 +656,7 @@ class Rack::Test::UploadedFile
673
656
 
674
657
  # The path to the tempfile. Will not work if the receiver's content is from a StringIO.
675
658
  #
676
- # source://rack-test//lib/rack/test/uploaded_file.rb#44
659
+ # source://rack-test//lib/rack/test/uploaded_file.rb#46
677
660
  def path; end
678
661
 
679
662
  # The tempfile
@@ -683,33 +666,23 @@ class Rack::Test::UploadedFile
683
666
 
684
667
  private
685
668
 
686
- # Create a tempfile and copy the content from the given path into the tempfile.
669
+ # Create a tempfile and copy the content from the given path into the tempfile, optionally renaming if
670
+ # original_filename has been set.
687
671
  #
688
- # source://rack-test//lib/rack/test/uploaded_file.rb#94
672
+ # source://rack-test//lib/rack/test/uploaded_file.rb#86
689
673
  def initialize_from_file_path(path); end
690
674
 
691
675
  # Use the StringIO as the tempfile.
692
676
  #
693
- # source://rack-test//lib/rack/test/uploaded_file.rb#88
694
- def initialize_from_stringio(stringio, original_filename); end
677
+ # @raise [ArgumentError]
678
+ #
679
+ # source://rack-test//lib/rack/test/uploaded_file.rb#78
680
+ def initialize_from_stringio(stringio); end
695
681
 
696
682
  # @return [Boolean]
697
683
  #
698
- # source://rack-test//lib/rack/test/uploaded_file.rb#69
684
+ # source://rack-test//lib/rack/test/uploaded_file.rb#71
699
685
  def respond_to_missing?(method_name, include_private = T.unsafe(nil)); end
700
-
701
- class << self
702
- # Close and unlink the given file, used as a finalizer for the tempfile,
703
- # if the tempfile is backed by a file in the filesystem.
704
- #
705
- # source://rack-test//lib/rack/test/uploaded_file.rb#80
706
- def actually_finalize(file); end
707
-
708
- # A proc that can be used as a finalizer to close and unlink the tempfile.
709
- #
710
- # source://rack-test//lib/rack/test/uploaded_file.rb#74
711
- def finalize(file); end
712
- end
713
686
  end
714
687
 
715
688
  # source://rack-test//lib/rack/test/utils.rb#5