cloudsmith-api 1.30.0 → 1.33.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (367) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +5 -4
  4. data/README.md +22 -21
  5. data/build.json +1 -1
  6. data/cloudsmith-api.gemspec +5 -4
  7. data/docs/BadgesApi.md +18 -17
  8. data/docs/DistrosApi.md +1 -1
  9. data/docs/EntitlementsApi.md +27 -27
  10. data/docs/FilesApi.md +13 -13
  11. data/docs/FormatsApi.md +1 -1
  12. data/docs/MetricsApi.md +14 -14
  13. data/docs/NamespacesApi.md +1 -1
  14. data/docs/OrgsApi.md +6 -6
  15. data/docs/PackagesApi.md +123 -123
  16. data/docs/QuotaApi.md +4 -4
  17. data/docs/ReposApi.md +8 -8
  18. data/docs/StorageRegionsApi.md +112 -0
  19. data/docs/StorageregionsApi.md +8 -8
  20. data/docs/UsersApi.md +1 -1
  21. data/docs/VulnerabilitiesApi.md +10 -10
  22. data/docs/WebhooksApi.md +13 -13
  23. data/git_push.sh +1 -1
  24. data/lib/cloudsmith-api/api/badges_api.rb +10 -10
  25. data/lib/cloudsmith-api/api/distros_api.rb +8 -10
  26. data/lib/cloudsmith-api/api/entitlements_api.rb +32 -42
  27. data/lib/cloudsmith-api/api/files_api.rb +17 -22
  28. data/lib/cloudsmith-api/api/formats_api.rb +8 -10
  29. data/lib/cloudsmith-api/api/metrics_api.rb +11 -14
  30. data/lib/cloudsmith-api/api/namespaces_api.rb +8 -10
  31. data/lib/cloudsmith-api/api/orgs_api.rb +17 -22
  32. data/lib/cloudsmith-api/api/packages_api.rb +170 -226
  33. data/lib/cloudsmith-api/api/quota_api.rb +14 -18
  34. data/lib/cloudsmith-api/api/rates_api.rb +5 -6
  35. data/lib/cloudsmith-api/api/repos_api.rb +20 -26
  36. data/lib/cloudsmith-api/api/status_api.rb +5 -6
  37. data/lib/cloudsmith-api/api/{storageregions_api.rb → storage_regions_api.rb} +12 -14
  38. data/lib/cloudsmith-api/api/user_api.rb +8 -10
  39. data/lib/cloudsmith-api/api/users_api.rb +5 -6
  40. data/lib/cloudsmith-api/api/vulnerabilities_api.rb +14 -18
  41. data/lib/cloudsmith-api/api/webhooks_api.rb +17 -22
  42. data/lib/cloudsmith-api/api_client.rb +15 -13
  43. data/lib/cloudsmith-api/api_error.rb +1 -1
  44. data/lib/cloudsmith-api/configuration.rb +4 -4
  45. data/lib/cloudsmith-api/models/alpine_package_upload.rb +8 -12
  46. data/lib/cloudsmith-api/models/conan_package_upload.rb +8 -12
  47. data/lib/cloudsmith-api/models/distribution.rb +9 -13
  48. data/lib/cloudsmith-api/models/distros_versions.rb +8 -12
  49. data/lib/cloudsmith-api/models/entitlement_usage_metrics.rb +9 -13
  50. data/lib/cloudsmith-api/models/entitlements_create.rb +9 -13
  51. data/lib/cloudsmith-api/models/entitlements_partial_update.rb +8 -12
  52. data/lib/cloudsmith-api/models/entitlements_refresh.rb +8 -12
  53. data/lib/cloudsmith-api/models/entitlements_sync.rb +9 -13
  54. data/lib/cloudsmith-api/models/files_abort.rb +9 -13
  55. data/lib/cloudsmith-api/models/files_complete.rb +9 -13
  56. data/lib/cloudsmith-api/models/files_create.rb +9 -13
  57. data/lib/cloudsmith-api/models/files_validate.rb +9 -13
  58. data/lib/cloudsmith-api/models/format.rb +14 -18
  59. data/lib/cloudsmith-api/models/formats_distributions.rb +8 -12
  60. data/lib/cloudsmith-api/models/maven_package_upload.rb +8 -12
  61. data/lib/cloudsmith-api/models/namespace.rb +8 -12
  62. data/lib/cloudsmith-api/models/organization.rb +8 -12
  63. data/lib/cloudsmith-api/models/organization_membership.rb +8 -12
  64. data/lib/cloudsmith-api/models/package.rb +8 -12
  65. data/lib/cloudsmith-api/models/package_copy.rb +8 -12
  66. data/lib/cloudsmith-api/models/package_dependencies.rb +9 -13
  67. data/lib/cloudsmith-api/models/package_dependencies_dependencies.rb +8 -12
  68. data/lib/cloudsmith-api/models/package_file_parts_upload.rb +8 -12
  69. data/lib/cloudsmith-api/models/package_file_upload.rb +8 -12
  70. data/lib/cloudsmith-api/models/package_move.rb +8 -12
  71. data/lib/cloudsmith-api/models/package_status.rb +8 -12
  72. data/lib/cloudsmith-api/models/package_usage_metrics.rb +9 -13
  73. data/lib/cloudsmith-api/models/packages_copy.rb +9 -13
  74. data/lib/cloudsmith-api/models/packages_move.rb +9 -13
  75. data/lib/cloudsmith-api/models/packages_tag.rb +8 -12
  76. data/lib/cloudsmith-api/models/packages_upload_alpine.rb +10 -14
  77. data/lib/cloudsmith-api/models/packages_upload_cargo.rb +9 -13
  78. data/lib/cloudsmith-api/models/packages_upload_cocoapods.rb +9 -13
  79. data/lib/cloudsmith-api/models/packages_upload_composer.rb +9 -13
  80. data/lib/cloudsmith-api/models/packages_upload_conan.rb +12 -16
  81. data/lib/cloudsmith-api/models/packages_upload_conda.rb +9 -13
  82. data/lib/cloudsmith-api/models/packages_upload_cran.rb +9 -13
  83. data/lib/cloudsmith-api/models/packages_upload_dart.rb +9 -13
  84. data/lib/cloudsmith-api/models/packages_upload_deb.rb +10 -14
  85. data/lib/cloudsmith-api/models/packages_upload_docker.rb +9 -13
  86. data/lib/cloudsmith-api/models/packages_upload_go.rb +9 -13
  87. data/lib/cloudsmith-api/models/packages_upload_helm.rb +9 -13
  88. data/lib/cloudsmith-api/models/packages_upload_luarocks.rb +9 -13
  89. data/lib/cloudsmith-api/models/packages_upload_maven.rb +9 -13
  90. data/lib/cloudsmith-api/models/packages_upload_npm.rb +9 -13
  91. data/lib/cloudsmith-api/models/packages_upload_nuget.rb +9 -13
  92. data/lib/cloudsmith-api/models/packages_upload_p2.rb +9 -13
  93. data/lib/cloudsmith-api/models/packages_upload_python.rb +9 -13
  94. data/lib/cloudsmith-api/models/packages_upload_raw.rb +9 -13
  95. data/lib/cloudsmith-api/models/packages_upload_rpm.rb +10 -14
  96. data/lib/cloudsmith-api/models/packages_upload_ruby.rb +9 -13
  97. data/lib/cloudsmith-api/models/packages_upload_terraform.rb +9 -13
  98. data/lib/cloudsmith-api/models/packages_upload_vagrant.rb +12 -16
  99. data/lib/cloudsmith-api/models/packages_validateupload_alpine.rb +10 -14
  100. data/lib/cloudsmith-api/models/packages_validateupload_cargo.rb +9 -13
  101. data/lib/cloudsmith-api/models/packages_validateupload_cocoapods.rb +9 -13
  102. data/lib/cloudsmith-api/models/packages_validateupload_composer.rb +9 -13
  103. data/lib/cloudsmith-api/models/packages_validateupload_conan.rb +12 -16
  104. data/lib/cloudsmith-api/models/packages_validateupload_conda.rb +9 -13
  105. data/lib/cloudsmith-api/models/packages_validateupload_cran.rb +9 -13
  106. data/lib/cloudsmith-api/models/packages_validateupload_dart.rb +9 -13
  107. data/lib/cloudsmith-api/models/packages_validateupload_deb.rb +10 -14
  108. data/lib/cloudsmith-api/models/packages_validateupload_docker.rb +9 -13
  109. data/lib/cloudsmith-api/models/packages_validateupload_go.rb +9 -13
  110. data/lib/cloudsmith-api/models/packages_validateupload_helm.rb +9 -13
  111. data/lib/cloudsmith-api/models/packages_validateupload_luarocks.rb +9 -13
  112. data/lib/cloudsmith-api/models/packages_validateupload_maven.rb +9 -13
  113. data/lib/cloudsmith-api/models/packages_validateupload_npm.rb +9 -13
  114. data/lib/cloudsmith-api/models/packages_validateupload_nuget.rb +9 -13
  115. data/lib/cloudsmith-api/models/packages_validateupload_p2.rb +9 -13
  116. data/lib/cloudsmith-api/models/packages_validateupload_python.rb +9 -13
  117. data/lib/cloudsmith-api/models/packages_validateupload_raw.rb +9 -13
  118. data/lib/cloudsmith-api/models/packages_validateupload_rpm.rb +10 -14
  119. data/lib/cloudsmith-api/models/packages_validateupload_ruby.rb +9 -13
  120. data/lib/cloudsmith-api/models/packages_validateupload_terraform.rb +9 -13
  121. data/lib/cloudsmith-api/models/packages_validateupload_vagrant.rb +12 -16
  122. data/lib/cloudsmith-api/models/packagesownerrepo_architectures.rb +8 -12
  123. data/lib/cloudsmith-api/models/packagesownerrepo_files.rb +8 -12
  124. data/lib/cloudsmith-api/models/quota.rb +9 -13
  125. data/lib/cloudsmith-api/models/quota_history.rb +9 -13
  126. data/lib/cloudsmith-api/models/quota_history_history.rb +8 -12
  127. data/lib/cloudsmith-api/models/raw_package_upload.rb +8 -12
  128. data/lib/cloudsmith-api/models/repos_create.rb +9 -13
  129. data/lib/cloudsmith-api/models/repos_gpg_keys.rb +8 -12
  130. data/lib/cloudsmith-api/models/repos_partial_update.rb +8 -12
  131. data/lib/cloudsmith-api/models/repository.rb +9 -13
  132. data/lib/cloudsmith-api/models/repository_token.rb +9 -13
  133. data/lib/cloudsmith-api/models/repository_token_refresh.rb +8 -12
  134. data/lib/cloudsmith-api/models/repository_token_sync.rb +8 -12
  135. data/lib/cloudsmith-api/models/repository_token_sync_tokens.rb +8 -12
  136. data/lib/cloudsmith-api/models/repository_webhook.rb +11 -15
  137. data/lib/cloudsmith-api/models/resources_rate_check.rb +8 -12
  138. data/lib/cloudsmith-api/models/status.rb +9 -13
  139. data/lib/cloudsmith-api/models/status_basic.rb +8 -12
  140. data/lib/cloudsmith-api/models/storage_region.rb +10 -14
  141. data/lib/cloudsmith-api/models/user_auth_token.rb +8 -12
  142. data/lib/cloudsmith-api/models/user_brief.rb +8 -12
  143. data/lib/cloudsmith-api/models/user_profile.rb +10 -14
  144. data/lib/cloudsmith-api/models/user_token_create.rb +8 -12
  145. data/lib/cloudsmith-api/models/vagrant_package_upload.rb +11 -15
  146. data/lib/cloudsmith-api/models/vulnerability_scan_results.rb +12 -16
  147. data/lib/cloudsmith-api/models/vulnerability_scan_results_list.rb +11 -15
  148. data/lib/cloudsmith-api/models/webhooks_create.rb +11 -15
  149. data/lib/cloudsmith-api/models/webhooks_partial_update.rb +8 -12
  150. data/lib/cloudsmith-api/models/webhooksownerrepo_templates.rb +8 -12
  151. data/lib/cloudsmith-api/version.rb +2 -2
  152. data/lib/cloudsmith-api.rb +2 -2
  153. data/spec/api/badges_api_spec.rb +3 -3
  154. data/spec/api/distros_api_spec.rb +3 -3
  155. data/spec/api/entitlements_api_spec.rb +11 -11
  156. data/spec/api/files_api_spec.rb +6 -6
  157. data/spec/api/formats_api_spec.rb +3 -3
  158. data/spec/api/metrics_api_spec.rb +4 -4
  159. data/spec/api/namespaces_api_spec.rb +3 -3
  160. data/spec/api/orgs_api_spec.rb +6 -6
  161. data/spec/api/packages_api_spec.rb +57 -57
  162. data/spec/api/quota_api_spec.rb +5 -5
  163. data/spec/api/rates_api_spec.rb +2 -2
  164. data/spec/api/repos_api_spec.rb +7 -7
  165. data/spec/api/status_api_spec.rb +2 -2
  166. data/spec/api/{storageregions_api_spec.rb → storage_regions_api_spec.rb} +9 -9
  167. data/spec/api/user_api_spec.rb +3 -3
  168. data/spec/api/users_api_spec.rb +2 -2
  169. data/spec/api/vulnerabilities_api_spec.rb +5 -5
  170. data/spec/api/webhooks_api_spec.rb +6 -6
  171. data/spec/api_client_spec.rb +52 -35
  172. data/spec/configuration_spec.rb +9 -9
  173. data/spec/models/alpine_package_upload_spec.rb +65 -66
  174. data/spec/models/conan_package_upload_spec.rb +67 -68
  175. data/spec/models/distribution_spec.rb +8 -9
  176. data/spec/models/distros_versions_spec.rb +3 -4
  177. data/spec/models/entitlement_usage_metrics_spec.rb +2 -3
  178. data/spec/models/entitlements_create_spec.rb +16 -17
  179. data/spec/models/entitlements_partial_update_spec.rb +16 -17
  180. data/spec/models/entitlements_refresh_spec.rb +15 -16
  181. data/spec/models/entitlements_sync_spec.rb +2 -3
  182. data/spec/models/files_abort_spec.rb +5 -6
  183. data/spec/models/files_complete_spec.rb +5 -6
  184. data/spec/models/files_create_spec.rb +5 -6
  185. data/spec/models/files_validate_spec.rb +5 -6
  186. data/spec/models/format_spec.rb +10 -11
  187. data/spec/models/formats_distributions_spec.rb +5 -6
  188. data/spec/models/maven_package_upload_spec.rb +68 -69
  189. data/spec/models/namespace_spec.rb +5 -6
  190. data/spec/models/organization_membership_spec.rb +11 -12
  191. data/spec/models/organization_spec.rb +8 -9
  192. data/spec/models/package_copy_spec.rb +66 -67
  193. data/spec/models/package_dependencies_dependencies_spec.rb +5 -6
  194. data/spec/models/package_dependencies_spec.rb +2 -3
  195. data/spec/models/package_file_parts_upload_spec.rb +4 -5
  196. data/spec/models/package_file_upload_spec.rb +6 -7
  197. data/spec/models/package_move_spec.rb +66 -67
  198. data/spec/models/package_spec.rb +66 -67
  199. data/spec/models/package_status_spec.rb +16 -17
  200. data/spec/models/package_usage_metrics_spec.rb +2 -3
  201. data/spec/models/packages_copy_spec.rb +3 -4
  202. data/spec/models/packages_move_spec.rb +2 -3
  203. data/spec/models/packages_tag_spec.rb +4 -5
  204. data/spec/models/packages_upload_alpine_spec.rb +5 -6
  205. data/spec/models/packages_upload_cargo_spec.rb +4 -5
  206. data/spec/models/packages_upload_cocoapods_spec.rb +4 -5
  207. data/spec/models/packages_upload_composer_spec.rb +4 -5
  208. data/spec/models/packages_upload_conan_spec.rb +11 -12
  209. data/spec/models/packages_upload_conda_spec.rb +4 -5
  210. data/spec/models/packages_upload_cran_spec.rb +4 -5
  211. data/spec/models/packages_upload_dart_spec.rb +4 -5
  212. data/spec/models/packages_upload_deb_spec.rb +7 -8
  213. data/spec/models/packages_upload_docker_spec.rb +4 -5
  214. data/spec/models/packages_upload_go_spec.rb +4 -5
  215. data/spec/models/packages_upload_helm_spec.rb +4 -5
  216. data/spec/models/packages_upload_luarocks_spec.rb +4 -5
  217. data/spec/models/packages_upload_maven_spec.rb +12 -13
  218. data/spec/models/packages_upload_npm_spec.rb +5 -6
  219. data/spec/models/packages_upload_nuget_spec.rb +5 -6
  220. data/spec/models/packages_upload_p2_spec.rb +4 -5
  221. data/spec/models/packages_upload_python_spec.rb +4 -5
  222. data/spec/models/packages_upload_raw_spec.rb +9 -10
  223. data/spec/models/packages_upload_rpm_spec.rb +5 -6
  224. data/spec/models/packages_upload_ruby_spec.rb +4 -5
  225. data/spec/models/packages_upload_terraform_spec.rb +4 -5
  226. data/spec/models/packages_upload_vagrant_spec.rb +7 -8
  227. data/spec/models/packages_validateupload_alpine_spec.rb +5 -6
  228. data/spec/models/packages_validateupload_cargo_spec.rb +4 -5
  229. data/spec/models/packages_validateupload_cocoapods_spec.rb +4 -5
  230. data/spec/models/packages_validateupload_composer_spec.rb +4 -5
  231. data/spec/models/packages_validateupload_conan_spec.rb +11 -12
  232. data/spec/models/packages_validateupload_conda_spec.rb +4 -5
  233. data/spec/models/packages_validateupload_cran_spec.rb +4 -5
  234. data/spec/models/packages_validateupload_dart_spec.rb +4 -5
  235. data/spec/models/packages_validateupload_deb_spec.rb +7 -8
  236. data/spec/models/packages_validateupload_docker_spec.rb +4 -5
  237. data/spec/models/packages_validateupload_go_spec.rb +4 -5
  238. data/spec/models/packages_validateupload_helm_spec.rb +4 -5
  239. data/spec/models/packages_validateupload_luarocks_spec.rb +4 -5
  240. data/spec/models/packages_validateupload_maven_spec.rb +12 -13
  241. data/spec/models/packages_validateupload_npm_spec.rb +5 -6
  242. data/spec/models/packages_validateupload_nuget_spec.rb +5 -6
  243. data/spec/models/packages_validateupload_p2_spec.rb +4 -5
  244. data/spec/models/packages_validateupload_python_spec.rb +4 -5
  245. data/spec/models/packages_validateupload_raw_spec.rb +9 -10
  246. data/spec/models/packages_validateupload_rpm_spec.rb +5 -6
  247. data/spec/models/packages_validateupload_ruby_spec.rb +4 -5
  248. data/spec/models/packages_validateupload_terraform_spec.rb +4 -5
  249. data/spec/models/packages_validateupload_vagrant_spec.rb +7 -8
  250. data/spec/models/packagesownerrepo_architectures_spec.rb +3 -4
  251. data/spec/models/packagesownerrepo_files_spec.rb +15 -16
  252. data/spec/models/quota_history_history_spec.rb +7 -8
  253. data/spec/models/quota_history_spec.rb +2 -3
  254. data/spec/models/quota_spec.rb +2 -3
  255. data/spec/models/raw_package_upload_spec.rb +65 -66
  256. data/spec/models/repos_create_spec.rb +7 -8
  257. data/spec/models/repos_gpg_keys_spec.rb +8 -9
  258. data/spec/models/repos_partial_update_spec.rb +6 -7
  259. data/spec/models/repository_spec.rb +25 -26
  260. data/spec/models/repository_token_refresh_spec.rb +40 -41
  261. data/spec/models/repository_token_spec.rb +40 -41
  262. data/spec/models/repository_token_sync_spec.rb +2 -3
  263. data/spec/models/repository_token_sync_tokens_spec.rb +40 -41
  264. data/spec/models/repository_webhook_spec.rb +28 -29
  265. data/spec/models/resources_rate_check_spec.rb +2 -3
  266. data/spec/models/status_basic_spec.rb +3 -4
  267. data/spec/models/status_spec.rb +2 -3
  268. data/spec/models/storage_region_spec.rb +3 -4
  269. data/spec/models/user_auth_token_spec.rb +2 -3
  270. data/spec/models/user_brief_spec.rb +8 -9
  271. data/spec/models/user_profile_spec.rb +11 -12
  272. data/spec/models/user_token_create_spec.rb +3 -4
  273. data/spec/models/vagrant_package_upload_spec.rb +66 -67
  274. data/spec/models/vulnerability_scan_results_list_spec.rb +8 -9
  275. data/spec/models/vulnerability_scan_results_spec.rb +9 -10
  276. data/spec/models/webhooks_create_spec.rb +13 -14
  277. data/spec/models/webhooks_partial_update_spec.rb +13 -14
  278. data/spec/models/webhooksownerrepo_templates_spec.rb +3 -4
  279. data/spec/spec_helper.rb +1 -1
  280. data/vendor/bundle/ruby/2.6.0/cache/rake-12.3.3.gem +0 -0
  281. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.19/gem_make.out +1 -1
  282. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/gem_make.out +2 -2
  283. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.1/gem_make.out +1 -1
  284. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.1/mkmf.log +1 -1
  285. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
  286. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.1/ext/json/Makefile +2 -2
  287. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.1/ext/json/ext/generator/Makefile +2 -2
  288. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.1/ext/json/ext/parser/Makefile +2 -2
  289. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/CONTRIBUTING.rdoc +11 -4
  290. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/Gemfile +0 -0
  291. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/History.rdoc +107 -10
  292. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/MIT-LICENSE +0 -0
  293. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/README.rdoc +7 -7
  294. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/Rakefile +7 -4
  295. data/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/azure-pipelines.yml +11 -0
  296. data/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/bin/bundle +105 -0
  297. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/bin/console +0 -0
  298. data/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/bin/rake +29 -0
  299. data/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/bin/rdoc +29 -0
  300. data/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/bin/rubocop +29 -0
  301. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/bin/setup +0 -0
  302. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/command_line_usage.rdoc +0 -0
  303. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/example/Rakefile1 +0 -0
  304. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/example/Rakefile2 +0 -0
  305. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/example/a.c +0 -0
  306. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/example/b.c +0 -0
  307. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/example/main.c +0 -0
  308. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/glossary.rdoc +0 -0
  309. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/jamis.rb +1 -0
  310. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/proto_rake.rdoc +0 -0
  311. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/rake.1 +0 -0
  312. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/rakefile.rdoc +1 -1
  313. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/doc/rational.rdoc +0 -0
  314. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/exe/rake +0 -0
  315. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/application.rb +54 -15
  316. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/backtrace.rb +1 -0
  317. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/clean.rb +1 -0
  318. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/cloneable.rb +1 -0
  319. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/cpu_counter.rb +2 -1
  320. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/default_loader.rb +1 -0
  321. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/dsl_definition.rb +4 -3
  322. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/early_time.rb +1 -0
  323. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/ext/core.rb +1 -0
  324. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/ext/string.rb +2 -1
  325. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/file_creation_task.rb +2 -1
  326. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/file_list.rb +5 -4
  327. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/file_task.rb +11 -3
  328. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/file_utils.rb +4 -3
  329. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/file_utils_ext.rb +1 -0
  330. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/invocation_chain.rb +1 -0
  331. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/invocation_exception_mixin.rb +1 -0
  332. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/late_time.rb +1 -0
  333. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/linked_list.rb +1 -0
  334. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/loaders/makefile.rb +1 -0
  335. data/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/multi_task.rb +14 -0
  336. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/name_space.rb +1 -0
  337. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/packagetask.rb +3 -6
  338. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/phony.rb +1 -0
  339. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/private_reader.rb +1 -0
  340. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/promise.rb +3 -2
  341. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/pseudo_status.rb +1 -0
  342. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/rake_module.rb +29 -0
  343. data/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/rake_test_loader.rb +27 -0
  344. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/rule_recursion_overflow_error.rb +1 -0
  345. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/scope.rb +2 -1
  346. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/task.rb +37 -14
  347. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/task_argument_error.rb +1 -0
  348. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/task_arguments.rb +1 -0
  349. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/task_manager.rb +28 -7
  350. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/tasklib.rb +1 -0
  351. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/testtask.rb +2 -0
  352. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/thread_history_display.rb +1 -0
  353. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/thread_pool.rb +1 -0
  354. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/trace_output.rb +1 -0
  355. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/version.rb +2 -1
  356. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake/win32.rb +1 -0
  357. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/lib/rake.rb +1 -0
  358. data/vendor/bundle/ruby/2.6.0/gems/{rake-12.0.0 → rake-12.3.3}/rake.gemspec +6 -3
  359. data/vendor/bundle/ruby/2.6.0/specifications/{rake-12.0.0.gemspec → rake-12.3.3.gemspec} +10 -4
  360. metadata +98 -76
  361. data/vendor/bundle/ruby/2.6.0/cache/rake-12.0.0.gem +0 -0
  362. data/vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/.gitignore +0 -14
  363. data/vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/.rubocop.yml +0 -57
  364. data/vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/.travis.yml +0 -21
  365. data/vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/appveyor.yml +0 -21
  366. data/vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/multi_task.rb +0 -49
  367. data/vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/rake_test_loader.rb +0 -21
