e621stream 0.0.0

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