rubocop-modularization 0.0.1 → 0.0.2

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