@@ -0,0 +1,105 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'bundle' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "rubygems"
12
+
13
+ m = Module.new do
14
+ module_function
15
+
16
+ def invoked_as_script?
17
+ File.expand_path($0) == File.expand_path(__FILE__)
18
+ end
19
+
20
+ def env_var_version
21
+ ENV["BUNDLER_VERSION"]
22
+ end
23
+
24
+ def cli_arg_version
25
+ return unless invoked_as_script? # don't want to hijack other binstubs
26
+ return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
27
+ bundler_version = nil
28
+ update_index = nil
29
+ ARGV.each_with_index do |a, i|
30
+ if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN
31
+ bundler_version = a
32
+ end
33
+ next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
34
+ bundler_version = $1 || ">= 0.a"
35
+ update_index = i
36
+ end
37
+ bundler_version
38
+ end
39
+
40
+ def gemfile
41
+ gemfile = ENV["BUNDLE_GEMFILE"]
42
+ return gemfile if gemfile && !gemfile.empty?
43
+
44
+ File.expand_path("../../Gemfile", __FILE__)
45
+ end
46
+
47
+ def lockfile
48
+ lockfile =
49
+ case File.basename(gemfile)
50
+ when "gems.rb" then gemfile.sub(/\.rb$/, gemfile)
51
+ else "#{gemfile}.lock"
52
+ end
53
+ File.expand_path(lockfile)
54
+ end
55
+
56
+ def lockfile_version
57
+ return unless File.file?(lockfile)
58
+ lockfile_contents = File.read(lockfile)
59
+ return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
60
+ Regexp.last_match(1)
61
+ end
62
+
63
+ def bundler_version
64
+ @bundler_version ||= begin
65
+ env_var_version || cli_arg_version ||
66
+ lockfile_version || "#{Gem::Requirement.default}.a"
67
+ end
68
+ end
69
+
70
+ def load_bundler!
71
+ ENV["BUNDLE_GEMFILE"] ||= gemfile
72
+
73
+ # must dup string for RG < 1.8 compatibility
74
+ activate_bundler(bundler_version.dup)
75
+ end
76
+
77
+ def activate_bundler(bundler_version)
78
+ if Gem::Version.correct?(bundler_version) && Gem::Version.new(bundler_version).release < Gem::Version.new("2.0")
79
+ bundler_version = "< 2"
80
+ end
81
+ gem_error = activation_error_handling do
82
+ gem "bundler", bundler_version
83
+ end
84
+ return if gem_error.nil?
85
+ require_error = activation_error_handling do
86
+ require "bundler/version"
87
+ end
88
+ return if require_error.nil? && Gem::Requirement.new(bundler_version).satisfied_by?(Gem::Version.new(Bundler::VERSION))
89
+ warn "Activating bundler (#{bundler_version}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_version}'`"
90
+ exit 42
91
+ end
92
+
93
+ def activation_error_handling
94
+ yield
95
+ nil
96
+ rescue StandardError, LoadError => e
97
+ e
98
+ end
99
+ end
100
+
101
+ m.load_bundler!
102
+
103
+ if m.invoked_as_script?
104
+ load Gem.bin_path("bundler", "bundle")
105
+ end
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rake' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("rake", "rake")
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rdoc' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("rdoc", "rdoc")
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rubocop' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("rubocop", "rubocop")
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module RDoc
2
3
  module Page
