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
@@ -24,10 +24,10 @@ module Parallel
24
24
  def each_with_index(array, options = T.unsafe(nil), &block); end
25
25
 
26
26
  # source://parallel//lib/parallel.rb#307
27
- def filter_map(*args, &block); end
27
+ def filter_map(*_arg0, **_arg1, &_arg2); end
28
28
 
29
29
  # source://parallel//lib/parallel.rb#303
30
- def flat_map(*args, &block); end
30
+ def flat_map(*_arg0, **_arg1, &_arg2); end
31
31
 
32
32
  # source://parallel//lib/parallel.rb#228
33
33
  def in_processes(options = T.unsafe(nil), &block); end
@@ -48,68 +48,74 @@ module Parallel
48
48
 
49
49
  # Number of processors seen by the OS, used for process scheduling
50
50
  #
51
- # source://parallel//lib/parallel.rb#345
51
+ # source://parallel//lib/parallel.rb#341
52
52
  def processor_count; end
53
53
 
54
- # source://parallel//lib/parallel.rb#350
54
+ # source://parallel//lib/parallel.rb#346
55
55
  def worker_number; end
56
56
 
57
57
  # TODO: this does not work when doing threads in forks, so should remove and yield the number instead if needed
58
58
  #
59
- # source://parallel//lib/parallel.rb#355
59
+ # source://parallel//lib/parallel.rb#351
60
60
  def worker_number=(worker_num); end
61
61
 
62
62
  private
63
63
 
64
- # source://parallel//lib/parallel.rb#361
64
+ # source://parallel//lib/parallel.rb#384
65
65
  def add_progress_bar!(job_factory, options); end
66
66
 
67
- # source://parallel//lib/parallel.rb#624
67
+ # source://parallel//lib/parallel.rb#647
68
68
  def call_with_index(item, index, options, &block); end
69
69
 
70
- # source://parallel//lib/parallel.rb#556
70
+ # source://parallel//lib/parallel.rb#579
71
71
  def create_workers(job_factory, options, &block); end
72
72
 
73
73
  # options is either a Integer or a Hash with :count
74
74
  #
75
- # source://parallel//lib/parallel.rb#614
75
+ # source://parallel//lib/parallel.rb#637
76
76
  def extract_count_from_options(options); end
77
77
 
78
- # source://parallel//lib/parallel.rb#642
78
+ # source://parallel//lib/parallel.rb#665
79
79
  def instrument_finish(item, index, result, options); end
80
80
 
81
81
  # yield results in the order of the input items
82
82
  # needs to use `options` to store state between executions
83
83
  # needs to use `done` index since a nil result would also be valid
84
84
  #
85
- # source://parallel//lib/parallel.rb#651
85
+ # source://parallel//lib/parallel.rb#674
86
86
  def instrument_finish_in_order(item, index, result, options); end
87
87
 
88
- # source://parallel//lib/parallel.rb#671
88
+ # source://parallel//lib/parallel.rb#694
89
89
  def instrument_start(item, index, options); end
90
90
 
91
- # source://parallel//lib/parallel.rb#590
91
+ # source://parallel//lib/parallel.rb#357
92
+ def physical_processor_count_windows; end
93
+
94
+ # source://parallel//lib/parallel.rb#613
92
95
  def process_incoming_jobs(read, write, job_factory, options, &block); end
93
96
 
94
- # source://parallel//lib/parallel.rb#544
97
+ # source://parallel//lib/parallel.rb#567
95
98
  def replace_worker(job_factory, workers, index, options, blk); end
96
99
 
97
- # source://parallel//lib/parallel.rb#635
100
+ # source://parallel//lib/parallel.rb#378
101
+ def run(command); end
102
+
103
+ # source://parallel//lib/parallel.rb#658
98
104
  def with_instrumentation(item, index, options); end
99
105
 
100
- # source://parallel//lib/parallel.rb#386
106
+ # source://parallel//lib/parallel.rb#409
101
107
  def work_direct(job_factory, options, &block); end
102
108
 
103
- # source://parallel//lib/parallel.rb#496
109
+ # source://parallel//lib/parallel.rb#519
104
110
  def work_in_processes(job_factory, options, &blk); end
105
111
 
106
- # source://parallel//lib/parallel.rb#430
112
+ # source://parallel//lib/parallel.rb#453
107
113
  def work_in_ractors(job_factory, options); end
