mootool 0.2.6 → 0.2.8

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