3
4
 
@@ -410,7 +410,7 @@ display a list of tasks that have a description. If you use +desc+ to
410
410
  describe your major tasks, you have a semi-automatic way of generating
411
411
  a summary of your Rake file.
412
412
 
413
- traken$ rake -T
413
+ $ rake -T
414
414
  (in /home/.../rake)
415
415
  rake clean # Remove any temporary products.
416
416
  rake clobber # Remove any generated file.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "optparse"
2
3
 
3
4
  require "rake/task_manager"
@@ -61,6 +62,8 @@ module Rake
61
62
  add_loader("rake", DefaultLoader.new)
62
63
  @tty_output = STDOUT.tty?
63
64
  @terminal_columns = ENV["RAKE_COLUMNS"].to_i
65
+
66
+ set_default_options
64
67
  end
65
68
 
66
69
  # Run the Rake application. The run method performs the following
@@ -73,19 +76,24 @@ module Rake
73
76
  # If you wish to build a custom rake command, you should call
74
77
  # +init+ on your application. Then define any tasks. Finally,
75
78
  # call +top_level+ to run your top level tasks.
76
- def run
79
+ def run(argv = ARGV)
77
80
  standard_exception_handling do
78
- init
81
+ init "rake", argv
79
82
  load_rakefile
80
83
  top_level
