redis-promise 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 (48) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/ci.yml +74 -0
  3. data/CHANGELOG.md +19 -0
  4. data/LICENSE +21 -0
  5. data/README.md +151 -0
  6. data/Rakefile +12 -0
  7. data/lib/redis/promise/resolver.rb +47 -0
  8. data/lib/redis/promise/resque.rb +49 -0
  9. data/lib/redis/promise/version.rb +8 -0
  10. data/lib/redis/promise.rb +83 -0
  11. data/sorbet/config +7 -0
  12. data/sorbet/rbi/annotations/.gitattributes +1 -0
  13. data/sorbet/rbi/annotations/minitest.rbi +120 -0
  14. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  15. data/sorbet/rbi/gems/.gitattributes +1 -0
  16. data/sorbet/rbi/gems/ast@2.4.3.rbi +586 -0
  17. data/sorbet/rbi/gems/byebug@13.0.0.rbi +37 -0
  18. data/sorbet/rbi/gems/connection_pool@3.0.2.rbi +340 -0
  19. data/sorbet/rbi/gems/date@3.5.1.rbi +403 -0
  20. data/sorbet/rbi/gems/erb@6.0.4.rbi +814 -0
  21. data/sorbet/rbi/gems/io-console@0.8.2.rbi +9 -0
  22. data/sorbet/rbi/gems/json@2.19.5.rbi +2250 -0
  23. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +323 -0
  24. data/sorbet/rbi/gems/minitest@5.27.0.rbi +1549 -0
  25. data/sorbet/rbi/gems/parallel@2.1.0.rbi +359 -0
  26. data/sorbet/rbi/gems/pp@0.6.3.rbi +388 -0
  27. data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +477 -0
  28. data/sorbet/rbi/gems/psych@5.3.1.rbi +2555 -0
  29. data/sorbet/rbi/gems/racc@1.8.1.rbi +168 -0
  30. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  31. data/sorbet/rbi/gems/rake@13.4.2.rbi +3258 -0
  32. data/sorbet/rbi/gems/redis-client@0.29.0.rbi +1203 -0
  33. data/sorbet/rbi/gems/redis@5.4.1.rbi +3552 -0
  34. data/sorbet/rbi/gems/reline@0.6.3.rbi +2995 -0
  35. data/sorbet/rbi/gems/rubocop-espago@1.2.0.rbi +9 -0
  36. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  37. data/sorbet/rbi/gems/shoulda-context@2.0.0.rbi +563 -0
  38. data/sorbet/rbi/gems/stringio@3.2.0.rbi +9 -0
  39. data/sorbet/rbi/gems/tsort@0.2.0.rbi +393 -0
  40. data/sorbet/rbi/gems/unicode-display_width@3.2.0.rbi +132 -0
  41. data/sorbet/rbi/gems/unicode-emoji@4.2.0.rbi +254 -0
  42. data/sorbet/rbi/shims/gems/resque.rbi +9 -0
  43. data/sorbet/rbi/shims/gems/shoulda-context.rbi +16 -0
  44. data/sorbet/rbi/todo.rbi +5 -0
  45. data/sorbet/tapioca/config.yml +31 -0
  46. data/sorbet/tapioca/extensions/load_gem.rb +1 -0
  47. data/sorbet/tapioca/require.rb +5 -0
  48. metadata +117 -0
