e621_export_downloader 0.0.1

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