81
84
  end
82
85
  end
83
86
 
84
87
  # Initialize the command line parameters and app name.
85
- def init(app_name="rake")
88
+ def init(app_name="rake", argv = ARGV)
86
89
  standard_exception_handling do
87
90
  @name = app_name
88
- args = handle_options
91
+ begin
92
+ args = handle_options argv
93
+ rescue ArgumentError
94
+ # Backward compatibility for capistrano
95
+ args = handle_options
96
+ end
89
97
  collect_command_line_tasks(args)
90
98
  end
91
99
  end
@@ -164,7 +172,7 @@ module Rake
164
172
  args = []
165
173
 
166
174
  begin
167
- /((?:[^\\,]|\\.)*?)\s*(?:,\s*(.*))?$/ =~ remaining_args
175
+ /\s*((?:[^\\,]|\\.)*?)\s*(?:,\s*(.*))?$/ =~ remaining_args
168
176
 
169
177
  remaining_args = $2
170
178
  args << $1.gsub(/\\(.)/, '\1')
@@ -204,13 +212,22 @@ module Rake
204
212
  end
205
213
 
206
214
  def display_exception_details(ex) # :nodoc:
207
- seen = Thread.current[:rake_display_exception_details_seen] ||= []
208
- return if seen.include? ex
209
- seen << ex
215
+ display_exception_details_seen << ex
210
216
 
