rails_type_id 0.1.0

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 (124) hide show
  1. checksums.yaml +7 -0
  2. data/.rubocop.yml +25 -0
  3. data/.ruby-version +1 -0
  4. data/README.md +46 -0
  5. data/Rakefile +16 -0
  6. data/lib/rails_type_id/concern.rb +129 -0
  7. data/lib/rails_type_id/require.rb +6 -0
  8. data/lib/rails_type_id/test_helper.rb +16 -0
  9. data/lib/rails_type_id/version.rb +6 -0
  10. data/lib/rails_type_id.rb +9 -0
  11. data/lib/tapioca/dsl/compilers/rails_type_id_compiler.rb +49 -0
  12. data/sig/rails_type_id.rbs +4 -0
  13. data/sorbet/config +4 -0
  14. data/sorbet/rbi/annotations/.gitattributes +1 -0
  15. data/sorbet/rbi/annotations/actionmailer.rbi +10 -0
  16. data/sorbet/rbi/annotations/actionpack.rbi +430 -0
  17. data/sorbet/rbi/annotations/actionview.rbi +75 -0
  18. data/sorbet/rbi/annotations/activejob.rbi +44 -0
  19. data/sorbet/rbi/annotations/activemodel.rbi +89 -0
  20. data/sorbet/rbi/annotations/activerecord.rbi +98 -0
  21. data/sorbet/rbi/annotations/activesupport.rbi +468 -0
  22. data/sorbet/rbi/annotations/globalid.rbi +30 -0
  23. data/sorbet/rbi/annotations/minitest.rbi +119 -0
  24. data/sorbet/rbi/annotations/railties.rbi +61 -0
  25. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  26. data/sorbet/rbi/dsl/.gitattributes +1 -0
  27. data/sorbet/rbi/dsl/active_model/validations/callbacks.rbi +21 -0
  28. data/sorbet/rbi/dsl/active_model/validations.rbi +26 -0
  29. data/sorbet/rbi/dsl/active_support/callbacks.rbi +21 -0
  30. data/sorbet/rbi/dsl/rails_type_id/concern.rbi +22 -0
  31. data/sorbet/rbi/gems/.gitattributes +1 -0
  32. data/sorbet/rbi/gems/actioncable@8.0.2.rbi +3133 -0
  33. data/sorbet/rbi/gems/actionmailbox@8.0.2.rbi +991 -0
  34. data/sorbet/rbi/gems/actionmailer@8.0.2.rbi +2775 -0
  35. data/sorbet/rbi/gems/actionpack@8.0.2.rbi +21167 -0
  36. data/sorbet/rbi/gems/actiontext@8.0.2.rbi +1449 -0
  37. data/sorbet/rbi/gems/actionview@8.0.2.rbi +15789 -0
  38. data/sorbet/rbi/gems/activejob@8.0.2.rbi +2864 -0
  39. data/sorbet/rbi/gems/activemodel@8.0.2.rbi +6946 -0
  40. data/sorbet/rbi/gems/activerecord@8.0.2.rbi +42458 -0
  41. data/sorbet/rbi/gems/activestorage@8.0.2.rbi +2156 -0
  42. data/sorbet/rbi/gems/activesupport@8.0.2.rbi +21274 -0
  43. data/sorbet/rbi/gems/ast@2.4.3.rbi +586 -0
  44. data/sorbet/rbi/gems/base64@0.3.0.rbi +545 -0
  45. data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
  46. data/sorbet/rbi/gems/bigdecimal@3.2.2.rbi +275 -0
  47. data/sorbet/rbi/gems/builder@3.3.0.rbi +9 -0
  48. data/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi +11734 -0
  49. data/sorbet/rbi/gems/connection_pool@2.5.3.rbi +9 -0
  50. data/sorbet/rbi/gems/crass@1.0.6.rbi +623 -0
  51. data/sorbet/rbi/gems/date@3.4.1.rbi +403 -0
  52. data/sorbet/rbi/gems/drb@2.2.3.rbi +1661 -0
  53. data/sorbet/rbi/gems/erb@5.0.2.rbi +878 -0
  54. data/sorbet/rbi/gems/erubi@1.13.1.rbi +157 -0
  55. data/sorbet/rbi/gems/globalid@1.2.1.rbi +742 -0
  56. data/sorbet/rbi/gems/i18n@1.14.7.rbi +2383 -0
  57. data/sorbet/rbi/gems/io-console@0.8.1.rbi +9 -0
  58. data/sorbet/rbi/gems/json@2.12.2.rbi +2287 -0
  59. data/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi +9 -0
  60. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +323 -0
  61. data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
  62. data/sorbet/rbi/gems/loofah@2.24.1.rbi +1105 -0
  63. data/sorbet/rbi/gems/mail@2.8.1.rbi +8890 -0
  64. data/sorbet/rbi/gems/marcel@1.0.4.rbi +239 -0
  65. data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +173 -0
  66. data/sorbet/rbi/gems/minitest@5.25.5.rbi +2231 -0
  67. data/sorbet/rbi/gems/net-imap@0.5.9.rbi +10285 -0
  68. data/sorbet/rbi/gems/net-pop@0.1.2.rbi +927 -0
  69. data/sorbet/rbi/gems/net-protocol@0.2.2.rbi +292 -0
  70. data/sorbet/rbi/gems/net-smtp@0.5.1.rbi +1240 -0
  71. data/sorbet/rbi/gems/netrc@0.11.0.rbi +177 -0
  72. data/sorbet/rbi/gems/nio4r@2.7.4.rbi +388 -0
  73. data/sorbet/rbi/gems/nokogiri@1.18.9.rbi +8548 -0
  74. data/sorbet/rbi/gems/parallel@1.27.0.rbi +291 -0
  75. data/sorbet/rbi/gems/parser@3.3.9.0.rbi +5537 -0
  76. data/sorbet/rbi/gems/pp@0.6.2.rbi +368 -0
  77. data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +477 -0
  78. data/sorbet/rbi/gems/prism@1.4.0.rbi +41790 -0
  79. data/sorbet/rbi/gems/psych@5.2.6.rbi +2542 -0
  80. data/sorbet/rbi/gems/racc@1.8.1.rbi +168 -0
  81. data/sorbet/rbi/gems/rack-session@2.1.1.rbi +722 -0
  82. data/sorbet/rbi/gems/rack-test@2.2.0.rbi +729 -0
  83. data/sorbet/rbi/gems/rack@3.2.0.rbi +5054 -0
  84. data/sorbet/rbi/gems/rackup@2.2.1.rbi +230 -0
  85. data/sorbet/rbi/gems/rails-dom-testing@2.3.0.rbi +790 -0
  86. data/sorbet/rbi/gems/rails-html-sanitizer@1.6.2.rbi +645 -0
  87. data/sorbet/rbi/gems/rails@8.0.2.rbi +9 -0
  88. data/sorbet/rbi/gems/railties@8.0.2.rbi +4014 -0
  89. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  90. data/sorbet/rbi/gems/rake@13.3.0.rbi +3039 -0
  91. data/sorbet/rbi/gems/rbi@0.3.6.rbi +5162 -0
  92. data/sorbet/rbi/gems/rbs@4.0.0.dev.4.rbi +7895 -0
  93. data/sorbet/rbi/gems/rdoc@6.14.2.rbi +12944 -0
  94. data/sorbet/rbi/gems/regexp_parser@2.10.0.rbi +3833 -0
  95. data/sorbet/rbi/gems/reline@0.6.2.rbi +9 -0
  96. data/sorbet/rbi/gems/require-hooks@0.2.2.rbi +110 -0
  97. data/sorbet/rbi/gems/rexml@3.4.1.rbi +5205 -0
  98. data/sorbet/rbi/gems/rubocop-ast@1.46.0.rbi +7473 -0
  99. data/sorbet/rbi/gems/rubocop-sorbet@0.10.5.rbi +2386 -0
  100. data/sorbet/rbi/gems/rubocop@1.79.1.rbi +63674 -0
  101. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  102. data/sorbet/rbi/gems/securerandom@0.4.1.rbi +75 -0
  103. data/sorbet/rbi/gems/spoom@1.7.5.rbi +5832 -0
  104. data/sorbet/rbi/gems/sqlite3@2.7.3.rbi +1989 -0
  105. data/sorbet/rbi/gems/stringio@3.1.7.rbi +9 -0
  106. data/sorbet/rbi/gems/tapioca@0.17.7.rbi +3692 -0
  107. data/sorbet/rbi/gems/thor@1.4.0.rbi +4399 -0
  108. data/sorbet/rbi/gems/timeout@0.4.3.rbi +157 -0
  109. data/sorbet/rbi/gems/typeid@0.2.2.rbi +239 -0
  110. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5919 -0
  111. data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
  112. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
  113. data/sorbet/rbi/gems/uri@1.0.3.rbi +2354 -0
  114. data/sorbet/rbi/gems/useragent@0.16.11.rbi +9 -0
  115. data/sorbet/rbi/gems/uuid7@0.2.0.rbi +60 -0
  116. data/sorbet/rbi/gems/websocket-driver@0.8.0.rbi +1065 -0
  117. data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +117 -0
  118. data/sorbet/rbi/gems/with_model@2.2.0.rbi +282 -0
  119. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +430 -0
  120. data/sorbet/rbi/gems/yard@0.9.37.rbi +18512 -0
  121. data/sorbet/rbi/gems/zeitwerk@2.7.3.rbi +1196 -0
  122. data/sorbet/tapioca/config.yml +13 -0
  123. data/sorbet/tapioca/require.rb +13 -0
  124. metadata +208 -0
