packwerk 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +29 -20
  3. data/.github/workflows/cla.yml +22 -0
  4. data/.rubocop.yml +48 -19
  5. data/Gemfile +7 -2
  6. data/Gemfile.lock +201 -175
  7. data/README.md +1 -1
  8. data/RESOLVING_VIOLATIONS.md +81 -0
  9. data/Rakefile +1 -1
  10. data/USAGE.md +14 -5
  11. data/bin/m +1 -1
  12. data/bin/rake +1 -1
  13. data/bin/rubocop +1 -1
  14. data/bin/srb +1 -1
  15. data/bin/tapioca +1 -1
  16. data/gemfiles/Gemfile-rails-6-0 +1 -1
  17. data/gemfiles/Gemfile-rails-6-1 +22 -0
  18. data/lib/packwerk/application_validator.rb +7 -6
  19. data/lib/packwerk/association_inspector.rb +17 -15
  20. data/lib/packwerk/cache.rb +36 -29
  21. data/lib/packwerk/cli.rb +5 -6
  22. data/lib/packwerk/const_node_inspector.rb +8 -7
  23. data/lib/packwerk/constant_name_inspector.rb +2 -2
  24. data/lib/packwerk/deprecated_references.rb +34 -19
  25. data/lib/packwerk/file_processor.rb +14 -14
  26. data/lib/packwerk/files_for_processing.rb +27 -31
  27. data/lib/packwerk/formatters/offenses_formatter.rb +3 -3
  28. data/lib/packwerk/formatters/progress_formatter.rb +2 -2
  29. data/lib/packwerk/node.rb +1 -294
  30. data/lib/packwerk/node_helpers.rb +335 -0
  31. data/lib/packwerk/node_processor.rb +6 -5
  32. data/lib/packwerk/node_processor_factory.rb +3 -3
  33. data/lib/packwerk/node_visitor.rb +1 -1
  34. data/lib/packwerk/offense_collection.rb +6 -3
  35. data/lib/packwerk/offenses_formatter.rb +2 -2
  36. data/lib/packwerk/package.rb +3 -0
  37. data/lib/packwerk/package_set.rb +2 -0
  38. data/lib/packwerk/parse_run.rb +15 -13
  39. data/lib/packwerk/parsed_constant_definitions.rb +23 -20
  40. data/lib/packwerk/parsers/erb.rb +3 -3
  41. data/lib/packwerk/reference_checking/checkers/checker.rb +16 -3
  42. data/lib/packwerk/reference_checking/checkers/dependency_checker.rb +16 -0
  43. data/lib/packwerk/reference_checking/checkers/privacy_checker.rb +18 -0
  44. data/lib/packwerk/reference_checking/reference_checker.rb +3 -1
  45. data/lib/packwerk/reference_extractor.rb +51 -48
  46. data/lib/packwerk/reference_offense.rb +3 -27
  47. data/lib/packwerk/run_context.rb +3 -3
  48. data/lib/packwerk/spring_command.rb +1 -1
  49. data/lib/packwerk/version.rb +1 -1
  50. data/lib/packwerk.rb +1 -0
  51. data/packwerk.gemspec +4 -12
  52. data/sorbet/rbi/gems/actioncable@7.0.3.1.rbi +2754 -0
  53. data/sorbet/rbi/gems/actionmailbox@7.0.3.1.rbi +1496 -0
  54. data/sorbet/rbi/gems/actionmailer@7.0.3.1.rbi +2362 -0
  55. data/sorbet/rbi/gems/actionpack@7.0.3.1.rbi +19397 -0
  56. data/sorbet/rbi/gems/actiontext@7.0.3.1.rbi +1569 -0
  57. data/sorbet/rbi/gems/actionview@7.0.3.1.rbi +14907 -0
  58. data/sorbet/rbi/gems/activejob@7.0.3.1.rbi +2553 -0
  59. data/sorbet/rbi/gems/activemodel@7.0.3.1.rbi +5999 -0
  60. data/sorbet/rbi/gems/activerecord@7.0.3.1.rbi +37832 -0
  61. data/sorbet/rbi/gems/activestorage@7.0.3.1.rbi +2321 -0
  62. data/sorbet/rbi/gems/activesupport@7.0.3.1.rbi +18818 -0
  63. data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +11722 -0
  64. data/sorbet/rbi/gems/constant_resolver@0.2.0.rbi +90 -0
  65. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1079 -0
  66. data/sorbet/rbi/gems/digest@3.1.0.rbi +189 -0
  67. data/sorbet/rbi/gems/erubi@1.11.0.rbi +140 -0
  68. data/sorbet/rbi/gems/globalid@1.0.0.rbi +572 -0
  69. data/sorbet/rbi/gems/i18n@1.12.0.rbi +2296 -0
  70. data/sorbet/rbi/gems/json@2.6.2.rbi +1548 -0
  71. data/sorbet/rbi/gems/language_server-protocol@3.16.0.3.rbi +8 -0
  72. data/sorbet/rbi/gems/loofah@2.18.0.rbi +877 -0
  73. data/sorbet/rbi/gems/m@1.6.0.rbi +257 -0
  74. data/sorbet/rbi/gems/marcel@1.0.2.rbi +220 -0
  75. data/sorbet/rbi/gems/mini_mime@1.1.2.rbi +170 -0
  76. data/sorbet/rbi/gems/mini_portile2@2.8.0.rbi +8 -0
  77. data/sorbet/rbi/gems/minitest-focus@1.3.1.rbi +104 -0
  78. data/sorbet/rbi/gems/minitest@5.16.2.rbi +2136 -0
  79. data/sorbet/rbi/gems/mocha@1.14.0.rbi +4177 -0
  80. data/sorbet/rbi/gems/net-imap@0.2.3.rbi +2147 -0
  81. data/sorbet/rbi/gems/net-pop@0.1.1.rbi +926 -0
  82. data/sorbet/rbi/gems/net-protocol@0.1.3.rbi +11 -0
  83. data/sorbet/rbi/gems/net-smtp@0.3.1.rbi +1108 -0
  84. data/sorbet/rbi/gems/netrc@0.11.0.rbi +153 -0
  85. data/sorbet/rbi/gems/nio4r@2.5.8.rbi +292 -0
  86. data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +6478 -0
  87. data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  88. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +9029 -0
  89. data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +8 -0
  90. data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
  91. data/sorbet/rbi/gems/racc@1.6.0.rbi +152 -0
  92. data/sorbet/rbi/gems/rack-test@2.0.2.rbi +953 -0
  93. data/sorbet/rbi/gems/rack@2.2.4.rbi +5636 -0
  94. data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +688 -0
  95. data/sorbet/rbi/gems/rails@7.0.3.1.rbi +8 -0
  96. data/sorbet/rbi/gems/railties@7.0.3.1.rbi +3507 -0
  97. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +392 -0
  98. data/sorbet/rbi/gems/rake@13.0.6.rbi +2924 -0
  99. data/sorbet/rbi/gems/rbi@0.0.15.rbi +3007 -0
  100. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +3383 -0
  101. data/sorbet/rbi/gems/rexml@3.2.5.rbi +4714 -0
  102. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +6961 -0
  103. data/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi +2986 -0
  104. data/sorbet/rbi/gems/{rubocop-shopify@2.0.1.rbi → rubocop-shopify@2.9.0.rbi} +4 -4
  105. data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +992 -0
  106. data/sorbet/rbi/gems/rubocop@1.34.1.rbi +51820 -0
  107. data/sorbet/rbi/gems/ruby-lsp@0.2.1.rbi +11 -0
  108. data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +474 -0
  109. data/sorbet/rbi/gems/spoom@1.1.11.rbi +2181 -0
  110. data/sorbet/rbi/gems/spring@4.0.0.rbi +411 -0
  111. data/sorbet/rbi/gems/strscan@3.0.4.rbi +8 -0
  112. data/sorbet/rbi/gems/syntax_tree@3.3.0.rbi +8 -0
  113. data/sorbet/rbi/gems/tapioca@0.9.2.rbi +3181 -0
  114. data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
  115. data/sorbet/rbi/gems/timeout@0.3.0.rbi +142 -0
  116. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +5896 -0
  117. data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +48 -0
  118. data/sorbet/rbi/gems/unparser@0.6.5.rbi +4529 -0
  119. data/sorbet/rbi/gems/webrick@1.7.0.rbi +2582 -0
  120. data/sorbet/rbi/gems/websocket-driver@0.7.5.rbi +993 -0
  121. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +388 -0
  122. data/sorbet/rbi/gems/yard@0.9.28.rbi +18242 -0
  123. data/sorbet/rbi/gems/zeitwerk@2.6.0.rbi +867 -0
  124. data/sorbet/rbi/shims/psych.rbi +5 -0
  125. data/sorbet/tapioca/require.rb +2 -3
  126. metadata +88 -157
  127. data/.github/probots.yml +0 -2
  128. data/library.yml +0 -6
  129. data/service.yml +0 -1
  130. data/sorbet/rbi/gems/actioncable@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -860
  131. data/sorbet/rbi/gems/actionmailbox@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -568
  132. data/sorbet/rbi/gems/actionmailer@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -587
  133. data/sorbet/rbi/gems/actionpack@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -5314
  134. data/sorbet/rbi/gems/actiontext@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -699
  135. data/sorbet/rbi/gems/actionview@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -2515
  136. data/sorbet/rbi/gems/activejob@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -624
  137. data/sorbet/rbi/gems/activemodel@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -1248
  138. data/sorbet/rbi/gems/activerecord@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -8363
  139. data/sorbet/rbi/gems/activestorage@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -876
  140. data/sorbet/rbi/gems/activesupport@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -3987
  141. data/sorbet/rbi/gems/colorize@0.8.1.rbi +0 -40
  142. data/sorbet/rbi/gems/commander@4.5.2.rbi +0 -8
  143. data/sorbet/rbi/gems/concurrent-ruby@1.1.8.rbi +0 -1969
  144. data/sorbet/rbi/gems/constant_resolver@0.1.5.rbi +0 -26
  145. data/sorbet/rbi/gems/erubi@1.10.0.rbi +0 -41
  146. data/sorbet/rbi/gems/globalid@0.4.2.rbi +0 -178
  147. data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -8
  148. data/sorbet/rbi/gems/i18n@1.8.10.rbi +0 -600
  149. data/sorbet/rbi/gems/loofah@2.9.0.rbi +0 -274
  150. data/sorbet/rbi/gems/m@1.5.1.rbi +0 -108
  151. data/sorbet/rbi/gems/marcel@1.0.0.rbi +0 -70
  152. data/sorbet/rbi/gems/mini_mime@1.0.3.rbi +0 -71
  153. data/sorbet/rbi/gems/minitest-focus@1.2.1.rbi +0 -8
  154. data/sorbet/rbi/gems/minitest@5.14.4.rbi +0 -544
  155. data/sorbet/rbi/gems/mocha@1.12.0.rbi +0 -953
  156. data/sorbet/rbi/gems/nio4r@2.5.7.rbi +0 -90
  157. data/sorbet/rbi/gems/nokogiri@1.11.2.rbi +0 -1647
  158. data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -117
  159. data/sorbet/rbi/gems/parlour@6.0.0.rbi +0 -1272
  160. data/sorbet/rbi/gems/parser@3.0.0.0.rbi +0 -1745
  161. data/sorbet/rbi/gems/pry@0.14.0.rbi +0 -8
  162. data/sorbet/rbi/gems/psych@3.3.2.rbi +0 -24
  163. data/sorbet/rbi/gems/racc@1.5.2.rbi +0 -57
  164. data/sorbet/rbi/gems/rack-test@1.1.0.rbi +0 -335
  165. data/sorbet/rbi/gems/rack@2.2.3.rbi +0 -1718
  166. data/sorbet/rbi/gems/rails-html-sanitizer@1.3.0.rbi +0 -213
  167. data/sorbet/rbi/gems/rails@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -8
  168. data/sorbet/rbi/gems/railties@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -880
  169. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -155
  170. data/sorbet/rbi/gems/rake@13.0.3.rbi +0 -837
  171. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -8
  172. data/sorbet/rbi/gems/rexml@3.2.4.rbi +0 -8
  173. data/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi +0 -8
  174. data/sorbet/rbi/gems/rubocop-performance@1.10.2.rbi +0 -8
  175. data/sorbet/rbi/gems/rubocop-sorbet@0.6.1.rbi +0 -8
  176. data/sorbet/rbi/gems/rubocop@1.12.0.rbi +0 -8
  177. data/sorbet/rbi/gems/smart_properties@1.15.0.rbi +0 -168
  178. data/sorbet/rbi/gems/spoom@1.1.0.rbi +0 -1061
  179. data/sorbet/rbi/gems/spring@2.1.1.rbi +0 -160
  180. data/sorbet/rbi/gems/sprockets-rails@3.2.2.rbi +0 -451
  181. data/sorbet/rbi/gems/sprockets@4.0.2.rbi +0 -1133
  182. data/sorbet/rbi/gems/tapioca@0.4.19.rbi +0 -603
  183. data/sorbet/rbi/gems/thor@1.1.0.rbi +0 -893
  184. data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +0 -566
  185. data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +0 -8
  186. data/sorbet/rbi/gems/websocket-driver@0.7.3.rbi +0 -438
  187. data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +0 -177