211
217
  display_exception_message_details(ex)
212
218
  display_exception_backtrace(ex)
213
- display_exception_details(ex.cause) if has_cause?(ex)
219
+ display_cause_details(ex.cause) if has_cause?(ex)
220
+ end
221
+
222
+ def display_cause_details(ex) # :nodoc:
223
+ return if display_exception_details_seen.include? ex
224
+
225
+ trace "\nCaused by:"
226
+ display_exception_details(ex)
227
+ end
228
+
229
+ def display_exception_details_seen # :nodoc:
230
+ Thread.current[:rake_display_exception_details_seen] ||= []
214
231
  end
215
232
 
216
233
  def has_cause?(ex) # :nodoc:
@@ -375,7 +392,7 @@ module Rake
375
392
 
376
393
  def sort_options(options) # :nodoc:
377
394
  options.sort_by { |opt|
378
- opt.select { |o| o =~ /^-/ }.map(&:downcase).sort.reverse
395
+ opt.select { |o| o.is_a?(String) && o =~ /^-/ }.map(&:downcase).sort.reverse
379
396
  }
380
397
  end
381
398
  private :sort_options
@@ -617,9 +634,8 @@ module Rake
617
634
  # Read and handle the command line options. Returns the command line
618
635
  # arguments that we didn't understand, which should (in theory) be just
