muina 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/main.yml +16 -0
  3. data/.gitignore +5 -0
  4. data/.mutant.yml +38 -0
  5. data/.rspec +4 -0
  6. data/.rubocop.yml +172 -0
  7. data/.ruby-version +1 -0
  8. data/.simplecov +14 -0
  9. data/CHANGELOG.md +38 -0
  10. data/Gemfile +34 -0
  11. data/Gemfile.lock +265 -0
  12. data/Guardfile +24 -0
  13. data/README.md +36 -0
  14. data/Rakefile +13 -0
  15. data/SECURITY.md +14 -0
  16. data/bin/bundle +114 -0
  17. data/bin/console +15 -0
  18. data/bin/flay +29 -0
  19. data/bin/flog +29 -0
  20. data/bin/guard +29 -0
  21. data/bin/irb +29 -0
  22. data/bin/lefthook +29 -0
  23. data/bin/mutant +29 -0
  24. data/bin/parlour +29 -0
  25. data/bin/rake +29 -0
  26. data/bin/rspec +29 -0
  27. data/bin/rubocop +29 -0
  28. data/bin/setup +8 -0
  29. data/bin/srb +29 -0
  30. data/bin/srb-rbi +29 -0
  31. data/bin/tapioca +29 -0
  32. data/exe/muina +11 -0
  33. data/lefthook.yml +39 -0
  34. data/lib/muina/action/params_factory.rb +17 -0
  35. data/lib/muina/action/step/command.rb +31 -0
  36. data/lib/muina/action/step/failure.rb +18 -0
  37. data/lib/muina/action/step/query.rb +31 -0
  38. data/lib/muina/action/step/result.rb +51 -0
  39. data/lib/muina/action/step.rb +13 -0
  40. data/lib/muina/action.rb +73 -0
  41. data/lib/muina/any.rb +7 -0
  42. data/lib/muina/classes.rb +7 -0
  43. data/lib/muina/module.rb +6 -0
  44. data/lib/muina/parameters.rb +7 -0
  45. data/lib/muina/params.rb +19 -0
  46. data/lib/muina/private_creation.rb +12 -0
  47. data/lib/muina/result/factory.rb +37 -0
  48. data/lib/muina/result/failure.rb +31 -0
  49. data/lib/muina/result/null.rb +25 -0
  50. data/lib/muina/result/success.rb +31 -0
  51. data/lib/muina/result.rb +17 -0
  52. data/lib/muina/service.rb +37 -0
  53. data/lib/muina/symbol_hash.rb +7 -0
  54. data/lib/muina/unit.rb +10 -0
  55. data/lib/muina/untyped_array.rb +7 -0
  56. data/lib/muina/untyped_hash.rb +7 -0
  57. data/lib/muina/value.rb +16 -0
  58. data/lib/muina/version.rb +7 -0
  59. data/lib/muina.rb +42 -0
  60. data/muina.gemspec +35 -0
  61. data/rbi/muina.rbi +268 -0
  62. data/sorbet/config +2 -0
  63. data/sorbet/rbi/gems/actionpack@6.1.4.rbi +5045 -0
  64. data/sorbet/rbi/gems/actionview@6.1.4.rbi +2416 -0
  65. data/sorbet/rbi/gems/activesupport@6.1.4.rbi +3778 -0
  66. data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
  67. data/sorbet/rbi/gems/awesome_print@1.9.2.rbi +322 -0
  68. data/sorbet/rbi/gems/builder@3.2.4.rbi +8 -0
  69. data/sorbet/rbi/gems/byebug@11.1.3.rbi +18 -0
  70. data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
  71. data/sorbet/rbi/gems/colorize@0.8.1.rbi +39 -0
  72. data/sorbet/rbi/gems/commander@4.6.0.rbi +8 -0
  73. data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +2403 -0
  74. data/sorbet/rbi/gems/crass@1.0.6.rbi +123 -0
  75. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +185 -0
  76. data/sorbet/rbi/gems/docile@1.4.0.rbi +54 -0
  77. data/sorbet/rbi/gems/erubi@1.10.0.rbi +36 -0
  78. data/sorbet/rbi/gems/erubis@2.7.0.rbi +8 -0
  79. data/sorbet/rbi/gems/faker@2.18.0.rbi +2469 -0
  80. data/sorbet/rbi/gems/ffi@1.15.3.rbi +8 -0
  81. data/sorbet/rbi/gems/flay@2.12.1.rbi +178 -0
  82. data/sorbet/rbi/gems/flog@4.6.4.rbi +70 -0
  83. data/sorbet/rbi/gems/formatador@0.3.0.rbi +8 -0
  84. data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +49 -0
  85. data/sorbet/rbi/gems/guard-rspec@4.7.3.rbi +233 -0
  86. data/sorbet/rbi/gems/guard-rubocop@1.4.0.rbi +66 -0
  87. data/sorbet/rbi/gems/guard-shell@0.7.2.rbi +69 -0
  88. data/sorbet/rbi/gems/guard@2.18.0.rbi +617 -0
  89. data/sorbet/rbi/gems/highline@2.0.3.rbi +8 -0
  90. data/sorbet/rbi/gems/i18n@1.8.10.rbi +616 -0
  91. data/sorbet/rbi/gems/io-console@0.5.9.rbi +8 -0
  92. data/sorbet/rbi/gems/irb@1.3.6.rbi +452 -0
  93. data/sorbet/rbi/gems/lefthook@0.7.6.rbi +8 -0
  94. data/sorbet/rbi/gems/listen@3.6.0.rbi +476 -0
  95. data/sorbet/rbi/gems/loofah@2.10.0.rbi +223 -0
  96. data/sorbet/rbi/gems/lumberjack@1.2.8.rbi +431 -0
  97. data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
  98. data/sorbet/rbi/gems/minitest@5.14.4.rbi +344 -0
  99. data/sorbet/rbi/gems/mutant-license@0.1.1.1.4043027289354708743625974235631451632228.0.rbi +8 -0
  100. data/sorbet/rbi/gems/mutant-rspec@0.10.32.rbi +8 -0
  101. data/sorbet/rbi/gems/mutant@0.10.32.rbi +4154 -0
  102. data/sorbet/rbi/gems/nenv@0.3.0.rbi +88 -0
  103. data/sorbet/rbi/gems/nokogiri@1.11.7.rbi +1422 -0
  104. data/sorbet/rbi/gems/notiffany@0.1.3.rbi +331 -0
  105. data/sorbet/rbi/gems/parallel@1.20.1.rbi +113 -0
  106. data/sorbet/rbi/gems/parlour@6.0.1.rbi +1726 -0
  107. data/sorbet/rbi/gems/parser@3.0.2.0.rbi +1683 -0
  108. data/sorbet/rbi/gems/path_expander@1.1.0.rbi +24 -0
  109. data/sorbet/rbi/gems/polyfill@1.9.0.rbi +393 -0
  110. data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
  111. data/sorbet/rbi/gems/racc@1.5.2.rbi +47 -0
  112. data/sorbet/rbi/gems/rack-test@1.1.0.rbi +272 -0
  113. data/sorbet/rbi/gems/rack@2.2.3.rbi +1618 -0
  114. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +92 -0
  115. data/sorbet/rbi/gems/rails-html-sanitizer@1.3.0.rbi +183 -0
  116. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +153 -0
  117. data/sorbet/rbi/gems/rake@13.0.6.rbi +808 -0
  118. data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +8 -0
  119. data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +8 -0
  120. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +1120 -0
  121. data/sorbet/rbi/gems/reline@0.2.6.rbi +662 -0
  122. data/sorbet/rbi/gems/rexml@3.2.5.rbi +672 -0
  123. data/sorbet/rbi/gems/rspec-core@3.10.1.rbi +2509 -0
  124. data/sorbet/rbi/gems/rspec-expectations@3.10.1.rbi +1574 -0
  125. data/sorbet/rbi/gems/rspec-mocks@3.10.2.rbi +1462 -0
  126. data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +509 -0
  127. data/sorbet/rbi/gems/rspec@3.10.0.rbi +38 -0
  128. data/sorbet/rbi/gems/rubocop-ast@1.8.0.rbi +2194 -0
  129. data/sorbet/rbi/gems/rubocop-performance@1.11.4.rbi +899 -0
  130. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +118 -0
  131. data/sorbet/rbi/gems/rubocop-rspec@2.4.0.rbi +1805 -0
  132. data/sorbet/rbi/gems/rubocop-sorbet@0.6.2.rbi +288 -0
  133. data/sorbet/rbi/gems/rubocop@1.18.4.rbi +13197 -0
  134. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
  135. data/sorbet/rbi/gems/ruby_parser@3.16.0.rbi +4528 -0
  136. data/sorbet/rbi/gems/safe_type@1.1.1.rbi +157 -0
  137. data/sorbet/rbi/gems/sexp_processor@4.15.3.rbi +359 -0
  138. data/sorbet/rbi/gems/shellany@0.0.1.rbi +28 -0
  139. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
  140. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
  141. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +8 -0
  142. data/sorbet/rbi/gems/sorbet-coerce@0.5.0.rbi +42 -0
  143. data/sorbet/rbi/gems/sorbet-rails@0.7.4.rbi +8 -0
  144. data/sorbet/rbi/gems/sorbet-struct-comparable@1.1.0.rbi +17 -0
  145. data/sorbet/rbi/gems/spoom@1.1.1.rbi +1193 -0
  146. data/sorbet/rbi/gems/tapioca@0.4.23.rbi +1826 -0
  147. data/sorbet/rbi/gems/thor@1.1.0.rbi +838 -0
  148. data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +856 -0
  149. data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +26 -0
  150. data/sorbet/rbi/gems/unparser@0.6.0.rbi +2037 -0
  151. data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +173 -0
  152. data/sorbet/rbi/todo.rbi +8 -0
  153. data/sorbet/rbi/typed_params.rbi +7 -0
  154. data/sorbet/tapioca/require.rb +16 -0
  155. metadata +269 -0
