ruby-paseto 0.1.0

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