@@ -1,624 +0,0 @@
1
- # DO NOT EDIT MANUALLY
2
- # This is an autogenerated file for types exported from the `activejob` gem.
3
- # Please instead update this file by running `bin/tapioca sync`.
4
-
5
- # typed: true
6
-
7
- module ActiveJob
8
- extend(::ActiveSupport::Autoload)
9
-
10
- class << self
11
- def gem_version; end
12
- def version; end
13
- end
14
- end
15
-
16
- module ActiveJob::Arguments
17
- extend(::ActiveJob::Arguments)
18
-
19
- def deserialize(arguments); end
20
- def serialize(arguments); end
21
-
22
- private
23
-
24
- def convert_to_global_id_hash(argument); end
25
- def custom_serialized?(hash); end
26
- def deserialize_argument(argument); end
27
- def deserialize_global_id(hash); end
28
- def deserialize_hash(serialized_hash); end
29
- def serialize_argument(argument); end
30
- def serialize_hash(argument); end
31
- def serialize_hash_key(key); end
32
- def serialize_indifferent_hash(indifferent_hash); end
33
- def serialized_global_id?(hash); end
34
- def transform_symbol_keys(hash, symbol_keys); end
35
- end
36
-
37
- ActiveJob::Arguments::OBJECT_SERIALIZER_KEY = T.let(T.unsafe(nil), String)
38
-
39
- class ActiveJob::Base
40
- include(::ActiveJob::Core)
41
- include(::ActiveJob::QueueAdapter)
42
- include(::ActiveJob::QueueName)
43
- include(::ActiveJob::QueuePriority)
44
- include(::ActiveJob::Enqueuing)
45
- include(::ActiveSupport::Rescuable)
46
- include(::ActiveJob::Execution)
47
- include(::ActiveSupport::Callbacks)
48
- include(::ActiveJob::Callbacks)
49
- include(::ActiveJob::Exceptions)
50
- include(::ActiveJob::Instrumentation)
51
- include(::ActiveJob::Logging)
52
- include(::ActiveJob::Timezones)
53
- include(::ActiveJob::Translation)
54
- include(::ActiveJob::TestHelper::TestQueueAdapter)
55
- extend(::ActiveJob::Core::ClassMethods)
56
- extend(::ActiveJob::QueueAdapter::ClassMethods)
57
- extend(::ActiveJob::QueueName::ClassMethods)
58
- extend(::ActiveJob::QueuePriority::ClassMethods)
59
- extend(::ActiveJob::Enqueuing::ClassMethods)
60
- extend(::ActiveSupport::Rescuable::ClassMethods)
61
- extend(::ActiveJob::Execution::ClassMethods)
62
- extend(::ActiveSupport::Callbacks::ClassMethods)
63
- extend(::ActiveSupport::DescendantsTracker)
64
- extend(::ActiveJob::Callbacks::ClassMethods)
65
- extend(::ActiveJob::Exceptions::ClassMethods)
66
- extend(::ActiveJob::TestHelper::TestQueueAdapter::ClassMethods)
67
-
68
- def __callbacks; end
69
- def __callbacks?; end
70
- def _enqueue_callbacks; end
71
- def _perform_callbacks; end
72
- def _run_enqueue_callbacks(&block); end
73
- def _run_perform_callbacks(&block); end
74
- def logger; end
75
- def logger=(val); end
76
- def queue_adapter(*_arg0, &_arg1); end
77
- def queue_name_prefix; end
78
- def queue_name_prefix=(_arg0); end
79
- def queue_name_prefix?; end
80
- def rescue_handlers; end
81
- def rescue_handlers=(_arg0); end
82
- def rescue_handlers?; end
83
-
84
- class << self
85
- def __callbacks; end
86
- def __callbacks=(value); end
87
- def __callbacks?; end
88
- def _enqueue_callbacks; end
89
- def _enqueue_callbacks=(value); end
90
- def _perform_callbacks; end
91
- def _perform_callbacks=(value); end
92
- def _queue_adapter; end
93
- def _queue_adapter=(value); end
94
- def _queue_adapter_name; end
95
- def _queue_adapter_name=(value); end
96
- def _test_adapter; end
97
- def _test_adapter=(value); end
98
- def log_arguments; end
99
- def log_arguments=(value); end
100
- def log_arguments?; end
101
- def logger; end
102
- def logger=(val); end
103
- def priority; end
104
- def priority=(value); end
105
- def priority?; end
106
- def queue_name; end
107
- def queue_name=(value); end
108
- def queue_name?; end
109
- def queue_name_delimiter; end
110
- def queue_name_delimiter=(value); end
111
- def queue_name_delimiter?; end
112
- def queue_name_prefix; end
113
- def queue_name_prefix=(value); end
114
- def queue_name_prefix?; end
115
- def rescue_handlers; end
116
- def rescue_handlers=(value); end
117
- def rescue_handlers?; end
118
- def retry_jitter; end
119
- def retry_jitter=(value); end
120
- def return_false_on_aborted_enqueue(*args, &block); end
121
- def return_false_on_aborted_enqueue=(*args, &block); end
122
- def skip_after_callbacks_if_terminated; end
123
- def skip_after_callbacks_if_terminated=(val); end
124
- end
125
- end
126
-
127
- module ActiveJob::Callbacks
128
- extend(::ActiveSupport::Concern)
129
- extend(::ActiveSupport::Callbacks)
130
-
131
- include(::ActiveSupport::Callbacks)
132
-
133
- mixes_in_class_methods(::ActiveJob::Callbacks::ClassMethods)
134
-
135
-
136
- private
137
-
138
- def halted_callback_hook(_filter, name); end
139
-
140
- class << self
141
- def __callbacks; end
142
- def __callbacks?; end
143
- def _execute_callbacks; end
144
- def _run_execute_callbacks(&block); end
145
- end
146
- end
147
-
148
- module ActiveJob::Callbacks::ClassMethods
149
- def after_enqueue(*filters, &blk); end
150
- def after_perform(*filters, &blk); end
151
- def around_enqueue(*filters, &blk); end
152
- def around_perform(*filters, &blk); end
153
- def before_enqueue(*filters, &blk); end
154
- def before_perform(*filters, &blk); end
155
- def inherited(klass); end
156
- end
157
-
158
- class ActiveJob::ConfiguredJob
159
- def initialize(job_class, options = T.unsafe(nil)); end
160
-
161
- def perform_later(*_arg0, &_arg1); end
162
- def perform_now(*_arg0, &_arg1); end
163
- end
164
-
165
- module ActiveJob::Core
166
- extend(::ActiveSupport::Concern)
167
-
168
- mixes_in_class_methods(::ActiveJob::Core::ClassMethods)
169
-
170
- def initialize(*arguments); end
171
-
172
- def arguments; end
173
- def arguments=(_arg0); end
174
- def deserialize(job_data); end
175
- def enqueue_error; end
176
- def enqueue_error=(_arg0); end
177
- def enqueued_at; end
178
- def enqueued_at=(_arg0); end
179
- def exception_executions; end
180
- def exception_executions=(_arg0); end
181
- def executions; end
182
- def executions=(_arg0); end
183
- def job_id; end
184
- def job_id=(_arg0); end
185
- def locale; end
186
- def locale=(_arg0); end
187
- def priority=(_arg0); end
188
- def provider_job_id; end
189
- def provider_job_id=(_arg0); end
190
- def queue_name=(_arg0); end
191
- def scheduled_at; end
192
- def scheduled_at=(_arg0); end
193
- def serialize; end
194
- def serialized_arguments=(_arg0); end
195
- def successfully_enqueued=(_arg0); end
196
- def successfully_enqueued?; end
197
- def timezone; end
198
- def timezone=(_arg0); end
199
-
200
- private
201
-
202
- def arguments_serialized?; end
203
- def deserialize_arguments(serialized_args); end
204
- def deserialize_arguments_if_needed; end
205
- def serialize_arguments(arguments); end
206
- def serialize_arguments_if_needed(arguments); end
207
- end
208
-
209
- module ActiveJob::Core::ClassMethods
210
- def deserialize(job_data); end
211
- def set(options = T.unsafe(nil)); end
212
- end
213
-
214
- class ActiveJob::DeserializationError < ::StandardError
215
- def initialize; end
216
- end
217
-
218
- class ActiveJob::EnqueueError < ::StandardError
219
- end
220
-
221
- module ActiveJob::Enqueuing
222
- extend(::ActiveSupport::Concern)
223
-
224
- mixes_in_class_methods(::ActiveJob::Enqueuing::ClassMethods)
225
-
226
- def enqueue(options = T.unsafe(nil)); end
227
- end
228
-
229
- module ActiveJob::Enqueuing::ClassMethods
230
- def perform_later(*_arg0, &_arg1); end
231
-
232
- private
233
-
234
- def job_or_instantiate(*args); end
235
- end
236
-
237
- module ActiveJob::Exceptions
238
- extend(::ActiveSupport::Concern)
239
-
240
- mixes_in_class_methods(::ActiveJob::Exceptions::ClassMethods)
241
-
242
- def retry_job(options = T.unsafe(nil)); end
243
-
244
- private
245
-
246
- def determine_delay(seconds_or_duration_or_algorithm:, executions:, jitter: T.unsafe(nil)); end
247
- def determine_jitter_for_delay(delay, jitter); end
248
- def executions_for(exceptions); end
249
- end
250
-
251
- module ActiveJob::Exceptions::ClassMethods
252
- def discard_on(*exceptions); end
253
- def retry_on(*exceptions, wait: T.unsafe(nil), attempts: T.unsafe(nil), queue: T.unsafe(nil), priority: T.unsafe(nil), jitter: T.unsafe(nil)); end
254
- end
255
-
256
- module ActiveJob::Execution
257
- extend(::ActiveSupport::Concern)
258
-
259
- include(::ActiveSupport::Rescuable)
260
-
261
- mixes_in_class_methods(::ActiveJob::Execution::ClassMethods)
262
-
263
- def perform(*_arg0); end
264
- def perform_now; end
265
-
266
- private
267
-
268
- def _perform_job; end
269
- end
270
-
271
- module ActiveJob::Execution::ClassMethods
272
- def execute(job_data); end
273
- def perform_now(*_arg0, &_arg1); end
274
- end
275
-
276
- module ActiveJob::Instrumentation
277
- extend(::ActiveSupport::Concern)
278
-
279
- def perform_now; end
280
-
281
- private
282
-
283
- def _perform_job; end
284
- def halted_callback_hook(*_arg0); end
285
- def instrument(operation, payload = T.unsafe(nil), &block); end
286
- end
287
-
288
- class ActiveJob::LogSubscriber < ::ActiveSupport::LogSubscriber
289
- def discard(event); end
290
- def enqueue(event); end
291
- def enqueue_at(event); end
292
- def enqueue_retry(event); end
293
- def perform(event); end
294
- def perform_start(event); end
295
- def retry_stopped(event); end
296
-
297
- private
298
-
299
- def args_info(job); end
300
- def format(arg); end
301
- def logger; end
302
- def queue_name(event); end
303
- def scheduled_at(event); end
304
- end
305
-
306
- module ActiveJob::Logging
307
- extend(::ActiveSupport::Concern)
308
-
309
- def perform_now; end
310
-
311
- private
312
-
313
- def logger_tagged_by_active_job?; end
314
- def tag_logger(*tags); end
315
- end
316
-
317
- module ActiveJob::QueueAdapter
318
- extend(::ActiveSupport::Concern)
319
-
320
- mixes_in_class_methods(::ActiveJob::QueueAdapter::ClassMethods)
321
- end
322
-
323
- module ActiveJob::QueueAdapter::ClassMethods
324
- def queue_adapter; end
325
- def queue_adapter=(name_or_adapter); end
326
- def queue_adapter_name; end
327
-
328
- private
329
-
330
- def assign_adapter(adapter_name, queue_adapter); end
331
- def queue_adapter?(object); end
332
- end
333
-
334
- ActiveJob::QueueAdapter::ClassMethods::QUEUE_ADAPTER_METHODS = T.let(T.unsafe(nil), Array)
335
-
336
- module ActiveJob::QueueAdapters
337
- extend(::ActiveSupport::Autoload)
338
-
339
- class << self
340
- def lookup(name); end
341
- end
342
- end
343
-
344
- class ActiveJob::QueueAdapters::AsyncAdapter
345
- def initialize(**executor_options); end
346
-
347
- def enqueue(job); end
348
- def enqueue_at(job, timestamp); end
349
- def immediate=(immediate); end
350
- def shutdown(wait: T.unsafe(nil)); end
351
- end
352
-
353
- class ActiveJob::QueueAdapters::AsyncAdapter::JobWrapper
354
- def initialize(job); end
355
-
356
- def perform; end
357
- end
358
-
359
- class ActiveJob::QueueAdapters::AsyncAdapter::Scheduler
360
- def initialize(**options); end
361
-
362
- def enqueue(job, queue_name:); end
363
- def enqueue_at(job, timestamp, queue_name:); end
364
- def executor; end
365
- def immediate; end
366
- def immediate=(_arg0); end
367
- def shutdown(wait: T.unsafe(nil)); end
368
- end
369
-
370
- ActiveJob::QueueAdapters::AsyncAdapter::Scheduler::DEFAULT_EXECUTOR_OPTIONS = T.let(T.unsafe(nil), Hash)
371
-
372
- class ActiveJob::QueueAdapters::InlineAdapter
373
- def enqueue(job); end
374
- def enqueue_at(*_arg0); end
375
- end
376
-
377
- class ActiveJob::QueueAdapters::TestAdapter
378
- def at; end
379
- def at=(_arg0); end
380
- def enqueue(job); end
381
- def enqueue_at(job, timestamp); end
382
- def enqueued_jobs; end
383
- def enqueued_jobs=(_arg0); end
384
- def filter; end
385
- def filter=(_arg0); end
386
- def perform_enqueued_at_jobs; end
387
- def perform_enqueued_at_jobs=(_arg0); end
388
- def perform_enqueued_jobs; end
389
- def perform_enqueued_jobs=(_arg0); end
390
- def performed_jobs; end
391
- def performed_jobs=(_arg0); end
392
- def queue; end
393
- def queue=(_arg0); end
394
- def reject; end
395
- def reject=(_arg0); end
396
-
397
- private
398
-
399
- def filter_as_proc(filter); end
400
- def filtered?(job); end
401
- def filtered_job_class?(job); end
402
- def filtered_queue?(job); end
403
- def filtered_time?(job); end
404
- def job_to_hash(job, extras = T.unsafe(nil)); end
405
- def perform_or_enqueue(perform, job, job_data); end
406
- end
407
-
408
- module ActiveJob::QueueName
409
- extend(::ActiveSupport::Concern)
410
-
411
- mixes_in_class_methods(::ActiveJob::QueueName::ClassMethods)
412
-
413
- def queue_name; end
414
- end
415
-
416
- module ActiveJob::QueueName::ClassMethods
417
- def default_queue_name; end
418
- def default_queue_name=(val); end
419
- def queue_as(part_name = T.unsafe(nil), &block); end
420
- def queue_name_from_part(part_name); end
421
-
422
- class << self
423
- def default_queue_name; end
424
- def default_queue_name=(val); end
425
- end
426
- end
427
-
428
- module ActiveJob::QueuePriority
429
- extend(::ActiveSupport::Concern)
430
-
431
- mixes_in_class_methods(::ActiveJob::QueuePriority::ClassMethods)
432
-
433
- def priority; end
434
- end
435
-
436
- module ActiveJob::QueuePriority::ClassMethods
437
- def default_priority; end
438
- def default_priority=(val); end
439
- def queue_with_priority(priority = T.unsafe(nil), &block); end
440
-
441
- class << self
442
- def default_priority; end
443
- def default_priority=(val); end
444
- end
445
- end
446
-
447
- class ActiveJob::Railtie < ::Rails::Railtie
448
- end
449
-
450
- class ActiveJob::SerializationError < ::ArgumentError
451
- end
452
-
453
- module ActiveJob::Serializers
454
- extend(::ActiveSupport::Autoload)
455
-
456
- def _additional_serializers; end
457
- def _additional_serializers=(val); end
458
-
459
- class << self
460
- def _additional_serializers; end
461
- def _additional_serializers=(val); end
462
- def add_serializers(*new_serializers); end
463
- def deserialize(argument); end
464
- def serialize(argument); end
465
- def serializers; end
466
- end
467
- end
468
-
469
- class ActiveJob::Serializers::DateSerializer < ::ActiveJob::Serializers::ObjectSerializer
470
- def deserialize(hash); end
471
- def serialize(date); end
472
-
473
- private
474
-
475
- def klass; end
476
- end
477
-
478
- class ActiveJob::Serializers::DateTimeSerializer < ::ActiveJob::Serializers::TimeObjectSerializer
479
- def deserialize(hash); end
480
-
481
- private
482
-
483
- def klass; end
484
- end
485
-
486
- class ActiveJob::Serializers::DurationSerializer < ::ActiveJob::Serializers::ObjectSerializer
487
- def deserialize(hash); end
488
- def serialize(duration); end
489
-
490
- private
491
-
492
- def klass; end
493
- end
494
-
495
- class ActiveJob::Serializers::ModuleSerializer < ::ActiveJob::Serializers::ObjectSerializer
496
- def deserialize(hash); end
497
- def serialize(constant); end
498
-
499
- private
500
-
501
- def klass; end
502
- end
503
-
504
- class ActiveJob::Serializers::ObjectSerializer
505
- include(::Singleton)
506
- extend(::Singleton::SingletonClassMethods)
507
-
508
- def deserialize(json); end
509
- def serialize(hash); end
510
- def serialize?(argument); end
511
-
512
- private
513
-
514
- def klass; end
515
-
516
- class << self
517
- def deserialize(*_arg0, &_arg1); end
518
- def serialize(*_arg0, &_arg1); end
519
- def serialize?(*_arg0, &_arg1); end
520
- end
521
- end
522
-
523
- class ActiveJob::Serializers::SymbolSerializer < ::ActiveJob::Serializers::ObjectSerializer
524
- def deserialize(argument); end
525
- def serialize(argument); end
526
-
527
- private
528
-
529
- def klass; end
530
- end
531
-
532
- class ActiveJob::Serializers::TimeObjectSerializer < ::ActiveJob::Serializers::ObjectSerializer
533
- def serialize(time); end
534
- end
535
-
536
- ActiveJob::Serializers::TimeObjectSerializer::NANO_PRECISION = T.let(T.unsafe(nil), Integer)
537
-
538
- class ActiveJob::Serializers::TimeSerializer < ::ActiveJob::Serializers::TimeObjectSerializer
539
- def deserialize(hash); end
540
-
541
- private
542
-
543
- def klass; end
544
- end
545
-
546
- class ActiveJob::Serializers::TimeWithZoneSerializer < ::ActiveJob::Serializers::TimeObjectSerializer
547
- def deserialize(hash); end
548
-
549
- private
550
-
551
- def klass; end
552
- end
553
-
554
- class ActiveJob::TestCase < ::ActiveSupport::TestCase
555
- include(::ActiveJob::TestHelper)
556
- end
557
-
558
- module ActiveJob::TestHelper
559
- include(::ActiveSupport::Testing::Assertions)
560
-
561
- def after_teardown; end
562
- def assert_enqueued_jobs(number, only: T.unsafe(nil), except: T.unsafe(nil), queue: T.unsafe(nil), &block); end
563
- def assert_enqueued_with(job: T.unsafe(nil), args: T.unsafe(nil), at: T.unsafe(nil), queue: T.unsafe(nil), &block); end
564
- def assert_no_enqueued_jobs(only: T.unsafe(nil), except: T.unsafe(nil), queue: T.unsafe(nil), &block); end
565
- def assert_no_performed_jobs(only: T.unsafe(nil), except: T.unsafe(nil), queue: T.unsafe(nil), &block); end
566
- def assert_performed_jobs(number, only: T.unsafe(nil), except: T.unsafe(nil), queue: T.unsafe(nil), &block); end
567
- def assert_performed_with(job: T.unsafe(nil), args: T.unsafe(nil), at: T.unsafe(nil), queue: T.unsafe(nil), &block); end
568
- def before_setup; end
569
- def enqueued_jobs(*_arg0, &_arg1); end
570
- def enqueued_jobs=(arg); end
571
- def perform_enqueued_jobs(only: T.unsafe(nil), except: T.unsafe(nil), queue: T.unsafe(nil), at: T.unsafe(nil), &block); end
572
- def performed_jobs(*_arg0, &_arg1); end
573
- def performed_jobs=(arg); end
574
- def queue_adapter; end
575
- def queue_adapter_for_test; end
576
-
577
- private
578
-
579
- def clear_enqueued_jobs; end
580
- def clear_performed_jobs; end
581
- def deserialize_args_for_assertion(job); end
582
- def enqueued_jobs_with(only: T.unsafe(nil), except: T.unsafe(nil), queue: T.unsafe(nil), at: T.unsafe(nil), &block); end
583
- def filter_as_proc(filter); end
584
- def flush_enqueued_jobs(only: T.unsafe(nil), except: T.unsafe(nil), queue: T.unsafe(nil), at: T.unsafe(nil)); end
585
- def instantiate_job(payload); end
586
- def jobs_with(jobs, only: T.unsafe(nil), except: T.unsafe(nil), queue: T.unsafe(nil), at: T.unsafe(nil)); end
587
- def performed_jobs_with(only: T.unsafe(nil), except: T.unsafe(nil), queue: T.unsafe(nil), &block); end
588
- def prepare_args_for_assertion(args); end
589
- def queue_adapter_changed_jobs; end
590
- def validate_option(only: T.unsafe(nil), except: T.unsafe(nil)); end
591
- end
592
-
593
- module ActiveJob::TestHelper::TestQueueAdapter
594
- extend(::ActiveSupport::Concern)
595
-
596
- mixes_in_class_methods(::ActiveJob::TestHelper::TestQueueAdapter::ClassMethods)
597
- end
598
-
599
- module ActiveJob::TestHelper::TestQueueAdapter::ClassMethods
600
- def disable_test_adapter; end
601
- def enable_test_adapter(test_adapter); end
602
- def queue_adapter; end
603
- end
604
-
605
- module ActiveJob::Timezones
606
- extend(::ActiveSupport::Concern)
607
- end
608
-
609
- module ActiveJob::Translation
610
- extend(::ActiveSupport::Concern)
611
- end
612
-
613
- module ActiveJob::VERSION
614
- end
615
-
616
- ActiveJob::VERSION::MAJOR = T.let(T.unsafe(nil), Integer)
617
-
618
- ActiveJob::VERSION::MINOR = T.let(T.unsafe(nil), Integer)
619
-
620
- ActiveJob::VERSION::PRE = T.let(T.unsafe(nil), String)
621
-
622
- ActiveJob::VERSION::STRING = T.let(T.unsafe(nil), String)
623
-
624
- ActiveJob::VERSION::TINY = T.let(T.unsafe(nil), Integer)