phlex-stimulus 0.1.0

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