108
114
 
109
- # source://parallel//lib/parallel.rb#405
115
+ # source://parallel//lib/parallel.rb#428
110
116
  def work_in_threads(job_factory, options, &block); end
111
117
 
112
- # source://parallel//lib/parallel.rb#564
118
+ # source://parallel//lib/parallel.rb#587
113
119
  def worker(job_factory, options, &block); end
114
120
  end
115
121
  end
@@ -4,35 +4,35 @@
4
4
  # This is an autogenerated file for types exported from the `racc` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem racc`.
6
6
 
7
- # source://racc//lib/racc/parser.rb#23
7
+ # source://racc//lib/racc/parser.rb#19
8
8
  ParseError = Racc::ParseError
9
9
 
10
- # source://racc//lib/racc/info.rb#16
10
+ # source://racc//lib/racc/info.rb#17
11
11
  Racc::Copyright = T.let(T.unsafe(nil), String)
12
12
 
13
- # source://racc//lib/racc/parser.rb#186
13
+ # source://racc//lib/racc/parser.rb#184
14
14
  class Racc::Parser
15
- # source://racc//lib/racc/parser.rb#281
15
+ # source://racc//lib/racc/parser.rb#279
16
16
  def _racc_do_parse_rb(arg, in_debug); end
17
17
 
18
- # source://racc//lib/racc/parser.rb#481
18
+ # source://racc//lib/racc/parser.rb#479
19
19
  def _racc_do_reduce(arg, act); end
20
20
 
21
21
  # common
22
22
  #
23
- # source://racc//lib/racc/parser.rb#384
23
+ # source://racc//lib/racc/parser.rb#382
24
24
  def _racc_evalact(act, arg); end
25
25
 
26
- # source://racc//lib/racc/parser.rb#234
26
+ # source://racc//lib/racc/parser.rb#232
27
27
  def _racc_init_sysvars; end
28
28
 
29
- # source://racc//lib/racc/parser.rb#222
29
+ # source://racc//lib/racc/parser.rb#220
30
30
  def _racc_setup; end
31
31
 
32
- # source://racc//lib/racc/parser.rb#331
32
+ # source://racc//lib/racc/parser.rb#329
33
33
  def _racc_yyparse_rb(recv, mid, arg, c_debug); end
34
34
 
35
- # source://racc//lib/racc/parser.rb#264
35
+ # source://racc//lib/racc/parser.rb#262
36
36
  def do_parse; end
37
37
 
38
38
  # The method to fetch next token.
@@ -46,7 +46,7 @@ class Racc::Parser
46
46
  #
47
47
  # @raise [NotImplementedError]
48
48
  #
49
- # source://racc//lib/racc/parser.rb#277
49
+ # source://racc//lib/racc/parser.rb#275
50
50
  def next_token; end
51
51
 
52
52
  # This method is called when a parse error is found.
@@ -66,96 +66,96 @@ class Racc::Parser
66
66
  #
67
67
  # @raise [ParseError]
68
68
  #
69
- # source://racc//lib/racc/parser.rb#537
69
+ # source://racc//lib/racc/parser.rb#535
70
70
  def on_error(t, val, vstack); end
71
71
 
72
- # source://racc//lib/racc/parser.rb#586
72
+ # source://racc//lib/racc/parser.rb#584
73
73
  def racc_accept; end
74
74
 
75
- # source://racc//lib/racc/parser.rb#591
75
+ # source://racc//lib/racc/parser.rb#589
76
76
  def racc_e_pop(state, tstack, vstack); end
77
77
 
78
- # source://racc//lib/racc/parser.rb#598
78
+ # source://racc//lib/racc/parser.rb#596
79
79
  def racc_next_state(curstate, state); end
80
80
 
81
- # source://racc//lib/racc/parser.rb#604
81
+ # source://racc//lib/racc/parser.rb#602
82
82
  def racc_print_stacks(t, v); end
83
83
 
84
- # source://racc//lib/racc/parser.rb#613
84
+ # source://racc//lib/racc/parser.rb#611
85
85
  def racc_print_states(s); end
86
86
 
87
87
  # For debugging output
88
88
  #
89
- # source://racc//lib/racc/parser.rb#560
89
+ # source://racc//lib/racc/parser.rb#558
90
90
  def racc_read_token(t, tok, val); end
91
91
 
