acts-as-messageable 0.4.11 → 1.0.0

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