619
636
  # task names and env vars.
620
- def handle_options # :nodoc:
621
- options.rakelib = ["rakelib"]
622
- options.trace_output = $stderr
637
+ def handle_options(argv) # :nodoc:
638
+ set_default_options
623
639
 
624
640
  OptionParser.new do |opts|
625
641
  opts.banner = "#{Rake.application.name} [-f rakefile] {options} targets..."
@@ -633,7 +649,7 @@ module Rake
633
649
 
634
650
  standard_rake_options.each { |args| opts.on(*args) }
635
651
  opts.environment("RAKEOPT")
636
- end.parse(ARGV)
652
+ end.parse(argv)
637
653
  end
638
654
 
639
655
  # Similar to the regular Ruby +require+ command, but will check
@@ -671,7 +687,7 @@ module Rake
671
687
 
672
688
  def raw_load_rakefile # :nodoc:
673
689
  rakefile, location = find_rakefile_location
674
- if (! options.ignore_system) &&
690
+ if (!options.ignore_system) &&
675
691
  (options.load_system || rakefile.nil?) &&
676
692
  system_dir && File.directory?(system_dir)
677
693
  print_rakefile_directory(location)
@@ -781,5 +797,28 @@ module Rake
781
797
  backtrace.find { |str| str =~ re } || ""