@@ -0,0 +1,3258 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `rake` gem.
5
+ # Please instead update this file by running `bin/tapioca gem rake`.
6
+
7
+
8
+ # :stopdoc:
9
+ #
10
+ # Some top level Constants.
11
+ #
12
+ # source://rake//lib/rake.rb#68
13
+ FileList = Rake::FileList
14
+
15
+ # --
16
+ # This a FileUtils extension that defines several additional commands to be
17
+ # added to the FileUtils utility functions.
18
+ #
19
+ # source://rake//lib/rake/file_utils.rb#8
20
+ module FileUtils
21
+ # Run a Ruby interpreter with the given arguments.
22
+ #
23
+ # Example:
24
+ # ruby %{-pe '$_.upcase!' <README}
25
+ #
26
+ # source://rake//lib/rake/file_utils.rb#103
27
+ def ruby(*args, **options, &block); end
28
+
29
+ # Attempt to do a normal file link, but fall back to a copy if the link
30
+ # fails.
31
+ #
32
+ # source://rake//lib/rake/file_utils.rb#115
33
+ def safe_ln(*args, **options); end
34
+
35
+ # Run the system command +cmd+. If multiple arguments are given the command
36
+ # is run directly (without the shell, same semantics as Kernel::exec and
37
+ # Kernel::system).
38
+ #
39
+ # It is recommended you use the multiple argument form over interpolating
40
+ # user input for both usability and security reasons. With the multiple
41
+ # argument form you can easily process files with spaces or other shell
42
+ # reserved characters in them. With the multiple argument form your rake
43
+ # tasks are not vulnerable to users providing an argument like
44
+ # <code>; rm # -rf /</code>.
45
+ #
46
+ # If a block is given, upon command completion the block is called with an
47
+ # OK flag (true on a zero exit status) and a Process::Status object.
48
+ # Without a block a RuntimeError is raised when the command exits non-zero.
49
+ #
50
+ # Examples:
51
+ #
52
+ # sh 'ls -ltr'
53
+ #
54
+ # sh 'ls', 'file with spaces'
55
+ #
56
+ # # check exit status after command runs
57
+ # sh %{grep pattern file} do |ok, res|
58
+ # if !ok
59
+ # puts "pattern not found (status = #{res.exitstatus})"
60
+ # end
61
+ # end
62
+ #
63
+ # source://rake//lib/rake/file_utils.rb#43
64
+ def sh(*cmd, &block); end
65
+
66
+ # Split a file path into individual directory names.
67
+ #
68
+ # Example:
69
+ # split_all("a/b/c") => ['a', 'b', 'c']
70
+ #
71
+ # source://rake//lib/rake/file_utils.rb#131
72
+ def split_all(path); end
73
+
74
+ private
75
+
76
+ # source://rake//lib/rake/file_utils.rb#61
77
+ def create_shell_runner(cmd); end
78
+
79
+ # source://rake//lib/rake/file_utils.rb#89
80
+ def set_verbose_option(options); end
81
+
82
+ # source://rake//lib/rake/file_utils.rb#71
83
+ def sh_show_command(cmd, options = T.unsafe(nil)); end
84
+ end
85
+
86
+ # source://rake//lib/rake/file_utils.rb#111
87
+ FileUtils::LN_SUPPORTED = T.let(T.unsafe(nil), Array)
88
+
89
+ # Path to the currently running Ruby program
90
+ #
91
+ # source://rake//lib/rake/file_utils.rb#10
92
+ FileUtils::RUBY = T.let(T.unsafe(nil), String)
93
+
94
+ # source://rake//lib/rake/ext/core.rb#2
95
+ class Module
96
+ # Check for an existing method in the current class before extending. If
97
+ # the method already exists, then a warning is printed and the extension is
98
+ # not added. Otherwise the block is yielded and any definitions in the
99
+ # block will take effect.
100
+ #
101
+ # Usage:
102
+ #
103
+ # class String
104
+ # rake_extension("xyz") do
105
+ # def xyz
106
+ # ...
107
+ # end
108
+ # end
109
+ # end
110
+ #
111
+ # source://rake//lib/rake/ext/core.rb#18
112
+ def rake_extension(method); end
113
+ end
114
+
115
+ # source://rake//lib/rake.rb#24
116
+ module Rake
117
+ extend ::FileUtils::StreamUtils_
118
+ extend ::FileUtils
119
+ extend ::Rake::FileUtilsExt
120
+
121
+ class << self
122
+ # Add files to the rakelib list
123
+ #
124
+ # source://rake//lib/rake/rake_module.rb#33
125
+ def add_rakelib(*files); end
126
+
127
+ # Current Rake Application
128
+ #
129
+ # source://rake//lib/rake/rake_module.rb#8
130
+ def application; end
131
+
132
+ # Set the current Rake application object.
133
+ #
134
+ # source://rake//lib/rake/rake_module.rb#13
135
+ def application=(app); end
136
+
137
+ # Yield each file or directory component.
138
+ #
139
+ # source://rake//lib/rake/file_list.rb#418
140
+ def each_dir_parent(dir); end
141
+
142
+ # Convert Pathname and Pathname-like objects to strings;
143
+ # leave everything else alone
144
+ #
145
+ # source://rake//lib/rake/file_list.rb#429
146
+ def from_pathname(path); end
147
+
148
+ # Load a rakefile.
149
+ #
150
+ # source://rake//lib/rake/rake_module.rb#28
151
+ def load_rakefile(path); end
152
+
153
+ # Return the original directory where the Rake application was started.
154
+ #
155
+ # source://rake//lib/rake/rake_module.rb#23
156
+ def original_dir; end
157
+
158
+ # source://rake//lib/rake/rake_module.rb#17
159
+ def suggested_thread_count; end
160
+
161
+ # Make +block_application+ the default rake application inside a block so
162
+ # you can load rakefiles into a different application.
163
+ #
164
+ # This is useful when you want to run rake tasks inside a library without
165
+ # running rake in a sub-shell.
166
+ #
167
+ # Example:
168
+ #
169
+ # Dir.chdir 'other/directory'
170
+ #
171
+ # other_rake = Rake.with_application do |rake|
172
+ # rake.load_rakefile
173
+ # end
174
+ #
175
+ # puts other_rake.tasks
176
+ #
177
+ # source://rake//lib/rake/rake_module.rb#54
178
+ def with_application(block_application = T.unsafe(nil)); end
179
+ end
180
+ end
181
+
182
+ # Rake main application object. When invoking +rake+ from the
183
+ # command line, a Rake::Application object is created and run.
184
+ #
185
+ # source://rake//lib/rake/application.rb#20
186
+ class Rake::Application
187
+ include ::Rake::TaskManager
188
+ include ::Rake::TraceOutput
189
+
190
+ # Initialize a Rake::Application object.
191
+ #
192
+ # @return [Application] a new instance of Application
193
+ #
194
+ # source://rake//lib/rake/application.rb#50
195
+ def initialize; end
196
+
197
+ # Add a file to the list of files to be imported.
198
+ #
199
+ # source://rake//lib/rake/application.rb#793
200
+ def add_import(fn); end
201
+
202
+ # Add a loader to handle imported files ending in the extension
203
+ # +ext+.
204
+ #
205
+ # source://rake//lib/rake/application.rb#162
206
+ def add_loader(ext, loader); end
207
+
208
+ # Collect the list of tasks on the command line. If no tasks are
209
+ # given, return a list containing only the default task.
210
+ # Environmental assignments are processed at this time as well.
211
+ #
212
+ # `args` is the list of arguments to peruse to get the list of tasks.
213
+ # It should be the command line that was given to rake, less any
214
+ # recognised command-line options, which OptionParser.parse will
215
+ # have taken care of already.
216
+ #
217
+ # source://rake//lib/rake/application.rb#774
218
+ def collect_command_line_tasks(args); end
219
+
220
+ # Default task name ("default").
221
+ # (May be overridden by subclasses)
222
+ #
223
+ # source://rake//lib/rake/application.rb#788
224
+ def default_task_name; end
225
+
226
+ # Warn about deprecated usage.
227
+ #
228
+ # Example:
229
+ # Rake.application.deprecate("import", "Rake.import", caller.first)
230
+ #
231
+ # source://rake//lib/rake/application.rb#283
232
+ def deprecate(old_usage, new_usage, call_site); end
233
+
234
+ # source://rake//lib/rake/application.rb#245
235
+ def display_cause_details(ex); end
236
+
237
+ # Display the error message that caused the exception.
238
+ #
239
+ # source://rake//lib/rake/application.rb#229
240
+ def display_error_message(ex); end
241
+
242
+ # source://rake//lib/rake/application.rb#270
243
+ def display_exception_backtrace(ex); end
244
+
245
+ # source://rake//lib/rake/application.rb#237
246
+ def display_exception_details(ex); end
247
+
248
+ # source://rake//lib/rake/application.rb#252
249
+ def display_exception_details_seen; end
250
+
251
+ # source://rake//lib/rake/application.rb#260
252
+ def display_exception_message_details(ex); end
253
+
254
+ # Display the tasks and prerequisites
255
+ #
256
+ # source://rake//lib/rake/application.rb#406
257
+ def display_prerequisites; end
258
+
259
+ # Display the tasks and comments.
260
+ #
261
+ # source://rake//lib/rake/application.rb#323
262
+ def display_tasks_and_comments; end
263
+
264
+ # Calculate the dynamic width of the
265
+ #
266
+ # source://rake//lib/rake/application.rb#374
267
+ def dynamic_width; end
268
+
269
+ # source://rake//lib/rake/application.rb#378
270
+ def dynamic_width_stty; end
271
+
272
+ # source://rake//lib/rake/application.rb#382
273
+ def dynamic_width_tput; end
274
+
275
+ # Exit the program because of an unhandled exception.
276
+ # (may be overridden by subclasses)
277
+ #
278
+ # source://rake//lib/rake/application.rb#224
279
+ def exit_because_of_exception(ex); end
280
+
281
+ # source://rake//lib/rake/application.rb#703
282
+ def find_rakefile_location; end
283
+
284
+ # Read and handle the command line options. Returns the command line
285
+ # arguments that we didn't understand, which should (in theory) be just
286
+ # task names and env vars.
287
+ #
288
+ # source://rake//lib/rake/application.rb#669
289
+ def handle_options(argv); end
290
+
291
+ # @return [Boolean]
292
+ #
293
+ # source://rake//lib/rake/application.rb#256
294
+ def has_cause?(ex); end
295
+
296
+ # True if one of the files in RAKEFILES is in the current directory.
297
+ # If a match is found, it is copied into @rakefile.
298
+ #
299
+ # source://rake//lib/rake/application.rb#299
300
+ def have_rakefile; end
301
+
302
+ # Initialize the command line parameters and app name.
303
+ #
304
+ # source://rake//lib/rake/application.rb#89
305
+ def init(app_name = T.unsafe(nil), argv = T.unsafe(nil)); end
306
+
307
+ # Invokes a task with arguments that are extracted from +task_string+
308
+ #
309
+ # source://rake//lib/rake/application.rb#180
310
+ def invoke_task(task_string); end
311
+
312
+ # Load the pending list of imported files.
313
+ #
314
+ # source://rake//lib/rake/application.rb#798
315
+ def load_imports; end
316
+
317
+ # Find the rakefile and then load it and any pending imports.
318
+ #
319
+ # source://rake//lib/rake/application.rb#125
320
+ def load_rakefile; end
321
+
322
+ # The name of the application (typically 'rake')
323
+ #
324
+ # source://rake//lib/rake/application.rb#25
325
+ def name; end
326
+
327
+ # Application options from the command line
328
+ #
329
+ # source://rake//lib/rake/application.rb#168
330
+ def options; end
331
+
332
+ # The original directory where rake was invoked.
333
+ #
334
+ # source://rake//lib/rake/application.rb#28
335
+ def original_dir; end
336
+
337
+ # source://rake//lib/rake/application.rb#186
338
+ def parse_task_string(string); end
339
+
340
+ # source://rake//lib/rake/application.rb#715
341
+ def print_rakefile_directory(location); end
342
+
343
+ # Similar to the regular Ruby +require+ command, but will check
344
+ # for *.rake files in addition to *.rb files.
345
+ #
346
+ # source://rake//lib/rake/application.rb#689
347
+ def rake_require(file_name, paths = T.unsafe(nil), loaded = T.unsafe(nil)); end
348
+
349
+ # Name of the actual rakefile used.
350
+ #
351
+ # source://rake//lib/rake/application.rb#31
352
+ def rakefile; end
353
+
354
+ # source://rake//lib/rake/application.rb#814
355
+ def rakefile_location(backtrace = T.unsafe(nil)); end
356
+
357
+ # source://rake//lib/rake/application.rb#720
358
+ def raw_load_rakefile; end
359
+
360
+ # Run the Rake application. The run method performs the following
361
+ # three steps:
362
+ #
363
+ # * Initialize the command line options (+init+).
364
+ # * Define the tasks (+load_rakefile+).
365
+ # * Run the top level tasks (+top_level+).
366
+ #
367
+ # If you wish to build a custom rake command, you should call
368
+ # +init+ on your application. Then define any tasks. Finally,
369
+ # call +top_level+ to run your top level tasks.
370
+ #
371
+ # source://rake//lib/rake/application.rb#80
372
+ def run(argv = T.unsafe(nil)); end
373
+
374
+ # Run the given block with the thread startup and shutdown.
375
+ #
376
+ # source://rake//lib/rake/application.rb#145
377
+ def run_with_threads; end
378
+
379
+ # source://rake//lib/rake/application.rb#823
380
+ def set_default_options; end
381
+
382
+ # Provide standard exception handling for the given block.
383
+ #
384
+ # source://rake//lib/rake/application.rb#208
385
+ def standard_exception_handling; end
386
+
387
+ # A list of all the standard options used in rake, suitable for
388
+ # passing to OptionParser.
389
+ #
390
+ # source://rake//lib/rake/application.rb#427
391
+ def standard_rake_options; end
392
+
393
+ # The directory path containing the system wide rakefiles.
394
+ #
395
+ # source://rake//lib/rake/application.rb#752
396
+ def system_dir; end
397
+
398
+ # Number of columns on the terminal
399
+ #
400
+ # source://rake//lib/rake/application.rb#34
401
+ def terminal_columns; end
402
+
403
+ # Number of columns on the terminal
404
+ #
405
+ # source://rake//lib/rake/application.rb#34
406
+ def terminal_columns=(_arg0); end
407
+
408
+ # source://rake//lib/rake/application.rb#362
409
+ def terminal_width; end
410
+
411
+ # Return the thread pool used for multithreaded processing.
412
+ #
413
+ # source://rake//lib/rake/application.rb#173
414
+ def thread_pool; end
415
+
416
+ # Run the top level tasks of a Rake application.
417
+ #
418
+ # source://rake//lib/rake/application.rb#132
419
+ def top_level; end
420
+
421
+ # List of the top level task names (task names from the command line).
422
+ #
423
+ # source://rake//lib/rake/application.rb#37
424
+ def top_level_tasks; end
425
+
426
+ # source://rake//lib/rake/application.rb#413
427
+ def trace(*strings); end
428
+
429
+ # source://rake//lib/rake/application.rb#395
430
+ def truncate(string, width); end
431
+
432
+ # We will truncate output if we are outputting to a TTY or if we've been
433
+ # given an explicit column width to honor
434
+ #
435
+ # @return [Boolean]
436
+ #
437
+ # source://rake//lib/rake/application.rb#318
438
+ def truncate_output?; end
439
+
440
+ # Override the detected TTY output state (mostly for testing)
441
+ #
442
+ # source://rake//lib/rake/application.rb#40
443
+ def tty_output=(_arg0); end
444
+
445
+ # True if we are outputting to TTY, false otherwise
446
+ #
447
+ # @return [Boolean]
448
+ #
449
+ # source://rake//lib/rake/application.rb#312
450
+ def tty_output?; end
451
+
452
+ # @return [Boolean]
453
+ #
454
+ # source://rake//lib/rake/application.rb#386
455
+ def unix?; end
456
+
457
+ # @return [Boolean]
458
+ #
459
+ # source://rake//lib/rake/application.rb#391
460
+ def windows?; end
461
+
462
+ private
463
+
464
+ # source://rake//lib/rake/application.rb#746
465
+ def glob(path, &block); end
466
+
467
+ # Does the exception have a task invocation chain?
468
+ #
469
+ # @return [Boolean]
470
+ #
471
+ # source://rake//lib/rake/application.rb#292
472
+ def has_chain?(exception); end
473
+
474
+ # source://rake//lib/rake/application.rb#103
475
+ def load_debug_at_stop_feature; end
476
+
477
+ # source://rake//lib/rake/application.rb#645
478
+ def select_tasks_to_show(options, show_tasks, value); end
479
+
480
+ # source://rake//lib/rake/application.rb#652
481
+ def select_trace_output(options, trace_option, value); end
482
+
483
+ # source://rake//lib/rake/application.rb#418
484
+ def sort_options(options); end
485
+
486
+ # The standard directory containing system wide rake files.
487
+ #
488
+ # source://rake//lib/rake/application.rb#757
489
+ def standard_system_dir; end
490
+ end
491
+
492
+ # source://rake//lib/rake/application.rb#42
493
+ Rake::Application::DEFAULT_RAKEFILES = T.let(T.unsafe(nil), Array)
494
+
495
+ # source://rake//lib/rake/backtrace.rb#3
496
+ module Rake::Backtrace
497
+ class << self
498
+ # source://rake//lib/rake/backtrace.rb#19
499
+ def collapse(backtrace); end
500
+ end
501
+ end
502
+
503
+ # source://rake//lib/rake/backtrace.rb#8
504
+ Rake::Backtrace::SUPPRESSED_PATHS = T.let(T.unsafe(nil), Array)
505
+
506
+ # source://rake//lib/rake/backtrace.rb#12
507
+ Rake::Backtrace::SUPPRESSED_PATHS_RE = T.let(T.unsafe(nil), String)
508
+
509
+ # source://rake//lib/rake/backtrace.rb#17
510
+ Rake::Backtrace::SUPPRESS_PATTERN = T.let(T.unsafe(nil), Regexp)
511
+
512
+ # source://rake//lib/rake/backtrace.rb#4
513
+ Rake::Backtrace::SYS_KEYS = T.let(T.unsafe(nil), Array)
514
+
515
+ # source://rake//lib/rake/backtrace.rb#5
516
+ Rake::Backtrace::SYS_PATHS = T.let(T.unsafe(nil), Array)
517
+
518
+ # Mixin for creating easily cloned objects.
519
+ #
520
+ # source://rake//lib/rake/cloneable.rb#6
521
+ module Rake::Cloneable
522
+ private
523
+
524
+ # The hook that is invoked by 'clone' and 'dup' methods.
525
+ #
526
+ # source://rake//lib/rake/cloneable.rb#8
527
+ def initialize_copy(source); end
528
+ end
529
+
530
+ class Rake::CommandLineOptionError < ::StandardError; end
531
+
532
+ # Based on a script at:
533
+ # http://stackoverflow.com/questions/891537/ruby-detect-number-of-cpus-installed
534
+ #
535
+ # source://rake//lib/rake/cpu_counter.rb#6
536
+ class Rake::CpuCounter
537
+ # source://rake//lib/rake/cpu_counter.rb#22
538
+ def count; end
539
+
540
+ # source://rake//lib/rake/cpu_counter.rb#11
541
+ def count_with_default(default = T.unsafe(nil)); end
542
+
543
+ class << self
544
+ # source://rake//lib/rake/cpu_counter.rb#7
545
+ def count; end
546
+ end
547
+ end
548
+
549
+ # DSL is a module that provides #task, #desc, #namespace, etc. Use this
550
+ # when you'd like to use rake outside the top level scope.
551
+ #
552
+ # For a Rakefile you run from the command line this module is automatically
553
+ # included.
554
+ #
555
+ # source://rake//lib/rake/dsl_definition.rb#14
556
+ module Rake::DSL
557
+ include ::FileUtils::StreamUtils_
558
+ include ::FileUtils
559
+ include ::Rake::FileUtilsExt
560
+
561
+ private
562
+
563
+ # source://rake//lib/rake/dsl_definition.rb#24
564
+ def cd(*args, **options, &block); end
565
+
566
+ # source://rake//lib/rake/dsl_definition.rb#24
567
+ def chdir(*args, **options, &block); end
568
+
569
+ # source://rake//lib/rake/dsl_definition.rb#24
570
+ def chmod(*args, **options, &block); end
571
+
572
+ # source://rake//lib/rake/dsl_definition.rb#24
573
+ def chmod_R(*args, **options, &block); end
574
+
575
+ # source://rake//lib/rake/dsl_definition.rb#24
576
+ def chown(*args, **options, &block); end
577
+
578
+ # source://rake//lib/rake/dsl_definition.rb#24
579
+ def chown_R(*args, **options, &block); end
580
+
581
+ # source://rake//lib/rake/dsl_definition.rb#24
582
+ def copy(*args, **options, &block); end
583
+
584
+ # source://rake//lib/rake/dsl_definition.rb#24
585
+ def cp(*args, **options, &block); end
586
+
587
+ # source://rake//lib/rake/dsl_definition.rb#24
588
+ def cp_lr(*args, **options, &block); end
589
+
590
+ # source://rake//lib/rake/dsl_definition.rb#24
591
+ def cp_r(*args, **options, &block); end
592
+
593
+ # Describes the next rake task. Duplicate descriptions are discarded.
594
+ # Descriptions are shown with <code>rake -T</code> (up to the first
595
+ # sentence) and <code>rake -D</code> (the entire description).
596
+ #
597
+ # Example:
598
+ # desc "Run the Unit Tests"
599
+ # task test: [:build] do
600
+ # # ... run tests
601
+ # end
602
+ #
603
+ # source://rake//lib/rake/dsl_definition.rb#166
604
+ def desc(description); end
605
+
606
+ # Declare a set of files tasks to create the given directories on
607
+ # demand.
608
+ #
609
+ # Example:
610
+ # directory "testdata/doc"
611
+ #
612
+ # source://rake//lib/rake/dsl_definition.rb#92
613
+ def directory(*args, &block); end
614
+
615
+ # Declare a file task.
616
+ #
617
+ # Example:
618
+ # file "config.cfg" => ["config.template"] do
619
+ # open("config.cfg", "w") do |outfile|
620
+ # open("config.template") do |infile|
621
+ # while line = infile.gets
622
+ # outfile.puts line
623
+ # end
624
+ # end
625
+ # end
626
+ # end
627
+ #
628
+ # source://rake//lib/rake/dsl_definition.rb#76
629
+ def file(*args, &block); end
630
+
631
+ # Declare a file creation task.
632
+ # (Mainly used for the directory command).
633
+ #
634
+ # source://rake//lib/rake/dsl_definition.rb#82
635
+ def file_create(*args, &block); end
636
+
637
+ # Import the partial Rakefiles +fn+. Imported files are loaded
638
+ # _after_ the current file is completely loaded. This allows the
639
+ # import statement to appear anywhere in the importing file, and yet
640
+ # allowing the imported files to depend on objects defined in the
641
+ # importing file.
642
+ #
643
+ # A common use of the import statement is to include files
644
+ # containing dependency declarations.
645
+ #
646
+ # See also the --rakelibdir command line option.
647
+ #
648
+ # Example:
649
+ # import ".depend", "my_rules"
650
+ #
651
+ # source://rake//lib/rake/dsl_definition.rb#184
652
+ def import(*fns); end
653
+
654
+ # source://rake//lib/rake/dsl_definition.rb#24
655
+ def install(*args, **options, &block); end
656
+
657
+ # source://rake//lib/rake/dsl_definition.rb#24
658
+ def link(*args, **options, &block); end
659
+
660
+ # source://rake//lib/rake/dsl_definition.rb#24
661
+ def ln(*args, **options, &block); end
662
+
663
+ # source://rake//lib/rake/dsl_definition.rb#24
664
+ def ln_s(*args, **options, &block); end
665
+
666
+ # source://rake//lib/rake/dsl_definition.rb#24
667
+ def ln_sf(*args, **options, &block); end
668
+
669
+ # source://rake//lib/rake/dsl_definition.rb#24
670
+ def ln_sr(*args, **options, &block); end
671
+
672
+ # source://rake//lib/rake/dsl_definition.rb#24
673
+ def makedirs(*args, **options, &block); end
674
+
675
+ # source://rake//lib/rake/dsl_definition.rb#24
676
+ def mkdir(*args, **options, &block); end
677
+
678
+ # source://rake//lib/rake/dsl_definition.rb#24
679
+ def mkdir_p(*args, **options, &block); end
680
+
681
+ # source://rake//lib/rake/dsl_definition.rb#24
682
+ def mkpath(*args, **options, &block); end
683
+
684
+ # source://rake//lib/rake/dsl_definition.rb#24
685
+ def move(*args, **options, &block); end
686
+
687
+ # Declare a task that performs its prerequisites in
688
+ # parallel. Multitasks does *not* guarantee that its prerequisites
689
+ # will execute in any given order (which is obvious when you think
690
+ # about it)
691
+ #
692
+ # Example:
693
+ # multitask deploy: %w[deploy_gem deploy_rdoc]
694
+ #
695
+ # source://rake//lib/rake/dsl_definition.rb#113
696
+ def multitask(*args, &block); end
697
+
698
+ # source://rake//lib/rake/dsl_definition.rb#24
699
+ def mv(*args, **options, &block); end
700
+
701
+ # Create a new rake namespace and use it for evaluating the given
702
+ # block. Returns a NameSpace object that can be used to lookup
703
+ # tasks defined in the namespace.
704
+ #
705
+ # Example:
706
+ #
707
+ # ns = namespace "nested" do
708
+ # # the "nested:run" task
709
+ # task :run
710
+ # end
711
+ # task_run = ns[:run] # find :run in the given namespace.
712
+ #
713
+ # Tasks can also be defined in a namespace by using a ":" in the task
714
+ # name:
715
+ #
716
+ # task "nested:test" do
717
+ # # ...
718
+ # end
719
+ #
720
+ # source://rake//lib/rake/dsl_definition.rb#136
721
+ def namespace(name = T.unsafe(nil), &block); end
722
+
723
+ # source://rake//lib/rake/dsl_definition.rb#24
724
+ def nowrite(value = T.unsafe(nil)); end
725
+
726
+ # source://rake//lib/rake/dsl_definition.rb#24
727
+ def rake_check_options(options, *optdecl); end
728
+
729
+ # source://rake//lib/rake/dsl_definition.rb#24
730
+ def rake_output_message(message); end
731
+
732
+ # source://rake//lib/rake/dsl_definition.rb#24
733
+ def remove(*args, **options, &block); end
734
+
735
+ # source://rake//lib/rake/dsl_definition.rb#24
736
+ def rm(*args, **options, &block); end
737
+
738
+ # source://rake//lib/rake/dsl_definition.rb#24
739
+ def rm_f(*args, **options, &block); end
740
+
741
+ # source://rake//lib/rake/dsl_definition.rb#24
742
+ def rm_r(*args, **options, &block); end
743
+
744
+ # source://rake//lib/rake/dsl_definition.rb#24
745
+ def rm_rf(*args, **options, &block); end
746
+
747
+ # source://rake//lib/rake/dsl_definition.rb#24
748
+ def rmdir(*args, **options, &block); end
749
+
750
+ # source://rake//lib/rake/dsl_definition.rb#24
751
+ def rmtree(*args, **options, &block); end
752
+
753
+ # source://rake//lib/rake/dsl_definition.rb#23
754
+ def ruby(*args, **options, &block); end
755
+
756
+ # Declare a rule for auto-tasks.
757
+ #
758
+ # Example:
759
+ # rule '.o' => '.c' do |t|
760
+ # sh 'cc', '-c', '-o', t.name, t.source
761
+ # end
762
+ #
763
+ # source://rake//lib/rake/dsl_definition.rb#152
764
+ def rule(*args, &block); end
765
+
766
+ # source://rake//lib/rake/dsl_definition.rb#23
767
+ def safe_ln(*args, **options); end
768
+
769
+ # source://rake//lib/rake/dsl_definition.rb#24
770
+ def safe_unlink(*args, **options, &block); end
771
+
772
+ # source://rake//lib/rake/dsl_definition.rb#23
773
+ def sh(*cmd, &block); end
774
+
775
+ # source://rake//lib/rake/dsl_definition.rb#23
776
+ def split_all(path); end
777
+
778
+ # source://rake//lib/rake/dsl_definition.rb#24
779
+ def symlink(*args, **options, &block); end
780
+
781
+ # :call-seq:
782
+ # task(task_name)
783
+ # task(task_name: dependencies)
784
+ # task(task_name, arguments => dependencies)
785
+ #
786
+ # Declare a basic task. The +task_name+ is always the first argument. If
787
+ # the task name contains a ":" it is defined in that namespace.
788
+ #
789
+ # The +dependencies+ may be a single task name or an Array of task names.
790
+ # The +argument+ (a single name) or +arguments+ (an Array of names) define
791
+ # the arguments provided to the task.
792
+ #
793
+ # The task, argument and dependency names may be either symbols or
794
+ # strings.
795
+ #
796
+ # A task with a single dependency:
797
+ #
798
+ # task clobber: %w[clean] do
799
+ # rm_rf "html"
800
+ # end
801
+ #
802
+ # A task with an argument and a dependency:
803
+ #
804
+ # task :package, [:version] => :test do |t, args|
805
+ # # ...
806
+ # end
807
+ #
808
+ # To invoke this task from the command line:
809
+ #
810
+ # $ rake package[1.2.3]
811
+ #
812
+ # source://rake//lib/rake/dsl_definition.rb#59
813
+ def task(*args, &block); end
814
+
815
+ # source://rake//lib/rake/dsl_definition.rb#24
816
+ def touch(*args, **options, &block); end
817
+
818
+ # source://rake//lib/rake/dsl_definition.rb#24
819
+ def verbose(value = T.unsafe(nil)); end
820
+
821
+ # source://rake//lib/rake/dsl_definition.rb#24
822
+ def when_writing(msg = T.unsafe(nil)); end
823
+ end
824
+
825
+ # Default Rakefile loader used by +import+.
826
+ #
827
+ # source://rake//lib/rake/default_loader.rb#5
828
+ class Rake::DefaultLoader
829
+ # Loads a rakefile into the current application from +fn+
830
+ #
831
+ # source://rake//lib/rake/default_loader.rb#10
832
+ def load(fn); end
833
+ end
834
+
835
+ # source://rake//lib/rake/early_time.rb#21
836
+ Rake::EARLY = T.let(T.unsafe(nil), Rake::EarlyTime)
837
+
838
+ # source://rake//lib/rake/task_arguments.rb#112
839
+ Rake::EMPTY_TASK_ARGS = T.let(T.unsafe(nil), Rake::TaskArguments)
840
+
841
+ # EarlyTime is a fake timestamp that occurs _before_ any other time value.
842
+ #
843
+ # source://rake//lib/rake/early_time.rb#5
844
+ class Rake::EarlyTime
845
+ include ::Comparable
846
+ include ::Singleton::SingletonInstanceMethods
847
+ include ::Singleton
848
+ extend ::Singleton::SingletonClassMethods
849
+
850
+ # The EarlyTime always comes before +other+!
851
+ #
852
+ # source://rake//lib/rake/early_time.rb#12
853
+ def <=>(other); end
854
+
855
+ # source://rake//lib/rake/early_time.rb#16
856
+ def to_s; end
857
+
858
+ class << self
859
+ private
860
+
861
+ # source://rake//lib/rake/early_time.rb#7
862
+ def allocate; end
863
+
864
+ # source://rake//lib/rake/early_time.rb#7
865
+ def new(*_arg0); end
866
+ end
867
+ end
868
+
869
+ # A FileCreationTask is a file task that when used as a dependency will be
870
+ # needed if and only if the file has not been created. Once created, it is
871
+ # not re-triggered if any of its dependencies are newer, nor does trigger
872
+ # any rebuilds of tasks that depend on it whenever it is updated.
873
+ #
874
+ # source://rake//lib/rake/file_creation_task.rb#12
875
+ class Rake::FileCreationTask < ::Rake::FileTask
876
+ # Is this file task needed? Yes if it doesn't exist.
877
+ #
878
+ # @return [Boolean]
879
+ #
880
+ # source://rake//lib/rake/file_creation_task.rb#14
881
+ def needed?; end
882
+
883
+ # Time stamp for file creation task. This time stamp is earlier
884
+ # than any other time stamp.
885
+ #
886
+ # source://rake//lib/rake/file_creation_task.rb#20
887
+ def timestamp; end
888
+ end
889
+
890
+ # A FileList is essentially an array with a few helper methods defined to
891
+ # make file manipulation a bit easier.
892
+ #
893
+ # FileLists are lazy. When given a list of glob patterns for possible files
894
+ # to be included in the file list, instead of searching the file structures
895
+ # to find the files, a FileList holds the pattern for latter use.
896
+ #
897
+ # This allows us to define a number of FileList to match any number of
898
+ # files, but only search out the actual files when then FileList itself is
899
+ # actually used. The key is that the first time an element of the
900
+ # FileList/Array is requested, the pending patterns are resolved into a real
901
+ # list of file names.
902
+ #
903
+ # source://rake//lib/rake/file_list.rb#22
904
+ class Rake::FileList
905
+ include ::Rake::Cloneable
906
+
907
+ # Create a file list from the globbable patterns given. If you wish to
908
+ # perform multiple includes or excludes at object build time, use the
909
+ # "yield self" pattern.
910
+ #
911
+ # Example:
912
+ # file_list = FileList.new('lib/**/*.rb', 'test/test*.rb')
913
+ #
914
+ # pkg_files = FileList.new('lib/**/*') do |fl|
915
+ # fl.exclude(/\bCVS\b/)
916
+ # end
917
+ #
918
+ # @return [FileList] a new instance of FileList
919
+ # @yield [_self]
920
+ # @yieldparam _self [Rake::FileList] the object that the method was called on
921
+ #
922
+ # source://rake//lib/rake/file_list.rb#99
923
+ def initialize(*patterns); end
924
+
925
+ # source://rake//lib/rake/file_list.rb#67
926
+ def &(*args, &block); end
927
+
928
+ # Redefine * to return either a string or a new file list.
929
+ #
930
+ # source://rake//lib/rake/file_list.rb#193
931
+ def *(other); end
932
+
933
+ # source://rake//lib/rake/file_list.rb#67
934
+ def +(*args, &block); end
935
+
936
+ # source://rake//lib/rake/file_list.rb#67
937
+ def -(*args, &block); end
938
+
939
+ # source://rake//lib/rake/file_list.rb#203
940
+ def <<(obj); end
941
+
942
+ # source://rake//lib/rake/file_list.rb#76
943
+ def <=>(*args, &block); end
944
+
945
+ # A FileList is equal through array equality.
946
+ #
947
+ # source://rake//lib/rake/file_list.rb#171
948
+ def ==(array); end
949
+
950
+ # source://rake//lib/rake/file_list.rb#76
951
+ def [](*args, &block); end
952
+
953
+ # source://rake//lib/rake/file_list.rb#76
954
+ def []=(*args, &block); end
955
+
956
+ # Add file names defined by glob patterns to the file list. If an array
957
+ # is given, add each element of the array.
958
+ #
959
+ # Example:
960
+ # file_list.include("*.java", "*.cfg")
961
+ # file_list.include %w( math.c lib.h *.o )
962
+ #
963
+ # source://rake//lib/rake/file_list.rb#128
964
+ def add(*filenames); end
965
+
966
+ # source://rake//lib/rake/file_list.rb#76
967
+ def all?(*args, &block); end
968
+
969
+ # source://rake//lib/rake/file_list.rb#76
970
+ def any?(*args, &block); end
971
+
972
+ # source://rake//lib/rake/file_list.rb#76
973
+ def append(*args, &block); end
974
+
975
+ # source://rake//lib/rake/file_list.rb#76
976
+ def assoc(*args, &block); end
977
+
978
+ # source://rake//lib/rake/file_list.rb#76
979
+ def at(*args, &block); end
980
+
981
+ # source://rake//lib/rake/file_list.rb#76
982
+ def bsearch(*args, &block); end
983
+
984
+ # source://rake//lib/rake/file_list.rb#76
985
+ def bsearch_index(*args, &block); end
986
+
987
+ # source://rake//lib/rake/file_list.rb#76
988
+ def chain(*args, &block); end
989
+
990
+ # source://rake//lib/rake/file_list.rb#76
991
+ def chunk(*args, &block); end
992
+
993
+ # source://rake//lib/rake/file_list.rb#76
994
+ def chunk_while(*args, &block); end
995
+
996
+ # source://rake//lib/rake/file_list.rb#76
997
+ def clear(*args, &block); end
998
+
999
+ # Clear all the exclude patterns so that we exclude nothing.
1000
+ #
1001
+ # source://rake//lib/rake/file_list.rb#164
1002
+ def clear_exclude; end
1003
+
1004
+ # source://rake//lib/rake/file_list.rb#67
1005
+ def collect(*args, &block); end
1006
+
1007
+ # source://rake//lib/rake/file_list.rb#76
1008
+ def collect!(*args, &block); end
1009
+
1010
+ # source://rake//lib/rake/file_list.rb#76
1011
+ def collect_concat(*args, &block); end
1012
+
1013
+ # source://rake//lib/rake/file_list.rb#76
1014
+ def combination(*args, &block); end
1015
+
1016
+ # source://rake//lib/rake/file_list.rb#67
1017
+ def compact(*args, &block); end
1018
+
1019
+ # source://rake//lib/rake/file_list.rb#76
1020
+ def compact!(*args, &block); end
1021
+
1022
+ # source://rake//lib/rake/file_list.rb#76
1023
+ def concat(*args, &block); end
1024
+
1025
+ # source://rake//lib/rake/file_list.rb#76
1026
+ def count(*args, &block); end
1027
+
1028
+ # source://rake//lib/rake/file_list.rb#76
1029
+ def cycle(*args, &block); end
1030
+
1031
+ # source://rake//lib/rake/file_list.rb#76
1032
+ def deconstruct(*args, &block); end
1033
+
1034
+ # source://rake//lib/rake/file_list.rb#76
1035
+ def delete(*args, &block); end
1036
+
1037
+ # source://rake//lib/rake/file_list.rb#76
1038
+ def delete_at(*args, &block); end
1039
+
1040
+ # source://rake//lib/rake/file_list.rb#76
1041
+ def delete_if(*args, &block); end
1042
+
1043
+ # source://rake//lib/rake/file_list.rb#76
1044
+ def detect(*args, &block); end
1045
+
1046
+ # source://rake//lib/rake/file_list.rb#76
1047
+ def difference(*args, &block); end
1048
+
1049
+ # source://rake//lib/rake/file_list.rb#76
1050
+ def dig(*args, &block); end
1051
+
1052
+ # source://rake//lib/rake/file_list.rb#76
1053
+ def drop(*args, &block); end
1054
+
1055
+ # source://rake//lib/rake/file_list.rb#76
1056
+ def drop_while(*args, &block); end
1057
+
1058
+ # source://rake//lib/rake/file_list.rb#76
1059
+ def each(*args, &block); end
1060
+
1061
+ # source://rake//lib/rake/file_list.rb#76
1062
+ def each_cons(*args, &block); end
1063
+
1064
+ # source://rake//lib/rake/file_list.rb#76
1065
+ def each_entry(*args, &block); end
1066
+
1067
+ # source://rake//lib/rake/file_list.rb#76
1068
+ def each_index(*args, &block); end
1069
+
1070
+ # source://rake//lib/rake/file_list.rb#76
1071
+ def each_slice(*args, &block); end
1072
+
1073
+ # source://rake//lib/rake/file_list.rb#76
1074
+ def each_with_index(*args, &block); end
1075
+
1076
+ # source://rake//lib/rake/file_list.rb#76
1077
+ def each_with_object(*args, &block); end
1078
+
1079
+ # Grep each of the files in the filelist using the given pattern. If a
1080
+ # block is given, call the block on each matching line, passing the file
1081
+ # name, line number, and the matching line of text. If no block is given,
1082
+ # a standard emacs style file:linenumber:line message will be printed to
1083
+ # standard out. Returns the number of matched items.
1084
+ #
1085
+ # source://rake//lib/rake/file_list.rb#293
1086
+ def egrep(pattern, *options); end
1087
+
1088
+ # source://rake//lib/rake/file_list.rb#76
1089
+ def empty?(*args, &block); end
1090
+
1091
+ # source://rake//lib/rake/file_list.rb#76
1092
+ def entries(*args, &block); end
1093
+
1094
+ # Register a list of file name patterns that should be excluded from the
1095
+ # list. Patterns may be regular expressions, glob patterns or regular
1096
+ # strings. In addition, a block given to exclude will remove entries that
1097
+ # return true when given to the block.
1098
+ #
1099
+ # Note that glob patterns are expanded against the file system. If a file
1100
+ # is explicitly added to a file list, but does not exist in the file
1101
+ # system, then an glob pattern in the exclude list will not exclude the
1102
+ # file.
1103
+ #
1104
+ # Examples:
1105
+ # FileList['a.c', 'b.c'].exclude("a.c") => ['b.c']
1106
+ # FileList['a.c', 'b.c'].exclude(/^a/) => ['b.c']
1107
+ #
1108
+ # If "a.c" is a file, then ...
1109
+ # FileList['a.c', 'b.c'].exclude("a.*") => ['b.c']
1110
+ #
1111
+ # If "a.c" is not a file, then ...
1112
+ # FileList['a.c', 'b.c'].exclude("a.*") => ['a.c', 'b.c']
1113
+ #
1114
+ # source://rake//lib/rake/file_list.rb#150
1115
+ def exclude(*patterns, &block); end
1116
+
1117
+ # Should the given file name be excluded from the list?
1118
+ #
1119
+ # NOTE: This method was formerly named "exclude?", but Rails
1120
+ # introduced an exclude? method as an array method and setup a
1121
+ # conflict with file list. We renamed the method to avoid
1122
+ # confusion. If you were using "FileList#exclude?" in your user
1123
+ # code, you will need to update.
1124
+ #
1125
+ # @return [Boolean]
1126
+ #
1127
+ # source://rake//lib/rake/file_list.rb#364
1128
+ def excluded_from_list?(fn); end
1129
+
1130
+ # Return a new file list that only contains file names from the current
1131
+ # file list that exist on the file system.
1132
+ #
1133
+ # source://rake//lib/rake/file_list.rb#320
1134
+ def existing; end
1135
+
1136
+ # Modify the current file list so that it contains only file name that
1137
+ # exist on the file system.
1138
+ #
1139
+ # source://rake//lib/rake/file_list.rb#326
1140
+ def existing!; end
1141
+
1142
+ # Return a new FileList with <tt>String#ext</tt> method applied to
1143
+ # each member of the array.
1144
+ #
1145
+ # This method is a shortcut for:
1146
+ #
1147
+ # array.collect { |item| item.ext(newext) }
1148
+ #
1149
+ # +ext+ is a user added method for the Array class.
1150
+ #
1151
+ # source://rake//lib/rake/file_list.rb#284
1152
+ def ext(newext = T.unsafe(nil)); end
1153
+
1154
+ # source://rake//lib/rake/file_list.rb#76
1155
+ def fetch(*args, &block); end
1156
+
1157
+ # source://rake//lib/rake/file_list.rb#76
1158
+ def fetch_values(*args, &block); end
1159
+
1160
+ # source://rake//lib/rake/file_list.rb#76
1161
+ def fill(*args, &block); end
1162
+
1163
+ # source://rake//lib/rake/file_list.rb#76
1164
+ def filter(*args, &block); end
1165
+
1166
+ # source://rake//lib/rake/file_list.rb#76
1167
+ def filter!(*args, &block); end
1168
+
1169
+ # source://rake//lib/rake/file_list.rb#76
1170
+ def filter_map(*args, &block); end
1171
+
1172
+ # source://rake//lib/rake/file_list.rb#76
1173
+ def find(*args, &block); end
1174
+
1175
+ # source://rake//lib/rake/file_list.rb#67
1176
+ def find_all(*args, &block); end
1177
+
1178
+ # source://rake//lib/rake/file_list.rb#76
1179
+ def find_index(*args, &block); end
1180
+
1181
+ # source://rake//lib/rake/file_list.rb#76
1182
+ def first(*args, &block); end
1183
+
1184
+ # source://rake//lib/rake/file_list.rb#76
1185
+ def flat_map(*args, &block); end
1186
+
1187
+ # source://rake//lib/rake/file_list.rb#67
1188
+ def flatten(*args, &block); end
1189
+
1190
+ # source://rake//lib/rake/file_list.rb#76
1191
+ def flatten!(*args, &block); end
1192
+
1193
+ # source://rake//lib/rake/file_list.rb#67
1194
+ def grep(*args, &block); end
1195
+
1196
+ # source://rake//lib/rake/file_list.rb#76
1197
+ def grep_v(*args, &block); end
1198
+
1199
+ # source://rake//lib/rake/file_list.rb#76
1200
+ def group_by(*args, &block); end
1201
+
1202
+ # Return a new FileList with the results of running +gsub+ against each
1203
+ # element of the original list.
1204
+ #
1205
+ # Example:
1206
+ # FileList['lib/test/file', 'x/y'].gsub(/\//, "\\")
1207
+ # => ['lib\\test\\file', 'x\\y']
1208
+ #
1209
+ # source://rake//lib/rake/file_list.rb#253
1210
+ def gsub(pat, rep); end
1211
+
1212
+ # Same as +gsub+ except that the original file list is modified.
1213
+ #
1214
+ # source://rake//lib/rake/file_list.rb#264
1215
+ def gsub!(pat, rep); end
1216
+
1217
+ # source://rake//lib/rake/file_list.rb#391
1218
+ def import(array); end
1219
+
1220
+ # Add file names defined by glob patterns to the file list. If an array
1221
+ # is given, add each element of the array.
1222
+ #
1223
+ # Example:
1224
+ # file_list.include("*.java", "*.cfg")
1225
+ # file_list.include %w( math.c lib.h *.o )
1226
+ #
1227
+ # source://rake//lib/rake/file_list.rb#116
1228
+ def include(*filenames); end
1229
+
1230
+ # source://rake//lib/rake/file_list.rb#76
1231
+ def include?(*args, &block); end
1232
+
1233
+ # source://rake//lib/rake/file_list.rb#76
1234
+ def index(*args, &block); end
1235
+
1236
+ # source://rake//lib/rake/file_list.rb#76
1237
+ def inject(*args, &block); end
1238
+
1239
+ # source://rake//lib/rake/file_list.rb#76
1240
+ def insert(*args, &block); end
1241
+
1242
+ # source://rake//lib/rake/file_list.rb#76
1243
+ def inspect(*args, &block); end
1244
+
1245
+ # source://rake//lib/rake/file_list.rb#76
1246
+ def intersect?(*args, &block); end
1247
+
1248
+ # source://rake//lib/rake/file_list.rb#76
1249
+ def intersection(*args, &block); end
1250
+
1251
+ # Lie about our class.
1252
+ #
1253
+ # @return [Boolean]
1254
+ #
1255
+ # source://rake//lib/rake/file_list.rb#187
1256
+ def is_a?(klass); end
1257
+
1258
+ # source://rake//lib/rake/file_list.rb#76
1259
+ def join(*args, &block); end
1260
+
1261
+ # source://rake//lib/rake/file_list.rb#76
1262
+ def keep_if(*args, &block); end
1263
+
1264
+ # Lie about our class.
1265
+ #
1266
+ # @return [Boolean]
1267
+ #
1268
+ # source://rake//lib/rake/file_list.rb#190
1269
+ def kind_of?(klass); end
1270
+
1271
+ # source://rake//lib/rake/file_list.rb#76
1272
+ def last(*args, &block); end
1273
+
1274
+ # source://rake//lib/rake/file_list.rb#76
1275
+ def lazy(*args, &block); end
1276
+
1277
+ # source://rake//lib/rake/file_list.rb#76
1278
+ def length(*args, &block); end
1279
+
1280
+ # source://rake//lib/rake/file_list.rb#67
1281
+ def map(*args, &block); end
1282
+
1283
+ # source://rake//lib/rake/file_list.rb#76
1284
+ def map!(*args, &block); end
1285
+
1286
+ # source://rake//lib/rake/file_list.rb#76
1287
+ def max(*args, &block); end
1288
+
1289
+ # source://rake//lib/rake/file_list.rb#76
1290
+ def max_by(*args, &block); end
1291
+
1292
+ # source://rake//lib/rake/file_list.rb#76
1293
+ def member?(*args, &block); end
1294
+
1295
+ # source://rake//lib/rake/file_list.rb#76
1296
+ def min(*args, &block); end
1297
+
1298
+ # source://rake//lib/rake/file_list.rb#76
1299
+ def min_by(*args, &block); end
1300
+
1301
+ # source://rake//lib/rake/file_list.rb#76
1302
+ def minmax(*args, &block); end
1303
+
1304
+ # source://rake//lib/rake/file_list.rb#76
1305
+ def minmax_by(*args, &block); end
1306
+
1307
+ # source://rake//lib/rake/file_list.rb#76
1308
+ def none?(*args, &block); end
1309
+
1310
+ # source://rake//lib/rake/file_list.rb#76
1311
+ def one?(*args, &block); end
1312
+
1313
+ # source://rake//lib/rake/file_list.rb#76
1314
+ def pack(*args, &block); end
1315
+
1316
+ # FileList version of partition. Needed because the nested arrays should
1317
+ # be FileLists in this version.
1318
+ #
1319
+ # source://rake//lib/rake/file_list.rb#334
1320
+ def partition(&block); end
1321
+
1322
+ # Apply the pathmap spec to each of the included file names, returning a
1323
+ # new file list with the modified paths. (See String#pathmap for
1324
+ # details.)
1325
+ #
1326
+ # source://rake//lib/rake/file_list.rb#272
1327
+ def pathmap(spec = T.unsafe(nil), &block); end
1328
+
1329
+ # source://rake//lib/rake/file_list.rb#76
1330
+ def permutation(*args, &block); end
1331
+
1332
+ # source://rake//lib/rake/file_list.rb#76
1333
+ def pop(*args, &block); end
1334
+
1335
+ # source://rake//lib/rake/file_list.rb#76
1336
+ def prepend(*args, &block); end
1337
+
1338
+ # source://rake//lib/rake/file_list.rb#76
1339
+ def product(*args, &block); end
1340
+
1341
+ # source://rake//lib/rake/file_list.rb#76
1342
+ def push(*args, &block); end
1343
+
1344
+ # source://rake//lib/rake/file_list.rb#76
1345
+ def rassoc(*args, &block); end
1346
+
1347
+ # source://rake//lib/rake/file_list.rb#76
1348
+ def reduce(*args, &block); end
1349
+
1350
+ # source://rake//lib/rake/file_list.rb#67
1351
+ def reject(*args, &block); end
1352
+
1353
+ # source://rake//lib/rake/file_list.rb#76
1354
+ def reject!(*args, &block); end
1355
+
1356
+ # source://rake//lib/rake/file_list.rb#76
1357
+ def repeated_combination(*args, &block); end
1358
+
1359
+ # source://rake//lib/rake/file_list.rb#76
1360
+ def repeated_permutation(*args, &block); end
1361
+
1362
+ # source://rake//lib/rake/file_list.rb#76
1363
+ def replace(*args, &block); end
1364
+
1365
+ # Resolve all the pending adds now.
1366
+ #
1367
+ # source://rake//lib/rake/file_list.rb#210
1368
+ def resolve; end
1369
+
1370
+ # source://rake//lib/rake/file_list.rb#76
1371
+ def reverse(*args, &block); end
1372
+
1373
+ # source://rake//lib/rake/file_list.rb#76
1374
+ def reverse!(*args, &block); end
1375
+
1376
+ # source://rake//lib/rake/file_list.rb#76
1377
+ def reverse_each(*args, &block); end
1378
+
1379
+ # source://rake//lib/rake/file_list.rb#76
1380
+ def rfind(*args, &block); end
1381
+
1382
+ # source://rake//lib/rake/file_list.rb#76
1383
+ def rindex(*args, &block); end
1384
+
1385
+ # source://rake//lib/rake/file_list.rb#76
1386
+ def rotate(*args, &block); end
1387
+
1388
+ # source://rake//lib/rake/file_list.rb#76
1389
+ def rotate!(*args, &block); end
1390
+
1391
+ # source://rake//lib/rake/file_list.rb#76
1392
+ def sample(*args, &block); end
1393
+
1394
+ # source://rake//lib/rake/file_list.rb#67
1395
+ def select(*args, &block); end
1396
+
1397
+ # source://rake//lib/rake/file_list.rb#76
1398
+ def select!(*args, &block); end
1399
+
1400
+ # source://rake//lib/rake/file_list.rb#76
1401
+ def shelljoin(*args, &block); end
1402
+
1403
+ # source://rake//lib/rake/file_list.rb#76
1404
+ def shift(*args, &block); end
1405
+
1406
+ # source://rake//lib/rake/file_list.rb#76
1407
+ def shuffle(*args, &block); end
1408
+
1409
+ # source://rake//lib/rake/file_list.rb#76
1410
+ def shuffle!(*args, &block); end
1411
+
1412
+ # source://rake//lib/rake/file_list.rb#76
1413
+ def size(*args, &block); end
1414
+
1415
+ # source://rake//lib/rake/file_list.rb#76
1416
+ def slice(*args, &block); end
1417
+
1418
+ # source://rake//lib/rake/file_list.rb#76
1419
+ def slice!(*args, &block); end
1420
+
1421
+ # source://rake//lib/rake/file_list.rb#76
1422
+ def slice_after(*args, &block); end
1423
+
1424
+ # source://rake//lib/rake/file_list.rb#76
1425
+ def slice_before(*args, &block); end
1426
+
1427
+ # source://rake//lib/rake/file_list.rb#76
1428
+ def slice_when(*args, &block); end
1429
+
1430
+ # source://rake//lib/rake/file_list.rb#67
1431
+ def sort(*args, &block); end
1432
+
1433
+ # source://rake//lib/rake/file_list.rb#76
1434
+ def sort!(*args, &block); end
1435
+
1436
+ # source://rake//lib/rake/file_list.rb#67
1437
+ def sort_by(*args, &block); end
1438
+
1439
+ # source://rake//lib/rake/file_list.rb#76
1440
+ def sort_by!(*args, &block); end
1441
+
1442
+ # Return a new FileList with the results of running +sub+ against each
1443
+ # element of the original list.
1444
+ #
1445
+ # Example:
1446
+ # FileList['a.c', 'b.c'].sub(/\.c$/, '.o') => ['a.o', 'b.o']
1447
+ #
1448
+ # source://rake//lib/rake/file_list.rb#242
1449
+ def sub(pat, rep); end
1450
+
1451
+ # Same as +sub+ except that the original file list is modified.
1452
+ #
1453
+ # source://rake//lib/rake/file_list.rb#258
1454
+ def sub!(pat, rep); end
1455
+
1456
+ # source://rake//lib/rake/file_list.rb#76
1457
+ def sum(*args, &block); end
1458
+
1459
+ # source://rake//lib/rake/file_list.rb#76
1460
+ def take(*args, &block); end
1461
+
1462
+ # source://rake//lib/rake/file_list.rb#76
1463
+ def take_while(*args, &block); end
1464
+
1465
+ # source://rake//lib/rake/file_list.rb#76
1466
+ def tally(*args, &block); end
1467
+
1468
+ # Return the internal array object.
1469
+ #
1470
+ # source://rake//lib/rake/file_list.rb#176
1471
+ def to_a; end
1472
+
1473
+ # Return the internal array object.
1474
+ #
1475
+ # source://rake//lib/rake/file_list.rb#182
1476
+ def to_ary; end
1477
+
1478
+ # source://rake//lib/rake/file_list.rb#76
1479
+ def to_h(*args, &block); end
1480
+
1481
+ # Convert a FileList to a string by joining all elements with a space.
1482
+ #
1483
+ # source://rake//lib/rake/file_list.rb#344
1484
+ def to_s; end
1485
+
1486
+ # source://rake//lib/rake/file_list.rb#76
1487
+ def to_set(*args, &block); end
1488
+
1489
+ # source://rake//lib/rake/file_list.rb#76
1490
+ def transpose(*args, &block); end
1491
+
1492
+ # source://rake//lib/rake/file_list.rb#76
1493
+ def union(*args, &block); end
1494
+
1495
+ # source://rake//lib/rake/file_list.rb#67
1496
+ def uniq(*args, &block); end
1497
+
1498
+ # source://rake//lib/rake/file_list.rb#76
1499
+ def uniq!(*args, &block); end
1500
+
1501
+ # source://rake//lib/rake/file_list.rb#76
1502
+ def unshift(*args, &block); end
1503
+
1504
+ # source://rake//lib/rake/file_list.rb#67
1505
+ def values_at(*args, &block); end
1506
+
1507
+ # source://rake//lib/rake/file_list.rb#76
1508
+ def zip(*args, &block); end
1509
+
1510
+ # source://rake//lib/rake/file_list.rb#67
1511
+ def |(*args, &block); end
1512
+
1513
+ private
1514
+
1515
+ # Add matching glob patterns.
1516
+ #
1517
+ # source://rake//lib/rake/file_list.rb#350
1518
+ def add_matching(pattern); end
1519
+
1520
+ # source://rake//lib/rake/file_list.rb#220
1521
+ def resolve_add(fn); end
1522
+
1523
+ # source://rake//lib/rake/file_list.rb#230
1524
+ def resolve_exclude; end
1525
+
1526
+ class << self
1527
+ # Create a new file list including the files listed. Similar to:
1528
+ #
1529
+ # FileList.new(*args)
1530
+ #
1531
+ # source://rake//lib/rake/file_list.rb#400
1532
+ def [](*args); end
1533
+
1534
+ # Get a sorted list of files matching the pattern. This method
1535
+ # should be preferred to Dir[pattern] and Dir.glob(pattern) because
1536
+ # the files returned are guaranteed to be sorted.
1537
+ #
1538
+ # source://rake//lib/rake/file_list.rb#407
1539
+ def glob(pattern, *args); end
1540
+ end
1541
+ end
1542
+
1543
+ # List of array methods (that are not in +Object+) that need to be
1544
+ # delegated.
1545
+ #
1546
+ # source://rake//lib/rake/file_list.rb#44
1547
+ Rake::FileList::ARRAY_METHODS = T.let(T.unsafe(nil), Array)
1548
+
1549
+ # source://rake//lib/rake/file_list.rb#381
1550
+ Rake::FileList::DEFAULT_IGNORE_PATTERNS = T.let(T.unsafe(nil), Array)
1551
+
1552
+ # source://rake//lib/rake/file_list.rb#387
1553
+ Rake::FileList::DEFAULT_IGNORE_PROCS = T.let(T.unsafe(nil), Array)
1554
+
1555
+ # source://rake//lib/rake/file_list.rb#61
1556
+ Rake::FileList::DELEGATING_METHODS = T.let(T.unsafe(nil), Array)
1557
+
1558
+ # source://rake//lib/rake/file_list.rb#86
1559
+ Rake::FileList::GLOB_PATTERN = T.let(T.unsafe(nil), Regexp)
1560
+
1561
+ # List of additional methods that must be delegated.
1562
+ #
1563
+ # source://rake//lib/rake/file_list.rb#47
1564
+ Rake::FileList::MUST_DEFINE = T.let(T.unsafe(nil), Array)
1565
+
1566
+ # List of methods that should not be delegated here (we define special
1567
+ # versions of them explicitly below).
1568
+ #
1569
+ # source://rake//lib/rake/file_list.rb#51
1570
+ Rake::FileList::MUST_NOT_DEFINE = T.let(T.unsafe(nil), Array)
1571
+
1572
+ # List of delegated methods that return new array values which need
1573
+ # wrapping.
1574
+ #
1575
+ # source://rake//lib/rake/file_list.rb#55
1576
+ Rake::FileList::SPECIAL_RETURN = T.let(T.unsafe(nil), Array)
1577
+
1578
+ # A FileTask is a task that includes time based dependencies. If any of a
1579
+ # FileTask's prerequisites have a timestamp that is later than the file
1580
+ # represented by this task, then the file must be rebuilt (using the
1581
+ # supplied actions).
1582
+ #
1583
+ # source://rake//lib/rake/file_task.rb#12
1584
+ class Rake::FileTask < ::Rake::Task
1585
+ # Is this file task needed? Yes if it doesn't exist, or if its time stamp
1586
+ # is out of date.
1587
+ #
1588
+ # @return [Boolean]
1589
+ #
1590
+ # source://rake//lib/rake/file_task.rb#16
1591
+ def needed?; end
1592
+
1593
+ # Time stamp for file task.
1594
+ #
1595
+ # source://rake//lib/rake/file_task.rb#25
1596
+ def timestamp; end
1597
+
1598
+ private
1599
+
1600
+ # Are there any prerequisites with a later time than the given time stamp?
1601
+ #
1602
+ # @return [Boolean]
1603
+ #
1604
+ # source://rake//lib/rake/file_task.rb#36
1605
+ def out_of_date?(stamp); end
1606
+
1607
+ class << self
1608
+ # Apply the scope to the task name according to the rules for this kind
1609
+ # of task. File based tasks ignore the scope when creating the name.
1610
+ #
1611
+ # source://rake//lib/rake/file_task.rb#53
1612
+ def scope_name(scope, task_name); end
1613
+ end
1614
+ end
1615
+
1616
+ # FileUtilsExt provides a custom version of the FileUtils methods
1617
+ # that respond to the <tt>verbose</tt> and <tt>nowrite</tt>
1618
+ # commands.
1619
+ #
1620
+ # source://rake//lib/rake/file_utils_ext.rb#10
1621
+ module Rake::FileUtilsExt
1622
+ include ::FileUtils::StreamUtils_
1623
+ include ::FileUtils
1624
+ extend ::FileUtils::StreamUtils_
1625
+ extend ::FileUtils
1626
+ extend ::Rake::FileUtilsExt
1627
+
1628
+ # source://rake//lib/rake/file_utils_ext.rb#33
1629
+ def cd(*args, **options, &block); end
1630
+
1631
+ # source://rake//lib/rake/file_utils_ext.rb#33
1632
+ def chdir(*args, **options, &block); end
1633
+
1634
+ # source://rake//lib/rake/file_utils_ext.rb#33
1635
+ def chmod(*args, **options, &block); end
1636
+
1637
+ # source://rake//lib/rake/file_utils_ext.rb#33
1638
+ def chmod_R(*args, **options, &block); end
1639
+
1640
+ # source://rake//lib/rake/file_utils_ext.rb#33
1641
+ def chown(*args, **options, &block); end
1642
+
1643
+ # source://rake//lib/rake/file_utils_ext.rb#33
1644
+ def chown_R(*args, **options, &block); end
1645
+
1646
+ # source://rake//lib/rake/file_utils_ext.rb#33
1647
+ def copy(*args, **options, &block); end
1648
+
1649
+ # source://rake//lib/rake/file_utils_ext.rb#33
1650
+ def cp(*args, **options, &block); end
1651
+
1652
+ # source://rake//lib/rake/file_utils_ext.rb#33
1653
+ def cp_lr(*args, **options, &block); end
1654
+
1655
+ # source://rake//lib/rake/file_utils_ext.rb#33
1656
+ def cp_r(*args, **options, &block); end
1657
+
1658
+ # source://rake//lib/rake/file_utils_ext.rb#33
1659
+ def install(*args, **options, &block); end
1660
+
1661
+ # source://rake//lib/rake/file_utils_ext.rb#33
1662
+ def link(*args, **options, &block); end
1663
+
1664
+ # source://rake//lib/rake/file_utils_ext.rb#33
1665
+ def ln(*args, **options, &block); end
1666
+
1667
+ # source://rake//lib/rake/file_utils_ext.rb#33
1668
+ def ln_s(*args, **options, &block); end
1669
+
1670
+ # source://rake//lib/rake/file_utils_ext.rb#33
1671
+ def ln_sf(*args, **options, &block); end
1672
+
1673
+ # source://rake//lib/rake/file_utils_ext.rb#33
1674
+ def ln_sr(*args, **options, &block); end
1675
+
1676
+ # source://rake//lib/rake/file_utils_ext.rb#33
1677
+ def makedirs(*args, **options, &block); end
1678
+
1679
+ # source://rake//lib/rake/file_utils_ext.rb#33
1680
+ def mkdir(*args, **options, &block); end
1681
+
1682
+ # source://rake//lib/rake/file_utils_ext.rb#33
1683
+ def mkdir_p(*args, **options, &block); end
1684
+
1685
+ # source://rake//lib/rake/file_utils_ext.rb#33
1686
+ def mkpath(*args, **options, &block); end
1687
+
1688
+ # source://rake//lib/rake/file_utils_ext.rb#33
1689
+ def move(*args, **options, &block); end
1690
+
1691
+ # source://rake//lib/rake/file_utils_ext.rb#33
1692
+ def mv(*args, **options, &block); end
1693
+
1694
+ # Get/set the nowrite flag controlling output from the FileUtils
1695
+ # utilities. If verbose is true, then the utility method is
1696
+ # echoed to standard output.
1697
+ #
1698
+ # Examples:
1699
+ # nowrite # return the current value of the
1700
+ # # nowrite flag
1701
+ # nowrite(v) # set the nowrite flag to _v_.
1702
+ # nowrite(v) { code } # Execute code with the nowrite flag set
1703
+ # # temporarily to _v_. Return to the
1704
+ # # original value when code is done.
1705
+ #
1706
+ # source://rake//lib/rake/file_utils_ext.rb#78
1707
+ def nowrite(value = T.unsafe(nil)); end
1708
+
1709
+ # Check that the options do not contain options not listed in
1710
+ # +optdecl+. An ArgumentError exception is thrown if non-declared
1711
+ # options are found.
1712
+ #
1713
+ # @raise [ArgumentError]
1714
+ #
1715
+ # source://rake//lib/rake/file_utils_ext.rb#124
1716
+ def rake_check_options(options, *optdecl); end
1717
+
1718
+ # Send the message to the default rake output (which is $stderr).
1719
+ #
1720
+ # source://rake//lib/rake/file_utils_ext.rb#117
1721
+ def rake_output_message(message); end
1722
+
1723
+ # source://rake//lib/rake/file_utils_ext.rb#33
1724
+ def remove(*args, **options, &block); end
1725
+
1726
+ # source://rake//lib/rake/file_utils_ext.rb#33
1727
+ def rm(*args, **options, &block); end
1728
+
1729
+ # source://rake//lib/rake/file_utils_ext.rb#33
1730
+ def rm_f(*args, **options, &block); end
1731
+
1732
+ # source://rake//lib/rake/file_utils_ext.rb#33
1733
+ def rm_r(*args, **options, &block); end
1734
+
1735
+ # source://rake//lib/rake/file_utils_ext.rb#33
1736
+ def rm_rf(*args, **options, &block); end
1737
+
1738
+ # source://rake//lib/rake/file_utils_ext.rb#33
1739
+ def rmdir(*args, **options, &block); end
1740
+
1741
+ # source://rake//lib/rake/file_utils_ext.rb#33
1742
+ def rmtree(*args, **options, &block); end
1743
+
1744
+ # source://rake//lib/rake/file_utils_ext.rb#33
1745
+ def safe_unlink(*args, **options, &block); end
1746
+
1747
+ # source://rake//lib/rake/file_utils_ext.rb#33
1748
+ def symlink(*args, **options, &block); end
1749
+
1750
+ # source://rake//lib/rake/file_utils_ext.rb#33
1751
+ def touch(*args, **options, &block); end
1752
+
1753
+ # Get/set the verbose flag controlling output from the FileUtils
1754
+ # utilities. If verbose is true, then the utility method is
1755
+ # echoed to standard output.
1756
+ #
1757
+ # Examples:
1758
+ # verbose # return the current value of the
1759
+ # # verbose flag
1760
+ # verbose(v) # set the verbose flag to _v_.
1761
+ # verbose(v) { code } # Execute code with the verbose flag set
1762
+ # # temporarily to _v_. Return to the
1763
+ # # original value when code is done.
1764
+ #
1765
+ # source://rake//lib/rake/file_utils_ext.rb#53
1766
+ def verbose(value = T.unsafe(nil)); end
1767
+
1768
+ # Use this function to prevent potentially destructive ruby code
1769
+ # from running when the :nowrite flag is set.
1770
+ #
1771
+ # Example:
1772
+ #
1773
+ # when_writing("Building Project") do
1774
+ # project.build
1775
+ # end
1776
+ #
1777
+ # The following code will build the project under normal
1778
+ # conditions. If the nowrite(true) flag is set, then the example
1779
+ # will print:
1780
+ #
1781
+ # DRYRUN: Building Project
1782
+ #
1783
+ # instead of actually building the project.
1784
+ #
1785
+ # source://rake//lib/rake/file_utils_ext.rb#108
1786
+ def when_writing(msg = T.unsafe(nil)); end
1787
+
1788
+ class << self
1789
+ # Returns the value of attribute nowrite_flag.
1790
+ #
1791
+ # source://rake//lib/rake/file_utils_ext.rb#14
1792
+ def nowrite_flag; end
1793
+
1794
+ # Sets the attribute nowrite_flag
1795
+ #
1796
+ # @param value the value to set the attribute nowrite_flag to.
1797
+ #
1798
+ # source://rake//lib/rake/file_utils_ext.rb#14
1799
+ def nowrite_flag=(_arg0); end
1800
+
1801
+ # Returns the value of attribute verbose_flag.
1802
+ #
1803
+ # source://rake//lib/rake/file_utils_ext.rb#14
1804
+ def verbose_flag; end
1805
+
1806
+ # Sets the attribute verbose_flag
1807
+ #
1808
+ # @param value the value to set the attribute verbose_flag to.
1809
+ #
1810
+ # source://rake//lib/rake/file_utils_ext.rb#14
1811
+ def verbose_flag=(_arg0); end
1812
+ end
1813
+ end
1814
+
1815
+ # source://rake//lib/rake/file_utils_ext.rb#17
1816
+ Rake::FileUtilsExt::DEFAULT = T.let(T.unsafe(nil), Object)
1817
+
1818
+ # InvocationChain tracks the chain of task invocations to detect
1819
+ # circular dependencies.
1820
+ #
1821
+ # source://rake//lib/rake/invocation_chain.rb#6
1822
+ class Rake::InvocationChain < ::Rake::LinkedList
1823
+ # Append an invocation to the chain of invocations. It is an error
1824
+ # if the invocation already listed.
1825
+ #
1826
+ # source://rake//lib/rake/invocation_chain.rb#15
1827
+ def append(invocation); end
1828
+
1829
+ # Is the invocation already in the chain?
1830
+ #
1831
+ # @return [Boolean]
1832
+ #
1833
+ # source://rake//lib/rake/invocation_chain.rb#9
1834
+ def member?(invocation); end
1835
+
1836
+ # Convert to string, ie: TOP => invocation => invocation
1837
+ #
1838
+ # source://rake//lib/rake/invocation_chain.rb#23
1839
+ def to_s; end
1840
+
1841
+ private
1842
+
1843
+ # source://rake//lib/rake/invocation_chain.rb#34
1844
+ def prefix; end
1845
+
1846
+ class << self
1847
+ # Class level append.
1848
+ #
1849
+ # source://rake//lib/rake/invocation_chain.rb#28
1850
+ def append(invocation, chain); end
1851
+ end
1852
+ end
1853
+
1854
+ # source://rake//lib/rake/invocation_chain.rb#55
1855
+ Rake::InvocationChain::EMPTY = T.let(T.unsafe(nil), Rake::InvocationChain::EmptyInvocationChain)
1856
+
1857
+ # Null object for an empty chain.
1858
+ #
1859
+ # source://rake//lib/rake/invocation_chain.rb#39
1860
+ class Rake::InvocationChain::EmptyInvocationChain < ::Rake::LinkedList::EmptyLinkedList
1861
+ # source://rake//lib/rake/invocation_chain.rb#46
1862
+ def append(invocation); end
1863
+
1864
+ # @return [Boolean]
1865
+ #
1866
+ # source://rake//lib/rake/invocation_chain.rb#42
1867
+ def member?(obj); end
1868
+
1869
+ # source://rake//lib/rake/invocation_chain.rb#50
1870
+ def to_s; end
1871
+ end
1872
+
1873
+ # source://rake//lib/rake/invocation_exception_mixin.rb#3
1874
+ module Rake::InvocationExceptionMixin
1875
+ # Return the invocation chain (list of Rake tasks) that were in
1876
+ # effect when this exception was detected by rake. May be null if
1877
+ # no tasks were active.
1878
+ #
1879
+ # source://rake//lib/rake/invocation_exception_mixin.rb#7
1880
+ def chain; end
1881
+
1882
+ # Set the invocation chain in effect when this exception was
1883
+ # detected.
1884
+ #
1885
+ # source://rake//lib/rake/invocation_exception_mixin.rb#13
1886
+ def chain=(value); end
1887
+ end
1888
+
1889
+ # source://rake//lib/rake/late_time.rb#17
1890
+ Rake::LATE = T.let(T.unsafe(nil), Rake::LateTime)
1891
+
1892
+ # LateTime is a fake timestamp that occurs _after_ any other time value.
1893
+ #
1894
+ # source://rake//lib/rake/late_time.rb#4
1895
+ class Rake::LateTime
1896
+ include ::Comparable
1897
+ include ::Singleton::SingletonInstanceMethods
1898
+ include ::Singleton
1899
+ extend ::Singleton::SingletonClassMethods
1900
+
1901
+ # source://rake//lib/rake/late_time.rb#8
1902
+ def <=>(other); end
1903
+
1904
+ # source://rake//lib/rake/late_time.rb#12
1905
+ def to_s; end
1906
+
1907
+ class << self
1908
+ private
1909
+
1910
+ # source://rake//lib/rake/late_time.rb#6
1911
+ def allocate; end
1912
+
1913
+ # source://rake//lib/rake/late_time.rb#6
1914
+ def new(*_arg0); end
1915
+ end
1916
+ end
1917
+
1918
+ # Polylithic linked list structure used to implement several data
1919
+ # structures in Rake.
1920
+ #
1921
+ # source://rake//lib/rake/linked_list.rb#6
1922
+ class Rake::LinkedList
1923
+ include ::Enumerable
1924
+
1925
+ # @return [LinkedList] a new instance of LinkedList
1926
+ #
1927
+ # source://rake//lib/rake/linked_list.rb#84
1928
+ def initialize(head, tail = T.unsafe(nil)); end
1929
+
1930
+ # Lists are structurally equivalent.
1931
+ #
1932
+ # source://rake//lib/rake/linked_list.rb#25
1933
+ def ==(other); end
1934
+
1935
+ # Polymorphically add a new element to the head of a list. The
1936
+ # type of head node will be the same list type as the tail.
1937
+ #
1938
+ # source://rake//lib/rake/linked_list.rb#12
1939
+ def conj(item); end
1940
+
1941
+ # For each item in the list.
1942
+ #
1943
+ # source://rake//lib/rake/linked_list.rb#48
1944
+ def each; end
1945
+
1946
+ # Is the list empty?
1947
+ # .make guards against a list being empty making any instantiated LinkedList
1948
+ # object not empty by default
1949
+ # You should consider overriding this method if you implement your own .make method
1950
+ #
1951
+ # @return [Boolean]
1952
+ #
1953
+ # source://rake//lib/rake/linked_list.rb#20
1954
+ def empty?; end
1955
+
1956
+ # Returns the value of attribute head.
1957
+ #
1958
+ # source://rake//lib/rake/linked_list.rb#8
1959
+ def head; end
1960
+
1961
+ # Same as +to_s+, but with inspected items.
1962
+ #
1963
+ # source://rake//lib/rake/linked_list.rb#42
1964
+ def inspect; end
1965
+
1966
+ # Returns the value of attribute tail.
1967
+ #
1968
+ # source://rake//lib/rake/linked_list.rb#8
1969
+ def tail; end
1970
+
1971
+ # Convert to string: LL(item, item...)
1972
+ #
1973
+ # source://rake//lib/rake/linked_list.rb#36
1974
+ def to_s; end
1975
+
1976
+ class << self
1977
+ # Cons a new head onto the tail list.
1978
+ #
1979
+ # source://rake//lib/rake/linked_list.rb#73
1980
+ def cons(head, tail); end
1981
+
1982
+ # The standard empty list class for the given LinkedList class.
1983
+ #
1984
+ # source://rake//lib/rake/linked_list.rb#78
1985
+ def empty; end
1986
+
1987
+ # Make a list out of the given arguments. This method is
1988
+ # polymorphic
1989
+ #
1990
+ # source://rake//lib/rake/linked_list.rb#59
1991
+ def make(*args); end
1992
+ end
1993
+ end
1994
+
1995
+ # source://rake//lib/rake/linked_list.rb#110
1996
+ Rake::LinkedList::EMPTY = T.let(T.unsafe(nil), Rake::LinkedList::EmptyLinkedList)
1997
+
1998
+ # Represent an empty list, using the Null Object Pattern.
1999
+ #
2000
+ # When inheriting from the LinkedList class, you should implement
2001
+ # a type specific Empty class as well. Make sure you set the class
2002
+ # instance variable @parent to the associated list class (this
2003
+ # allows conj, cons and make to work polymorphically).
2004
+ #
2005
+ # source://rake//lib/rake/linked_list.rb#95
2006
+ class Rake::LinkedList::EmptyLinkedList < ::Rake::LinkedList
2007
+ # @return [EmptyLinkedList] a new instance of EmptyLinkedList
2008
+ #
2009
+ # source://rake//lib/rake/linked_list.rb#98
2010
+ def initialize; end
2011
+
2012
+ # @return [Boolean]
2013
+ #
2014
+ # source://rake//lib/rake/linked_list.rb#101
2015
+ def empty?; end
2016
+
2017
+ class << self
2018
+ # source://rake//lib/rake/linked_list.rb#105
2019
+ def cons(head, tail); end
2020
+ end
2021
+ end
2022
+
2023
+ # Same as a regular task, but the immediate prerequisites are done in
2024
+ # parallel using Ruby threads.
2025
+ #
2026
+ # source://rake//lib/rake/multi_task.rb#7
2027
+ class Rake::MultiTask < ::Rake::Task
2028
+ private
2029
+
2030
+ # source://rake//lib/rake/multi_task.rb#10
2031
+ def invoke_prerequisites(task_args, invocation_chain); end
2032
+ end
2033
+
2034
+ # The NameSpace class will lookup task names in the scope defined by a
2035
+ # +namespace+ command.
2036
+ #
2037
+ # source://rake//lib/rake/name_space.rb#6
2038
+ class Rake::NameSpace
2039
+ # Create a namespace lookup object using the given task manager
2040
+ # and the list of scopes.
2041
+ #
2042
+ # @return [NameSpace] a new instance of NameSpace
2043
+ #
2044
+ # source://rake//lib/rake/name_space.rb#12
2045
+ def initialize(task_manager, scope_list); end
2046
+
2047
+ # Lookup a task named +name+ in the namespace.
2048
+ #
2049
+ # source://rake//lib/rake/name_space.rb#20
2050
+ def [](name); end
2051
+
2052
+ # The scope of the namespace (a LinkedList)
2053
+ #
2054
+ # source://rake//lib/rake/name_space.rb#27
2055
+ def scope; end
2056
+
2057
+ # Return the list of tasks defined in this and nested namespaces.
2058
+ #
2059
+ # source://rake//lib/rake/name_space.rb#34
2060
+ def tasks; end
2061
+ end
2062
+
2063
+ # Options used by the Rake command line application.
2064
+ #
2065
+ # source://rake//lib/rake/options.rb#8
2066
+ class Rake::Options
2067
+ # Returns the value of attribute always_multitask.
2068
+ #
2069
+ # source://rake//lib/rake/options.rb#9
2070
+ def always_multitask; end
2071
+
2072
+ # Sets the attribute always_multitask
2073
+ #
2074
+ # @param value the value to set the attribute always_multitask to.
2075
+ #
2076
+ # source://rake//lib/rake/options.rb#9
2077
+ def always_multitask=(_arg0); end
2078
+
2079
+ # Returns the value of attribute backtrace.
2080
+ #
2081
+ # source://rake//lib/rake/options.rb#10
2082
+ def backtrace; end
2083
+
2084
+ # Sets the attribute backtrace
2085
+ #
2086
+ # @param value the value to set the attribute backtrace to.
2087
+ #
2088
+ # source://rake//lib/rake/options.rb#10
2089
+ def backtrace=(_arg0); end
2090
+
2091
+ # Returns the value of attribute build_all.
2092
+ #
2093
+ # source://rake//lib/rake/options.rb#11
2094
+ def build_all; end
2095
+
2096
+ # Sets the attribute build_all
2097
+ #
2098
+ # @param value the value to set the attribute build_all to.
2099
+ #
2100
+ # source://rake//lib/rake/options.rb#11
2101
+ def build_all=(_arg0); end
2102
+
2103
+ # Returns the value of attribute dryrun.
2104
+ #
2105
+ # source://rake//lib/rake/options.rb#12
2106
+ def dryrun; end
2107
+
2108
+ # Sets the attribute dryrun
2109
+ #
2110
+ # @param value the value to set the attribute dryrun to.
2111
+ #
2112
+ # source://rake//lib/rake/options.rb#12
2113
+ def dryrun=(_arg0); end
2114
+
2115
+ # Returns the value of attribute ignore_deprecate.
2116
+ #
2117
+ # source://rake//lib/rake/options.rb#13
2118
+ def ignore_deprecate; end
2119
+
2120
+ # Sets the attribute ignore_deprecate
2121
+ #
2122
+ # @param value the value to set the attribute ignore_deprecate to.
2123
+ #
2124
+ # source://rake//lib/rake/options.rb#13
2125
+ def ignore_deprecate=(_arg0); end
2126
+
2127
+ # Returns the value of attribute ignore_system.
2128
+ #
2129
+ # source://rake//lib/rake/options.rb#14
2130
+ def ignore_system; end
2131
+
2132
+ # Sets the attribute ignore_system
2133
+ #
2134
+ # @param value the value to set the attribute ignore_system to.
2135
+ #
2136
+ # source://rake//lib/rake/options.rb#14
2137
+ def ignore_system=(_arg0); end
2138
+
2139
+ # Returns the value of attribute job_stats.
2140
+ #
2141
+ # source://rake//lib/rake/options.rb#15
2142
+ def job_stats; end
2143
+
2144
+ # Sets the attribute job_stats
2145
+ #
2146
+ # @param value the value to set the attribute job_stats to.
2147
+ #
2148
+ # source://rake//lib/rake/options.rb#15
2149
+ def job_stats=(_arg0); end
2150
+
2151
+ # Returns the value of attribute load_system.
2152
+ #
2153
+ # source://rake//lib/rake/options.rb#16
2154
+ def load_system; end
2155
+
2156
+ # Sets the attribute load_system
2157
+ #
2158
+ # @param value the value to set the attribute load_system to.
2159
+ #
2160
+ # source://rake//lib/rake/options.rb#16
2161
+ def load_system=(_arg0); end
2162
+
2163
+ # Returns the value of attribute nosearch.
2164
+ #
2165
+ # source://rake//lib/rake/options.rb#17
2166
+ def nosearch; end
2167
+
2168
+ # Sets the attribute nosearch
2169
+ #
2170
+ # @param value the value to set the attribute nosearch to.
2171
+ #
2172
+ # source://rake//lib/rake/options.rb#17
2173
+ def nosearch=(_arg0); end
2174
+
2175
+ # Returns the value of attribute rakelib.
2176
+ #
2177
+ # source://rake//lib/rake/options.rb#18
2178
+ def rakelib; end
2179
+
2180
+ # Sets the attribute rakelib
2181
+ #
2182
+ # @param value the value to set the attribute rakelib to.
2183
+ #
2184
+ # source://rake//lib/rake/options.rb#18
2185
+ def rakelib=(_arg0); end
2186
+
2187
+ # Returns the value of attribute show_all_tasks.
2188
+ #
2189
+ # source://rake//lib/rake/options.rb#19
2190
+ def show_all_tasks; end
2191
+
2192
+ # Sets the attribute show_all_tasks
2193
+ #
2194
+ # @param value the value to set the attribute show_all_tasks to.
2195
+ #
2196
+ # source://rake//lib/rake/options.rb#19
2197
+ def show_all_tasks=(_arg0); end
2198
+
2199
+ # Returns the value of attribute show_prereqs.
2200
+ #
2201
+ # source://rake//lib/rake/options.rb#20
2202
+ def show_prereqs; end
2203
+
2204
+ # Sets the attribute show_prereqs
2205
+ #
2206
+ # @param value the value to set the attribute show_prereqs to.
2207
+ #
2208
+ # source://rake//lib/rake/options.rb#20
2209
+ def show_prereqs=(_arg0); end
2210
+
2211
+ # Returns the value of attribute show_task_pattern.
2212
+ #
2213
+ # source://rake//lib/rake/options.rb#21
2214
+ def show_task_pattern; end
2215
+
2216
+ # Sets the attribute show_task_pattern
2217
+ #
2218
+ # @param value the value to set the attribute show_task_pattern to.
2219
+ #
2220
+ # source://rake//lib/rake/options.rb#21
2221
+ def show_task_pattern=(_arg0); end
2222
+
2223
+ # Returns the value of attribute show_tasks.
2224
+ #
2225
+ # source://rake//lib/rake/options.rb#22
2226
+ def show_tasks; end
2227
+
2228
+ # Sets the attribute show_tasks
2229
+ #
2230
+ # @param value the value to set the attribute show_tasks to.
2231
+ #
2232
+ # source://rake//lib/rake/options.rb#22
2233
+ def show_tasks=(_arg0); end
2234
+
2235
+ # Returns the value of attribute silent.
2236
+ #
2237
+ # source://rake//lib/rake/options.rb#23
2238
+ def silent; end
2239
+
2240
+ # Sets the attribute silent
2241
+ #
2242
+ # @param value the value to set the attribute silent to.
2243
+ #
2244
+ # source://rake//lib/rake/options.rb#23
2245
+ def silent=(_arg0); end
2246
+
2247
+ # Returns the value of attribute suppress_backtrace_pattern.
2248
+ #
2249
+ # source://rake//lib/rake/options.rb#24
2250
+ def suppress_backtrace_pattern; end
2251
+
2252
+ # Sets the attribute suppress_backtrace_pattern
2253
+ #
2254
+ # @param value the value to set the attribute suppress_backtrace_pattern to.
2255
+ #
2256
+ # source://rake//lib/rake/options.rb#24
2257
+ def suppress_backtrace_pattern=(_arg0); end
2258
+
2259
+ # Returns the value of attribute thread_pool_size.
2260
+ #
2261
+ # source://rake//lib/rake/options.rb#25
2262
+ def thread_pool_size; end
2263
+
2264
+ # Sets the attribute thread_pool_size
2265
+ #
2266
+ # @param value the value to set the attribute thread_pool_size to.
2267
+ #
2268
+ # source://rake//lib/rake/options.rb#25
2269
+ def thread_pool_size=(_arg0); end
2270
+
2271
+ # Returns the value of attribute trace.
2272
+ #
2273
+ # source://rake//lib/rake/options.rb#26
2274
+ def trace; end
2275
+
2276
+ # Sets the attribute trace
2277
+ #
2278
+ # @param value the value to set the attribute trace to.
2279
+ #
2280
+ # source://rake//lib/rake/options.rb#26
2281
+ def trace=(_arg0); end
2282
+
2283
+ # Returns the value of attribute trace_output.
2284
+ #
2285
+ # source://rake//lib/rake/options.rb#27
2286
+ def trace_output; end
2287
+
2288
+ # Sets the attribute trace_output
2289
+ #
2290
+ # @param value the value to set the attribute trace_output to.
2291
+ #
2292
+ # source://rake//lib/rake/options.rb#27
2293
+ def trace_output=(_arg0); end
2294
+
2295
+ # Returns the value of attribute trace_rules.
2296
+ #
2297
+ # source://rake//lib/rake/options.rb#28
2298
+ def trace_rules; end
2299
+
2300
+ # Sets the attribute trace_rules
2301
+ #
2302
+ # @param value the value to set the attribute trace_rules to.
2303
+ #
2304
+ # source://rake//lib/rake/options.rb#28
2305
+ def trace_rules=(_arg0); end
2306
+ end
2307
+
2308
+ # Include PrivateReader to use +private_reader+.
2309
+ #
2310
+ # source://rake//lib/rake/private_reader.rb#5
2311
+ module Rake::PrivateReader
2312
+ mixes_in_class_methods ::Rake::PrivateReader::ClassMethods
2313
+
2314
+ class << self
2315
+ # source://rake//lib/rake/private_reader.rb#7
2316
+ def included(base); end
2317
+ end
2318
+ end
2319
+
2320
+ # source://rake//lib/rake/private_reader.rb#11
2321
+ module Rake::PrivateReader::ClassMethods
2322
+ # Declare a list of private accessors
2323
+ #
2324
+ # source://rake//lib/rake/private_reader.rb#14
2325
+ def private_reader(*names); end
2326
+ end
2327
+
2328
+ # A Promise object represents a promise to do work (a chore) in the
2329
+ # future. The promise is created with a block and a list of
2330
+ # arguments for the block. Calling value will return the value of
2331
+ # the promised chore.
2332
+ #
2333
+ # Used by ThreadPool.
2334
+ #
2335
+ # source://rake//lib/rake/promise.rb#11
2336
+ class Rake::Promise
2337
+ # Create a promise to do the chore specified by the block.
2338
+ #
2339
+ # @return [Promise] a new instance of Promise
2340
+ #
2341
+ # source://rake//lib/rake/promise.rb#17
2342
+ def initialize(args, &block); end
2343
+
2344
+ # source://rake//lib/rake/promise.rb#14
2345
+ def recorder; end
2346
+
2347
+ # source://rake//lib/rake/promise.rb#14
2348
+ def recorder=(_arg0); end
2349
+
2350
+ # Return the value of this promise.
2351
+ #
2352
+ # If the promised chore is not yet complete, then do the work
2353
+ # synchronously. We will wait.
2354
+ #
2355
+ # source://rake//lib/rake/promise.rb#29
2356
+ def value; end
2357
+
2358
+ # If no one else is working this promise, go ahead and do the chore.
2359
+ #
2360
+ # source://rake//lib/rake/promise.rb#42
2361
+ def work; end
2362
+
2363
+ private
2364
+
2365
+ # Perform the chore promised
2366
+ #
2367
+ # source://rake//lib/rake/promise.rb#57
2368
+ def chore; end
2369
+
2370
+ # Are we done with the promise
2371
+ #
2372
+ # @return [Boolean]
2373
+ #
2374
+ # source://rake//lib/rake/promise.rb#83
2375
+ def complete?; end
2376
+
2377
+ # free up these items for the GC
2378
+ #
2379
+ # source://rake//lib/rake/promise.rb#88
2380
+ def discard; end
2381
+
2382
+ # Did the promise throw an error
2383
+ #
2384
+ # @return [Boolean]
2385
+ #
2386
+ # source://rake//lib/rake/promise.rb#78
2387
+ def error?; end
2388
+
2389
+ # Do we have a result for the promise
2390
+ #
2391
+ # @return [Boolean]
2392
+ #
2393
+ # source://rake//lib/rake/promise.rb#73
2394
+ def result?; end
2395
+
2396
+ # Record execution statistics if there is a recorder
2397
+ #
2398
+ # source://rake//lib/rake/promise.rb#94
2399
+ def stat(*args); end
2400
+ end
2401
+
2402
+ # source://rake//lib/rake/promise.rb#12
2403
+ Rake::Promise::NOT_SET = T.let(T.unsafe(nil), Object)
2404
+
2405
+ # Exit status class for times the system just gives us a nil.
2406
+ #
2407
+ # source://rake//lib/rake/pseudo_status.rb#6
2408
+ class Rake::PseudoStatus
2409
+ # @return [PseudoStatus] a new instance of PseudoStatus
2410
+ #
2411
+ # source://rake//lib/rake/pseudo_status.rb#9
2412
+ def initialize(code = T.unsafe(nil)); end
2413
+
2414
+ # source://rake//lib/rake/pseudo_status.rb#17
2415
+ def >>(n); end
2416
+
2417
+ # @return [Boolean]
2418
+ #
2419
+ # source://rake//lib/rake/pseudo_status.rb#25
2420
+ def exited?; end
2421
+
2422
+ # source://rake//lib/rake/pseudo_status.rb#7
2423
+ def exitstatus; end
2424
+
2425
+ # @return [Boolean]
2426
+ #
2427
+ # source://rake//lib/rake/pseudo_status.rb#21
2428
+ def stopped?; end
2429
+
2430
+ # source://rake//lib/rake/pseudo_status.rb#13
2431
+ def to_i; end
2432
+ end
2433
+
2434
+ # Error indicating a recursion overflow error in task selection.
2435
+ #
2436
+ # source://rake//lib/rake/rule_recursion_overflow_error.rb#5
2437
+ class Rake::RuleRecursionOverflowError < ::StandardError
2438
+ # @return [RuleRecursionOverflowError] a new instance of RuleRecursionOverflowError
2439
+ #
2440
+ # source://rake//lib/rake/rule_recursion_overflow_error.rb#6
2441
+ def initialize(*args); end
2442
+
2443
+ # source://rake//lib/rake/rule_recursion_overflow_error.rb#11
2444
+ def add_target(target); end
2445
+
2446
+ # source://rake//lib/rake/rule_recursion_overflow_error.rb#15
2447
+ def message; end
2448
+ end
2449
+
2450
+ # source://rake//lib/rake/scope.rb#3
2451
+ class Rake::Scope < ::Rake::LinkedList
2452
+ # Path for the scope.
2453
+ #
2454
+ # source://rake//lib/rake/scope.rb#6
2455
+ def path; end
2456
+
2457
+ # Path for the scope + the named path.
2458
+ #
2459
+ # source://rake//lib/rake/scope.rb#11
2460
+ def path_with_task_name(task_name); end
2461
+
2462
+ # Trim +n+ innermost scope levels from the scope. In no case will
2463
+ # this trim beyond the toplevel scope.
2464
+ #
2465
+ # source://rake//lib/rake/scope.rb#17
2466
+ def trim(n); end
2467
+ end
2468
+
2469
+ # Singleton null object for an empty scope.
2470
+ #
2471
+ # source://rake//lib/rake/scope.rb#41
2472
+ Rake::Scope::EMPTY = T.let(T.unsafe(nil), Rake::Scope::EmptyScope)
2473
+
2474
+ # Scope lists always end with an EmptyScope object. See Null
2475
+ # Object Pattern)
2476
+ #
2477
+ # source://rake//lib/rake/scope.rb#28
2478
+ class Rake::Scope::EmptyScope < ::Rake::LinkedList::EmptyLinkedList
2479
+ # source://rake//lib/rake/scope.rb#31
2480
+ def path; end
2481
+
2482
+ # source://rake//lib/rake/scope.rb#35
2483
+ def path_with_task_name(task_name); end
2484
+ end
2485
+
2486
+ # A Task is the basic unit of work in a Rakefile. Tasks have associated
2487
+ # actions (possibly more than one) and a list of prerequisites. When
2488
+ # invoked, a task will first ensure that all of its prerequisites have an
2489
+ # opportunity to run and then it will execute its own actions.
2490
+ #
2491
+ # Tasks are not usually created directly using the new method, but rather
2492
+ # use the +file+ and +task+ convenience methods.
2493
+ #
2494
+ # source://rake//lib/rake/task.rb#15
2495
+ class Rake::Task
2496
+ # Create a task named +task_name+ with no actions or prerequisites. Use
2497
+ # +enhance+ to add actions and prerequisites.
2498
+ #
2499
+ # @return [Task] a new instance of Task
2500
+ #
2501
+ # source://rake//lib/rake/task.rb#99
2502
+ def initialize(task_name, app); end
2503
+
2504
+ # List of actions attached to a task.
2505
+ #
2506
+ # source://rake//lib/rake/task.rb#24
2507
+ def actions; end
2508
+
2509
+ # Add a description to the task. The description can consist of an option
2510
+ # argument list (enclosed brackets) and an optional comment.
2511
+ #
2512
+ # source://rake//lib/rake/task.rb#298
2513
+ def add_description(description); end
2514
+
2515
+ # List of all unique prerequisite tasks including prerequisite tasks'
2516
+ # prerequisites.
2517
+ # Includes self when cyclic dependencies are found.
2518
+ #
2519
+ # source://rake//lib/rake/task.rb#77
2520
+ def all_prerequisite_tasks; end
2521
+
2522
+ # Has this task already been invoked? Already invoked tasks
2523
+ # will be skipped unless you reenable them.
2524
+ #
2525
+ # source://rake//lib/rake/task.rb#39
2526
+ def already_invoked; end
2527
+
2528
+ # Application owning this task.
2529
+ #
2530
+ # source://rake//lib/rake/task.rb#27
2531
+ def application; end
2532
+
2533
+ # Application owning this task.
2534
+ #
2535
+ # source://rake//lib/rake/task.rb#27
2536
+ def application=(_arg0); end
2537
+
2538
+ # Argument description (nil if none).
2539
+ #
2540
+ # source://rake//lib/rake/task.rb#136
2541
+ def arg_description; end
2542
+
2543
+ # Name of arguments for this task.
2544
+ #
2545
+ # source://rake//lib/rake/task.rb#141
2546
+ def arg_names; end
2547
+
2548
+ # Clear the existing prerequisites, actions, comments, and arguments of a rake task.
2549
+ #
2550
+ # source://rake//lib/rake/task.rb#153
2551
+ def clear; end
2552
+
2553
+ # Clear the existing actions on a rake task.
2554
+ #
2555
+ # source://rake//lib/rake/task.rb#168
2556
+ def clear_actions; end
2557
+
2558
+ # Clear the existing arguments on a rake task.
2559
+ #
2560
+ # source://rake//lib/rake/task.rb#180
2561
+ def clear_args; end
2562
+
2563
+ # Clear the existing comments on a rake task.
2564
+ #
2565
+ # source://rake//lib/rake/task.rb#174
2566
+ def clear_comments; end
2567
+
2568
+ # Clear the existing prerequisites of a rake task.
2569
+ #
2570
+ # source://rake//lib/rake/task.rb#162
2571
+ def clear_prerequisites; end
2572
+
2573
+ # First line (or sentence) of all comments. Multiple comments are
2574
+ # separated by a "/".
2575
+ #
2576
+ # source://rake//lib/rake/task.rb#322
2577
+ def comment; end
2578
+
2579
+ # source://rake//lib/rake/task.rb#304
2580
+ def comment=(comment); end
2581
+
2582
+ # Enhance a task with prerequisites or actions. Returns self.
2583
+ #
2584
+ # source://rake//lib/rake/task.rb#115
2585
+ def enhance(deps = T.unsafe(nil), &block); end
2586
+
2587
+ # Execute the actions associated with this task.
2588
+ #
2589
+ # source://rake//lib/rake/task.rb#270
2590
+ def execute(args = T.unsafe(nil)); end
2591
+
2592
+ # Full collection of comments. Multiple comments are separated by
2593
+ # newlines.
2594
+ #
2595
+ # source://rake//lib/rake/task.rb#316
2596
+ def full_comment; end
2597
+
2598
+ # source://rake//lib/rake/task.rb#46
2599
+ def inspect; end
2600
+
2601
+ # Return a string describing the internal state of a task. Useful for
2602
+ # debugging.
2603
+ #
2604
+ # source://rake//lib/rake/task.rb#354
2605
+ def investigation; end
2606
+
2607
+ # Invoke the task if it is needed. Prerequisites are invoked first.
2608
+ #
2609
+ # source://rake//lib/rake/task.rb#186
2610
+ def invoke(*args); end
2611
+
2612
+ # Invoke all the prerequisites of a task.
2613
+ #
2614
+ # source://rake//lib/rake/task.rb#237
2615
+ def invoke_prerequisites(task_args, invocation_chain); end
2616
+
2617
+ # Invoke all the prerequisites of a task in parallel.
2618
+ #
2619
+ # source://rake//lib/rake/task.rb#249
2620
+ def invoke_prerequisites_concurrently(task_args, invocation_chain); end
2621
+
2622
+ # File/Line locations of each of the task definitions for this
2623
+ # task (only valid if the task was defined with the detect
2624
+ # location option set).
2625
+ #
2626
+ # source://rake//lib/rake/task.rb#35
2627
+ def locations; end
2628
+
2629
+ # Name of the task, including any namespace qualifiers.
2630
+ #
2631
+ # source://rake//lib/rake/task.rb#122
2632
+ def name; end
2633
+
2634
+ # Name of task with argument list description.
2635
+ #
2636
+ # source://rake//lib/rake/task.rb#127
2637
+ def name_with_args; end
2638
+
2639
+ # Is this task needed?
2640
+ #
2641
+ # @return [Boolean]
2642
+ #
2643
+ # source://rake//lib/rake/task.rb#286
2644
+ def needed?; end
2645
+
2646
+ # List of order only prerequisites for a task.
2647
+ #
2648
+ # source://rake//lib/rake/task.rb#21
2649
+ def order_only_prerequisites; end
2650
+
2651
+ # List of prerequisites for a task.
2652
+ #
2653
+ # source://rake//lib/rake/task.rb#18
2654
+ def prereqs; end
2655
+
2656
+ # List of prerequisite tasks
2657
+ #
2658
+ # source://rake//lib/rake/task.rb#61
2659
+ def prerequisite_tasks; end
2660
+
2661
+ # List of prerequisites for a task.
2662
+ #
2663
+ # source://rake//lib/rake/task.rb#17
2664
+ def prerequisites; end
2665
+
2666
+ # Reenable the task, allowing its tasks to be executed if the task
2667
+ # is invoked again.
2668
+ #
2669
+ # source://rake//lib/rake/task.rb#147
2670
+ def reenable; end
2671
+
2672
+ # Array of nested namespaces names used for task lookup by this task.
2673
+ #
2674
+ # source://rake//lib/rake/task.rb#30
2675
+ def scope; end
2676
+
2677
+ # Set the names of the arguments for this task. +args+ should be
2678
+ # an array of symbols, one for each argument name.
2679
+ #
2680
+ # source://rake//lib/rake/task.rb#348
2681
+ def set_arg_names(args); end
2682
+
2683
+ # First source from a rule (nil if no sources)
2684
+ #
2685
+ # source://rake//lib/rake/task.rb#93
2686
+ def source; end
2687
+
2688
+ # source://rake//lib/rake/task.rb#52
2689
+ def sources; end
2690
+
2691
+ # List of sources for task.
2692
+ #
2693
+ # source://rake//lib/rake/task.rb#51
2694
+ def sources=(_arg0); end
2695
+
2696
+ # Timestamp for this task. Basic tasks return the current time for their
2697
+ # time stamp. Other tasks can be more sophisticated.
2698
+ #
2699
+ # source://rake//lib/rake/task.rb#292
2700
+ def timestamp; end
2701
+
2702
+ # Return task name
2703
+ #
2704
+ # source://rake//lib/rake/task.rb#42
2705
+ def to_s; end
2706
+
2707
+ # Add order only dependencies.
2708
+ #
2709
+ # source://rake//lib/rake/task.rb#379
2710
+ def |(deps); end
2711
+
2712
+ protected
2713
+
2714
+ # source://rake//lib/rake/task.rb#83
2715
+ def collect_prerequisites(seen); end
2716
+
2717
+ # Same as invoke, but explicitly pass a call chain to detect
2718
+ # circular dependencies.
2719
+ #
2720
+ # If multiple tasks depend on this
2721
+ # one in parallel, they will all fail if the first execution of
2722
+ # this task fails.
2723
+ #
2724
+ # source://rake//lib/rake/task.rb#197
2725
+ def invoke_with_call_chain(task_args, invocation_chain); end
2726
+
2727
+ private
2728
+
2729
+ # source://rake//lib/rake/task.rb#229
2730
+ def add_chain_to(exception, new_chain); end
2731
+
2732
+ # source://rake//lib/rake/task.rb#308
2733
+ def add_comment(comment); end
2734
+
2735
+ # Get the first sentence in a string. The sentence is terminated
2736
+ # by the first period, exclamation mark, or the end of the line.
2737
+ # Decimal points do not count as periods.
2738
+ #
2739
+ # source://rake//lib/rake/task.rb#341
2740
+ def first_sentence(string); end
2741
+
2742
+ # Format the trace flags for display.
2743
+ #
2744
+ # source://rake//lib/rake/task.rb#261
2745
+ def format_trace_flags; end
2746
+
2747
+ # source://rake//lib/rake/task.rb#65
2748
+ def lookup_prerequisite(prerequisite_name); end
2749
+
2750
+ # Transform the list of comments as specified by the block and
2751
+ # join with the separator.
2752
+ #
2753
+ # source://rake//lib/rake/task.rb#328
2754
+ def transform_comments(separator, &block); end
2755
+
2756
+ class << self
2757
+ # Return a task with the given name. If the task is not currently
2758
+ # known, try to synthesize one from the defined rules. If no rules are
2759
+ # found, but an existing file matches the task name, assume it is a file
2760
+ # task with no dependencies or actions.
2761
+ #
2762
+ # source://rake//lib/rake/task.rb#404
2763
+ def [](task_name); end
2764
+
2765
+ # Clear the task list. This cause rake to immediately forget all the
2766
+ # tasks that have been assigned. (Normally used in the unit tests.)
2767
+ #
2768
+ # source://rake//lib/rake/task.rb#391
2769
+ def clear; end
2770
+
2771
+ # Define a rule for synthesizing tasks.
2772
+ #
2773
+ # source://rake//lib/rake/task.rb#421
2774
+ def create_rule(*args, &block); end
2775
+
2776
+ # Define a task given +args+ and an option block. If a rule with the
2777
+ # given name already exists, the prerequisites and actions are added to
2778
+ # the existing task. Returns the defined task.
2779
+ #
2780
+ # source://rake//lib/rake/task.rb#416
2781
+ def define_task(*args, &block); end
2782
+
2783
+ # Format dependencies parameter to pass to task.
2784
+ #
2785
+ # source://rake//lib/rake/task.rb#373
2786
+ def format_deps(deps); end
2787
+
2788
+ # Apply the scope to the task name according to the rules for
2789
+ # this kind of task. Generic tasks will accept the scope as
2790
+ # part of the name.
2791
+ #
2792
+ # source://rake//lib/rake/task.rb#428
2793
+ def scope_name(scope, task_name); end
2794
+
2795
+ # TRUE if the task name is already defined.
2796
+ #
2797
+ # @return [Boolean]
2798
+ #
2799
+ # source://rake//lib/rake/task.rb#409
2800
+ def task_defined?(task_name); end
2801
+
2802
+ # List of all defined tasks.
2803
+ #
2804
+ # source://rake//lib/rake/task.rb#396
2805
+ def tasks; end
2806
+ end
2807
+ end
2808
+
2809
+ # Error indicating an ill-formed task declaration.
2810
+ #
2811
+ # source://rake//lib/rake/task_argument_error.rb#5
2812
+ class Rake::TaskArgumentError < ::ArgumentError; end
2813
+
2814
+ # TaskArguments manage the arguments passed to a task.
2815
+ #
2816
+ # source://rake//lib/rake/task_arguments.rb#7
2817
+ class Rake::TaskArguments
2818
+ include ::Enumerable
2819
+
2820
+ # Create a TaskArgument object with a list of argument +names+ and a set
2821
+ # of associated +values+. +parent+ is the parent argument object.
2822
+ #
2823
+ # @return [TaskArguments] a new instance of TaskArguments
2824
+ #
2825
+ # source://rake//lib/rake/task_arguments.rb#15
2826
+ def initialize(names, values, parent = T.unsafe(nil)); end
2827
+
2828
+ # Find an argument value by name or index.
2829
+ #
2830
+ # source://rake//lib/rake/task_arguments.rb#44
2831
+ def [](index); end
2832
+
2833
+ # source://rake//lib/rake/task_arguments.rb#97
2834
+ def deconstruct_keys(keys); end
2835
+
2836
+ # Enumerates the arguments and their values
2837
+ #
2838
+ # source://rake//lib/rake/task_arguments.rb#56
2839
+ def each(&block); end
2840
+
2841
+ # Retrieve the list of values not associated with named arguments
2842
+ #
2843
+ # source://rake//lib/rake/task_arguments.rb#32
2844
+ def extras; end
2845
+
2846
+ # source://rake//lib/rake/task_arguments.rb#93
2847
+ def fetch(*args, &block); end
2848
+
2849
+ # Returns true if +key+ is one of the arguments
2850
+ #
2851
+ # @return [Boolean]
2852
+ #
2853
+ # source://rake//lib/rake/task_arguments.rb#88
2854
+ def has_key?(key); end
2855
+
2856
+ # source://rake//lib/rake/task_arguments.rb#79
2857
+ def inspect; end
2858
+
2859
+ # Returns true if +key+ is one of the arguments
2860
+ #
2861
+ # @return [Boolean]
2862
+ #
2863
+ # source://rake//lib/rake/task_arguments.rb#91
2864
+ def key?(key); end
2865
+
2866
+ # Returns the value of the given argument via method_missing
2867
+ #
2868
+ # source://rake//lib/rake/task_arguments.rb#66
2869
+ def method_missing(sym, *args); end
2870
+
2871
+ # Argument names
2872
+ #
2873
+ # source://rake//lib/rake/task_arguments.rb#11
2874
+ def names; end
2875
+
2876
+ # Create a new argument scope using the prerequisite argument
2877
+ # names.
2878
+ #
2879
+ # source://rake//lib/rake/task_arguments.rb#38
2880
+ def new_scope(names); end
2881
+
2882
+ # Retrieve the complete array of sequential values
2883
+ #
2884
+ # source://rake//lib/rake/task_arguments.rb#27
2885
+ def to_a; end
2886
+
2887
+ # Returns a Hash of arguments and their values
2888
+ #
2889
+ # source://rake//lib/rake/task_arguments.rb#71
2890
+ def to_hash; end
2891
+
2892
+ # source://rake//lib/rake/task_arguments.rb#75
2893
+ def to_s; end
2894
+
2895
+ # Extracts the argument values at +keys+
2896
+ #
2897
+ # source://rake//lib/rake/task_arguments.rb#61
2898
+ def values_at(*keys); end
2899
+
2900
+ # Specify a hash of default values for task arguments. Use the
2901
+ # defaults only if there is no specific value for the given
2902
+ # argument.
2903
+ #
2904
+ # source://rake//lib/rake/task_arguments.rb#51
2905
+ def with_defaults(defaults); end
2906
+
2907
+ protected
2908
+
2909
+ # source://rake//lib/rake/task_arguments.rb#103
2910
+ def lookup(name); end
2911
+ end
2912
+
2913
+ # Base class for Task Libraries.
2914
+ #
2915
+ # source://rake//lib/rake/tasklib.rb#7
2916
+ class Rake::TaskLib
2917
+ include ::Rake::Cloneable
2918
+ include ::FileUtils::StreamUtils_
2919
+ include ::FileUtils
2920
+ include ::Rake::FileUtilsExt
2921
+ include ::Rake::DSL
2922
+ end
2923
+
2924
+ # The TaskManager module is a mixin for managing tasks.
2925
+ #
2926
+ # source://rake//lib/rake/task_manager.rb#5
2927
+ module Rake::TaskManager
2928
+ # source://rake//lib/rake/task_manager.rb#9
2929
+ def initialize; end
2930
+
2931
+ # Find a matching task for +task_name+.
2932
+ #
2933
+ # source://rake//lib/rake/task_manager.rb#54
2934
+ def [](task_name, scopes = T.unsafe(nil)); end
2935
+
2936
+ # Clear all tasks in this application.
2937
+ #
2938
+ # source://rake//lib/rake/task_manager.rb#182
2939
+ def clear; end
2940
+
2941
+ # source://rake//lib/rake/task_manager.rb#17
2942
+ def create_rule(*args, &block); end
2943
+
2944
+ # Return the list of scope names currently active in the task
2945
+ # manager.
2946
+ #
2947
+ # source://rake//lib/rake/task_manager.rb#222
2948
+ def current_scope; end
2949
+
2950
+ # source://rake//lib/rake/task_manager.rb#23
2951
+ def define_task(task_class, *args, &block); end
2952
+
2953
+ # If a rule can be found that matches the task name, enhance the
2954
+ # task with the prerequisites and actions from the rule. Set the
2955
+ # source attribute of the task appropriately for the rule. Return
2956
+ # the enhanced task or nil of no rule was found.
2957
+ #
2958
+ # source://rake//lib/rake/task_manager.rb#151
2959
+ def enhance_with_matching_rule(task_name, level = T.unsafe(nil)); end
2960
+
2961
+ # source://rake//lib/rake/task_manager.rb#68
2962
+ def generate_did_you_mean_suggestions(task_name); end
2963
+
2964
+ # source://rake//lib/rake/task_manager.rb#62
2965
+ def generate_message_for_undefined_task(task_name); end
2966
+
2967
+ # Evaluate the block in a nested namespace named +name+. Create
2968
+ # an anonymous namespace if +name+ is nil.
2969
+ #
2970
+ # source://rake//lib/rake/task_manager.rb#228
2971
+ def in_namespace(name); end
2972
+
2973
+ # Lookup a task. Return an existing task if found, otherwise
2974
+ # create a task of the current type.
2975
+ #
2976
+ # source://rake//lib/rake/task_manager.rb#49
2977
+ def intern(task_class, task_name); end
2978
+
2979
+ # Track the last comment made in the Rakefile.
2980
+ #
2981
+ # source://rake//lib/rake/task_manager.rb#7
2982
+ def last_description; end
2983
+
2984
+ # Track the last comment made in the Rakefile.
2985
+ #
2986
+ # source://rake//lib/rake/task_manager.rb#7
2987
+ def last_description=(_arg0); end
2988
+
2989
+ # Lookup a task, using scope and the scope hints in the task name.
2990
+ # This method performs straight lookups without trying to
2991
+ # synthesize file tasks or rules. Special scope names (e.g. '^')
2992
+ # are recognized. If no scope argument is supplied, use the
2993
+ # current scope. Return nil if the task cannot be found.
2994
+ #
2995
+ # source://rake//lib/rake/task_manager.rb#192
2996
+ def lookup(task_name, initial_scope = T.unsafe(nil)); end
2997
+
2998
+ # Resolve the arguments for a task/rule. Returns a tuple of
2999
+ # [task_name, arg_name_list, prerequisites, order_only_prerequisites].
3000
+ #
3001
+ # source://rake//lib/rake/task_manager.rb#88
3002
+ def resolve_args(args); end
3003
+
3004
+ # source://rake//lib/rake/task_manager.rb#81
3005
+ def synthesize_file_task(task_name); end
3006
+
3007
+ # List of all defined tasks in this application.
3008
+ #
3009
+ # source://rake//lib/rake/task_manager.rb#168
3010
+ def tasks; end
3011
+
3012
+ # List of all the tasks defined in the given scope (and its
3013
+ # sub-scopes).
3014
+ #
3015
+ # source://rake//lib/rake/task_manager.rb#174
3016
+ def tasks_in_scope(scope); end
3017
+
3018
+ private
3019
+
3020
+ # Add a location to the locations field of the given task.
3021
+ #
3022
+ # source://rake//lib/rake/task_manager.rb#241
3023
+ def add_location(task); end
3024
+
3025
+ # Attempt to create a rule given the list of prerequisites.
3026
+ #
3027
+ # source://rake//lib/rake/task_manager.rb#271
3028
+ def attempt_rule(task_name, task_pattern, args, extensions, block, level); end
3029
+
3030
+ # Find the location that called into the dsl layer.
3031
+ #
3032
+ # source://rake//lib/rake/task_manager.rb#248
3033
+ def find_location; end
3034
+
3035
+ # Generate an anonymous namespace name.
3036
+ #
3037
+ # source://rake//lib/rake/task_manager.rb#259
3038
+ def generate_name; end
3039
+
3040
+ # Return the current description, clearing it in the process.
3041
+ #
3042
+ # source://rake//lib/rake/task_manager.rb#321
3043
+ def get_description; end
3044
+
3045
+ # Lookup the task name
3046
+ #
3047
+ # source://rake//lib/rake/task_manager.rb#208
3048
+ def lookup_in_scope(name, scope); end
3049
+
3050
+ # Make a list of sources from the list of file name extensions /
3051
+ # translation procs.
3052
+ #
3053
+ # source://rake//lib/rake/task_manager.rb#293
3054
+ def make_sources(task_name, task_pattern, extensions); end
3055
+
3056
+ # Resolve task arguments for a task or rule when there are
3057
+ # dependencies declared.
3058
+ #
3059
+ # The patterns recognized by this argument resolving function are:
3060
+ #
3061
+ # task :t, order_only: [:e]
3062
+ # task :t => [:d]
3063
+ # task :t => [:d], order_only: [:e]
3064
+ # task :t, [a] => [:d]
3065
+ # task :t, [a] => [:d], order_only: [:e]
3066
+ #
3067
+ # source://rake//lib/rake/task_manager.rb#127
3068
+ def resolve_args_with_dependencies(args, hash); end
3069
+
3070
+ # Resolve task arguments for a task or rule when there are no
3071
+ # dependencies declared.
3072
+ #
3073
+ # The patterns recognized by this argument resolving function are:
3074
+ #
3075
+ # task :t
3076
+ # task :t, [:a]
3077
+ #
3078
+ # source://rake//lib/rake/task_manager.rb#105
3079
+ def resolve_args_without_dependencies(args); end
3080
+
3081
+ # source://rake//lib/rake/task_manager.rb#265
3082
+ def trace_rule(level, message); end
3083
+
3084
+ class << self
3085
+ # source://rake//lib/rake/task_manager.rb#328
3086
+ def record_task_metadata; end
3087
+
3088
+ # source://rake//lib/rake/task_manager.rb#328
3089
+ def record_task_metadata=(_arg0); end
3090
+ end
3091
+ end
3092
+
3093
+ # source://rake//lib/rake/thread_history_display.rb#6
3094
+ class Rake::ThreadHistoryDisplay
3095
+ include ::Rake::PrivateReader
3096
+ extend ::Rake::PrivateReader::ClassMethods
3097
+
3098
+ # @return [ThreadHistoryDisplay] a new instance of ThreadHistoryDisplay
3099
+ #
3100
+ # source://rake//lib/rake/thread_history_display.rb#11
3101
+ def initialize(stats); end
3102
+
3103
+ # source://rake//lib/rake/thread_history_display.rb#17
3104
+ def show; end
3105
+
3106
+ private
3107
+
3108
+ # source://rake//lib/rake/thread_history_display.rb#9
3109
+ def items; end
3110
+
3111
+ # source://rake//lib/rake/thread_history_display.rb#35
3112
+ def rename(hash, key, renames); end
3113
+
3114
+ # source://rake//lib/rake/thread_history_display.rb#9
3115
+ def stats; end
3116
+
3117
+ # source://rake//lib/rake/thread_history_display.rb#9
3118
+ def threads; end
3119
+ end
3120
+
3121
+ # source://rake//lib/rake/thread_pool.rb#8
3122
+ class Rake::ThreadPool
3123
+ # Creates a ThreadPool object. The +thread_count+ parameter is the size
3124
+ # of the pool.
3125
+ #
3126
+ # @return [ThreadPool] a new instance of ThreadPool
3127
+ #
3128
+ # source://rake//lib/rake/thread_pool.rb#12
3129
+ def initialize(thread_count); end
3130
+
3131
+ # Creates a future executed by the +ThreadPool+.
3132
+ #
3133
+ # The args are passed to the block when executing (similarly to
3134
+ # Thread#new) The return value is an object representing
3135
+ # a future which has been created and added to the queue in the
3136
+ # pool. Sending #value to the object will sleep the
3137
+ # current thread until the future is finished and will return the
3138
+ # result (or raise an exception thrown from the future)
3139
+ #
3140
+ # source://rake//lib/rake/thread_pool.rb#33
3141
+ def future(*args, &block); end
3142
+
3143
+ # Enable the gathering of history events.
3144
+ #
3145
+ # source://rake//lib/rake/thread_pool.rb#68
3146
+ def gather_history; end
3147
+
3148
+ # Return a array of history events for the thread pool.
3149
+ #
3150
+ # History gathering must be enabled to be able to see the events
3151
+ # (see #gather_history). Best to call this when the job is
3152
+ # complete (i.e. after ThreadPool#join is called).
3153
+ #
3154
+ # source://rake//lib/rake/thread_pool.rb#77
3155
+ def history; end
3156
+
3157
+ # Waits until the queue of futures is empty and all threads have exited.
3158
+ #
3159
+ # source://rake//lib/rake/thread_pool.rb#44
3160
+ def join; end
3161
+
3162
+ # Return a hash of always collected statistics for the thread pool.
3163
+ #
3164
+ # source://rake//lib/rake/thread_pool.rb#84
3165
+ def statistics; end
3166
+
3167
+ private
3168
+
3169
+ # for testing only
3170
+ #
3171
+ # source://rake//lib/rake/thread_pool.rb#152
3172
+ def __queue__; end
3173
+
3174
+ # processes one item on the queue. Returns true if there was an
3175
+ # item to process, false if there was no item
3176
+ #
3177
+ # source://rake//lib/rake/thread_pool.rb#95
3178
+ def process_queue_item; end
3179
+
3180
+ # source://rake//lib/rake/thread_pool.rb#111
3181
+ def start_thread; end
3182
+
3183
+ # source://rake//lib/rake/thread_pool.rb#139
3184
+ def stat(event, data = T.unsafe(nil)); end
3185
+ end
3186
+
3187
+ # source://rake//lib/rake/trace_output.rb#3
3188
+ module Rake::TraceOutput
3189
+ # Write trace output to output stream +out+.
3190
+ #
3191
+ # The write is done as a single IO call (to print) to lessen the
3192
+ # chance that the trace output is interrupted by other tasks also
3193
+ # producing output.
3194
+ #
3195
+ # source://rake//lib/rake/trace_output.rb#10
3196
+ def trace_on(out, *strings); end
3197
+ end
3198
+
3199
+ # source://rake//lib/rake/version.rb#3
3200
+ Rake::VERSION = T.let(T.unsafe(nil), String)
3201
+
3202
+ # source://rake//lib/rake/version.rb#5
3203
+ module Rake::Version; end
3204
+
3205
+ # source://rake//lib/rake/version.rb#6
3206
+ Rake::Version::BUILD = T.let(T.unsafe(nil), String)
3207
+
3208
+ # source://rake//lib/rake/version.rb#6
3209
+ Rake::Version::MAJOR = T.let(T.unsafe(nil), String)
3210
+
3211
+ # source://rake//lib/rake/version.rb#6
3212
+ Rake::Version::MINOR = T.let(T.unsafe(nil), String)
3213
+
3214
+ # source://rake//lib/rake/version.rb#8
3215
+ Rake::Version::NUMBERS = T.let(T.unsafe(nil), Array)
3216
+
3217
+ # source://rake//lib/rake/version.rb#6
3218
+ Rake::Version::OTHER = T.let(T.unsafe(nil), Array)
3219
+
3220
+ # Win 32 interface methods for Rake. Windows specific functionality
3221
+ # will be placed here to collect that knowledge in one spot.
3222
+ #
3223
+ # source://rake//lib/rake/win32.rb#7
3224
+ module Rake::Win32
3225
+ class << self
3226
+ # True if running on a windows system.
3227
+ #
3228
+ # @return [Boolean]
3229
+ #
3230
+ # source://rake//lib/rake/win32.rb#11
3231
+ def windows?; end
3232
+ end
3233
+ end
3234
+
3235
+ # source://rake//lib/rake.rb#69
3236
+ RakeFileUtils = Rake::FileUtilsExt
3237
+
3238
+ # source://rake//lib/rake/ext/string.rb#4
3239
+ class String
3240
+ include ::Comparable
3241
+
3242
+ # source://rake//lib/rake/ext/string.rb#14
3243
+ def ext(newext = T.unsafe(nil)); end
3244
+
3245
+ # source://rake//lib/rake/ext/string.rb#138
3246
+ def pathmap(spec = T.unsafe(nil), &block); end
3247
+
3248
+ protected
3249
+
3250
+ # source://rake//lib/rake/ext/string.rb#27
3251
+ def pathmap_explode; end
3252
+
3253
+ # source://rake//lib/rake/ext/string.rb#41
3254
+ def pathmap_partial(n); end
3255
+
3256
+ # source://rake//lib/rake/ext/string.rb#59
3257
+ def pathmap_replace(patterns, &block); end
3258
+ end