active_cached_resource 0.0.1.pre → 0.1.1

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