@@ -0,0 +1,991 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `actionmailbox` gem.
5
+ # Please instead update this file by running `bin/tapioca gem actionmailbox`.
6
+
7
+
8
+ # :markup: markdown
9
+ # :include: ../README.md
10
+ #
11
+ # source://actionmailbox//lib/action_mailbox/gem_version.rb#3
12
+ module ActionMailbox
13
+ extend ::ActiveSupport::Autoload
14
+
15
+ # source://actionmailbox//lib/action_mailbox.rb#22
16
+ def incinerate; end
17
+
18
+ # source://actionmailbox//lib/action_mailbox.rb#22
19
+ def incinerate=(val); end
20
+
21
+ # source://actionmailbox//lib/action_mailbox.rb#23
22
+ def incinerate_after; end
23
+
24
+ # source://actionmailbox//lib/action_mailbox.rb#23
25
+ def incinerate_after=(val); end
26
+
27
+ # source://actionmailbox//lib/action_mailbox.rb#20
28
+ def ingress; end
29
+
30
+ # source://actionmailbox//lib/action_mailbox.rb#20
31
+ def ingress=(val); end
32
+
33
+ # source://actionmailbox//lib/action_mailbox.rb#21
34
+ def logger; end
35
+
36
+ # source://actionmailbox//lib/action_mailbox.rb#21
37
+ def logger=(val); end
38
+
39
+ # source://actionmailbox//lib/action_mailbox.rb#24
40
+ def queues; end
41
+
42
+ # source://actionmailbox//lib/action_mailbox.rb#24
43
+ def queues=(val); end
44
+
45
+ # source://actionmailbox//lib/action_mailbox.rb#25
46
+ def storage_service; end
47
+
48
+ # source://actionmailbox//lib/action_mailbox.rb#25
49
+ def storage_service=(val); end
50
+
51
+ class << self
52
+ # source://actionmailbox//lib/action_mailbox/deprecator.rb#4
53
+ def deprecator; end
54
+
55
+ # Returns the currently loaded version of Action Mailbox as a +Gem::Version+.
56
+ #
57
+ # source://actionmailbox//lib/action_mailbox/gem_version.rb#5
58
+ def gem_version; end
59
+
60
+ # source://actionmailbox//lib/action_mailbox.rb#22
61
+ def incinerate; end
62
+
63
+ # source://actionmailbox//lib/action_mailbox.rb#22
64
+ def incinerate=(val); end
65
+
66
+ # source://actionmailbox//lib/action_mailbox.rb#23
67
+ def incinerate_after; end
68
+
69
+ # source://actionmailbox//lib/action_mailbox.rb#23
70
+ def incinerate_after=(val); end
71
+
72
+ # source://actionmailbox//lib/action_mailbox.rb#20
73
+ def ingress; end
74
+
75
+ # source://actionmailbox//lib/action_mailbox.rb#20
76
+ def ingress=(val); end
77
+
78
+ # source://actionmailbox//lib/action_mailbox.rb#21
79
+ def logger; end
80
+
81
+ # source://actionmailbox//lib/action_mailbox.rb#21
82
+ def logger=(val); end
83
+
84
+ # source://actionmailbox//lib/action_mailbox.rb#24
85
+ def queues; end
86
+
87
+ # source://actionmailbox//lib/action_mailbox.rb#24
88
+ def queues=(val); end
89
+
90
+ # source://actionmailbox//lib/action_mailbox/engine.rb#13
91
+ def railtie_helpers_paths; end
92
+
93
+ # source://actionmailbox//lib/action_mailbox/engine.rb#13
94
+ def railtie_namespace; end
95
+
96
+ # source://actionmailbox//lib/action_mailbox/engine.rb#13
97
+ def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end
98
+
99
+ # source://actionmailbox//lib/action_mailbox.rb#25
100
+ def storage_service; end
101
+
102
+ # source://actionmailbox//lib/action_mailbox.rb#25
103
+ def storage_service=(val); end
104
+
105
+ # source://actionmailbox//lib/action_mailbox/engine.rb#13
106
+ def table_name_prefix; end
107
+
108
+ # source://actionmailbox//lib/action_mailbox/engine.rb#13
109
+ def use_relative_model_naming?; end
110
+
111
+ # Returns the currently loaded version of Action Mailbox as a +Gem::Version+.
112
+ #
113
+ # source://actionmailbox//lib/action_mailbox/version.rb#7
114
+ def version; end
115
+ end
116
+ end
117
+
118
+ # = Action Mailbox \Base
119
+ #
120
+ # The base class for all application mailboxes. Not intended to be inherited from directly. Inherit from
121
+ # +ApplicationMailbox+ instead, as that's where the app-specific routing is configured. This routing
122
+ # is specified in the following ways:
123
+ #
124
+ # class ApplicationMailbox < ActionMailbox::Base
125
+ # # Any of the recipients of the mail (whether to, cc, bcc) are matched against the regexp.
126
+ # routing /^replies@/i => :replies
127
+ #
128
+ # # Any of the recipients of the mail (whether to, cc, bcc) needs to be an exact match for the string.
129
+ # routing "help@example.com" => :help
130
+ #
131
+ # # Any callable (proc, lambda, etc) object is passed the inbound_email record and is a match if true.
132
+ # routing ->(inbound_email) { inbound_email.mail.to.size > 2 } => :multiple_recipients
133
+ #
134
+ # # Any object responding to #match? is called with the inbound_email record as an argument. Match if true.
135
+ # routing CustomAddress.new => :custom
136
+ #
137
+ # # Any inbound_email that has not been already matched will be sent to the BackstopMailbox.
138
+ # routing :all => :backstop
139
+ # end
140
+ #
141
+ # Application mailboxes need to override the #process method, which is invoked by the framework after
142
+ # callbacks have been run. The callbacks available are: +before_processing+, +after_processing+, and
143
+ # +around_processing+. The primary use case is to ensure that certain preconditions to processing are fulfilled
144
+ # using +before_processing+ callbacks.
145
+ #
146
+ # If a precondition fails to be met, you can halt the processing using the +#bounced!+ method,
147
+ # which will silently prevent any further processing, but not actually send out any bounce notice. You
148
+ # can also pair this behavior with the invocation of an Action Mailer class responsible for sending out
149
+ # an actual bounce email. This is done using the #bounce_with method, which takes the mail object returned
150
+ # by an Action Mailer method, like so:
151
+ #
152
+ # class ForwardsMailbox < ApplicationMailbox
153
+ # before_processing :ensure_sender_is_a_user
154
+ #
155
+ # private
156
+ # def ensure_sender_is_a_user
157
+ # unless User.exist?(email_address: mail.from)
158
+ # bounce_with UserRequiredMailer.missing(inbound_email)
159
+ # end
160
+ # end
161
+ # end
162
+ #
163
+ # During the processing of the inbound email, the status will be tracked. Before processing begins,
164
+ # the email will normally have the +pending+ status. Once processing begins, just before callbacks
165
+ # and the #process method is called, the status is changed to +processing+. If processing is allowed to
166
+ # complete, the status is changed to +delivered+. If a bounce is triggered, then +bounced+. If an unhandled
167
+ # exception is bubbled up, then +failed+.
168
+ #
169
+ # Exceptions can be handled at the class level using the familiar
170
+ # ActiveSupport::Rescuable approach:
171
+ #
172
+ # class ForwardsMailbox < ApplicationMailbox
173
+ # rescue_from(ApplicationSpecificVerificationError) { bounced! }
174
+ # end
175
+ #
176
+ # source://actionmailbox//lib/action_mailbox/base.rb#66
177
+ class ActionMailbox::Base
178
+ include ::ActiveSupport::Rescuable
179
+ include ::ActionMailbox::Routing
180
+ include ::ActiveSupport::Callbacks
181
+ include ::ActionMailbox::Callbacks
182
+ extend ::ActiveSupport::Rescuable::ClassMethods
183
+ extend ::ActionMailbox::Routing::ClassMethods
184
+ extend ::ActiveSupport::Callbacks::ClassMethods
185
+ extend ::ActiveSupport::DescendantsTracker
186
+ extend ::ActionMailbox::Callbacks::ClassMethods
187
+
188
+ # @return [Base] a new instance of Base
189
+ #
190
+ # source://actionmailbox//lib/action_mailbox/base.rb#79
191
+ def initialize(inbound_email); end
192
+
193
+ # source://actionmailbox//lib/action_mailbox/base.rb#68
194
+ def __callbacks; end
195
+
196
+ # source://actionmailbox//lib/action_mailbox/base.rb#68
197
+ def _process_callbacks; end
198
+
199
+ # source://actionmailbox//lib/action_mailbox/base.rb#68
200
+ def _run_process_callbacks(&block); end
201
+
202
+ # Immediately sends the given +message+ and changes the inbound email's status to +:bounced+.
203
+ #
204
+ # source://actionmailbox//lib/action_mailbox/base.rb#111
205
+ def bounce_now_with(message); end
206
+
207
+ # Enqueues the given +message+ for delivery and changes the inbound email's status to +:bounced+.
208
+ #
209
+ # source://actionmailbox//lib/action_mailbox/base.rb#105
210
+ def bounce_with(message); end
211
+
212
+ # source://actionmailbox//lib/action_mailbox/base.rb#71
213
+ def bounced!(*_arg0, **_arg1, &_arg2); end
214
+
215
+ # source://actionmailbox//lib/action_mailbox/base.rb#71
216
+ def delivered!(*_arg0, **_arg1, &_arg2); end
217
+
218
+ # @return [Boolean]
219
+ #
220
+ # source://actionmailbox//lib/action_mailbox/base.rb#100
221
+ def finished_processing?; end
222
+
223
+ # Returns the value of attribute inbound_email.
224
+ #
225
+ # source://actionmailbox//lib/action_mailbox/base.rb#70
226
+ def inbound_email; end
227
+
228
+ # source://actionmailbox//lib/action_mailbox/base.rb#73
229
+ def logger(&_arg0); end
230
+
231
+ # source://actionmailbox//lib/action_mailbox/base.rb#71
232
+ def mail(*_arg0, **_arg1, &_arg2); end
233
+
234
+ # source://actionmailbox//lib/action_mailbox/base.rb#83
235
+ def perform_processing; end
236
+
237
+ # source://actionmailbox//lib/action_mailbox/base.rb#96
238
+ def process; end
239
+
240
+ # source://actionmailbox//lib/action_mailbox/base.rb#67
241
+ def rescue_handlers; end
242
+
243
+ # source://actionmailbox//lib/action_mailbox/base.rb#67
244
+ def rescue_handlers=(_arg0); end
245
+
246
+ # source://actionmailbox//lib/action_mailbox/base.rb#67
247
+ def rescue_handlers?; end
248
+
249
+ # source://actionmailbox//lib/action_mailbox/base.rb#68
250
+ def router; end
251
+
252
+ # source://actionmailbox//lib/action_mailbox/base.rb#68
253
+ def router=(val); end
254
+
255
+ private
256
+
257
+ # source://actionmailbox//lib/action_mailbox/base.rb#117
258
+ def instrumentation_payload; end
259
+
260
+ # source://actionmailbox//lib/action_mailbox/base.rb#124
261
+ def track_status_of_inbound_email; end
262
+
263
+ class << self
264
+ # source://actionmailbox//lib/action_mailbox/base.rb#68
265
+ def __callbacks; end
266
+
267
+ # source://actionmailbox//lib/action_mailbox/base.rb#68
268
+ def __callbacks=(value); end
269
+
270
+ # source://actionmailbox//lib/action_mailbox/base.rb#68
271
+ def _process_callbacks; end
272
+
273
+ # source://actionmailbox//lib/action_mailbox/base.rb#68
274
+ def _process_callbacks=(value); end
275
+
276
+ # source://actionmailbox//lib/action_mailbox/base.rb#75
277
+ def receive(inbound_email); end
278
+
279
+ # source://actionmailbox//lib/action_mailbox/base.rb#67
280
+ def rescue_handlers; end
281
+
282
+ # source://actionmailbox//lib/action_mailbox/base.rb#67
283
+ def rescue_handlers=(value); end
284
+
285
+ # source://actionmailbox//lib/action_mailbox/base.rb#67
286
+ def rescue_handlers?; end
287
+
288
+ # source://actionmailbox//lib/action_mailbox/base.rb#68
289
+ def router; end
290
+
291
+ # source://actionmailbox//lib/action_mailbox/base.rb#68
292
+ def router=(val); end
293
+
294
+ private
295
+
296
+ # source://actionmailbox//lib/action_mailbox/base.rb#68
297
+ def __class_attr___callbacks; end
298
+
299
+ # source://actionmailbox//lib/action_mailbox/base.rb#68
300
+ def __class_attr___callbacks=(new_value); end
301
+
302
+ # source://actionmailbox//lib/action_mailbox/base.rb#67
303
+ def __class_attr_rescue_handlers; end
304
+
305
+ # source://actionmailbox//lib/action_mailbox/base.rb#67
306
+ def __class_attr_rescue_handlers=(new_value); end
307
+ end
308
+ end
309
+
310
+ class ActionMailbox::BaseController < ::ActionController::Base
311
+ private
312
+
313
+ def _layout(lookup_context, formats, keys); end
314
+ def authenticate_by_password; end
315
+ def ensure_configured; end
316
+ def ingress_name; end
317
+ def password; end
318
+
319
+ class << self
320
+ private
321
+
322
+ def __class_attr___callbacks; end
323
+ def __class_attr___callbacks=(new_value); end
324
+ def __class_attr_middleware_stack; end
325
+ def __class_attr_middleware_stack=(new_value); end
326
+ end
327
+ end
328
+
329
+ # = Action Mailbox \Callbacks
330
+ #
331
+ # Defines the callbacks related to processing.
332
+ #
333
+ # source://actionmailbox//lib/action_mailbox/callbacks.rb#9
334
+ module ActionMailbox::Callbacks
335
+ extend ::ActiveSupport::Concern
336
+ include GeneratedInstanceMethods
337
+ include ::ActiveSupport::Callbacks
338
+
339
+ mixes_in_class_methods GeneratedClassMethods
340
+ mixes_in_class_methods ::ActiveSupport::Callbacks::ClassMethods
341
+ mixes_in_class_methods ::ActiveSupport::DescendantsTracker
342
+ mixes_in_class_methods ::ActionMailbox::Callbacks::ClassMethods
343
+
344
+ module GeneratedClassMethods
345
+ def __callbacks; end
346
+ def __callbacks=(value); end
347
+ end
348
+
349
+ module GeneratedInstanceMethods
350
+ def __callbacks; end
351
+ end
352
+ end
353
+
354
+ # source://actionmailbox//lib/action_mailbox/callbacks.rb#22
355
+ module ActionMailbox::Callbacks::ClassMethods
356
+ # source://actionmailbox//lib/action_mailbox/callbacks.rb#27
357
+ def after_processing(*methods, &block); end
358
+
359
+ # source://actionmailbox//lib/action_mailbox/callbacks.rb#31
360
+ def around_processing(*methods, &block); end
361
+
362
+ # source://actionmailbox//lib/action_mailbox/callbacks.rb#23
363
+ def before_processing(*methods, &block); end
364
+ end
365
+
366
+ # source://actionmailbox//lib/action_mailbox/callbacks.rb#13
367
+ ActionMailbox::Callbacks::TERMINATOR = T.let(T.unsafe(nil), Proc)
368
+
369
+ # source://actionmailbox//lib/action_mailbox/engine.rb#12
370
+ class ActionMailbox::Engine < ::Rails::Engine; end
371
+
372
+ class ActionMailbox::InboundEmail < ::ActionMailbox::Record
373
+ include ::ActionMailbox::InboundEmail::GeneratedAttributeMethods
374
+ include ::ActionMailbox::InboundEmail::GeneratedAssociationMethods
375
+ include ::ActionMailbox::InboundEmail::Routable
376
+ include ::ActionMailbox::InboundEmail::MessageId
377
+ include ::ActionMailbox::InboundEmail::Incineratable
378
+ extend ::ActionMailbox::InboundEmail::MessageId::ClassMethods
379
+
380
+ def autosave_associated_records_for_raw_email_attachment(*args); end
381
+ def autosave_associated_records_for_raw_email_blob(*args); end
382
+ def instrumentation_payload; end
383
+ def mail; end
384
+ def processed?; end
385
+ def source; end
386
+
387
+ class << self
388
+ def bounced(*args, **_arg1); end
389
+ def delivered(*args, **_arg1); end
390
+ def failed(*args, **_arg1); end
391
+ def not_bounced(*args, **_arg1); end
392
+ def not_delivered(*args, **_arg1); end
393
+ def not_failed(*args, **_arg1); end
394
+ def not_pending(*args, **_arg1); end
395
+ def not_processing(*args, **_arg1); end
396
+ def pending(*args, **_arg1); end
397
+ def processing(*args, **_arg1); end
398
+ def statuses; end
399
+ def with_attached_raw_email(*args, **_arg1); end
400
+
401
+ private
402
+
403
+ def __class_attr___callbacks; end
404
+ def __class_attr___callbacks=(new_value); end
405
+ def __class_attr__reflections; end
406
+ def __class_attr__reflections=(new_value); end
407
+ def __class_attr__validators; end
408
+ def __class_attr__validators=(new_value); end
409
+ def __class_attr_attachment_reflections; end
410
+ def __class_attr_attachment_reflections=(new_value); end
411
+ def __class_attr_defined_enums; end
412
+ def __class_attr_defined_enums=(new_value); end
413
+ end
414
+ end
415
+
416
+ module ActionMailbox::InboundEmail::GeneratedAssociationMethods
417
+ def build_raw_email_attachment(*args, &block); end
418
+ def build_raw_email_blob(*args, &block); end
419
+ def create_raw_email_attachment(*args, &block); end
420
+ def create_raw_email_attachment!(*args, &block); end
421
+ def create_raw_email_blob(*args, &block); end
422
+ def create_raw_email_blob!(*args, &block); end
423
+ def raw_email; end
424
+ def raw_email=(attachable); end
425
+ def raw_email_attachment; end
426
+ def raw_email_attachment=(value); end
427
+ def raw_email_blob; end
428
+ def raw_email_blob=(value); end
429
+ def reload_raw_email_attachment; end
430
+ def reload_raw_email_blob; end
431
+ def reset_raw_email_attachment; end
432
+ def reset_raw_email_blob; end
433
+ end
434
+
435
+ module ActionMailbox::InboundEmail::GeneratedAttributeMethods; end
436
+
437
+ module ActionMailbox::InboundEmail::Incineratable
438
+ extend ::ActiveSupport::Concern
439
+
440
+ def incinerate; end
441
+ def incinerate_later; end
442
+ end
443
+
444
+ class ActionMailbox::InboundEmail::Incineratable::Incineration
445
+ def initialize(inbound_email); end
446
+
447
+ def run; end
448
+
449
+ private
450
+
451
+ def due?; end
452
+ def processed?; end
453
+ end
454
+
455
+ module ActionMailbox::InboundEmail::MessageId
456
+ extend ::ActiveSupport::Concern
457
+
458
+ mixes_in_class_methods ::ActionMailbox::InboundEmail::MessageId::ClassMethods
459
+ end
460
+
461
+ module ActionMailbox::InboundEmail::MessageId::ClassMethods
462
+ def create_and_extract_message_id!(source, **options); end
463
+
464
+ private
465
+
466
+ def create_and_upload_raw_email!(source); end
467
+ def extract_message_id(source); end
468
+ def generate_missing_message_id(message_checksum); end
469
+ end
470
+
471
+ module ActionMailbox::InboundEmail::Routable
472
+ extend ::ActiveSupport::Concern
473
+
474
+ def route; end
475
+ def route_later; end
476
+ end
477
+
478
+ class ActionMailbox::IncinerationJob < ::ActiveJob::Base
479
+ def perform(inbound_email); end
480
+
481
+ class << self
482
+ def schedule(inbound_email); end
483
+
484
+ private
485
+
486
+ def __class_attr_queue_name; end
487
+ def __class_attr_queue_name=(new_value); end
488
+ def __class_attr_rescue_handlers; end
489
+ def __class_attr_rescue_handlers=(new_value); end
490
+ end
491
+ end
492
+
493
+ module ActionMailbox::Ingresses; end
494
+ module ActionMailbox::Ingresses::Mailgun; end
495
+
496
+ class ActionMailbox::Ingresses::Mailgun::InboundEmailsController < ::ActionMailbox::BaseController
497
+ def create; end
498
+
499
+ private
500
+
501
+ def _layout(lookup_context, formats, keys); end
502
+ def authenticate; end
503
+ def authenticated?; end
504
+ def key; end
505
+ def mail; end
506
+
507
+ class << self
508
+ private
509
+
510
+ def __class_attr___callbacks; end
511
+ def __class_attr___callbacks=(new_value); end
512
+ def __class_attr_middleware_stack; end
513
+ def __class_attr_middleware_stack=(new_value); end
514
+ end
515
+ end
516
+
517
+ class ActionMailbox::Ingresses::Mailgun::InboundEmailsController::Authenticator
518
+ def initialize(key:, timestamp:, token:, signature:); end
519
+
520
+ def authenticated?; end
521
+ def key; end
522
+ def signature; end
523
+ def timestamp; end
524
+ def token; end
525
+
526
+ private
527
+
528
+ def expected_signature; end
529
+ def recent?; end
530
+ def signed?; end
531
+ end
532
+
533
+ module ActionMailbox::Ingresses::Mandrill; end
534
+
535
+ class ActionMailbox::Ingresses::Mandrill::InboundEmailsController < ::ActionMailbox::BaseController
536
+ def create; end
537
+ def health_check; end
538
+
539
+ private
540
+
541
+ def _layout(lookup_context, formats, keys); end
542
+ def authenticate; end
543
+ def authenticated?; end
544
+ def events; end
545
+ def key; end
546
+ def raw_emails; end
547
+
548
+ class << self
549
+ private
550
+
551
+ def __class_attr___callbacks; end
552
+ def __class_attr___callbacks=(new_value); end
553
+ def __class_attr_middleware_stack; end
554
+ def __class_attr_middleware_stack=(new_value); end
555
+ end
556
+ end
557
+
558
+ class ActionMailbox::Ingresses::Mandrill::InboundEmailsController::Authenticator
559
+ def initialize(request, key); end
560
+
561
+ def authenticated?; end
562
+ def key; end
563
+ def request; end
564
+
565
+ private
566
+
567
+ def expected_signature; end
568
+ def given_signature; end
569
+ def message; end
570
+ end
571
+
572
+ module ActionMailbox::Ingresses::Postmark; end
573
+
574
+ class ActionMailbox::Ingresses::Postmark::InboundEmailsController < ::ActionMailbox::BaseController
575
+ def create; end
576
+
577
+ private
578
+
579
+ def _layout(lookup_context, formats, keys); end
580
+ def mail; end
581
+
582
+ class << self
583
+ private
584
+
585
+ def __class_attr___callbacks; end
586
+ def __class_attr___callbacks=(new_value); end
587
+ def __class_attr_middleware_stack; end
588
+ def __class_attr_middleware_stack=(new_value); end
589
+ end
590
+ end
591
+
592
+ module ActionMailbox::Ingresses::Relay; end
593
+
594
+ class ActionMailbox::Ingresses::Relay::InboundEmailsController < ::ActionMailbox::BaseController
595
+ def create; end
596
+
597
+ private
598
+
599
+ def _layout(lookup_context, formats, keys); end
600
+ def require_valid_rfc822_message; end
601
+
602
+ class << self
603
+ private
604
+
605
+ def __class_attr___callbacks; end
606
+ def __class_attr___callbacks=(new_value); end
607
+ def __class_attr_middleware_stack; end
608
+ def __class_attr_middleware_stack=(new_value); end
609
+ end
610
+ end
611
+
612
+ module ActionMailbox::Ingresses::Sendgrid; end
613
+
614
+ class ActionMailbox::Ingresses::Sendgrid::InboundEmailsController < ::ActionMailbox::BaseController
615
+ def create; end
616
+
617
+ private
618
+
619
+ def _layout(lookup_context, formats, keys); end
620
+ def envelope; end
621
+ def mail; end
622
+
623
+ class << self
624
+ private
625
+
626
+ def __class_attr___callbacks; end
627
+ def __class_attr___callbacks=(new_value); end
628
+ def __class_attr_middleware_stack; end
629
+ def __class_attr_middleware_stack=(new_value); end
630
+ end
631
+ end
632
+
633
+ class ActionMailbox::Record < ::ActiveRecord::Base
634
+ include ::ActionMailbox::Record::GeneratedAttributeMethods
635
+ include ::ActionMailbox::Record::GeneratedAssociationMethods
636
+
637
+ class << self
638
+ private
639
+
640
+ def __class_attr__validators; end
641
+ def __class_attr__validators=(new_value); end
642
+ def __class_attr_defined_enums; end
643
+ def __class_attr_defined_enums=(new_value); end
644
+ end
645
+ end
646
+
647
+ module ActionMailbox::Record::GeneratedAssociationMethods; end
648
+ module ActionMailbox::Record::GeneratedAttributeMethods; end
649
+
650
+ # = Action Mailbox \Router
651
+ #
652
+ # Encapsulates the routes that live on the ApplicationMailbox and performs the actual routing when
653
+ # an inbound_email is received.
654
+ #
655
+ # source://actionmailbox//lib/action_mailbox/router.rb#8
656
+ class ActionMailbox::Router
657
+ # @return [Router] a new instance of Router
658
+ #
659
+ # source://actionmailbox//lib/action_mailbox/router.rb#11
660
+ def initialize; end
661
+
662
+ # source://actionmailbox//lib/action_mailbox/router.rb#21
663
+ def add_route(address, to:); end
664
+
665
+ # source://actionmailbox//lib/action_mailbox/router.rb#15
666
+ def add_routes(routes); end
667
+
668
+ # source://actionmailbox//lib/action_mailbox/router.rb#35
669
+ def mailbox_for(inbound_email); end
670
+
671
+ # source://actionmailbox//lib/action_mailbox/router.rb#25
672
+ def route(inbound_email); end
673
+
674
+ private
675
+
676
+ # Returns the value of attribute routes.
677
+ #
678
+ # source://actionmailbox//lib/action_mailbox/router.rb#40
679
+ def routes; end
680
+ end
681
+
682
+ # source://actionmailbox//lib/action_mailbox/router/route.rb#7
683
+ class ActionMailbox::Router::Route
684
+ # source://actionmailbox//lib/action_mailbox/router/route.rb#10
685
+ def initialize(address, to:); end
686
+
687
+ # source://actionmailbox//lib/action_mailbox/router/route.rb#8
688
+ def address; end
689
+
690
+ # source://actionmailbox//lib/action_mailbox/router/route.rb#31
691
+ def mailbox_class; end
692
+
693
+ # source://actionmailbox//lib/action_mailbox/router/route.rb#8
694
+ def mailbox_name; end
695
+
696
+ # source://actionmailbox//lib/action_mailbox/router/route.rb#16
697
+ def match?(inbound_email); end
698
+
699
+ private
700
+
701
+ # source://actionmailbox//lib/action_mailbox/router/route.rb#36
702
+ def ensure_valid_address; end
703
+ end
704
+
705
+ # source://actionmailbox//lib/action_mailbox/router.rb#9
706
+ class ActionMailbox::Router::RoutingError < ::StandardError; end
707
+
708
+ # See ActionMailbox::Base for how to specify routing.
709
+ #
710
+ # source://actionmailbox//lib/action_mailbox/routing.rb#5
711
+ module ActionMailbox::Routing
712
+ extend ::ActiveSupport::Concern
713
+
714
+ mixes_in_class_methods ::ActionMailbox::Routing::ClassMethods
715
+ end
716
+
717
+ # source://actionmailbox//lib/action_mailbox/routing.rb#12
718
+ module ActionMailbox::Routing::ClassMethods
719
+ # source://actionmailbox//lib/action_mailbox/routing.rb#21
720
+ def mailbox_for(inbound_email); end
721
+
722
+ # source://actionmailbox//lib/action_mailbox/routing.rb#17
723
+ def route(inbound_email); end
724
+
725
+ # source://actionmailbox//lib/action_mailbox/routing.rb#13
726
+ def routing(routes); end
727
+ end
728
+
729
+ class ActionMailbox::RoutingJob < ::ActiveJob::Base
730
+ def perform(inbound_email); end
731
+
732
+ class << self
733
+ private
734
+
735
+ def __class_attr_queue_name; end
736
+ def __class_attr_queue_name=(new_value); end
737
+ end
738
+ end
739
+
740
+ # source://actionmailbox//lib/action_mailbox/test_case.rb#7
741
+ class ActionMailbox::TestCase < ::ActiveSupport::TestCase
742
+ include ::ActionMailbox::TestHelper
743
+ end
744
+
745
+ # source://actionmailbox//lib/action_mailbox/test_helper.rb#6
746
+ module ActionMailbox::TestHelper
747
+ # Create an InboundEmail record using an eml fixture in the format of message/rfc822
748
+ # referenced with +fixture_name+ located in +test/fixtures/files/fixture_name+.
749
+ #
750
+ # source://actionmailbox//lib/action_mailbox/test_helper.rb#9
751
+ def create_inbound_email_from_fixture(fixture_name, status: T.unsafe(nil)); end
752
+
753
+ # Creates an InboundEmail by specifying through options or a block.
754
+ #
755
+ # ==== Options
756
+ #
757
+ # * <tt>:status</tt> - The +status+ to set for the created InboundEmail.
758
+ # For possible statuses, see its documentation.
759
+ #
760
+ # ==== Creating a simple email
761
+ #
762
+ # When you only need to set basic fields like +from+, +to+, +subject+, and
763
+ # +body+, you can pass them directly as options.
764
+ #
765
+ # create_inbound_email_from_mail(from: "david@loudthinking.com", subject: "Hello!")
766
+ #
767
+ # ==== Creating a multi-part email
768
+ #
769
+ # When you need to create a more intricate email, like a multi-part email
770
+ # that contains both a plaintext version and an HTML version, you can pass a
771
+ # block.
772
+ #
773
+ # create_inbound_email_from_mail do
774
+ # to "David Heinemeier Hansson <david@loudthinking.com>"
775
+ # from "Bilbo Baggins <bilbo@bagend.com>"
776
+ # subject "Come down to the Shire!"
777
+ #
778
+ # text_part do
779
+ # body "Please join us for a party at Bag End"
780
+ # end
781
+ #
782
+ # html_part do
783
+ # body "<h1>Please join us for a party at Bag End</h1>"
784
+ # end
785
+ # end
786
+ #
787
+ # As with +Mail.new+, you can also use a block parameter to define the parts
788
+ # of the message:
789
+ #
790
+ # create_inbound_email_from_mail do |mail|
791
+ # mail.to "David Heinemeier Hansson <david@loudthinking.com>"
792
+ # mail.from "Bilbo Baggins <bilbo@bagend.com>"
793
+ # mail.subject "Come down to the Shire!"
794
+ #
795
+ # mail.text_part do |part|
796
+ # part.body "Please join us for a party at Bag End"
797
+ # end
798
+ #
799
+ # mail.html_part do |part|
800
+ # part.body "<h1>Please join us for a party at Bag End</h1>"
801
+ # end
802
+ # end
803
+ #
804
+ # source://actionmailbox//lib/action_mailbox/test_helper.rb#63
805
+ def create_inbound_email_from_mail(status: T.unsafe(nil), **mail_options, &block); end
806
+
807
+ # Create an InboundEmail using the raw rfc822 +source+ as text.
808
+ #
809
+ # source://actionmailbox//lib/action_mailbox/test_helper.rb#72
810
+ def create_inbound_email_from_source(source, status: T.unsafe(nil)); end
811
+
812
+ # Create an InboundEmail from fixture using the same arguments as create_inbound_email_from_fixture
813
+ # and immediately route it to processing.
814
+ #
815
+ # source://actionmailbox//lib/action_mailbox/test_helper.rb#79
816
+ def receive_inbound_email_from_fixture(*args); end
817
+
818
+ # Create an InboundEmail using the same options or block as
819
+ # create_inbound_email_from_mail, then immediately route it for processing.
820
+ #
821
+ # source://actionmailbox//lib/action_mailbox/test_helper.rb#85
822
+ def receive_inbound_email_from_mail(**kwargs, &block); end
823
+
824
+ # Create an InboundEmail using the same arguments as create_inbound_email_from_source and immediately route it
825
+ # to processing.
826
+ #
827
+ # source://actionmailbox//lib/action_mailbox/test_helper.rb#91
828
+ def receive_inbound_email_from_source(*args); end
829
+ end
830
+
831
+ # source://actionmailbox//lib/action_mailbox/gem_version.rb#9
832
+ module ActionMailbox::VERSION; end
833
+
834
+ # source://actionmailbox//lib/action_mailbox/gem_version.rb#10
835
+ ActionMailbox::VERSION::MAJOR = T.let(T.unsafe(nil), Integer)
836
+
837
+ # source://actionmailbox//lib/action_mailbox/gem_version.rb#11
838
+ ActionMailbox::VERSION::MINOR = T.let(T.unsafe(nil), Integer)
839
+
840
+ # source://actionmailbox//lib/action_mailbox/gem_version.rb#13
841
+ ActionMailbox::VERSION::PRE = T.let(T.unsafe(nil), T.untyped)
842
+
843
+ # source://actionmailbox//lib/action_mailbox/gem_version.rb#15
844
+ ActionMailbox::VERSION::STRING = T.let(T.unsafe(nil), String)
845
+
846
+ # source://actionmailbox//lib/action_mailbox/gem_version.rb#12
847
+ ActionMailbox::VERSION::TINY = T.let(T.unsafe(nil), Integer)
848
+
849
+ # source://actionmailbox//lib/action_mailbox/mail_ext/address_equality.rb#3
850
+ module Mail
851
+ class << self
852
+ # source://actionmailbox//lib/action_mailbox/mail_ext/from_source.rb#4
853
+ def from_source(source); end
854
+ end
855
+ end
856
+
857
+ # source://actionmailbox//lib/action_mailbox/mail_ext/address_equality.rb#4
858
+ class Mail::Address
859
+ # source://actionmailbox//lib/action_mailbox/mail_ext/address_equality.rb#5
860
+ def ==(other_address); end
861
+
862
+ class << self
863
+ # source://actionmailbox//lib/action_mailbox/mail_ext/address_wrapping.rb#5
864
+ def wrap(address); end
865
+ end
866
+ end
867
+
868
+ # source://actionmailbox//lib/action_mailbox/mail_ext/addresses.rb#4
869
+ class Mail::Message
870
+ # source://actionmailbox//lib/action_mailbox/mail_ext/addresses.rb#21
871
+ def bcc_addresses; end
872
+
873
+ # source://actionmailbox//lib/action_mailbox/mail_ext/addresses.rb#17
874
+ def cc_addresses; end
875
+
876
+ # source://actionmailbox//lib/action_mailbox/mail_ext/addresses.rb#5
877
+ def from_address; end
878
+
879
+ # source://actionmailbox//lib/action_mailbox/mail_ext/recipients.rb#5
880
+ def recipients; end
881
+
882
+ # source://actionmailbox//lib/action_mailbox/mail_ext/addresses.rb#9
883
+ def recipients_addresses; end
884
+
885
+ # source://actionmailbox//lib/action_mailbox/mail_ext/addresses.rb#13
886
+ def to_addresses; end
887
+
888
+ # source://actionmailbox//lib/action_mailbox/mail_ext/addresses.rb#29
889
+ def x_forwarded_to_addresses; end
890
+
891
+ # source://actionmailbox//lib/action_mailbox/mail_ext/addresses.rb#25
892
+ def x_original_to_addresses; end
893
+
894
+ private
895
+
896
+ # source://actionmailbox//lib/action_mailbox/mail_ext/addresses.rb#34
897
+ def address_list(obj); end
898
+ end
899
+
900
+ module Rails; end
901
+ module Rails::Conductor; end
902
+ module Rails::Conductor::ActionMailbox; end
903
+ module Rails::Conductor::ActionMailbox::InboundEmails; end
904
+
905
+ class Rails::Conductor::ActionMailbox::InboundEmails::SourcesController < ::Rails::Conductor::BaseController
906
+ def create; end
907
+ def new; end
908
+
909
+ private
910
+
911
+ def _layout(lookup_context, formats, keys); end
912
+
913
+ class << self
914
+ private
915
+
916
+ def __class_attr_middleware_stack; end
917
+ def __class_attr_middleware_stack=(new_value); end
918
+ end
919
+ end
920
+
921
+ class Rails::Conductor::ActionMailbox::InboundEmailsController < ::Rails::Conductor::BaseController
922
+ def create; end
923
+ def index; end
924
+ def new; end
925
+ def show; end
926
+
927
+ private
928
+
929
+ def _layout(lookup_context, formats, keys); end
930
+ def create_inbound_email(mail); end
931
+ def mail_params; end
932
+ def new_mail; end
933
+
934
+ class << self
935
+ private
936
+
937
+ def __class_attr_middleware_stack; end
938
+ def __class_attr_middleware_stack=(new_value); end
939
+ end
940
+ end
941
+
942
+ class Rails::Conductor::ActionMailbox::IncineratesController < ::Rails::Conductor::BaseController
943
+ def create; end
944
+
945
+ private
946
+
947
+ def _layout(lookup_context, formats, keys); end
948
+
949
+ class << self
950
+ private
951
+
952
+ def __class_attr_middleware_stack; end
953
+ def __class_attr_middleware_stack=(new_value); end
954
+ end
955
+ end
956
+
957
+ class Rails::Conductor::ActionMailbox::ReroutesController < ::Rails::Conductor::BaseController
958
+ def create; end
959
+
960
+ private
961
+
962
+ def _layout(lookup_context, formats, keys); end
963
+ def reroute(inbound_email); end
964
+
965
+ class << self
966
+ private
967
+
968
+ def __class_attr_middleware_stack; end
969
+ def __class_attr_middleware_stack=(new_value); end
970
+ end
971
+ end
972
+
973
+ class Rails::Conductor::BaseController < ::ActionController::Base
974
+ private
975
+
976
+ def _layout(lookup_context, formats, keys); end
977
+ def ensure_development_env; end
978
+
979
+ class << self
980
+ private
981
+
982
+ def __class_attr___callbacks; end
983
+ def __class_attr___callbacks=(new_value); end
984
+ def __class_attr__layout; end
985
+ def __class_attr__layout=(new_value); end
986
+ def __class_attr__layout_conditions; end
987
+ def __class_attr__layout_conditions=(new_value); end
988
+ def __class_attr_middleware_stack; end
989
+ def __class_attr_middleware_stack=(new_value); end
990
+ end
991
+ end