782
798
  end
783
799
 
800
+ def set_default_options # :nodoc:
801
+ options.always_multitask = false
802
+ options.backtrace = false
803
+ options.build_all = false
804
+ options.dryrun = false
805
+ options.ignore_deprecate = false
806
+ options.ignore_system = false
807
+ options.job_stats = false
808
+ options.load_system = false
809
+ options.nosearch = false
810
+ options.rakelib = %w[rakelib]
811
+ options.show_all_tasks = false
812
+ options.show_prereqs = false
813
+ options.show_task_pattern = nil
814
+ options.show_tasks = nil
815
+ options.silent = false
816
+ options.suppress_backtrace_pattern = nil
817
+ options.thread_pool_size = Rake.suggested_thread_count
818
+ options.trace = false
819
+ options.trace_output = $stderr
820
+ options.trace_rules = false
821
+ end
822
+
784
823
  end
785
824
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Rake
2
3
  module Backtrace # :nodoc: all
3
4
  SYS_KEYS = RbConfig::CONFIG.keys.grep(/(?:[a-z]prefix|libdir)\z/)
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # The 'rake/clean' file defines two file lists (CLEAN and CLOBBER) and
2
3
  # two rake tasks (:clean and :clobber).
3
4
  #
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Rake
2
3
  ##
3
4
  # Mixin for creating easily cloned objects.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Rake
2
3
 
3
4
  # Based on a script at:
@@ -31,7 +32,7 @@ unless Rake::CpuCounter.method_defined?(:count)
31
32
  require 'rbconfig'
32
33
 
33
34
  def count
34
- if defined?(Java::Java)
35
+ if RUBY_PLATFORM == 'java'
35
36
  count_via_java_runtime
36
37
  else
37
38
  case RbConfig::CONFIG['host_os']
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Rake
2
3
 
3
4
  # Default Rakefile loader used by +import+.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Rake DSL functions.
2
3
  require "rake/file_utils_ext"
3
4
 
@@ -25,9 +26,9 @@ module Rake
25
26
  private
26
27
 
27
28
  # :call-seq:
28
- # task task_name
29
- # task task_name: dependencies
30
- # task task_name, arguments => dependencies
29
+ # task(task_name)
30
+ # task(task_name: dependencies)
31
+ # task(task_name, arguments => dependencies)
31
32
  #
32
33
  # Declare a basic task. The +task_name+ is always the first argument. If
33
34
  # the task name contains a ":" it is defined in that namespace.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Rake
2
3
 
3
4
  # EarlyTime is a fake timestamp that occurs _before_ any other time value.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  class Module
2
3
  # Check for an existing method in the current class before extending. If
3
4
  # the method already exists, then a warning is printed and the extension is
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "rake/ext/core"
2
3
 
3
4
  class String
@@ -136,7 +137,7 @@ class String
136
137
  # This String extension comes from Rake
137
138
  def pathmap(spec=nil, &block)
138
139
  return self if spec.nil?
139
- result = ""
140
+ result = "".dup
140
141
  spec.scan(/%\{[^}]*\}-?\d*[sdpfnxX%]|%-?\d+d|%.|[^%]+/) do |frag|
141
142
  case frag
142
143
  when "%f"
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "rake/file_task"
2
3
  require "rake/early_time"
3
4
 
@@ -11,7 +12,7 @@ module Rake
11
12
  class FileCreationTask < FileTask
12
13
  # Is this file task needed? Yes if it doesn't exist.
