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,880 +0,0 @@
1
- # DO NOT EDIT MANUALLY
2
- # This is an autogenerated file for types exported from the `railties` gem.
3
- # Please instead update this file by running `bin/tapioca sync`.
4
-
5
- # typed: true
6
-
7
- module Rails
8
- extend(::ActiveSupport::Autoload)
9
- extend(::ActiveSupport::Benchmarkable)
10
-
11
- class << self
12
- def app_class; end
13
- def app_class=(_arg0); end
14
- def application; end
15
- def application=(_arg0); end
16
- def autoloaders; end
17
- def backtrace_cleaner; end
18
- def cache; end
19
- def cache=(_arg0); end
20
- def configuration; end
21
- def env; end
22
- def env=(environment); end
23
- def gem_version; end
24
- def groups(*groups); end
25
- def initialize!(*_arg0, &_arg1); end
26
- def initialized?(*_arg0, &_arg1); end
27
- def logger; end
28
- def logger=(_arg0); end
29
- def public_path; end
30
- def root; end
31
- def version; end
32
- end
33
- end
34
-
35
- class Rails::Application < ::Rails::Engine
36
- def initialize(initial_variable_values = T.unsafe(nil), &block); end
37
-
38
- def asset_precompiled?(logical_path); end
39
- def assets; end
40
- def assets=(_arg0); end
41
- def assets_manifest; end
42
- def assets_manifest=(_arg0); end
43
- def build_middleware_stack; end
44
- def config; end
45
- def config=(_arg0); end
46
- def config_for(name, env: T.unsafe(nil)); end
47
- def console(&blk); end
48
- def credentials; end
49
- def credentials=(_arg0); end
50
- def default_url_options(*_arg0, &_arg1); end
51
- def default_url_options=(arg); end
52
- def eager_load!; end
53
- def encrypted(path, key_path: T.unsafe(nil), env_key: T.unsafe(nil)); end
54
- def env_config; end
55
- def executor; end
56
- def generators(&blk); end
57
- def helpers_paths; end
58
- def initialize!(group = T.unsafe(nil)); end
59
- def initialized?; end
60
- def initializer(name, opts = T.unsafe(nil), &block); end
61
- def initializers; end
62
- def isolate_namespace(mod); end
63
- def key_generator; end
64
- def message_verifier(verifier_name); end
65
- def migration_railties; end
66
- def precompiled_assets(clear_cache = T.unsafe(nil)); end
67
- def rake_tasks(&block); end
68
- def reload_routes!; end
69
- def reloader; end
70
- def reloaders; end
71
- def require_environment!; end
72
- def routes_reloader; end
73
- def run_load_hooks!; end
74
- def runner(&blk); end
75
- def sandbox; end
76
- def sandbox=(_arg0); end
77
- def sandbox?; end
78
- def secret_key_base; end
79
- def secrets; end
80
- def secrets=(_arg0); end
81
- def server(&blk); end
82
- def to_app; end
83
- def watchable_args; end
84
-
85
- protected
86
-
87
- def default_middleware_stack; end
88
- def ordered_railties; end
89
- def railties_initializers(current); end
90
- def run_console_blocks(app); end
91
- def run_generators_blocks(app); end
92
- def run_runner_blocks(app); end
93
- def run_server_blocks(app); end
94
- def run_tasks_blocks(app); end
95
- def validate_secret_key_base(secret_key_base); end
96
-
97
- private
98
-
99
- def build_middleware; end
100
- def build_request(env); end
101
- def coerce_same_site_protection(protection); end
102
- def generate_development_secret; end
103
-
104
- class << self
105
- def add_lib_to_load_path!(root); end
106
- def create(initial_variable_values = T.unsafe(nil), &block); end
107
- def find_root(from); end
108
- def inherited(base); end
109
- def instance; end
110
- end
111
- end
112
-
113
- module Rails::Application::Bootstrap
114
- include(::Rails::Initializable)
115
- extend(::Rails::Initializable::ClassMethods)
116
- end
117
-
118
- class Rails::Application::Configuration < ::Rails::Engine::Configuration
119
- def initialize(*_arg0); end
120
-
121
- def add_autoload_paths_to_load_path; end
122
- def add_autoload_paths_to_load_path=(_arg0); end
123
- def allow_concurrency; end
124
- def allow_concurrency=(_arg0); end
125
- def annotations; end
126
- def api_only; end
127
- def api_only=(value); end
128
- def asset_host; end
129
- def asset_host=(_arg0); end
130
- def autoflush_log; end
131
- def autoflush_log=(_arg0); end
132
- def beginning_of_week; end
133
- def beginning_of_week=(_arg0); end
134
- def cache_classes; end
135
- def cache_classes=(_arg0); end
136
- def cache_store; end
137
- def cache_store=(_arg0); end
138
- def colorize_logging; end
139
- def colorize_logging=(val); end
140
- def consider_all_requests_local; end
141
- def consider_all_requests_local=(_arg0); end
142
- def console; end
143
- def console=(_arg0); end
144
- def content_security_policy(&block); end
145
- def content_security_policy_nonce_directives; end
146
- def content_security_policy_nonce_directives=(_arg0); end
147
- def content_security_policy_nonce_generator; end
148
- def content_security_policy_nonce_generator=(_arg0); end
149
- def content_security_policy_report_only; end
150
- def content_security_policy_report_only=(_arg0); end
151
- def credentials; end
152
- def credentials=(_arg0); end
153
- def database_configuration; end
154
- def debug_exception_response_format; end
155
- def debug_exception_response_format=(_arg0); end
156
- def default_log_file; end
157
- def disable_sandbox; end
158
- def disable_sandbox=(_arg0); end
159
- def eager_load; end
160
- def eager_load=(_arg0); end
161
- def enable_dependency_loading; end
162
- def enable_dependency_loading=(_arg0); end
163
- def encoding; end
164
- def encoding=(value); end
165
- def exceptions_app; end
166
- def exceptions_app=(_arg0); end
167
- def file_watcher; end
168
- def file_watcher=(_arg0); end
169
- def filter_parameters; end
170
- def filter_parameters=(_arg0); end
171
- def filter_redirect; end
172
- def filter_redirect=(_arg0); end
173
- def force_ssl; end
174
- def force_ssl=(_arg0); end
175
- def helpers_paths; end
176
- def helpers_paths=(_arg0); end
177
- def host_authorization; end
178
- def host_authorization=(_arg0); end
179
- def hosts; end
180
- def hosts=(_arg0); end
181
- def load_database_yaml; end
182
- def load_defaults(target_version); end
183
- def loaded_config_version; end
184
- def log_formatter; end
185
- def log_formatter=(_arg0); end
186
- def log_level; end
187
- def log_level=(_arg0); end
188
- def log_tags; end
189
- def log_tags=(_arg0); end
190
- def logger; end
191
- def logger=(_arg0); end
192
- def paths; end
193
- def permissions_policy(&block); end
194
- def public_file_server; end
195
- def public_file_server=(_arg0); end
196
- def railties_order; end
197
- def railties_order=(_arg0); end
198
- def rake_eager_load; end
199
- def rake_eager_load=(_arg0); end
200
- def read_encrypted_secrets; end
201
- def read_encrypted_secrets=(_arg0); end
202
- def relative_url_root; end
203
- def relative_url_root=(_arg0); end
204
- def reload_classes_only_on_change; end
205
- def reload_classes_only_on_change=(_arg0); end
206
- def require_master_key; end
207
- def require_master_key=(_arg0); end
208
- def secret_key_base; end
209
- def secret_key_base=(_arg0); end
210
- def session_options; end
211
- def session_options=(_arg0); end
212
- def session_store(new_session_store = T.unsafe(nil), **options); end
213
- def session_store?; end
214
- def ssl_options; end
215
- def ssl_options=(_arg0); end
216
- def time_zone; end
217
- def time_zone=(_arg0); end
218
- def x; end
219
- def x=(_arg0); end
220
-
221
- private
222
-
223
- def credentials_available_for_current_env?; end
224
- def default_credentials_content_path; end
225
- def default_credentials_key_path; end
226
- end
227
-
228
- class Rails::Application::Configuration::Custom
229
- def initialize; end
230
-
231
- def method_missing(method, *args); end
232
-
233
- private
234
-
235
- def respond_to_missing?(symbol, *_arg1); end
236
- end
237
-
238
- class Rails::Application::DefaultMiddlewareStack
239
- def initialize(app, config, paths); end
240
-
241
- def app; end
242
- def build_stack; end
243
- def config; end
244
- def paths; end
245
-
246
- private
247
-
248
- def load_rack_cache; end
249
- def show_exceptions_app; end
250
- end
251
-
252
- module Rails::Application::Finisher
253
- include(::Rails::Initializable)
254
- extend(::Rails::Initializable::ClassMethods)
255
- end
256
-
257
- module Rails::Application::Finisher::InterlockHook
258
- class << self
259
- def complete(_state); end
260
- def run; end
261
- end
262
- end
263
-
264
- class Rails::Application::Finisher::MutexHook
265
- def initialize(mutex = T.unsafe(nil)); end
266
-
267
- def complete(_state); end
268
- def run; end
269
- end
270
-
271
- Rails::Application::INITIAL_VARIABLES = T.let(T.unsafe(nil), Array)
272
-
273
- class Rails::Application::RoutesReloader
274
- include(::ActiveSupport::Callbacks)
275
- extend(::ActiveSupport::Callbacks::ClassMethods)
276
- extend(::ActiveSupport::DescendantsTracker)
277
-
278
- def initialize; end
279
-
280
- def __callbacks; end
281
- def __callbacks?; end
282
- def eager_load; end
283
- def eager_load=(_arg0); end
284
- def execute(*_arg0, &_arg1); end
285
- def execute_if_updated(*_arg0, &_arg1); end
286
- def external_routes; end
287
- def paths; end
288
- def reload!; end
289
- def route_sets; end
290
- def run_after_load_paths=(_arg0); end
291
- def updated?(*_arg0, &_arg1); end
292
-
293
- private
294
-
295
- def clear!; end
296
- def finalize!; end
297
- def load_paths; end
298
- def revert; end
299
- def run_after_load_paths; end
300
- def updater; end
301
-
302
- class << self
303
- def __callbacks; end
304
- def __callbacks=(value); end
305
- def __callbacks?; end
306
- end
307
- end
308
-
309
- class Rails::ApplicationController < ::ActionController::Base
310
-
311
- private
312
-
313
- def _layout(lookup_context, formats); end
314
- def disable_content_security_policy_nonce!; end
315
- def local_request?; end
316
- def require_local!; end
317
-
318
- class << self
319
- def __callbacks; end
320
- def _layout; end
321
- def _layout_conditions; end
322
- def middleware_stack; end
323
- end
324
- end
325
-
326
- module Rails::Autoloaders
327
- extend(::Enumerable)
328
-
329
- class << self
330
- def each; end
331
- def log!; end
332
- def logger=(logger); end
333
- def main; end
334
- def once; end
335
- def zeitwerk_enabled?; end
336
- end
337
- end
338
-
339
- module Rails::Configuration
340
- end
341
-
342
- class Rails::Configuration::Generators
343
- def initialize; end
344
-
345
- def after_generate(&block); end
346
- def after_generate_callbacks; end
347
- def aliases; end
348
- def aliases=(_arg0); end
349
- def api_only; end
350
- def api_only=(_arg0); end
351
- def colorize_logging; end
352
- def colorize_logging=(_arg0); end
353
- def fallbacks; end
354
- def fallbacks=(_arg0); end
355
- def hidden_namespaces; end
356
- def hide_namespace(namespace); end
357
- def method_missing(method, *args); end
358
- def options; end
359
- def options=(_arg0); end
360
- def templates; end
361
- def templates=(_arg0); end
362
-
363
- private
364
-
365
- def initialize_copy(source); end
366
- end
367
-
368
- class Rails::Configuration::MiddlewareStackProxy
369
- def initialize(operations = T.unsafe(nil), delete_operations = T.unsafe(nil)); end
370
-
371
- def +(other); end
372
- def delete(*_arg0, &_arg1); end
373
- def insert(*_arg0, &_arg1); end
374
- def insert_after(*_arg0, &_arg1); end
375
- def insert_before(*_arg0, &_arg1); end
376
- def merge_into(other); end
377
- def move(*_arg0, &_arg1); end
378
- def move_after(*_arg0, &_arg1); end
379
- def move_before(*_arg0, &_arg1); end
380
- def swap(*_arg0, &_arg1); end
381
- def unshift(*_arg0, &_arg1); end
382
- def use(*_arg0, &_arg1); end
383
-
384
- protected
385
-
386
- def delete_operations; end
387
- def operations; end
388
- end
389
-
390
- class Rails::Engine < ::Rails::Railtie
391
- include(::ActiveSupport::Callbacks)
392
- extend(::ActiveSupport::Callbacks::ClassMethods)
393
-
394
- def initialize; end
395
-
396
- def __callbacks; end
397
- def __callbacks?; end
398
- def _load_seed_callbacks; end
399
- def _run_load_seed_callbacks(&block); end
400
- def app; end
401
- def call(env); end
402
- def config; end
403
- def eager_load!; end
404
- def endpoint; end
405
- def engine_name(*_arg0, &_arg1); end
406
- def env_config; end
407
- def helpers; end
408
- def helpers_paths; end
409
- def isolated?(*_arg0, &_arg1); end
410
- def load_console(app = T.unsafe(nil)); end
411
- def load_generators(app = T.unsafe(nil)); end
412
- def load_runner(app = T.unsafe(nil)); end
413
- def load_seed; end
414
- def load_server(app = T.unsafe(nil)); end
415
- def load_tasks(app = T.unsafe(nil)); end
416
- def middleware(*_arg0, &_arg1); end
417
- def paths(*_arg0, &_arg1); end
418
- def railties; end
419
- def root(*_arg0, &_arg1); end
420
- def routes(&block); end
421
- def routes?; end
422
-
423
- protected
424
-
425
- def run_tasks_blocks(*_arg0); end
426
-
427
- private
428
-
429
- def _all_autoload_once_paths; end
430
- def _all_autoload_paths; end
431
- def _all_load_paths(add_autoload_paths_to_load_path); end
432
- def build_middleware; end
433
- def build_request(env); end
434
- def default_middleware_stack; end
435
- def has_migrations?; end
436
- def load_config_initializer(initializer); end
437
-
438
- class << self
439
- def __callbacks; end
440
- def __callbacks=(value); end
441
- def __callbacks?; end
442
- def _load_seed_callbacks; end
443
- def _load_seed_callbacks=(value); end
444
- def called_from; end
445
- def called_from=(_arg0); end
446
- def eager_load!(*_arg0, &_arg1); end
447
- def endpoint(endpoint = T.unsafe(nil)); end
448
- def engine_name(name = T.unsafe(nil)); end
449
- def find(path); end
450
- def find_root(from); end
451
- def find_root_with_flag(flag, root_path, default = T.unsafe(nil)); end
452
- def inherited(base); end
453
- def isolate_namespace(mod); end
454
- def isolated; end
455
- def isolated=(_arg0); end
456
- def isolated?; end
457
- end
458
- end
459
-
460
- class Rails::Engine::Configuration < ::Rails::Railtie::Configuration
461
- def initialize(root = T.unsafe(nil)); end
462
-
463
- def autoload_once_paths; end
464
- def autoload_once_paths=(_arg0); end
465
- def autoload_paths; end
466
- def autoload_paths=(_arg0); end
467
- def eager_load_paths; end
468
- def eager_load_paths=(_arg0); end
469
- def generators; end
470
- def javascript_path; end
471
- def javascript_path=(_arg0); end
472
- def middleware; end
473
- def middleware=(_arg0); end
474
- def paths; end
475
- def root; end
476
- def root=(value); end
477
- end
478
-
479
- class Rails::Engine::Railties
480
- include(::Enumerable)
481
-
482
- def initialize; end
483
-
484
- def -(others); end
485
- def _all; end
486
- def each(*args, &block); end
487
- end
488
-
489
- module Rails::Info
490
- def properties; end
491
- def properties=(val); end
492
-
493
- class << self
494
- def inspect; end
495
- def properties; end
496
- def properties=(val); end
497
- def property(name, value = T.unsafe(nil)); end
498
- def to_html; end
499
- def to_s; end
500
- end
501
- end
502
-
503
- class Rails::InfoController < ::Rails::ApplicationController
504
- def index; end
505
- def properties; end
506
- def routes; end
507
-
508
- private
509
-
510
- def _layout(lookup_context, formats); end
511
- def _layout_from_proc; end
512
- def match_route; end
513
- def with_leading_slash(path); end
514
-
515
- class << self
516
- def __callbacks; end
517
- def _layout; end
518
- def _layout_conditions; end
519
- def middleware_stack; end
520
- end
521
- end
522
-
523
- module Rails::Initializable
524
- mixes_in_class_methods(::Rails::Initializable::ClassMethods)
525
-
526
- def initializers; end
527
- def run_initializers(group = T.unsafe(nil), *args); end
528
-
529
- class << self
530
- def included(base); end
531
- end
532
- end
533
-
534
- module Rails::Initializable::ClassMethods
535
- def initializer(name, opts = T.unsafe(nil), &blk); end
536
- def initializers; end
537
- def initializers_chain; end
538
- def initializers_for(binding); end
539
- end
540
-
541
- class Rails::Initializable::Collection < ::Array
542
- include(::TSort)
543
-
544
- def +(other); end
545
- def tsort_each_child(initializer, &block); end
546
- def tsort_each_node; end
547
- end
548
-
549
- class Rails::Initializable::Initializer
550
- def initialize(name, context, options, &block); end
551
-
552
- def after; end
553
- def before; end
554
- def belongs_to?(group); end
555
- def bind(context); end
556
- def block; end
557
- def context_class; end
558
- def name; end
559
- def run(*args); end
560
- end
561
-
562
- module Rails::LineFiltering
563
- def run(reporter, options = T.unsafe(nil)); end
564
- end
565
-
566
- class Rails::MailersController < ::Rails::ApplicationController
567
- def index; end
568
- def preview; end
569
-
570
- private
571
-
572
- def _layout(lookup_context, formats); end
573
- def find_part(format); end
574
- def find_preferred_part(*formats); end
575
- def find_preview; end
576
- def locale_query(locale); end
577
- def part_query(mime_type); end
578
- def set_locale; end
579
- def show_previews?; end
580
-
581
- class << self
582
- def __callbacks; end
583
- def _helper_methods; end
584
- def middleware_stack; end
585
- end
586
- end
587
-
588
- module Rails::MailersController::HelperMethods
589
- include(::ActionController::Base::HelperMethods)
590
-
591
- def locale_query(*args, &block); end
592
- def part_query(*args, &block); end
593
- end
594
-
595
- module Rails::Paths
596
- end
597
-
598
- class Rails::Paths::Path
599
- include(::Enumerable)
600
-
601
- def initialize(root, current, paths, options = T.unsafe(nil)); end
602
-
603
- def <<(path); end
604
- def absolute_current; end
605
- def autoload!; end
606
- def autoload?; end
607
- def autoload_once!; end
608
- def autoload_once?; end
609
- def children; end
610
- def concat(paths); end
611
- def each(&block); end
612
- def eager_load!; end
613
- def eager_load?; end
614
- def existent; end
615
- def existent_directories; end
616
- def expanded; end
617
- def extensions; end
618
- def first; end
619
- def glob; end
620
- def glob=(_arg0); end
621
- def last; end
622
- def load_path!; end
623
- def load_path?; end
624
- def paths; end
625
- def push(path); end
626
- def skip_autoload!; end
627
- def skip_autoload_once!; end
628
- def skip_eager_load!; end
629
- def skip_load_path!; end
630
- def to_a; end
631
- def to_ary; end
632
- def unshift(*paths); end
633
-
634
- private
635
-
636
- def files_in(path); end
637
- end
638
-
639
- class Rails::Paths::Root
640
- def initialize(path); end
641
-
642
- def [](path); end
643
- def []=(path, value); end
644
- def add(path, options = T.unsafe(nil)); end
645
- def all_paths; end
646
- def autoload_once; end
647
- def autoload_paths; end
648
- def eager_load; end
649
- def keys; end
650
- def load_paths; end
651
- def path; end
652
- def path=(_arg0); end
653
- def values; end
654
- def values_at(*list); end
655
-
656
- private
657
-
658
- def filter_by(&block); end
659
- end
660
-
661
- module Rails::Rack
662
- end
663
-
664
- class Rails::Rack::Logger < ::ActiveSupport::LogSubscriber
665
- def initialize(app, taggers = T.unsafe(nil)); end
666
-
667
- def call(env); end
668
-
669
- private
670
-
671
- def call_app(request, env); end
672
- def compute_tags(request); end
673
- def finish(request); end
674
- def logger; end
675
- def started_request_message(request); end
676
- end
677
-
678
- class Rails::Railtie
679
- include(::Rails::Initializable)
680
- extend(::ActiveSupport::DescendantsTracker)
681
- extend(::Rails::Initializable::ClassMethods)
682
-
683
- def initialize; end
684
-
685
- def config; end
686
- def configure(&block); end
687
- def railtie_name(*_arg0, &_arg1); end
688
- def railtie_namespace; end
689
-
690
- protected
691
-
692
- def run_console_blocks(app); end
693
- def run_generators_blocks(app); end
694
- def run_runner_blocks(app); end
695
- def run_server_blocks(app); end
696
- def run_tasks_blocks(app); end
697
-
698
- private
699
-
700
- def each_registered_block(type, &block); end
701
-
702
- class << self
703
- def abstract_railtie?; end
704
- def config(*_arg0, &_arg1); end
705
- def configure(&block); end
706
- def console(&blk); end
707
- def generators(&blk); end
708
- def instance; end
709
- def railtie_name(name = T.unsafe(nil)); end
710
- def rake_tasks(&blk); end
711
- def runner(&blk); end
712
- def server(&blk); end
713
- def subclasses; end
714
-
715
- private
716
-
717
- def generate_railtie_name(string); end
718
- def method_missing(name, *args, &block); end
719
- def register_block_for(type, &blk); end
720
- def respond_to_missing?(name, _); end
721
- end
722
- end
723
-
724
- Rails::Railtie::ABSTRACT_RAILTIES = T.let(T.unsafe(nil), Array)
725
-
726
- class Rails::Railtie::Configuration
727
- def initialize; end
728
-
729
- def after_initialize(&block); end
730
- def app_generators; end
731
- def app_middleware; end
732
- def before_configuration(&block); end
733
- def before_eager_load(&block); end
734
- def before_initialize(&block); end
735
- def eager_load_namespaces; end
736
- def respond_to?(name, include_private = T.unsafe(nil)); end
737
- def to_prepare(&blk); end
738
- def to_prepare_blocks; end
739
- def watchable_dirs; end
740
- def watchable_files; end
741
-
742
- private
743
-
744
- def method_missing(name, *args, &blk); end
745
-
746
- class << self
747
- def eager_load_namespaces; end
748
- end
749
- end
750
-
751
- class Rails::Secrets
752
- class << self
753
- def decrypt(data); end
754
- def encrypt(data); end
755
- def key; end
756
- def parse(paths, env:); end
757
- def read; end
758
- def read_for_editing(&block); end
759
- def root=(_arg0); end
760
- def write(contents); end
761
-
762
- private
763
-
764
- def encryptor; end
765
- def handle_missing_key; end
766
- def key_path; end
767
- def path; end
768
- def preprocess(path); end
769
- def read_key_file; end
770
- def writing(contents); end
771
- end
772
- end
773
-
774
- class Rails::Secrets::MissingKeyError < ::RuntimeError
775
- def initialize; end
776
- end
777
-
778
- class Rails::SourceAnnotationExtractor
779
- def initialize(tag); end
780
-
781
- def display(results, options = T.unsafe(nil)); end
782
- def extract_annotations_from(file, pattern); end
783
- def find(dirs); end
784
- def find_in(dir); end
785
- def tag; end
786
-
787
- class << self
788
- def enumerate(tag = T.unsafe(nil), options = T.unsafe(nil)); end
789
- end
790
- end
791
-
792
- class Rails::SourceAnnotationExtractor::Annotation < ::Struct
793
- def to_s(options = T.unsafe(nil)); end
794
-
795
- class << self
796
- def directories; end
797
- def extensions; end
798
- def register_directories(*dirs); end
799
- def register_extensions(*exts, &block); end
800
- def register_tags(*additional_tags); end
801
- def tags; end
802
- end
803
- end
804
-
805
- module Rails::TestUnit
806
- end
807
-
808
- class Rails::TestUnit::CompositeFilter
809
- def initialize(runnable, filter, patterns); end
810
-
811
- def ===(method); end
812
- def named_filter; end
813
-
814
- private
815
-
816
- def derive_line_filters(patterns); end
817
- def derive_named_filter(filter); end
818
- end
819
-
820
- class Rails::TestUnit::Filter
821
- def initialize(runnable, file, line); end
822
-
823
- def ===(method); end
824
-
825
- private
826
-
827
- def definition_for(method); end
828
- end
829
-
830
- class Rails::TestUnit::Runner
831
- def filters; end
832
-
833
- class << self
834
- def attach_before_load_options(opts); end
835
- def compose_filter(runnable, filter); end
836
- def filters; end
837
- def load_tests(argv); end
838
- def parse_options(argv); end
839
- def rake_run(argv = T.unsafe(nil)); end
840
- def run(argv = T.unsafe(nil)); end
841
-
842
- private
843
-
844
- def default_test_exclude_glob; end
845
- def default_test_glob; end
846
- def extract_filters(argv); end
847
- def path_argument?(arg); end
848
- def regexp_filter?(arg); end
849
- end
850
- end
851
-
852
- class Rails::TestUnitRailtie < ::Rails::Railtie
853
- end
854
-
855
- module Rails::VERSION
856
- end
857
-
858
- Rails::VERSION::MAJOR = T.let(T.unsafe(nil), Integer)
859
-
860
- Rails::VERSION::MINOR = T.let(T.unsafe(nil), Integer)
861
-
862
- Rails::VERSION::PRE = T.let(T.unsafe(nil), String)
863
-
864
- Rails::VERSION::STRING = T.let(T.unsafe(nil), String)
865
-
866
- Rails::VERSION::TINY = T.let(T.unsafe(nil), Integer)
867
-
868
- class Rails::WelcomeController < ::Rails::ApplicationController
869
- def index; end
870
-
871
- private
872
-
873
- def _layout(lookup_context, formats); end
874
-
875
- class << self
876
- def _layout; end
877
- def _layout_conditions; end
878
- def middleware_stack; end
879
- end
880
- end