@@ -0,0 +1,476 @@
1
+ # DO NOT EDIT MANUALLY
2
+ # This is an autogenerated file for types exported from the `listen` gem.
3
+ # Please instead update this file by running `bin/tapioca sync`.
4
+
5
+ # typed: true
6
+
7
+ module Listen
8
+ class << self
9
+ def logger; end
10
+ def logger=(_arg0); end
11
+ def stop; end
12
+ def to(*args, &block); end
13
+
14
+ private
15
+
16
+ def default_logger; end
17
+ end
18
+ end
19
+
20
+ module Listen::Adapter
21
+ class << self
22
+ def select(options = T.unsafe(nil)); end
23
+
24
+ private
25
+
26
+ def _usable_adapter_class; end
27
+ def _warn_polling_fallback(options); end
28
+ end
29
+ end
30
+
31
+ class Listen::Adapter::BSD < ::Listen::Adapter::Base
32
+ private
33
+
34
+ def _change(event_flags); end
35
+ def _configure(directory, &callback); end
36
+ def _event_path(event); end
37
+ def _find(*paths, &block); end
38
+ def _process_event(dir, event); end
39
+ def _run; end
40
+ def _watch_file(path, queue); end
41
+ def _watch_for_new_file(event); end
42
+
43
+ class << self
44
+ def usable?; end
45
+ end
46
+ end
47
+
48
+ Listen::Adapter::BSD::BUNDLER_DECLARE_GEM = T.let(T.unsafe(nil), String)
49
+ Listen::Adapter::BSD::DEFAULTS = T.let(T.unsafe(nil), Hash)
50
+ Listen::Adapter::BSD::OS_REGEXP = T.let(T.unsafe(nil), Regexp)
51
+
52
+ class Listen::Adapter::Base
53
+ def initialize(config); end
54
+
55
+ def config; end
56
+ def configure; end
57
+ def options; end
58
+ def start; end
59
+ def started?; end
60
+ def stop; end
61
+
62
+ private
63
+
64
+ def _log_exception(msg, caller_stack); end
65
+ def _queue_change(type, dir, rel_path, options); end
66
+ def _stop; end
67
+ def _timed(title); end
68
+
69
+ class << self
70
+ def usable?; end
71
+ end
72
+ end
73
+
74
+ Listen::Adapter::Base::DEFAULTS = T.let(T.unsafe(nil), Hash)
75
+
76
+ class Listen::Adapter::Config
77
+ def initialize(directories, queue, silencer, adapter_options); end
78
+
79
+ def adapter_options; end
80
+ def directories; end
81
+ def queue; end
82
+ def silencer; end
83
+ end
84
+
85
+ class Listen::Adapter::Darwin < ::Listen::Adapter::Base
86
+ private
87
+
88
+ def _configure(dir, &callback); end
89
+ def _process_changes(dirs); end
90
+ def _process_event(dir, path); end
91
+ def _run; end
92
+ def _stop; end
93
+
94
+ class << self
95
+ def usable?; end
96
+ end
97
+ end
98
+
99
+ Listen::Adapter::Darwin::DEFAULTS = T.let(T.unsafe(nil), Hash)
100
+ Listen::Adapter::Darwin::INCOMPATIBLE_GEM_VERSION = T.let(T.unsafe(nil), String)
101
+ Listen::Adapter::Darwin::OS_REGEXP = T.let(T.unsafe(nil), Regexp)
102
+
103
+ class Listen::Adapter::Linux < ::Listen::Adapter::Base
104
+ private
105
+
106
+ def _change(event_flags); end
107
+ def _configure(directory, &callback); end
108
+ def _dir_event?(event); end
109
+ def _process_event(dir, event); end
110
+ def _run; end
111
+ def _skip_event?(event); end
112
+ def _stop; end
113
+ end
114
+
115
+ Listen::Adapter::Linux::DEFAULTS = T.let(T.unsafe(nil), Hash)
116
+ Listen::Adapter::Linux::INOTIFY_LIMIT_MESSAGE = T.let(T.unsafe(nil), String)
117
+ Listen::Adapter::Linux::OS_REGEXP = T.let(T.unsafe(nil), Regexp)
118
+ Listen::Adapter::Linux::README_URL = T.let(T.unsafe(nil), String)
119
+ Listen::Adapter::OPTIMIZED_ADAPTERS = T.let(T.unsafe(nil), Array)
120
+ Listen::Adapter::POLLING_FALLBACK_MESSAGE = T.let(T.unsafe(nil), String)
121
+
122
+ class Listen::Adapter::Polling < ::Listen::Adapter::Base
123
+ private
124
+
125
+ def _configure(_, &callback); end
126
+ def _process_event(dir, _); end
127
+ def _run; end
128
+ end
129
+
130
+ Listen::Adapter::Polling::DEFAULTS = T.let(T.unsafe(nil), Hash)
131
+ Listen::Adapter::Polling::OS_REGEXP = T.let(T.unsafe(nil), Regexp)
132
+
133
+ class Listen::Adapter::Windows < ::Listen::Adapter::Base
134
+ private
135
+
136
+ def _change(type); end
137
+ def _configure(dir); end
138
+ def _process_event(dir, event); end
139
+ def _run; end
140
+
141
+ class << self
142
+ def usable?; end
143
+ end
144
+ end
145
+
146
+ Listen::Adapter::Windows::BUNDLER_DECLARE_GEM = T.let(T.unsafe(nil), String)
147
+ Listen::Adapter::Windows::OS_REGEXP = T.let(T.unsafe(nil), Regexp)
148
+
149
+ class Listen::Backend
150
+ extend ::Forwardable
151
+
152
+ def initialize(directories, queue, silencer, config); end
153
+
154
+ def min_delay_between_events; end
155
+ def start(*args, &block); end
156
+ def stop(*args, &block); end
157
+
158
+ private
159
+
160
+ def adapter; end
161
+ end
162
+
163
+ class Listen::Change
164
+ def initialize(config, record); end
165
+
166
+ def invalidate(type, rel_path, options); end
167
+ def record; end
168
+ end
169
+
170
+ class Listen::Change::Config
171
+ def initialize(queue, silencer); end
172
+
173
+ def queue(*args); end
174
+ def silenced?(path, type); end
175
+ end
176
+
177
+ class Listen::Directory
178
+ class << self
179
+ def _async_changes(snapshot, path, previous, options); end
180
+ def _change(snapshot, type, path, options); end
181
+ def _children(path); end
182
+ def ascendant_of?(base, other); end
183
+ def scan(snapshot, rel_path, options); end
184
+ end
185
+ end
186
+
187
+ class Listen::Error < ::RuntimeError; end
188
+ class Listen::Error::NotStarted < ::Listen::Error; end
189
+ class Listen::Error::SymlinkLoop < ::Listen::Error; end
190
+ module Listen::Event; end
191
+
192
+ class Listen::Event::Config
193
+ def initialize(listener, event_queue, queue_optimizer, wait_for_delay, &block); end
194
+
195
+ def call(*args); end
196
+ def callable?; end
197
+ def event_queue; end
198
+ def listener; end
199
+ def min_delay_between_events; end
200
+ def optimize_changes(changes); end
201
+ def sleep(seconds); end
202
+ end
203
+
204
+ class Listen::Event::Loop
205
+ include ::Listen::FSM
206
+ extend ::Listen::FSM::ClassMethods
207
+
208
+ def initialize(config); end
209
+
210
+ def pause; end
211
+ def start; end
212
+ def started?; end
213
+ def stop; end
214
+ def stopped?; end
215
+ def wakeup_on_event; end
216
+
217
+ private
218
+
219
+ def _process_changes; end
220
+ def _wakeup(reason); end
221
+ end
222
+
223
+ Listen::Event::Loop::Error = Listen::Error
224
+ Listen::Event::Loop::MAX_STARTUP_SECONDS = T.let(T.unsafe(nil), Float)
225
+ Listen::Event::Loop::NotStarted = Listen::Error::NotStarted
226
+
227
+ class Listen::Event::Processor
228
+ def initialize(config, reasons); end
229
+
230
+ def loop_for(latency); end
231
+
232
+ private
233
+
234
+ def _check_stopped; end
235
+ def _deadline; end
236
+ def _flush_wakeup_reasons; end
237
+ def _process_changes(event); end
238
+ def _remember_time_of_first_unprocessed_event; end
239
+ def _reset_no_unprocessed_events; end
240
+ def _sleep(seconds); end
241
+ def _wait_until_events; end
242
+ def _wait_until_events_calm_down; end
243
+ def _wait_until_no_longer_paused; end
244
+ def config; end
245
+ end
246
+
247
+ class Listen::Event::Processor::Stopped < ::RuntimeError; end
248
+
249
+ class Listen::Event::Queue
250
+ extend ::Forwardable
251
+
252
+ def initialize(config); end
253
+
254
+ def <<(args); end
255
+ def close(*args, &block); end
256
+ def empty?(*args, &block); end
257
+ def pop(*args, &block); end
258
+
259
+ private
260
+
261
+ def _safe_relative_from_cwd(dir); end
262
+ end
263
+
264
+ class Listen::Event::Queue::Config
265
+ def initialize(relative); end
266
+
267
+ def relative?; end
268
+ end
269
+
270
+ module Listen::FSM
271
+ mixes_in_class_methods ::Listen::FSM::ClassMethods
272
+
273
+ def initialize_fsm; end
274
+ def state; end
275
+ def wait_for_state(*wait_for_states, timeout: T.unsafe(nil)); end
276
+
277
+ private
278
+
279
+ def current_state; end
280
+ def transition(new_state_name); end
281
+ def transition!(new_state_name); end
282
+ def transition_with_callbacks!(new_state); end
283
+ def validate_and_sanitize_new_state(new_state_name); end
284
+
285
+ class << self
286
+ def included(klass); end
287
+ end
288
+ end
289
+
290
+ module Listen::FSM::ClassMethods
291
+ def start_state(new_start_state = T.unsafe(nil)); end
292
+ def state(state_name, to: T.unsafe(nil), &block); end
293
+ def states; end
294
+ end
295
+
296
+ class Listen::FSM::State
297
+ def initialize(name, transitions, &block); end
298
+
299
+ def call(obj); end
300
+ def name; end
301
+ def transitions; end
302
+ def valid_transition?(new_state); end
303
+ end
304
+
305
+ class Listen::File
306
+ class << self
307
+ def change(record, rel_path); end
308
+ def inaccurate_mac_time?(stat); end
309
+ end
310
+ end
311
+
312
+ class Listen::Listener
313
+ include ::Listen::FSM
314
+ extend ::Listen::FSM::ClassMethods
315
+
316
+ def initialize(*dirs, &block); end
317
+
318
+ def ignore(regexps); end
319
+ def ignore!(regexps); end
320
+ def only(regexps); end
321
+ def pause; end
322
+ def paused?; end
323
+ def processing?; end
324
+ def start; end
325
+ def stop; end
326
+ def stopped?; end
327
+ end
328
+
329
+ class Listen::Listener::Config
330
+ def initialize(opts); end
331
+
332
+ def adapter_instance_options(klass); end
333
+ def adapter_select_options; end
334
+ def min_delay_between_events; end
335
+ def relative?; end
336
+ def silencer_rules; end
337
+ end
338
+
339
+ Listen::Listener::Config::DEFAULTS = T.let(T.unsafe(nil), Hash)
340
+
341
+ module Listen::MonotonicTime
342
+ class << self
343
+ def now; end
344
+ end
345
+ end
346
+
347
+ class Listen::Options
348
+ def initialize(opts, defaults); end
349
+
350
+ def method_missing(name, *_); end
351
+
352
+ private
353
+
354
+ def respond_to_missing?(name, *_); end
355
+ end
356
+
357
+ class Listen::QueueOptimizer
358
+ def initialize(config); end
359
+
360
+ def smoosh_changes(changes); end
361
+
362
+ private
363
+
364
+ def _calculate_add_remove_difference(actions, path, default_if_exists); end
365
+ def _logical_action_for(path, actions); end
366
+ def _reinterpret_related_changes(cookies); end
367
+ def _squash_changes(changes); end
368
+ def config; end
369
+ def editor_modified?(changes); end
370
+ end
371
+
372
+ class Listen::QueueOptimizer::Config
373
+ def initialize(adapter_class, silencer); end
374
+
375
+ def debug(*args, &block); end
376
+ def exist?(path); end
377
+ def silenced?(path, type); end
378
+ end
379
+
380
+ class Listen::Record
381
+ def initialize(directory); end
382
+
383
+ def add_dir(rel_path); end
384
+ def build; end
385
+ def dir_entries(rel_path); end
386
+ def file_data(rel_path); end
387
+ def root; end
388
+ def unset_path(rel_path); end
389
+ def update_file(rel_path, data); end
390
+
391
+ private
392
+
393
+ def _auto_hash; end
394
+ def _fast_build_dir(remaining, symlink_detector); end
395
+ def _fast_try_file(entry); end
396
+ def _fast_unset_path(dirname, basename); end
397
+ def _fast_update_file(dirname, basename, data); end
398
+ end
399
+
400
+ class Listen::Record::Entry
401
+ def initialize(root, relative, name = T.unsafe(nil)); end
402
+
403
+ def children; end
404
+ def meta; end
405
+ def name; end
406
+ def real_path; end
407
+ def record_dir_key; end
408
+ def relative; end
409
+ def root; end
410
+ def sys_path; end
411
+
412
+ private
413
+
414
+ def _entries(dir); end
415
+ def _join; end
416
+ end
417
+
418
+ class Listen::Record::SymlinkDetector
419
+ def initialize; end
420
+
421
+ def verify_unwatched!(entry); end
422
+
423
+ private
424
+
425
+ def _fail(symlinked, real_path); end
426
+ end
427
+
428
+ Listen::Record::SymlinkDetector::Error = Listen::Error
429
+ Listen::Record::SymlinkDetector::README_URL = T.let(T.unsafe(nil), String)
430
+ Listen::Record::SymlinkDetector::SYMLINK_LOOP_ERROR = T.let(T.unsafe(nil), String)
431
+
432
+ class Listen::Silencer
433
+ def initialize; end
434
+
435
+ def configure(options); end
436
+ def ignore_patterns; end
437
+ def ignore_patterns=(_arg0); end
438
+ def only_patterns; end
439
+ def only_patterns=(_arg0); end
440
+ def silenced?(relative_path, type); end
441
+
442
+ private
443
+
444
+ def _ignore?(path); end
445
+ def _init_ignores(ignores, overrides); end
446
+ def _only?(path); end
447
+ end
448
+
449
+ class Listen::Silencer::Controller
450
+ def initialize(silencer, default_options); end
451
+
452
+ def append_ignores(*regexps); end
453
+ def replace_with_bang_ignores(regexps); end
454
+ def replace_with_only(regexps); end
455
+
456
+ private
457
+
458
+ def _reconfigure_silencer(extra_options); end
459
+ end
460
+
461
+ Listen::Silencer::DEFAULT_IGNORED_DIRECTORIES = T.let(T.unsafe(nil), Regexp)
462
+ Listen::Silencer::DEFAULT_IGNORED_EXTENSIONS = T.let(T.unsafe(nil), Regexp)
463
+
464
+ module Listen::Thread
465
+ class << self
466
+ def new(name, &block); end
467
+ def rescue_and_log(method_name, *args, caller_stack: T.unsafe(nil)); end
468
+
469
+ private
470
+
471
+ def _exception_with_causes(exception); end
472
+ def _log_exception(exception, thread_name, caller_stack: T.unsafe(nil)); end
473
+ end
474
+ end
475
+
476
+ Listen::VERSION = T.let(T.unsafe(nil), String)
@@ -0,0 +1,223 @@
1
+ # DO NOT EDIT MANUALLY
2
+ # This is an autogenerated file for types exported from the `loofah` gem.
3
+ # Please instead update this file by running `bin/tapioca sync`.
4
+
5
+ # typed: true
6
+
7
+ module Loofah
8
+ class << self
9
+ def document(*args, &block); end
10
+ def fragment(*args, &block); end
11
+ def remove_extraneous_whitespace(string); end
12
+ def scrub_document(string_or_io, method); end
13
+ def scrub_fragment(string_or_io, method); end
14
+ def scrub_xml_document(string_or_io, method); end
15
+ def scrub_xml_fragment(string_or_io, method); end
16
+ def xml_document(*args, &block); end
17
+ def xml_fragment(*args, &block); end
18
+
19
+ private
20
+
21
+ def remove_comments_before_html_element(doc); end
22
+ end
23
+ end
24
+
25
+ module Loofah::DocumentDecorator
26
+ def initialize(*args, &block); end
27
+ end
28
+
29
+ module Loofah::Elements; end
30
+ Loofah::Elements::BLOCK_LEVEL = T.let(T.unsafe(nil), Set)
31
+ Loofah::Elements::LOOSE_BLOCK_LEVEL = T.let(T.unsafe(nil), Set)
32
+ Loofah::Elements::STRICT_BLOCK_LEVEL = T.let(T.unsafe(nil), Set)
33
+ Loofah::Elements::STRICT_BLOCK_LEVEL_HTML4 = T.let(T.unsafe(nil), Set)
34
+ Loofah::Elements::STRICT_BLOCK_LEVEL_HTML5 = T.let(T.unsafe(nil), Set)
35
+ module Loofah::HTML; end
36
+ module Loofah::HTML5; end
37
+ module Loofah::HTML5::SafeList; end
38
+ Loofah::HTML5::SafeList::ACCEPTABLE_ATTRIBUTES = T.let(T.unsafe(nil), Set)
39
+ Loofah::HTML5::SafeList::ACCEPTABLE_CSS_FUNCTIONS = T.let(T.unsafe(nil), Set)
40
+ Loofah::HTML5::SafeList::ACCEPTABLE_CSS_KEYWORDS = T.let(T.unsafe(nil), Set)
41
+ Loofah::HTML5::SafeList::ACCEPTABLE_CSS_PROPERTIES = T.let(T.unsafe(nil), Set)
42
+ Loofah::HTML5::SafeList::ACCEPTABLE_ELEMENTS = T.let(T.unsafe(nil), Set)
43
+ Loofah::HTML5::SafeList::ACCEPTABLE_PROTOCOLS = T.let(T.unsafe(nil), Set)
44
+ Loofah::HTML5::SafeList::ACCEPTABLE_SVG_PROPERTIES = T.let(T.unsafe(nil), Set)
45
+ Loofah::HTML5::SafeList::ACCEPTABLE_URI_DATA_MEDIATYPES = T.let(T.unsafe(nil), Set)
46
+ Loofah::HTML5::SafeList::ALLOWED_ATTRIBUTES = T.let(T.unsafe(nil), Set)
47
+ Loofah::HTML5::SafeList::ALLOWED_CSS_FUNCTIONS = T.let(T.unsafe(nil), Set)
48
+ Loofah::HTML5::SafeList::ALLOWED_CSS_KEYWORDS = T.let(T.unsafe(nil), Set)
49
+ Loofah::HTML5::SafeList::ALLOWED_CSS_PROPERTIES = T.let(T.unsafe(nil), Set)
50
+ Loofah::HTML5::SafeList::ALLOWED_ELEMENTS = T.let(T.unsafe(nil), Set)
51
+ Loofah::HTML5::SafeList::ALLOWED_ELEMENTS_WITH_LIBXML2 = T.let(T.unsafe(nil), Set)
52
+ Loofah::HTML5::SafeList::ALLOWED_PROTOCOLS = T.let(T.unsafe(nil), Set)
53
+ Loofah::HTML5::SafeList::ALLOWED_SVG_PROPERTIES = T.let(T.unsafe(nil), Set)
54
+ Loofah::HTML5::SafeList::ALLOWED_URI_DATA_MEDIATYPES = T.let(T.unsafe(nil), Set)
55
+ Loofah::HTML5::SafeList::ATTR_VAL_IS_URI = T.let(T.unsafe(nil), Set)
56
+ Loofah::HTML5::SafeList::MATHML_ATTRIBUTES = T.let(T.unsafe(nil), Set)
57
+ Loofah::HTML5::SafeList::MATHML_ELEMENTS = T.let(T.unsafe(nil), Set)
58
+ Loofah::HTML5::SafeList::PROTOCOL_SEPARATOR = T.let(T.unsafe(nil), Regexp)
59
+ Loofah::HTML5::SafeList::SHORTHAND_CSS_PROPERTIES = T.let(T.unsafe(nil), Set)
60
+ Loofah::HTML5::SafeList::SVG_ALLOW_LOCAL_HREF = T.let(T.unsafe(nil), Set)
61
+ Loofah::HTML5::SafeList::SVG_ATTRIBUTES = T.let(T.unsafe(nil), Set)
62
+ Loofah::HTML5::SafeList::SVG_ATTR_VAL_ALLOWS_REF = T.let(T.unsafe(nil), Set)
63
+ Loofah::HTML5::SafeList::SVG_ELEMENTS = T.let(T.unsafe(nil), Set)
64
+ Loofah::HTML5::SafeList::TAGS_SAFE_WITH_LIBXML2 = T.let(T.unsafe(nil), Set)
65
+ Loofah::HTML5::SafeList::VOID_ELEMENTS = T.let(T.unsafe(nil), Set)
66
+
67
+ module Loofah::HTML5::Scrub
68
+ class << self
69
+ def allowed_element?(element_name); end
70
+ def force_correct_attribute_escaping!(node); end
71
+ def scrub_attributes(node); end
72
+ def scrub_css(style); end
73
+ def scrub_css_attribute(node); end
74
+ end
75
+ end
76
+
77
+ Loofah::HTML5::Scrub::CONTROL_CHARACTERS = T.let(T.unsafe(nil), Regexp)
78
+ Loofah::HTML5::Scrub::CRASS_SEMICOLON = T.let(T.unsafe(nil), Hash)
79
+ Loofah::HTML5::Scrub::CSS_IMPORTANT = T.let(T.unsafe(nil), String)
80
+ Loofah::HTML5::Scrub::CSS_KEYWORDISH = T.let(T.unsafe(nil), Regexp)
81
+ Loofah::HTML5::Scrub::CSS_PROPERTY_STRING_WITHOUT_EMBEDDED_QUOTES = T.let(T.unsafe(nil), Regexp)
82
+ Loofah::HTML5::WhiteList = Loofah::HTML5::SafeList
83
+
84
+ class Loofah::HTML::Document < ::Nokogiri::HTML::Document
85
+ include ::Loofah::ScrubBehavior::Node
86
+ include ::Loofah::DocumentDecorator
87
+ include ::Loofah::TextBehavior
88
+
89
+ def serialize_root; end
90
+ end
91
+
92
+ class Loofah::HTML::DocumentFragment < ::Nokogiri::HTML::DocumentFragment
93
+ include ::Loofah::TextBehavior
94
+
95
+ def serialize; end
96
+ def serialize_root; end
97
+ def to_s; end
98
+
99
+ class << self
100
+ def parse(tags, encoding = T.unsafe(nil)); end
101
+ end
102
+ end
103
+
104
+ module Loofah::LibxmlWorkarounds; end
105
+ Loofah::LibxmlWorkarounds::BROKEN_ESCAPING_ATTRIBUTES = T.let(T.unsafe(nil), Set)
106
+ Loofah::LibxmlWorkarounds::BROKEN_ESCAPING_ATTRIBUTES_QUALIFYING_TAG = T.let(T.unsafe(nil), Hash)
107
+
108
+ module Loofah::MetaHelpers
109
+ class << self
110
+ def add_downcased_set_members_to_all_set_constants(mojule); end
111
+ end
112
+ end
113
+
114
+ module Loofah::ScrubBehavior
115
+ class << self
116
+ def resolve_scrubber(scrubber); end
117
+ end
118
+ end
119
+
120
+ module Loofah::ScrubBehavior::Node
121
+ def scrub!(scrubber); end
122
+ end
123
+
124
+ module Loofah::ScrubBehavior::NodeSet
125
+ def scrub!(scrubber); end
126
+ end
127
+
128
+ class Loofah::Scrubber
129
+ def initialize(options = T.unsafe(nil), &block); end
130
+
131
+ def append_attribute(node, attribute, value); end
132
+ def block; end
133
+ def direction; end
134
+ def scrub(node); end
135
+ def traverse(node); end
136
+
137
+ private
138
+
139
+ def html5lib_sanitize(node); end
140
+ def traverse_conditionally_bottom_up(node); end
141
+ def traverse_conditionally_top_down(node); end
142
+ end
143
+
144
+ Loofah::Scrubber::CONTINUE = T.let(T.unsafe(nil), Object)
145
+ Loofah::Scrubber::STOP = T.let(T.unsafe(nil), Object)
146
+ class Loofah::ScrubberNotFound < ::RuntimeError; end
147
+
148
+ module Loofah::Scrubbers
149
+ class << self
150
+ def scrubber_symbols; end
151
+ end
152
+ end
153
+
154
+ class Loofah::Scrubbers::Escape < ::Loofah::Scrubber
155
+ def initialize; end
156
+
157
+ def scrub(node); end
158
+ end
159
+
160
+ Loofah::Scrubbers::MAP = T.let(T.unsafe(nil), Hash)
161
+
162
+ class Loofah::Scrubbers::NewlineBlockElements < ::Loofah::Scrubber
163
+ def initialize; end
164
+
165
+ def scrub(node); end
166
+ end
167
+
168
+ class Loofah::Scrubbers::NoFollow < ::Loofah::Scrubber
169
+ def initialize; end
170
+
171
+ def scrub(node); end
172
+ end
173
+
174
+ class Loofah::Scrubbers::NoOpener < ::Loofah::Scrubber
175
+ def initialize; end
176
+
177
+ def scrub(node); end
178
+ end
179
+
180
+ class Loofah::Scrubbers::Prune < ::Loofah::Scrubber
181
+ def initialize; end
182
+
183
+ def scrub(node); end
184
+ end
185
+
186
+ class Loofah::Scrubbers::Strip < ::Loofah::Scrubber
187
+ def initialize; end
188
+
189
+ def scrub(node); end
190
+ end
191
+
192
+ class Loofah::Scrubbers::Unprintable < ::Loofah::Scrubber
193
+ def initialize; end
194
+
195
+ def scrub(node); end
196
+ end
197
+
198
+ class Loofah::Scrubbers::Whitewash < ::Loofah::Scrubber
199
+ def initialize; end
200
+
201
+ def scrub(node); end
202
+ end
203
+
204
+ module Loofah::TextBehavior
205
+ def inner_text(options = T.unsafe(nil)); end
206
+ def text(options = T.unsafe(nil)); end
207
+ def to_str(options = T.unsafe(nil)); end
208
+ def to_text(options = T.unsafe(nil)); end
209
+ end
210
+
211
+ Loofah::VERSION = T.let(T.unsafe(nil), String)
212
+ module Loofah::XML; end
213
+
214
+ class Loofah::XML::Document < ::Nokogiri::XML::Document
215
+ include ::Loofah::ScrubBehavior::Node
216
+ include ::Loofah::DocumentDecorator
217
+ end
218
+
219
+ class Loofah::XML::DocumentFragment < ::Nokogiri::XML::DocumentFragment
220
+ class << self
221
+ def parse(tags); end
222
+ end
223
+ end