13
14
  def needed?
14
- ! File.exist?(name)
15
+ !File.exist?(name)
15
16
  end
16
17
 
17
18
  # Time stamp for file creation task. This time stamp is earlier
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "rake/cloneable"
2
3
  require "rake/file_utils_ext"
3
4
  require "rake/ext/string"
@@ -293,7 +294,7 @@ module Rake
293
294
  matched = 0
294
295
  each do |fn|
295
296
  begin
296
- open(fn, "r", *options) do |inf|
297
+ File.open(fn, "r", *options) do |inf|
297
298
  count = 0
298
299
  inf.each do |line|
299
300
  count += 1
@@ -317,14 +318,14 @@ module Rake
317
318
  # Return a new file list that only contains file names from the current
318
319
  # file list that exist on the file system.
319
320
  def existing
320
- select { |fn| File.exist?(fn) }
321
+ select { |fn| File.exist?(fn) }.uniq
321
322
  end
322
323
 
323
324
  # Modify the current file list so that it contains only file name that
324
325
  # exist on the file system.
325
326
  def existing!
326
327
  resolve
327
- @items = @items.select { |fn| File.exist?(fn) }
328
+ @items = @items.select { |fn| File.exist?(fn) }.uniq
328
329
  self
329
330
  end
330
331
 
@@ -384,7 +385,7 @@ module Rake
384
385
  /~$/
385
386
  ]
386
387
  DEFAULT_IGNORE_PROCS = [
387
- proc { |fn| fn =~ /(^|[\/\\])core$/ && ! File.directory?(fn) }
388
+ proc { |fn| fn =~ /(^|[\/\\])core$/ && !File.directory?(fn) }
388
389
  ]
389
390
 
390
391
  def import(array) # :nodoc:
@@ -1,4 +1,5 @@
1
- require "rake/task.rb"
1
+ # frozen_string_literal: true
2
+ require "rake/task"
2
3
  require "rake/early_time"
3
4
 
4
5
  module Rake
@@ -13,7 +14,7 @@ module Rake
13
14
  # Is this file task needed? Yes if it doesn't exist, or if its time stamp
14
15
  # is out of date.
15
16
  def needed?
16
- ! File.exist?(name) || out_of_date?(timestamp) || @application.options.build_all
17
+ !File.exist?(name) || out_of_date?(timestamp) || @application.options.build_all
17
18
  end
18
19
 
19
20
  # Time stamp for file task.
@@ -29,7 +30,14 @@ module Rake
29
30
 
30
31
  # Are there any prerequisites with a later time than the given time stamp?
31
32
  def out_of_date?(stamp)
32
- @prerequisites.any? { |n| application[n, @scope].timestamp > stamp }
33
+ all_prerequisite_tasks.any? { |prereq|
34
+ prereq_task = application[prereq, @scope]
35
+ if prereq_task.instance_of?(Rake::FileTask)
36
+ prereq_task.timestamp > stamp || @application.options.build_all
37
+ else
38
+ prereq_task.timestamp > stamp
39
+ end
40
+ }
33
41
  end
34
42
 
35
43
  # ----------------------------------------------------------------
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "rbconfig"
2
3
  require "fileutils"
3
4
 
@@ -34,7 +35,7 @@ module FileUtils
34
35
  #
35
36
  # # check exit status after command runs
36
37
  # sh %{grep pattern file} do |ok, res|
37
- # if ! ok
38
+ # if !ok
38
39
  # puts "pattern not found (status = #{res.exitstatus})"
39
40
  # end
40
41
  # end
@@ -50,7 +51,7 @@ module FileUtils
50
51
  Rake.rake_output_message sh_show_command cmd if verbose
51
52
 
52
53
  unless noop
53
- res = system(*cmd, options)
54
+ res = (Hash === cmd.last) ? system(*cmd) : system(*cmd, options)
54
55
  status = $?
55
56
  status = Rake::PseudoStatus.new(1) if !res && status.nil?
56
57
  shell_runner.call(res, status)
@@ -110,7 +111,7 @@ module FileUtils
110
111
  # Attempt to do a normal file link, but fall back to a copy if the link
111
112
  # fails.
112
113
  def safe_ln(*args)
113
- if ! LN_SUPPORTED[0]
114
+ if !LN_SUPPORTED[0]
114
115
  cp(*args)
115
116
  else
116
117
  begin
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "rake/file_utils"
2
3
 
3
4
  module Rake
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Rake
2
3
 
3
4
  # InvocationChain tracks the chain of task invocations to detect
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Rake
2
3
  module InvocationExceptionMixin
3
4
  # Return the invocation chain (list of Rake tasks) that were in
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Rake
2
3
  # LateTime is a fake timestamp that occurs _after_ any other time value.
3
4
  class LateTime
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Rake
2
3
 
3
4
  # Polylithic linked list structure used to implement several data
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Rake
2
3
 
3
4
  # Makefile loader to be used with the import file loader. Use this to
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+ module Rake
3
+
4
+ # Same as a regular task, but the immediate prerequisites are done in
5
+ # parallel using Ruby threads.
6
+ #
7
+ class MultiTask < Task
8
+ private
9
+
10
+ def invoke_prerequisites(task_args, invocation_chain) # :nodoc:
11
+ invoke_prerequisites_concurrently(task_args, invocation_chain)
12
+ end
13
+ end
14
+ end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  ##
2
3
  # The NameSpace class will lookup task names in the scope defined by a
3
4
  # +namespace+ command.