92
- # source://racc//lib/racc/parser.rb#573
92
+ # source://racc//lib/racc/parser.rb#571
93
93
  def racc_reduce(toks, sim, tstack, vstack); end
94
94
 
95
- # source://racc//lib/racc/parser.rb#567
95
+ # source://racc//lib/racc/parser.rb#565
96
96
  def racc_shift(tok, tstack, vstack); end
97
97
 
98
- # source://racc//lib/racc/parser.rb#620
98
+ # source://racc//lib/racc/parser.rb#618
99
99
  def racc_token2str(tok); end
100
100
 
101
101
  # Convert internal ID of token symbol to the string.
102
102
  #
103
- # source://racc//lib/racc/parser.rb#626
103
+ # source://racc//lib/racc/parser.rb#624
104
104
  def token_to_str(t); end
105
105
 
106
106
  # Exit parser.
107
107
  # Return value is +Symbol_Value_Stack[0]+.
108
108
  #
109
- # source://racc//lib/racc/parser.rb#550
109
+ # source://racc//lib/racc/parser.rb#548
110
110
  def yyaccept; end
111
111
 
112
112
  # Leave error recovering mode.
113
113
  #
114
- # source://racc//lib/racc/parser.rb#555
114
+ # source://racc//lib/racc/parser.rb#553
115
115
  def yyerrok; end
116
116
 
117
117
  # Enter error recovering mode.
118
118
  # This method does not call #on_error.
119
119
  #
120
- # source://racc//lib/racc/parser.rb#544
120
+ # source://racc//lib/racc/parser.rb#542
121
121
  def yyerror; end
122
122
 
123
- # source://racc//lib/racc/parser.rb#326
123
+ # source://racc//lib/racc/parser.rb#324
124
124
  def yyparse(recv, mid); end
125
125
 
126
126
  class << self
127
- # source://racc//lib/racc/parser.rb#218
127
+ # source://racc//lib/racc/parser.rb#216
128
128
  def racc_runtime_type; end
129
129
  end
130
130
  end
131
131
 
132
- # source://racc//lib/racc/parser.rb#207
132
+ # source://racc//lib/racc/parser.rb#205
133
133
  Racc::Parser::Racc_Main_Parsing_Routine = T.let(T.unsafe(nil), Symbol)
134
134
 
135
135
  Racc::Parser::Racc_Runtime_Core_Id_C = T.let(T.unsafe(nil), String)
136
136
 
137
- # source://racc//lib/racc/parser.rb#209
137
+ # source://racc//lib/racc/parser.rb#207
138
138
  Racc::Parser::Racc_Runtime_Core_Version = T.let(T.unsafe(nil), String)
139
139
 
140
140
  Racc::Parser::Racc_Runtime_Core_Version_C = T.let(T.unsafe(nil), String)
141
141
 
142
- # source://racc//lib/racc/parser.rb#189
142
+ # source://racc//lib/racc/parser.rb#187
143
143
  Racc::Parser::Racc_Runtime_Core_Version_R = T.let(T.unsafe(nil), String)
144
144
 
145
- # source://racc//lib/racc/parser.rb#210
145
+ # source://racc//lib/racc/parser.rb#208
146
146
  Racc::Parser::Racc_Runtime_Type = T.let(T.unsafe(nil), String)
147
147
 
148
- # source://racc//lib/racc/parser.rb#188
148
+ # source://racc//lib/racc/parser.rb#186
149
149
  Racc::Parser::Racc_Runtime_Version = T.let(T.unsafe(nil), String)
150
150
 
151
- # source://racc//lib/racc/parser.rb#208
151
+ # source://racc//lib/racc/parser.rb#206
152
152
  Racc::Parser::Racc_YY_Parse_Method = T.let(T.unsafe(nil), Symbol)
153
153
 
154
- # source://racc//lib/racc/parser.rb#183
154
+ # source://racc//lib/racc/parser.rb#181
155
155
  Racc::Racc_No_Extensions = T.let(T.unsafe(nil), FalseClass)
156
156
 
157
- # source://racc//lib/racc/info.rb#14
157
+ # source://racc//lib/racc/info.rb#15
158
158
  Racc::VERSION = T.let(T.unsafe(nil), String)
159
159
 
160
- # source://racc//lib/racc/info.rb#15
160
+ # source://racc//lib/racc/info.rb#16
161
161
  Racc::Version = T.let(T.unsafe(nil), String)