wal 0.0.0 → 0.0.1

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