optimistic-json 0.1.1 → 0.1.3

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