parking_ticket 1.0.47 → 1.0.50

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