inkcpp_rb 0.1.0

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