@ai-ecoverse/wasix-ruby 3.4.11-3 → 3.4.11-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1127) hide show
  1. package/PRESTAGE.md +22 -38
  2. package/bin/bundle +1 -1
  3. package/bin/bundler +1 -1
  4. package/bin/erb +1 -1
  5. package/bin/gem +1 -1
  6. package/bin/irb +1 -1
  7. package/bin/rake +1 -1
  8. package/bin/ruby.wasm +0 -0
  9. package/lib/ruby/3.4.0/expect.rb +71 -0
  10. package/lib/ruby/3.4.0/wasm32-wasi/rbconfig.rb +1 -1
  11. package/package.json +8 -6
  12. package/lib/ruby/3.4.11/English.gemspec +0 -22
  13. package/lib/ruby/3.4.11/English.rb +0 -164
  14. package/lib/ruby/3.4.11/benchmark.gemspec +0 -32
  15. package/lib/ruby/3.4.11/benchmark.rb +0 -594
  16. package/lib/ruby/3.4.11/bundled_gems.rb +0 -248
  17. package/lib/ruby/3.4.11/bundler/.document +0 -1
  18. package/lib/ruby/3.4.11/bundler/build_metadata.rb +0 -43
  19. package/lib/ruby/3.4.11/bundler/bundler.gemspec +0 -45
  20. package/lib/ruby/3.4.11/bundler/capistrano.rb +0 -22
  21. package/lib/ruby/3.4.11/bundler/checksum.rb +0 -264
  22. package/lib/ruby/3.4.11/bundler/ci_detector.rb +0 -75
  23. package/lib/ruby/3.4.11/bundler/cli/add.rb +0 -49
  24. package/lib/ruby/3.4.11/bundler/cli/binstubs.rb +0 -57
  25. package/lib/ruby/3.4.11/bundler/cli/cache.rb +0 -43
  26. package/lib/ruby/3.4.11/bundler/cli/check.rb +0 -40
  27. package/lib/ruby/3.4.11/bundler/cli/clean.rb +0 -25
  28. package/lib/ruby/3.4.11/bundler/cli/common.rb +0 -138
  29. package/lib/ruby/3.4.11/bundler/cli/config.rb +0 -204
  30. package/lib/ruby/3.4.11/bundler/cli/console.rb +0 -42
  31. package/lib/ruby/3.4.11/bundler/cli/doctor/diagnose.rb +0 -167
  32. package/lib/ruby/3.4.11/bundler/cli/doctor/ssl.rb +0 -249
  33. package/lib/ruby/3.4.11/bundler/cli/doctor.rb +0 -33
  34. package/lib/ruby/3.4.11/bundler/cli/exec.rb +0 -89
  35. package/lib/ruby/3.4.11/bundler/cli/fund.rb +0 -36
  36. package/lib/ruby/3.4.11/bundler/cli/gem.rb +0 -467
  37. package/lib/ruby/3.4.11/bundler/cli/info.rb +0 -83
  38. package/lib/ruby/3.4.11/bundler/cli/init.rb +0 -51
  39. package/lib/ruby/3.4.11/bundler/cli/inject.rb +0 -60
  40. package/lib/ruby/3.4.11/bundler/cli/install.rb +0 -199
  41. package/lib/ruby/3.4.11/bundler/cli/issue.rb +0 -41
  42. package/lib/ruby/3.4.11/bundler/cli/list.rb +0 -66
  43. package/lib/ruby/3.4.11/bundler/cli/lock.rb +0 -94
  44. package/lib/ruby/3.4.11/bundler/cli/open.rb +0 -29
  45. package/lib/ruby/3.4.11/bundler/cli/outdated.rb +0 -297
  46. package/lib/ruby/3.4.11/bundler/cli/platform.rb +0 -48
  47. package/lib/ruby/3.4.11/bundler/cli/plugin.rb +0 -35
  48. package/lib/ruby/3.4.11/bundler/cli/pristine.rb +0 -60
  49. package/lib/ruby/3.4.11/bundler/cli/remove.rb +0 -17
  50. package/lib/ruby/3.4.11/bundler/cli/show.rb +0 -75
  51. package/lib/ruby/3.4.11/bundler/cli/update.rb +0 -123
  52. package/lib/ruby/3.4.11/bundler/cli/viz.rb +0 -31
  53. package/lib/ruby/3.4.11/bundler/cli.rb +0 -790
  54. package/lib/ruby/3.4.11/bundler/compact_index_client/cache.rb +0 -96
  55. package/lib/ruby/3.4.11/bundler/compact_index_client/cache_file.rb +0 -148
  56. package/lib/ruby/3.4.11/bundler/compact_index_client/parser.rb +0 -84
  57. package/lib/ruby/3.4.11/bundler/compact_index_client/updater.rb +0 -105
  58. package/lib/ruby/3.4.11/bundler/compact_index_client.rb +0 -97
  59. package/lib/ruby/3.4.11/bundler/constants.rb +0 -14
  60. package/lib/ruby/3.4.11/bundler/current_ruby.rb +0 -82
  61. package/lib/ruby/3.4.11/bundler/definition.rb +0 -1187
  62. package/lib/ruby/3.4.11/bundler/dependency.rb +0 -151
  63. package/lib/ruby/3.4.11/bundler/deployment.rb +0 -69
  64. package/lib/ruby/3.4.11/bundler/deprecate.rb +0 -44
  65. package/lib/ruby/3.4.11/bundler/digest.rb +0 -71
  66. package/lib/ruby/3.4.11/bundler/dsl.rb +0 -638
  67. package/lib/ruby/3.4.11/bundler/endpoint_specification.rb +0 -174
  68. package/lib/ruby/3.4.11/bundler/env.rb +0 -148
  69. package/lib/ruby/3.4.11/bundler/environment_preserver.rb +0 -68
  70. package/lib/ruby/3.4.11/bundler/errors.rb +0 -281
  71. package/lib/ruby/3.4.11/bundler/feature_flag.rb +0 -50
  72. package/lib/ruby/3.4.11/bundler/fetcher/base.rb +0 -52
  73. package/lib/ruby/3.4.11/bundler/fetcher/compact_index.rb +0 -120
  74. package/lib/ruby/3.4.11/bundler/fetcher/dependency.rb +0 -78
  75. package/lib/ruby/3.4.11/bundler/fetcher/downloader.rb +0 -91
  76. package/lib/ruby/3.4.11/bundler/fetcher/gem_remote_fetcher.rb +0 -16
  77. package/lib/ruby/3.4.11/bundler/fetcher/index.rb +0 -25
  78. package/lib/ruby/3.4.11/bundler/fetcher.rb +0 -331
  79. package/lib/ruby/3.4.11/bundler/force_platform.rb +0 -16
  80. package/lib/ruby/3.4.11/bundler/friendly_errors.rb +0 -126
  81. package/lib/ruby/3.4.11/bundler/gem_helper.rb +0 -237
  82. package/lib/ruby/3.4.11/bundler/gem_helpers.rb +0 -144
  83. package/lib/ruby/3.4.11/bundler/gem_tasks.rb +0 -7
  84. package/lib/ruby/3.4.11/bundler/gem_version_promoter.rb +0 -147
  85. package/lib/ruby/3.4.11/bundler/graph.rb +0 -152
  86. package/lib/ruby/3.4.11/bundler/index.rb +0 -205
  87. package/lib/ruby/3.4.11/bundler/injector.rb +0 -285
  88. package/lib/ruby/3.4.11/bundler/inline.rb +0 -98
  89. package/lib/ruby/3.4.11/bundler/installer/gem_installer.rb +0 -85
  90. package/lib/ruby/3.4.11/bundler/installer/parallel_installer.rb +0 -203
  91. package/lib/ruby/3.4.11/bundler/installer/standalone.rb +0 -113
  92. package/lib/ruby/3.4.11/bundler/installer.rb +0 -243
  93. package/lib/ruby/3.4.11/bundler/lazy_specification.rb +0 -243
  94. package/lib/ruby/3.4.11/bundler/lockfile_generator.rb +0 -104
  95. package/lib/ruby/3.4.11/bundler/lockfile_parser.rb +0 -300
  96. package/lib/ruby/3.4.11/bundler/man/.document +0 -1
  97. package/lib/ruby/3.4.11/bundler/man/bundle-add.1 +0 -76
  98. package/lib/ruby/3.4.11/bundler/man/bundle-add.1.ronn +0 -87
  99. package/lib/ruby/3.4.11/bundler/man/bundle-binstubs.1 +0 -33
  100. package/lib/ruby/3.4.11/bundler/man/bundle-binstubs.1.ronn +0 -44
  101. package/lib/ruby/3.4.11/bundler/man/bundle-cache.1 +0 -68
  102. package/lib/ruby/3.4.11/bundler/man/bundle-cache.1.ronn +0 -108
  103. package/lib/ruby/3.4.11/bundler/man/bundle-check.1 +0 -24
  104. package/lib/ruby/3.4.11/bundler/man/bundle-check.1.ronn +0 -31
  105. package/lib/ruby/3.4.11/bundler/man/bundle-clean.1 +0 -17
  106. package/lib/ruby/3.4.11/bundler/man/bundle-clean.1.ronn +0 -18
  107. package/lib/ruby/3.4.11/bundler/man/bundle-config.1 +0 -317
  108. package/lib/ruby/3.4.11/bundler/man/bundle-config.1.ronn +0 -408
  109. package/lib/ruby/3.4.11/bundler/man/bundle-console.1 +0 -33
  110. package/lib/ruby/3.4.11/bundler/man/bundle-console.1.ronn +0 -39
  111. package/lib/ruby/3.4.11/bundler/man/bundle-doctor.1 +0 -30
  112. package/lib/ruby/3.4.11/bundler/man/bundle-doctor.1.ronn +0 -33
  113. package/lib/ruby/3.4.11/bundler/man/bundle-env.1 +0 -9
  114. package/lib/ruby/3.4.11/bundler/man/bundle-env.1.ronn +0 -10
  115. package/lib/ruby/3.4.11/bundler/man/bundle-exec.1 +0 -107
  116. package/lib/ruby/3.4.11/bundler/man/bundle-exec.1.ronn +0 -154
  117. package/lib/ruby/3.4.11/bundler/man/bundle-fund.1 +0 -22
  118. package/lib/ruby/3.4.11/bundler/man/bundle-fund.1.ronn +0 -25
  119. package/lib/ruby/3.4.11/bundler/man/bundle-gem.1 +0 -87
  120. package/lib/ruby/3.4.11/bundler/man/bundle-gem.1.ronn +0 -149
  121. package/lib/ruby/3.4.11/bundler/man/bundle-help.1 +0 -9
  122. package/lib/ruby/3.4.11/bundler/man/bundle-help.1.ronn +0 -12
  123. package/lib/ruby/3.4.11/bundler/man/bundle-info.1 +0 -17
  124. package/lib/ruby/3.4.11/bundler/man/bundle-info.1.ronn +0 -21
  125. package/lib/ruby/3.4.11/bundler/man/bundle-init.1 +0 -20
  126. package/lib/ruby/3.4.11/bundler/man/bundle-init.1.ronn +0 -32
  127. package/lib/ruby/3.4.11/bundler/man/bundle-inject.1 +0 -31
  128. package/lib/ruby/3.4.11/bundler/man/bundle-inject.1.ronn +0 -32
  129. package/lib/ruby/3.4.11/bundler/man/bundle-install.1 +0 -218
  130. package/lib/ruby/3.4.11/bundler/man/bundle-install.1.ronn +0 -387
  131. package/lib/ruby/3.4.11/bundler/man/bundle-issue.1 +0 -45
  132. package/lib/ruby/3.4.11/bundler/man/bundle-issue.1.ronn +0 -37
  133. package/lib/ruby/3.4.11/bundler/man/bundle-licenses.1 +0 -9
  134. package/lib/ruby/3.4.11/bundler/man/bundle-licenses.1.ronn +0 -10
  135. package/lib/ruby/3.4.11/bundler/man/bundle-list.1 +0 -35
  136. package/lib/ruby/3.4.11/bundler/man/bundle-list.1.ronn +0 -36
  137. package/lib/ruby/3.4.11/bundler/man/bundle-lock.1 +0 -75
  138. package/lib/ruby/3.4.11/bundler/man/bundle-lock.1.ronn +0 -115
  139. package/lib/ruby/3.4.11/bundler/man/bundle-open.1 +0 -32
  140. package/lib/ruby/3.4.11/bundler/man/bundle-open.1.ronn +0 -28
  141. package/lib/ruby/3.4.11/bundler/man/bundle-outdated.1 +0 -103
  142. package/lib/ruby/3.4.11/bundler/man/bundle-outdated.1.ronn +0 -110
  143. package/lib/ruby/3.4.11/bundler/man/bundle-platform.1 +0 -49
  144. package/lib/ruby/3.4.11/bundler/man/bundle-platform.1.ronn +0 -49
  145. package/lib/ruby/3.4.11/bundler/man/bundle-plugin.1 +0 -58
  146. package/lib/ruby/3.4.11/bundler/man/bundle-plugin.1.ronn +0 -63
  147. package/lib/ruby/3.4.11/bundler/man/bundle-pristine.1 +0 -23
  148. package/lib/ruby/3.4.11/bundler/man/bundle-pristine.1.ronn +0 -34
  149. package/lib/ruby/3.4.11/bundler/man/bundle-remove.1 +0 -21
  150. package/lib/ruby/3.4.11/bundler/man/bundle-remove.1.ronn +0 -23
  151. package/lib/ruby/3.4.11/bundler/man/bundle-show.1 +0 -19
  152. package/lib/ruby/3.4.11/bundler/man/bundle-show.1.ronn +0 -25
  153. package/lib/ruby/3.4.11/bundler/man/bundle-update.1 +0 -281
  154. package/lib/ruby/3.4.11/bundler/man/bundle-update.1.ronn +0 -359
  155. package/lib/ruby/3.4.11/bundler/man/bundle-version.1 +0 -22
  156. package/lib/ruby/3.4.11/bundler/man/bundle-version.1.ronn +0 -24
  157. package/lib/ruby/3.4.11/bundler/man/bundle-viz.1 +0 -30
  158. package/lib/ruby/3.4.11/bundler/man/bundle-viz.1.ronn +0 -36
  159. package/lib/ruby/3.4.11/bundler/man/bundle.1 +0 -102
  160. package/lib/ruby/3.4.11/bundler/man/bundle.1.ronn +0 -116
  161. package/lib/ruby/3.4.11/bundler/man/gemfile.5 +0 -472
  162. package/lib/ruby/3.4.11/bundler/man/gemfile.5.ronn +0 -558
  163. package/lib/ruby/3.4.11/bundler/man/index.txt +0 -33
  164. package/lib/ruby/3.4.11/bundler/match_metadata.rb +0 -30
  165. package/lib/ruby/3.4.11/bundler/match_platform.rb +0 -23
  166. package/lib/ruby/3.4.11/bundler/match_remote_metadata.rb +0 -29
  167. package/lib/ruby/3.4.11/bundler/materialization.rb +0 -59
  168. package/lib/ruby/3.4.11/bundler/mirror.rb +0 -221
  169. package/lib/ruby/3.4.11/bundler/plugin/api/source.rb +0 -322
  170. package/lib/ruby/3.4.11/bundler/plugin/api.rb +0 -81
  171. package/lib/ruby/3.4.11/bundler/plugin/dsl.rb +0 -53
  172. package/lib/ruby/3.4.11/bundler/plugin/events.rb +0 -85
  173. package/lib/ruby/3.4.11/bundler/plugin/index.rb +0 -197
  174. package/lib/ruby/3.4.11/bundler/plugin/installer/git.rb +0 -34
  175. package/lib/ruby/3.4.11/bundler/plugin/installer/path.rb +0 -26
  176. package/lib/ruby/3.4.11/bundler/plugin/installer/rubygems.rb +0 -19
  177. package/lib/ruby/3.4.11/bundler/plugin/installer.rb +0 -132
  178. package/lib/ruby/3.4.11/bundler/plugin/source_list.rb +0 -31
  179. package/lib/ruby/3.4.11/bundler/plugin.rb +0 -378
  180. package/lib/ruby/3.4.11/bundler/process_lock.rb +0 -20
  181. package/lib/ruby/3.4.11/bundler/remote_specification.rb +0 -126
  182. package/lib/ruby/3.4.11/bundler/resolver/base.rb +0 -118
  183. package/lib/ruby/3.4.11/bundler/resolver/candidate.rb +0 -85
  184. package/lib/ruby/3.4.11/bundler/resolver/incompatibility.rb +0 -15
  185. package/lib/ruby/3.4.11/bundler/resolver/package.rb +0 -94
  186. package/lib/ruby/3.4.11/bundler/resolver/root.rb +0 -25
  187. package/lib/ruby/3.4.11/bundler/resolver/spec_group.rb +0 -74
  188. package/lib/ruby/3.4.11/bundler/resolver/strategy.rb +0 -40
  189. package/lib/ruby/3.4.11/bundler/resolver.rb +0 -526
  190. package/lib/ruby/3.4.11/bundler/retry.rb +0 -66
  191. package/lib/ruby/3.4.11/bundler/ruby_dsl.rb +0 -62
  192. package/lib/ruby/3.4.11/bundler/ruby_version.rb +0 -137
  193. package/lib/ruby/3.4.11/bundler/rubygems_ext.rb +0 -485
  194. package/lib/ruby/3.4.11/bundler/rubygems_gem_installer.rb +0 -172
  195. package/lib/ruby/3.4.11/bundler/rubygems_integration.rb +0 -455
  196. package/lib/ruby/3.4.11/bundler/runtime.rb +0 -320
  197. package/lib/ruby/3.4.11/bundler/safe_marshal.rb +0 -31
  198. package/lib/ruby/3.4.11/bundler/self_manager.rb +0 -206
  199. package/lib/ruby/3.4.11/bundler/settings/validator.rb +0 -102
  200. package/lib/ruby/3.4.11/bundler/settings.rb +0 -599
  201. package/lib/ruby/3.4.11/bundler/setup.rb +0 -39
  202. package/lib/ruby/3.4.11/bundler/shared_helpers.rb +0 -398
  203. package/lib/ruby/3.4.11/bundler/similarity_detector.rb +0 -63
  204. package/lib/ruby/3.4.11/bundler/source/gemspec.rb +0 -15
  205. package/lib/ruby/3.4.11/bundler/source/git/git_proxy.rb +0 -472
  206. package/lib/ruby/3.4.11/bundler/source/git.rb +0 -452
  207. package/lib/ruby/3.4.11/bundler/source/metadata.rb +0 -63
  208. package/lib/ruby/3.4.11/bundler/source/path/installer.rb +0 -53
  209. package/lib/ruby/3.4.11/bundler/source/path.rb +0 -250
  210. package/lib/ruby/3.4.11/bundler/source/rubygems/remote.rb +0 -76
  211. package/lib/ruby/3.4.11/bundler/source/rubygems.rb +0 -522
  212. package/lib/ruby/3.4.11/bundler/source/rubygems_aggregate.rb +0 -68
  213. package/lib/ruby/3.4.11/bundler/source.rb +0 -118
  214. package/lib/ruby/3.4.11/bundler/source_list.rb +0 -273
  215. package/lib/ruby/3.4.11/bundler/source_map.rb +0 -71
  216. package/lib/ruby/3.4.11/bundler/spec_set.rb +0 -395
  217. package/lib/ruby/3.4.11/bundler/stub_specification.rb +0 -146
  218. package/lib/ruby/3.4.11/bundler/templates/.document +0 -1
  219. package/lib/ruby/3.4.11/bundler/templates/Executable +0 -27
  220. package/lib/ruby/3.4.11/bundler/templates/Executable.bundler +0 -109
  221. package/lib/ruby/3.4.11/bundler/templates/Executable.standalone +0 -14
  222. package/lib/ruby/3.4.11/bundler/templates/Gemfile +0 -5
  223. package/lib/ruby/3.4.11/bundler/templates/newgem/CHANGELOG.md.tt +0 -5
  224. package/lib/ruby/3.4.11/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +0 -132
  225. package/lib/ruby/3.4.11/bundler/templates/newgem/Cargo.toml.tt +0 -7
  226. package/lib/ruby/3.4.11/bundler/templates/newgem/Gemfile.tt +0 -24
  227. package/lib/ruby/3.4.11/bundler/templates/newgem/LICENSE.txt.tt +0 -21
  228. package/lib/ruby/3.4.11/bundler/templates/newgem/README.md.tt +0 -49
  229. package/lib/ruby/3.4.11/bundler/templates/newgem/Rakefile.tt +0 -67
  230. package/lib/ruby/3.4.11/bundler/templates/newgem/bin/console.tt +0 -11
  231. package/lib/ruby/3.4.11/bundler/templates/newgem/bin/setup.tt +0 -8
  232. package/lib/ruby/3.4.11/bundler/templates/newgem/circleci/config.yml.tt +0 -25
  233. package/lib/ruby/3.4.11/bundler/templates/newgem/exe/newgem.tt +0 -3
  234. package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/Cargo.toml.tt +0 -15
  235. package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/extconf-c.rb.tt +0 -10
  236. package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/extconf-rust.rb.tt +0 -6
  237. package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/newgem.c.tt +0 -9
  238. package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/newgem.h.tt +0 -6
  239. package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/src/lib.rs.tt +0 -12
  240. package/lib/ruby/3.4.11/bundler/templates/newgem/github/workflows/main.yml.tt +0 -37
  241. package/lib/ruby/3.4.11/bundler/templates/newgem/gitignore.tt +0 -23
  242. package/lib/ruby/3.4.11/bundler/templates/newgem/gitlab-ci.yml.tt +0 -18
  243. package/lib/ruby/3.4.11/bundler/templates/newgem/lib/newgem/version.rb.tt +0 -9
  244. package/lib/ruby/3.4.11/bundler/templates/newgem/lib/newgem.rb.tt +0 -15
  245. package/lib/ruby/3.4.11/bundler/templates/newgem/newgem.gemspec.tt +0 -52
  246. package/lib/ruby/3.4.11/bundler/templates/newgem/rspec.tt +0 -3
  247. package/lib/ruby/3.4.11/bundler/templates/newgem/rubocop.yml.tt +0 -8
  248. package/lib/ruby/3.4.11/bundler/templates/newgem/sig/newgem.rbs.tt +0 -8
  249. package/lib/ruby/3.4.11/bundler/templates/newgem/spec/newgem_spec.rb.tt +0 -11
  250. package/lib/ruby/3.4.11/bundler/templates/newgem/spec/spec_helper.rb.tt +0 -15
  251. package/lib/ruby/3.4.11/bundler/templates/newgem/standard.yml.tt +0 -3
  252. package/lib/ruby/3.4.11/bundler/templates/newgem/test/minitest/test_helper.rb.tt +0 -6
  253. package/lib/ruby/3.4.11/bundler/templates/newgem/test/minitest/test_newgem.rb.tt +0 -13
  254. package/lib/ruby/3.4.11/bundler/templates/newgem/test/test-unit/newgem_test.rb.tt +0 -15
  255. package/lib/ruby/3.4.11/bundler/templates/newgem/test/test-unit/test_helper.rb.tt +0 -6
  256. package/lib/ruby/3.4.11/bundler/ui/rg_proxy.rb +0 -19
  257. package/lib/ruby/3.4.11/bundler/ui/shell.rb +0 -187
  258. package/lib/ruby/3.4.11/bundler/ui/silent.rb +0 -96
  259. package/lib/ruby/3.4.11/bundler/ui.rb +0 -9
  260. package/lib/ruby/3.4.11/bundler/uri_credentials_filter.rb +0 -43
  261. package/lib/ruby/3.4.11/bundler/uri_normalizer.rb +0 -23
  262. package/lib/ruby/3.4.11/bundler/vendor/.document +0 -1
  263. package/lib/ruby/3.4.11/bundler/vendor/connection_pool/.document +0 -1
  264. package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb +0 -224
  265. package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool/version.rb +0 -3
  266. package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb +0 -56
  267. package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool.rb +0 -186
  268. package/lib/ruby/3.4.11/bundler/vendor/fileutils/.document +0 -1
  269. package/lib/ruby/3.4.11/bundler/vendor/fileutils/lib/fileutils.rb +0 -2696
  270. package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/.document +0 -1
  271. package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent/connection.rb +0 -41
  272. package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent/pool.rb +0 -65
  273. package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent/timed_stack_multi.rb +0 -79
  274. package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +0 -1111
  275. package/lib/ruby/3.4.11/bundler/vendor/pub_grub/.document +0 -1
  276. package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb +0 -20
  277. package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/basic_package_source.rb +0 -169
  278. package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/failure_writer.rb +0 -182
  279. package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/incompatibility.rb +0 -150
  280. package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/package.rb +0 -43
  281. package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/partial_solution.rb +0 -121
  282. package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/rubygems.rb +0 -45
  283. package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/solve_failure.rb +0 -19
  284. package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb +0 -61
  285. package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/strategy.rb +0 -42
  286. package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/term.rb +0 -105
  287. package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version.rb +0 -3
  288. package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_constraint.rb +0 -129
  289. package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb +0 -423
  290. package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_solver.rb +0 -236
  291. package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_union.rb +0 -178
  292. package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub.rb +0 -31
  293. package/lib/ruby/3.4.11/bundler/vendor/securerandom/.document +0 -1
  294. package/lib/ruby/3.4.11/bundler/vendor/securerandom/lib/securerandom.rb +0 -102
  295. package/lib/ruby/3.4.11/bundler/vendor/thor/.document +0 -1
  296. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/create_file.rb +0 -105
  297. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/create_link.rb +0 -61
  298. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/directory.rb +0 -108
  299. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +0 -143
  300. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +0 -371
  301. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +0 -130
  302. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions.rb +0 -340
  303. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/base.rb +0 -825
  304. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/command.rb +0 -151
  305. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +0 -107
  306. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/error.rb +0 -106
  307. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/group.rb +0 -292
  308. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/invocation.rb +0 -178
  309. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/line_editor/basic.rb +0 -37
  310. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/line_editor/readline.rb +0 -88
  311. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/line_editor.rb +0 -17
  312. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/nested_context.rb +0 -29
  313. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/argument.rb +0 -86
  314. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/arguments.rb +0 -195
  315. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/option.rb +0 -178
  316. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/options.rb +0 -294
  317. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser.rb +0 -4
  318. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/rake_compat.rb +0 -72
  319. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/runner.rb +0 -335
  320. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/basic.rb +0 -388
  321. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/color.rb +0 -112
  322. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/column_printer.rb +0 -29
  323. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/html.rb +0 -81
  324. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/table_printer.rb +0 -118
  325. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/terminal.rb +0 -42
  326. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/wrapped_printer.rb +0 -38
  327. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell.rb +0 -81
  328. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/util.rb +0 -285
  329. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/version.rb +0 -3
  330. package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor.rb +0 -674
  331. package/lib/ruby/3.4.11/bundler/vendor/tsort/.document +0 -1
  332. package/lib/ruby/3.4.11/bundler/vendor/tsort/lib/tsort.rb +0 -455
  333. package/lib/ruby/3.4.11/bundler/vendor/uri/.document +0 -1
  334. package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/common.rb +0 -880
  335. package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/file.rb +0 -100
  336. package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ftp.rb +0 -267
  337. package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/generic.rb +0 -1592
  338. package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/http.rb +0 -125
  339. package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/https.rb +0 -23
  340. package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ldap.rb +0 -261
  341. package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ldaps.rb +0 -22
  342. package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/mailto.rb +0 -293
  343. package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/rfc2396_parser.rb +0 -546
  344. package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/rfc3986_parser.rb +0 -206
  345. package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/version.rb +0 -6
  346. package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ws.rb +0 -83
  347. package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/wss.rb +0 -23
  348. package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri.rb +0 -104
  349. package/lib/ruby/3.4.11/bundler/vendored_fileutils.rb +0 -4
  350. package/lib/ruby/3.4.11/bundler/vendored_net_http.rb +0 -23
  351. package/lib/ruby/3.4.11/bundler/vendored_persistent.rb +0 -11
  352. package/lib/ruby/3.4.11/bundler/vendored_pub_grub.rb +0 -4
  353. package/lib/ruby/3.4.11/bundler/vendored_securerandom.rb +0 -12
  354. package/lib/ruby/3.4.11/bundler/vendored_thor.rb +0 -8
  355. package/lib/ruby/3.4.11/bundler/vendored_timeout.rb +0 -12
  356. package/lib/ruby/3.4.11/bundler/vendored_tsort.rb +0 -4
  357. package/lib/ruby/3.4.11/bundler/vendored_uri.rb +0 -21
  358. package/lib/ruby/3.4.11/bundler/version.rb +0 -13
  359. package/lib/ruby/3.4.11/bundler/vlad.rb +0 -17
  360. package/lib/ruby/3.4.11/bundler/worker.rb +0 -117
  361. package/lib/ruby/3.4.11/bundler/yaml_serializer.rb +0 -98
  362. package/lib/ruby/3.4.11/bundler.rb +0 -701
  363. package/lib/ruby/3.4.11/cgi/cgi.gemspec +0 -43
  364. package/lib/ruby/3.4.11/cgi/cookie.rb +0 -210
  365. package/lib/ruby/3.4.11/cgi/core.rb +0 -900
  366. package/lib/ruby/3.4.11/cgi/html.rb +0 -1035
  367. package/lib/ruby/3.4.11/cgi/session/pstore.rb +0 -91
  368. package/lib/ruby/3.4.11/cgi/session.rb +0 -562
  369. package/lib/ruby/3.4.11/cgi/util.rb +0 -258
  370. package/lib/ruby/3.4.11/cgi.rb +0 -297
  371. package/lib/ruby/3.4.11/delegate.gemspec +0 -29
  372. package/lib/ruby/3.4.11/delegate.rb +0 -444
  373. package/lib/ruby/3.4.11/did_you_mean/core_ext/name_error.rb +0 -57
  374. package/lib/ruby/3.4.11/did_you_mean/did_you_mean.gemspec +0 -25
  375. package/lib/ruby/3.4.11/did_you_mean/experimental.rb +0 -2
  376. package/lib/ruby/3.4.11/did_you_mean/formatter.rb +0 -44
  377. package/lib/ruby/3.4.11/did_you_mean/formatters/plain_formatter.rb +0 -4
  378. package/lib/ruby/3.4.11/did_you_mean/formatters/verbose_formatter.rb +0 -10
  379. package/lib/ruby/3.4.11/did_you_mean/jaro_winkler.rb +0 -84
  380. package/lib/ruby/3.4.11/did_you_mean/levenshtein.rb +0 -57
  381. package/lib/ruby/3.4.11/did_you_mean/spell_checker.rb +0 -46
  382. package/lib/ruby/3.4.11/did_you_mean/spell_checkers/key_error_checker.rb +0 -28
  383. package/lib/ruby/3.4.11/did_you_mean/spell_checkers/method_name_checker.rb +0 -79
  384. package/lib/ruby/3.4.11/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb +0 -49
  385. package/lib/ruby/3.4.11/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb +0 -85
  386. package/lib/ruby/3.4.11/did_you_mean/spell_checkers/name_error_checkers.rb +0 -20
  387. package/lib/ruby/3.4.11/did_you_mean/spell_checkers/null_checker.rb +0 -6
  388. package/lib/ruby/3.4.11/did_you_mean/spell_checkers/pattern_key_name_checker.rb +0 -28
  389. package/lib/ruby/3.4.11/did_you_mean/spell_checkers/require_path_checker.rb +0 -39
  390. package/lib/ruby/3.4.11/did_you_mean/tree_spell_checker.rb +0 -109
  391. package/lib/ruby/3.4.11/did_you_mean/verbose.rb +0 -2
  392. package/lib/ruby/3.4.11/did_you_mean/version.rb +0 -3
  393. package/lib/ruby/3.4.11/did_you_mean.rb +0 -131
  394. package/lib/ruby/3.4.11/erb/compiler.rb +0 -472
  395. package/lib/ruby/3.4.11/erb/def_method.rb +0 -47
  396. package/lib/ruby/3.4.11/erb/util.rb +0 -63
  397. package/lib/ruby/3.4.11/erb/version.rb +0 -5
  398. package/lib/ruby/3.4.11/erb.gemspec +0 -38
  399. package/lib/ruby/3.4.11/erb.rb +0 -509
  400. package/lib/ruby/3.4.11/error_highlight/base.rb +0 -830
  401. package/lib/ruby/3.4.11/error_highlight/core_ext.rb +0 -47
  402. package/lib/ruby/3.4.11/error_highlight/error_highlight.gemspec +0 -27
  403. package/lib/ruby/3.4.11/error_highlight/formatter.rb +0 -74
  404. package/lib/ruby/3.4.11/error_highlight/version.rb +0 -3
  405. package/lib/ruby/3.4.11/error_highlight.rb +0 -2
  406. package/lib/ruby/3.4.11/fileutils.gemspec +0 -31
  407. package/lib/ruby/3.4.11/fileutils.rb +0 -2696
  408. package/lib/ruby/3.4.11/find.gemspec +0 -29
  409. package/lib/ruby/3.4.11/find.rb +0 -90
  410. package/lib/ruby/3.4.11/forwardable/forwardable.gemspec +0 -26
  411. package/lib/ruby/3.4.11/forwardable/impl.rb +0 -17
  412. package/lib/ruby/3.4.11/forwardable.rb +0 -321
  413. package/lib/ruby/3.4.11/ipaddr.gemspec +0 -36
  414. package/lib/ruby/3.4.11/ipaddr.rb +0 -841
  415. package/lib/ruby/3.4.11/irb/cmd/nop.rb +0 -4
  416. package/lib/ruby/3.4.11/irb/color.rb +0 -262
  417. package/lib/ruby/3.4.11/irb/color_printer.rb +0 -55
  418. package/lib/ruby/3.4.11/irb/command/backtrace.rb +0 -17
  419. package/lib/ruby/3.4.11/irb/command/base.rb +0 -60
  420. package/lib/ruby/3.4.11/irb/command/break.rb +0 -17
  421. package/lib/ruby/3.4.11/irb/command/catch.rb +0 -17
  422. package/lib/ruby/3.4.11/irb/command/cd.rb +0 -51
  423. package/lib/ruby/3.4.11/irb/command/chws.rb +0 -40
  424. package/lib/ruby/3.4.11/irb/command/context.rb +0 -16
  425. package/lib/ruby/3.4.11/irb/command/continue.rb +0 -17
  426. package/lib/ruby/3.4.11/irb/command/debug.rb +0 -73
  427. package/lib/ruby/3.4.11/irb/command/delete.rb +0 -17
  428. package/lib/ruby/3.4.11/irb/command/disable_irb.rb +0 -19
  429. package/lib/ruby/3.4.11/irb/command/edit.rb +0 -63
  430. package/lib/ruby/3.4.11/irb/command/exit.rb +0 -18
  431. package/lib/ruby/3.4.11/irb/command/finish.rb +0 -17
  432. package/lib/ruby/3.4.11/irb/command/force_exit.rb +0 -18
  433. package/lib/ruby/3.4.11/irb/command/help.rb +0 -83
  434. package/lib/ruby/3.4.11/irb/command/history.rb +0 -45
  435. package/lib/ruby/3.4.11/irb/command/info.rb +0 -17
  436. package/lib/ruby/3.4.11/irb/command/internal_helpers.rb +0 -27
  437. package/lib/ruby/3.4.11/irb/command/irb_info.rb +0 -33
  438. package/lib/ruby/3.4.11/irb/command/load.rb +0 -91
  439. package/lib/ruby/3.4.11/irb/command/ls.rb +0 -167
  440. package/lib/ruby/3.4.11/irb/command/measure.rb +0 -49
  441. package/lib/ruby/3.4.11/irb/command/next.rb +0 -17
  442. package/lib/ruby/3.4.11/irb/command/pushws.rb +0 -65
  443. package/lib/ruby/3.4.11/irb/command/show_doc.rb +0 -51
  444. package/lib/ruby/3.4.11/irb/command/show_source.rb +0 -74
  445. package/lib/ruby/3.4.11/irb/command/step.rb +0 -17
  446. package/lib/ruby/3.4.11/irb/command/subirb.rb +0 -123
  447. package/lib/ruby/3.4.11/irb/command/whereami.rb +0 -23
  448. package/lib/ruby/3.4.11/irb/command.rb +0 -23
  449. package/lib/ruby/3.4.11/irb/completion.rb +0 -504
  450. package/lib/ruby/3.4.11/irb/context.rb +0 -716
  451. package/lib/ruby/3.4.11/irb/debug/ui.rb +0 -101
  452. package/lib/ruby/3.4.11/irb/debug.rb +0 -127
  453. package/lib/ruby/3.4.11/irb/default_commands.rb +0 -276
  454. package/lib/ruby/3.4.11/irb/easter-egg.rb +0 -152
  455. package/lib/ruby/3.4.11/irb/ext/change-ws.rb +0 -37
  456. package/lib/ruby/3.4.11/irb/ext/eval_history.rb +0 -149
  457. package/lib/ruby/3.4.11/irb/ext/loader.rb +0 -127
  458. package/lib/ruby/3.4.11/irb/ext/multi-irb.rb +0 -258
  459. package/lib/ruby/3.4.11/irb/ext/tracer.rb +0 -39
  460. package/lib/ruby/3.4.11/irb/ext/use-loader.rb +0 -67
  461. package/lib/ruby/3.4.11/irb/ext/workspaces.rb +0 -36
  462. package/lib/ruby/3.4.11/irb/frame.rb +0 -80
  463. package/lib/ruby/3.4.11/irb/help.rb +0 -28
  464. package/lib/ruby/3.4.11/irb/helper_method/base.rb +0 -16
  465. package/lib/ruby/3.4.11/irb/helper_method/conf.rb +0 -11
  466. package/lib/ruby/3.4.11/irb/helper_method.rb +0 -29
  467. package/lib/ruby/3.4.11/irb/history.rb +0 -112
  468. package/lib/ruby/3.4.11/irb/init.rb +0 -538
  469. package/lib/ruby/3.4.11/irb/input-method.rb +0 -515
  470. package/lib/ruby/3.4.11/irb/inspector.rb +0 -131
  471. package/lib/ruby/3.4.11/irb/irb.gemspec +0 -46
  472. package/lib/ruby/3.4.11/irb/lc/error.rb +0 -52
  473. package/lib/ruby/3.4.11/irb/lc/help-message +0 -55
  474. package/lib/ruby/3.4.11/irb/lc/ja/error.rb +0 -53
  475. package/lib/ruby/3.4.11/irb/lc/ja/help-message +0 -58
  476. package/lib/ruby/3.4.11/irb/locale.rb +0 -153
  477. package/lib/ruby/3.4.11/irb/nesting_parser.rb +0 -239
  478. package/lib/ruby/3.4.11/irb/notifier.rb +0 -230
  479. package/lib/ruby/3.4.11/irb/output-method.rb +0 -80
  480. package/lib/ruby/3.4.11/irb/pager.rb +0 -100
  481. package/lib/ruby/3.4.11/irb/ruby-lex.rb +0 -476
  482. package/lib/ruby/3.4.11/irb/ruby_logo.aa +0 -118
  483. package/lib/ruby/3.4.11/irb/source_finder.rb +0 -138
  484. package/lib/ruby/3.4.11/irb/statement.rb +0 -80
  485. package/lib/ruby/3.4.11/irb/version.rb +0 -11
  486. package/lib/ruby/3.4.11/irb/workspace.rb +0 -171
  487. package/lib/ruby/3.4.11/irb/ws-for-case-2.rb +0 -9
  488. package/lib/ruby/3.4.11/irb/xmp.rb +0 -164
  489. package/lib/ruby/3.4.11/irb.rb +0 -1593
  490. package/lib/ruby/3.4.11/logger/errors.rb +0 -9
  491. package/lib/ruby/3.4.11/logger/formatter.rb +0 -36
  492. package/lib/ruby/3.4.11/logger/log_device.rb +0 -236
  493. package/lib/ruby/3.4.11/logger/logger.gemspec +0 -22
  494. package/lib/ruby/3.4.11/logger/period.rb +0 -47
  495. package/lib/ruby/3.4.11/logger/severity.rb +0 -38
  496. package/lib/ruby/3.4.11/logger/version.rb +0 -5
  497. package/lib/ruby/3.4.11/logger.rb +0 -761
  498. package/lib/ruby/3.4.11/mkmf.rb +0 -3045
  499. package/lib/ruby/3.4.11/net/http/exceptions.rb +0 -34
  500. package/lib/ruby/3.4.11/net/http/generic_request.rb +0 -414
  501. package/lib/ruby/3.4.11/net/http/header.rb +0 -981
  502. package/lib/ruby/3.4.11/net/http/net-http.gemspec +0 -39
  503. package/lib/ruby/3.4.11/net/http/proxy_delta.rb +0 -17
  504. package/lib/ruby/3.4.11/net/http/request.rb +0 -88
  505. package/lib/ruby/3.4.11/net/http/requests.rb +0 -430
  506. package/lib/ruby/3.4.11/net/http/response.rb +0 -738
  507. package/lib/ruby/3.4.11/net/http/responses.rb +0 -1174
  508. package/lib/ruby/3.4.11/net/http/status.rb +0 -84
  509. package/lib/ruby/3.4.11/net/http.rb +0 -2574
  510. package/lib/ruby/3.4.11/net/https.rb +0 -23
  511. package/lib/ruby/3.4.11/net/net-protocol.gemspec +0 -34
  512. package/lib/ruby/3.4.11/net/protocol.rb +0 -544
  513. package/lib/ruby/3.4.11/open-uri.gemspec +0 -32
  514. package/lib/ruby/3.4.11/open-uri.rb +0 -895
  515. package/lib/ruby/3.4.11/open3/open3.gemspec +0 -33
  516. package/lib/ruby/3.4.11/open3/version.rb +0 -3
  517. package/lib/ruby/3.4.11/open3.rb +0 -1410
  518. package/lib/ruby/3.4.11/optionparser.rb +0 -2
  519. package/lib/ruby/3.4.11/optparse/ac.rb +0 -70
  520. package/lib/ruby/3.4.11/optparse/date.rb +0 -18
  521. package/lib/ruby/3.4.11/optparse/kwargs.rb +0 -27
  522. package/lib/ruby/3.4.11/optparse/optparse.gemspec +0 -31
  523. package/lib/ruby/3.4.11/optparse/shellwords.rb +0 -7
  524. package/lib/ruby/3.4.11/optparse/time.rb +0 -11
  525. package/lib/ruby/3.4.11/optparse/uri.rb +0 -7
  526. package/lib/ruby/3.4.11/optparse/version.rb +0 -80
  527. package/lib/ruby/3.4.11/optparse.rb +0 -2429
  528. package/lib/ruby/3.4.11/ostruct.gemspec +0 -24
  529. package/lib/ruby/3.4.11/ostruct.rb +0 -489
  530. package/lib/ruby/3.4.11/pp.gemspec +0 -35
  531. package/lib/ruby/3.4.11/pp.rb +0 -699
  532. package/lib/ruby/3.4.11/prettyprint.gemspec +0 -29
  533. package/lib/ruby/3.4.11/prettyprint.rb +0 -558
  534. package/lib/ruby/3.4.11/prism/compiler.rb +0 -801
  535. package/lib/ruby/3.4.11/prism/desugar_compiler.rb +0 -392
  536. package/lib/ruby/3.4.11/prism/dispatcher.rb +0 -2210
  537. package/lib/ruby/3.4.11/prism/dsl.rb +0 -1003
  538. package/lib/ruby/3.4.11/prism/ffi.rb +0 -570
  539. package/lib/ruby/3.4.11/prism/inspect_visitor.rb +0 -2392
  540. package/lib/ruby/3.4.11/prism/lex_compat.rb +0 -928
  541. package/lib/ruby/3.4.11/prism/mutation_compiler.rb +0 -772
  542. package/lib/ruby/3.4.11/prism/node.rb +0 -18816
  543. package/lib/ruby/3.4.11/prism/node_ext.rb +0 -511
  544. package/lib/ruby/3.4.11/prism/pack.rb +0 -230
  545. package/lib/ruby/3.4.11/prism/parse_result/comments.rb +0 -188
  546. package/lib/ruby/3.4.11/prism/parse_result/errors.rb +0 -66
  547. package/lib/ruby/3.4.11/prism/parse_result/newlines.rb +0 -155
  548. package/lib/ruby/3.4.11/prism/parse_result.rb +0 -911
  549. package/lib/ruby/3.4.11/prism/pattern.rb +0 -269
  550. package/lib/ruby/3.4.11/prism/polyfill/append_as_bytes.rb +0 -15
  551. package/lib/ruby/3.4.11/prism/polyfill/byteindex.rb +0 -13
  552. package/lib/ruby/3.4.11/prism/polyfill/scan_byte.rb +0 -14
  553. package/lib/ruby/3.4.11/prism/polyfill/unpack1.rb +0 -14
  554. package/lib/ruby/3.4.11/prism/polyfill/warn.rb +0 -36
  555. package/lib/ruby/3.4.11/prism/prism.gemspec +0 -174
  556. package/lib/ruby/3.4.11/prism/reflection.rb +0 -416
  557. package/lib/ruby/3.4.11/prism/relocation.rb +0 -505
  558. package/lib/ruby/3.4.11/prism/serialize.rb +0 -2400
  559. package/lib/ruby/3.4.11/prism/string_query.rb +0 -31
  560. package/lib/ruby/3.4.11/prism/translation/parser/builder.rb +0 -62
  561. package/lib/ruby/3.4.11/prism/translation/parser/compiler.rb +0 -2234
  562. package/lib/ruby/3.4.11/prism/translation/parser/lexer.rb +0 -820
  563. package/lib/ruby/3.4.11/prism/translation/parser.rb +0 -374
  564. package/lib/ruby/3.4.11/prism/translation/parser33.rb +0 -13
  565. package/lib/ruby/3.4.11/prism/translation/parser34.rb +0 -13
  566. package/lib/ruby/3.4.11/prism/translation/parser35.rb +0 -13
  567. package/lib/ruby/3.4.11/prism/translation/parser_current.rb +0 -24
  568. package/lib/ruby/3.4.11/prism/translation/ripper/sexp.rb +0 -126
  569. package/lib/ruby/3.4.11/prism/translation/ripper/shim.rb +0 -5
  570. package/lib/ruby/3.4.11/prism/translation/ripper.rb +0 -3474
  571. package/lib/ruby/3.4.11/prism/translation/ruby_parser.rb +0 -1929
  572. package/lib/ruby/3.4.11/prism/translation.rb +0 -16
  573. package/lib/ruby/3.4.11/prism/visitor.rb +0 -813
  574. package/lib/ruby/3.4.11/prism.rb +0 -91
  575. package/lib/ruby/3.4.11/pstore.gemspec +0 -32
  576. package/lib/ruby/3.4.11/pstore.rb +0 -736
  577. package/lib/ruby/3.4.11/random/formatter.rb +0 -372
  578. package/lib/ruby/3.4.11/rdoc/.document +0 -2
  579. package/lib/ruby/3.4.11/rdoc/code_object/alias.rb +0 -104
  580. package/lib/ruby/3.4.11/rdoc/code_object/anon_class.rb +0 -10
  581. package/lib/ruby/3.4.11/rdoc/code_object/any_method.rb +0 -374
  582. package/lib/ruby/3.4.11/rdoc/code_object/attr.rb +0 -172
  583. package/lib/ruby/3.4.11/rdoc/code_object/class_module.rb +0 -888
  584. package/lib/ruby/3.4.11/rdoc/code_object/constant.rb +0 -186
  585. package/lib/ruby/3.4.11/rdoc/code_object/context/section.rb +0 -175
  586. package/lib/ruby/3.4.11/rdoc/code_object/context.rb +0 -1222
  587. package/lib/ruby/3.4.11/rdoc/code_object/extend.rb +0 -9
  588. package/lib/ruby/3.4.11/rdoc/code_object/ghost_method.rb +0 -6
  589. package/lib/ruby/3.4.11/rdoc/code_object/include.rb +0 -9
  590. package/lib/ruby/3.4.11/rdoc/code_object/meta_method.rb +0 -6
  591. package/lib/ruby/3.4.11/rdoc/code_object/method_attr.rb +0 -410
  592. package/lib/ruby/3.4.11/rdoc/code_object/mixin.rb +0 -120
  593. package/lib/ruby/3.4.11/rdoc/code_object/normal_class.rb +0 -92
  594. package/lib/ruby/3.4.11/rdoc/code_object/normal_module.rb +0 -73
  595. package/lib/ruby/3.4.11/rdoc/code_object/require.rb +0 -51
  596. package/lib/ruby/3.4.11/rdoc/code_object/single_class.rb +0 -30
  597. package/lib/ruby/3.4.11/rdoc/code_object/top_level.rb +0 -273
  598. package/lib/ruby/3.4.11/rdoc/code_object.rb +0 -395
  599. package/lib/ruby/3.4.11/rdoc/code_objects.rb +0 -5
  600. package/lib/ruby/3.4.11/rdoc/comment.rb +0 -236
  601. package/lib/ruby/3.4.11/rdoc/cross_reference.rb +0 -228
  602. package/lib/ruby/3.4.11/rdoc/encoding.rb +0 -120
  603. package/lib/ruby/3.4.11/rdoc/erb_partial.rb +0 -18
  604. package/lib/ruby/3.4.11/rdoc/erbio.rb +0 -37
  605. package/lib/ruby/3.4.11/rdoc/generator/darkfish.rb +0 -812
  606. package/lib/ruby/3.4.11/rdoc/generator/json_index.rb +0 -284
  607. package/lib/ruby/3.4.11/rdoc/generator/markup.rb +0 -171
  608. package/lib/ruby/3.4.11/rdoc/generator/pot/message_extractor.rb +0 -68
  609. package/lib/ruby/3.4.11/rdoc/generator/pot/po.rb +0 -84
  610. package/lib/ruby/3.4.11/rdoc/generator/pot/po_entry.rb +0 -141
  611. package/lib/ruby/3.4.11/rdoc/generator/pot.rb +0 -94
  612. package/lib/ruby/3.4.11/rdoc/generator/ri.rb +0 -30
  613. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/.document +0 -0
  614. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_footer.rhtml +0 -5
  615. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_head.rhtml +0 -48
  616. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +0 -5
  617. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +0 -15
  618. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +0 -15
  619. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +0 -15
  620. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +0 -21
  621. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +0 -11
  622. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +0 -32
  623. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +0 -6
  624. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_search.rhtml +0 -14
  625. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +0 -11
  626. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +0 -39
  627. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_toggle.rhtml +0 -3
  628. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/class.rhtml +0 -221
  629. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/css/fonts.css +0 -167
  630. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/css/rdoc.css +0 -683
  631. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf +0 -0
  632. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf +0 -0
  633. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf +0 -0
  634. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf +0 -0
  635. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf +0 -0
  636. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf +0 -0
  637. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/add.png +0 -0
  638. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/arrow_up.png +0 -0
  639. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/brick.png +0 -0
  640. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/brick_link.png +0 -0
  641. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/bug.png +0 -0
  642. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/bullet_black.png +0 -0
  643. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png +0 -0
  644. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png +0 -0
  645. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/date.png +0 -0
  646. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/delete.png +0 -0
  647. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/find.png +0 -0
  648. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/loadingAnimation.gif +0 -0
  649. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/macFFBgHack.png +0 -0
  650. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/package.png +0 -0
  651. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/page_green.png +0 -0
  652. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/page_white_text.png +0 -0
  653. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/page_white_width.png +0 -0
  654. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/plugin.png +0 -0
  655. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/ruby.png +0 -0
  656. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/tag_blue.png +0 -0
  657. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/tag_green.png +0 -0
  658. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/transparent.png +0 -0
  659. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/wrench.png +0 -0
  660. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/wrench_orange.png +0 -0
  661. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/zoom.png +0 -0
  662. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/index.rhtml +0 -23
  663. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/js/darkfish.js +0 -120
  664. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/js/search.js +0 -110
  665. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/page.rhtml +0 -18
  666. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/servlet_not_found.rhtml +0 -20
  667. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/servlet_root.rhtml +0 -65
  668. package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/table_of_contents.rhtml +0 -70
  669. package/lib/ruby/3.4.11/rdoc/generator/template/json_index/.document +0 -1
  670. package/lib/ruby/3.4.11/rdoc/generator/template/json_index/js/navigation.js +0 -105
  671. package/lib/ruby/3.4.11/rdoc/generator/template/json_index/js/searcher.js +0 -229
  672. package/lib/ruby/3.4.11/rdoc/generator.rb +0 -51
  673. package/lib/ruby/3.4.11/rdoc/i18n/locale.rb +0 -102
  674. package/lib/ruby/3.4.11/rdoc/i18n/text.rb +0 -126
  675. package/lib/ruby/3.4.11/rdoc/i18n.rb +0 -10
  676. package/lib/ruby/3.4.11/rdoc/known_classes.rb +0 -74
  677. package/lib/ruby/3.4.11/rdoc/markdown/.document +0 -1
  678. package/lib/ruby/3.4.11/rdoc/markdown/entities.rb +0 -2131
  679. package/lib/ruby/3.4.11/rdoc/markdown/literals.rb +0 -454
  680. package/lib/ruby/3.4.11/rdoc/markdown.rb +0 -16806
  681. package/lib/ruby/3.4.11/rdoc/markup/attr_changer.rb +0 -22
  682. package/lib/ruby/3.4.11/rdoc/markup/attr_span.rb +0 -35
  683. package/lib/ruby/3.4.11/rdoc/markup/attribute_manager.rb +0 -405
  684. package/lib/ruby/3.4.11/rdoc/markup/attributes.rb +0 -70
  685. package/lib/ruby/3.4.11/rdoc/markup/blank_line.rb +0 -27
  686. package/lib/ruby/3.4.11/rdoc/markup/block_quote.rb +0 -14
  687. package/lib/ruby/3.4.11/rdoc/markup/document.rb +0 -164
  688. package/lib/ruby/3.4.11/rdoc/markup/formatter.rb +0 -272
  689. package/lib/ruby/3.4.11/rdoc/markup/hard_break.rb +0 -31
  690. package/lib/ruby/3.4.11/rdoc/markup/heading.rb +0 -84
  691. package/lib/ruby/3.4.11/rdoc/markup/include.rb +0 -42
  692. package/lib/ruby/3.4.11/rdoc/markup/indented_paragraph.rb +0 -47
  693. package/lib/ruby/3.4.11/rdoc/markup/list.rb +0 -101
  694. package/lib/ruby/3.4.11/rdoc/markup/list_item.rb +0 -99
  695. package/lib/ruby/3.4.11/rdoc/markup/paragraph.rb +0 -28
  696. package/lib/ruby/3.4.11/rdoc/markup/parser.rb +0 -585
  697. package/lib/ruby/3.4.11/rdoc/markup/pre_process.rb +0 -318
  698. package/lib/ruby/3.4.11/rdoc/markup/raw.rb +0 -69
  699. package/lib/ruby/3.4.11/rdoc/markup/regexp_handling.rb +0 -40
  700. package/lib/ruby/3.4.11/rdoc/markup/rule.rb +0 -20
  701. package/lib/ruby/3.4.11/rdoc/markup/table.rb +0 -56
  702. package/lib/ruby/3.4.11/rdoc/markup/to_ansi.rb +0 -93
  703. package/lib/ruby/3.4.11/rdoc/markup/to_bs.rb +0 -102
  704. package/lib/ruby/3.4.11/rdoc/markup/to_html.rb +0 -462
  705. package/lib/ruby/3.4.11/rdoc/markup/to_html_crossref.rb +0 -226
  706. package/lib/ruby/3.4.11/rdoc/markup/to_html_snippet.rb +0 -287
  707. package/lib/ruby/3.4.11/rdoc/markup/to_joined_paragraph.rb +0 -46
  708. package/lib/ruby/3.4.11/rdoc/markup/to_label.rb +0 -74
  709. package/lib/ruby/3.4.11/rdoc/markup/to_markdown.rb +0 -191
  710. package/lib/ruby/3.4.11/rdoc/markup/to_rdoc.rb +0 -353
  711. package/lib/ruby/3.4.11/rdoc/markup/to_table_of_contents.rb +0 -88
  712. package/lib/ruby/3.4.11/rdoc/markup/to_test.rb +0 -69
  713. package/lib/ruby/3.4.11/rdoc/markup/to_tt_only.rb +0 -120
  714. package/lib/ruby/3.4.11/rdoc/markup/verbatim.rb +0 -83
  715. package/lib/ruby/3.4.11/rdoc/markup.rb +0 -240
  716. package/lib/ruby/3.4.11/rdoc/options.rb +0 -1416
  717. package/lib/ruby/3.4.11/rdoc/parser/c.rb +0 -1257
  718. package/lib/ruby/3.4.11/rdoc/parser/changelog.rb +0 -350
  719. package/lib/ruby/3.4.11/rdoc/parser/markdown.rb +0 -22
  720. package/lib/ruby/3.4.11/rdoc/parser/prism_ruby.rb +0 -1092
  721. package/lib/ruby/3.4.11/rdoc/parser/rd.rb +0 -22
  722. package/lib/ruby/3.4.11/rdoc/parser/ripper_state_lex.rb +0 -302
  723. package/lib/ruby/3.4.11/rdoc/parser/ruby.rb +0 -2378
  724. package/lib/ruby/3.4.11/rdoc/parser/ruby_tools.rb +0 -165
  725. package/lib/ruby/3.4.11/rdoc/parser/simple.rb +0 -61
  726. package/lib/ruby/3.4.11/rdoc/parser/text.rb +0 -11
  727. package/lib/ruby/3.4.11/rdoc/parser.rb +0 -297
  728. package/lib/ruby/3.4.11/rdoc/rd/.document +0 -1
  729. package/lib/ruby/3.4.11/rdoc/rd/block_parser.rb +0 -1706
  730. package/lib/ruby/3.4.11/rdoc/rd/inline.rb +0 -71
  731. package/lib/ruby/3.4.11/rdoc/rd/inline_parser.rb +0 -1854
  732. package/lib/ruby/3.4.11/rdoc/rd.rb +0 -99
  733. package/lib/ruby/3.4.11/rdoc/rdoc.gemspec +0 -68
  734. package/lib/ruby/3.4.11/rdoc/rdoc.rb +0 -551
  735. package/lib/ruby/3.4.11/rdoc/ri/driver.rb +0 -1566
  736. package/lib/ruby/3.4.11/rdoc/ri/formatter.rb +0 -6
  737. package/lib/ruby/3.4.11/rdoc/ri/paths.rb +0 -171
  738. package/lib/ruby/3.4.11/rdoc/ri/store.rb +0 -6
  739. package/lib/ruby/3.4.11/rdoc/ri/task.rb +0 -71
  740. package/lib/ruby/3.4.11/rdoc/ri.rb +0 -20
  741. package/lib/ruby/3.4.11/rdoc/rubygems_hook.rb +0 -327
  742. package/lib/ruby/3.4.11/rdoc/servlet.rb +0 -452
  743. package/lib/ruby/3.4.11/rdoc/stats/normal.rb +0 -58
  744. package/lib/ruby/3.4.11/rdoc/stats/quiet.rb +0 -59
  745. package/lib/ruby/3.4.11/rdoc/stats/verbose.rb +0 -44
  746. package/lib/ruby/3.4.11/rdoc/stats.rb +0 -461
  747. package/lib/ruby/3.4.11/rdoc/store.rb +0 -997
  748. package/lib/ruby/3.4.11/rdoc/task.rb +0 -354
  749. package/lib/ruby/3.4.11/rdoc/text.rb +0 -322
  750. package/lib/ruby/3.4.11/rdoc/token_stream.rb +0 -118
  751. package/lib/ruby/3.4.11/rdoc/tom_doc.rb +0 -257
  752. package/lib/ruby/3.4.11/rdoc/version.rb +0 -10
  753. package/lib/ruby/3.4.11/rdoc.rb +0 -211
  754. package/lib/ruby/3.4.11/readline.gemspec +0 -33
  755. package/lib/ruby/3.4.11/readline.rb +0 -7
  756. package/lib/ruby/3.4.11/reline/config.rb +0 -373
  757. package/lib/ruby/3.4.11/reline/face.rb +0 -199
  758. package/lib/ruby/3.4.11/reline/history.rb +0 -76
  759. package/lib/ruby/3.4.11/reline/io/ansi.rb +0 -325
  760. package/lib/ruby/3.4.11/reline/io/dumb.rb +0 -120
  761. package/lib/ruby/3.4.11/reline/io/windows.rb +0 -530
  762. package/lib/ruby/3.4.11/reline/io.rb +0 -55
  763. package/lib/ruby/3.4.11/reline/key_actor/base.rb +0 -37
  764. package/lib/ruby/3.4.11/reline/key_actor/composite.rb +0 -17
  765. package/lib/ruby/3.4.11/reline/key_actor/emacs.rb +0 -517
  766. package/lib/ruby/3.4.11/reline/key_actor/vi_command.rb +0 -518
  767. package/lib/ruby/3.4.11/reline/key_actor/vi_insert.rb +0 -517
  768. package/lib/ruby/3.4.11/reline/key_actor.rb +0 -8
  769. package/lib/ruby/3.4.11/reline/key_stroke.rb +0 -119
  770. package/lib/ruby/3.4.11/reline/kill_ring.rb +0 -125
  771. package/lib/ruby/3.4.11/reline/line_editor.rb +0 -2382
  772. package/lib/ruby/3.4.11/reline/reline.gemspec +0 -30
  773. package/lib/ruby/3.4.11/reline/unicode/east_asian_width.rb +0 -1267
  774. package/lib/ruby/3.4.11/reline/unicode.rb +0 -415
  775. package/lib/ruby/3.4.11/reline/version.rb +0 -3
  776. package/lib/ruby/3.4.11/reline.rb +0 -519
  777. package/lib/ruby/3.4.11/resolv.gemspec +0 -30
  778. package/lib/ruby/3.4.11/resolv.rb +0 -3587
  779. package/lib/ruby/3.4.11/ruby2_keywords.gemspec +0 -23
  780. package/lib/ruby/3.4.11/ruby_vm/rjit/.document +0 -1
  781. package/lib/ruby/3.4.11/ruby_vm/rjit/assembler.rb +0 -1160
  782. package/lib/ruby/3.4.11/ruby_vm/rjit/block.rb +0 -11
  783. package/lib/ruby/3.4.11/ruby_vm/rjit/branch_stub.rb +0 -24
  784. package/lib/ruby/3.4.11/ruby_vm/rjit/c_pointer.rb +0 -394
  785. package/lib/ruby/3.4.11/ruby_vm/rjit/c_type.rb +0 -99
  786. package/lib/ruby/3.4.11/ruby_vm/rjit/code_block.rb +0 -91
  787. package/lib/ruby/3.4.11/ruby_vm/rjit/compiler.rb +0 -518
  788. package/lib/ruby/3.4.11/ruby_vm/rjit/context.rb +0 -377
  789. package/lib/ruby/3.4.11/ruby_vm/rjit/entry_stub.rb +0 -7
  790. package/lib/ruby/3.4.11/ruby_vm/rjit/exit_compiler.rb +0 -164
  791. package/lib/ruby/3.4.11/ruby_vm/rjit/hooks.rb +0 -36
  792. package/lib/ruby/3.4.11/ruby_vm/rjit/insn_compiler.rb +0 -6046
  793. package/lib/ruby/3.4.11/ruby_vm/rjit/instruction.rb +0 -1326
  794. package/lib/ruby/3.4.11/ruby_vm/rjit/invariants.rb +0 -155
  795. package/lib/ruby/3.4.11/ruby_vm/rjit/jit_state.rb +0 -65
  796. package/lib/ruby/3.4.11/ruby_vm/rjit/stats.rb +0 -191
  797. package/lib/ruby/3.4.11/ruby_vm/rjit/type.rb +0 -221
  798. package/lib/ruby/3.4.11/rubygems/available_set.rb +0 -165
  799. package/lib/ruby/3.4.11/rubygems/basic_specification.rb +0 -383
  800. package/lib/ruby/3.4.11/rubygems/bundler_version_finder.rb +0 -77
  801. package/lib/ruby/3.4.11/rubygems/ci_detector.rb +0 -75
  802. package/lib/ruby/3.4.11/rubygems/command.rb +0 -664
  803. package/lib/ruby/3.4.11/rubygems/command_manager.rb +0 -255
  804. package/lib/ruby/3.4.11/rubygems/commands/build_command.rb +0 -127
  805. package/lib/ruby/3.4.11/rubygems/commands/cert_command.rb +0 -325
  806. package/lib/ruby/3.4.11/rubygems/commands/check_command.rb +0 -97
  807. package/lib/ruby/3.4.11/rubygems/commands/cleanup_command.rb +0 -178
  808. package/lib/ruby/3.4.11/rubygems/commands/contents_command.rb +0 -196
  809. package/lib/ruby/3.4.11/rubygems/commands/dependency_command.rb +0 -206
  810. package/lib/ruby/3.4.11/rubygems/commands/environment_command.rb +0 -181
  811. package/lib/ruby/3.4.11/rubygems/commands/exec_command.rb +0 -256
  812. package/lib/ruby/3.4.11/rubygems/commands/fetch_command.rb +0 -109
  813. package/lib/ruby/3.4.11/rubygems/commands/generate_index_command.rb +0 -51
  814. package/lib/ruby/3.4.11/rubygems/commands/help_command.rb +0 -375
  815. package/lib/ruby/3.4.11/rubygems/commands/info_command.rb +0 -38
  816. package/lib/ruby/3.4.11/rubygems/commands/install_command.rb +0 -269
  817. package/lib/ruby/3.4.11/rubygems/commands/list_command.rb +0 -42
  818. package/lib/ruby/3.4.11/rubygems/commands/lock_command.rb +0 -109
  819. package/lib/ruby/3.4.11/rubygems/commands/mirror_command.rb +0 -26
  820. package/lib/ruby/3.4.11/rubygems/commands/open_command.rb +0 -83
  821. package/lib/ruby/3.4.11/rubygems/commands/outdated_command.rb +0 -33
  822. package/lib/ruby/3.4.11/rubygems/commands/owner_command.rb +0 -124
  823. package/lib/ruby/3.4.11/rubygems/commands/pristine_command.rb +0 -217
  824. package/lib/ruby/3.4.11/rubygems/commands/push_command.rb +0 -135
  825. package/lib/ruby/3.4.11/rubygems/commands/query_command.rb +0 -43
  826. package/lib/ruby/3.4.11/rubygems/commands/rdoc_command.rb +0 -90
  827. package/lib/ruby/3.4.11/rubygems/commands/rebuild_command.rb +0 -262
  828. package/lib/ruby/3.4.11/rubygems/commands/search_command.rb +0 -41
  829. package/lib/ruby/3.4.11/rubygems/commands/server_command.rb +0 -26
  830. package/lib/ruby/3.4.11/rubygems/commands/setup_command.rb +0 -663
  831. package/lib/ruby/3.4.11/rubygems/commands/signin_command.rb +0 -34
  832. package/lib/ruby/3.4.11/rubygems/commands/signout_command.rb +0 -32
  833. package/lib/ruby/3.4.11/rubygems/commands/sources_command.rb +0 -227
  834. package/lib/ruby/3.4.11/rubygems/commands/specification_command.rb +0 -156
  835. package/lib/ruby/3.4.11/rubygems/commands/stale_command.rb +0 -40
  836. package/lib/ruby/3.4.11/rubygems/commands/uninstall_command.rb +0 -204
  837. package/lib/ruby/3.4.11/rubygems/commands/unpack_command.rb +0 -168
  838. package/lib/ruby/3.4.11/rubygems/commands/update_command.rb +0 -326
  839. package/lib/ruby/3.4.11/rubygems/commands/which_command.rb +0 -88
  840. package/lib/ruby/3.4.11/rubygems/commands/yank_command.rb +0 -99
  841. package/lib/ruby/3.4.11/rubygems/compatibility.rb +0 -41
  842. package/lib/ruby/3.4.11/rubygems/config_file.rb +0 -618
  843. package/lib/ruby/3.4.11/rubygems/core_ext/kernel_gem.rb +0 -68
  844. package/lib/ruby/3.4.11/rubygems/core_ext/kernel_require.rb +0 -149
  845. package/lib/ruby/3.4.11/rubygems/core_ext/kernel_warn.rb +0 -45
  846. package/lib/ruby/3.4.11/rubygems/core_ext/tcpsocket_init.rb +0 -54
  847. package/lib/ruby/3.4.11/rubygems/defaults.rb +0 -308
  848. package/lib/ruby/3.4.11/rubygems/dependency.rb +0 -348
  849. package/lib/ruby/3.4.11/rubygems/dependency_installer.rb +0 -335
  850. package/lib/ruby/3.4.11/rubygems/dependency_list.rb +0 -243
  851. package/lib/ruby/3.4.11/rubygems/deprecate.rb +0 -169
  852. package/lib/ruby/3.4.11/rubygems/doctor.rb +0 -132
  853. package/lib/ruby/3.4.11/rubygems/errors.rb +0 -177
  854. package/lib/ruby/3.4.11/rubygems/exceptions.rb +0 -293
  855. package/lib/ruby/3.4.11/rubygems/ext/build_error.rb +0 -9
  856. package/lib/ruby/3.4.11/rubygems/ext/builder.rb +0 -260
  857. package/lib/ruby/3.4.11/rubygems/ext/cargo_builder/link_flag_converter.rb +0 -27
  858. package/lib/ruby/3.4.11/rubygems/ext/cargo_builder.rb +0 -346
  859. package/lib/ruby/3.4.11/rubygems/ext/cmake_builder.rb +0 -21
  860. package/lib/ruby/3.4.11/rubygems/ext/configure_builder.rb +0 -26
  861. package/lib/ruby/3.4.11/rubygems/ext/ext_conf_builder.rb +0 -77
  862. package/lib/ruby/3.4.11/rubygems/ext/rake_builder.rb +0 -37
  863. package/lib/ruby/3.4.11/rubygems/ext.rb +0 -20
  864. package/lib/ruby/3.4.11/rubygems/gem_runner.rb +0 -89
  865. package/lib/ruby/3.4.11/rubygems/gemcutter_utilities/webauthn_listener/response.rb +0 -163
  866. package/lib/ruby/3.4.11/rubygems/gemcutter_utilities/webauthn_listener.rb +0 -105
  867. package/lib/ruby/3.4.11/rubygems/gemcutter_utilities/webauthn_poller.rb +0 -80
  868. package/lib/ruby/3.4.11/rubygems/gemcutter_utilities.rb +0 -397
  869. package/lib/ruby/3.4.11/rubygems/gemspec_helpers.rb +0 -19
  870. package/lib/ruby/3.4.11/rubygems/install_default_message.rb +0 -13
  871. package/lib/ruby/3.4.11/rubygems/install_message.rb +0 -13
  872. package/lib/ruby/3.4.11/rubygems/install_update_options.rb +0 -204
  873. package/lib/ruby/3.4.11/rubygems/installer.rb +0 -1031
  874. package/lib/ruby/3.4.11/rubygems/installer_uninstaller_utils.rb +0 -27
  875. package/lib/ruby/3.4.11/rubygems/local_remote_options.rb +0 -146
  876. package/lib/ruby/3.4.11/rubygems/name_tuple.rb +0 -119
  877. package/lib/ruby/3.4.11/rubygems/openssl.rb +0 -7
  878. package/lib/ruby/3.4.11/rubygems/package/digest_io.rb +0 -63
  879. package/lib/ruby/3.4.11/rubygems/package/file_source.rb +0 -32
  880. package/lib/ruby/3.4.11/rubygems/package/io_source.rb +0 -48
  881. package/lib/ruby/3.4.11/rubygems/package/old.rb +0 -169
  882. package/lib/ruby/3.4.11/rubygems/package/source.rb +0 -4
  883. package/lib/ruby/3.4.11/rubygems/package/tar_header.rb +0 -277
  884. package/lib/ruby/3.4.11/rubygems/package/tar_reader/entry.rb +0 -244
  885. package/lib/ruby/3.4.11/rubygems/package/tar_reader.rb +0 -101
  886. package/lib/ruby/3.4.11/rubygems/package/tar_writer.rb +0 -332
  887. package/lib/ruby/3.4.11/rubygems/package.rb +0 -742
  888. package/lib/ruby/3.4.11/rubygems/package_task.rb +0 -123
  889. package/lib/ruby/3.4.11/rubygems/path_support.rb +0 -85
  890. package/lib/ruby/3.4.11/rubygems/platform.rb +0 -269
  891. package/lib/ruby/3.4.11/rubygems/psych_tree.rb +0 -37
  892. package/lib/ruby/3.4.11/rubygems/query_utils.rb +0 -349
  893. package/lib/ruby/3.4.11/rubygems/rdoc.rb +0 -26
  894. package/lib/ruby/3.4.11/rubygems/remote_fetcher.rb +0 -341
  895. package/lib/ruby/3.4.11/rubygems/request/connection_pools.rb +0 -95
  896. package/lib/ruby/3.4.11/rubygems/request/http_pool.rb +0 -47
  897. package/lib/ruby/3.4.11/rubygems/request/https_pool.rb +0 -10
  898. package/lib/ruby/3.4.11/rubygems/request.rb +0 -298
  899. package/lib/ruby/3.4.11/rubygems/request_set/gem_dependency_api.rb +0 -841
  900. package/lib/ruby/3.4.11/rubygems/request_set/lockfile/parser.rb +0 -344
  901. package/lib/ruby/3.4.11/rubygems/request_set/lockfile/tokenizer.rb +0 -122
  902. package/lib/ruby/3.4.11/rubygems/request_set/lockfile.rb +0 -235
  903. package/lib/ruby/3.4.11/rubygems/request_set.rb +0 -468
  904. package/lib/ruby/3.4.11/rubygems/requirement.rb +0 -298
  905. package/lib/ruby/3.4.11/rubygems/resolver/activation_request.rb +0 -159
  906. package/lib/ruby/3.4.11/rubygems/resolver/api_set/gem_parser.rb +0 -21
  907. package/lib/ruby/3.4.11/rubygems/resolver/api_set.rb +0 -139
  908. package/lib/ruby/3.4.11/rubygems/resolver/api_specification.rb +0 -105
  909. package/lib/ruby/3.4.11/rubygems/resolver/best_set.rb +0 -49
  910. package/lib/ruby/3.4.11/rubygems/resolver/composed_set.rb +0 -65
  911. package/lib/ruby/3.4.11/rubygems/resolver/conflict.rb +0 -146
  912. package/lib/ruby/3.4.11/rubygems/resolver/current_set.rb +0 -12
  913. package/lib/ruby/3.4.11/rubygems/resolver/dependency_request.rb +0 -119
  914. package/lib/ruby/3.4.11/rubygems/resolver/git_set.rb +0 -120
  915. package/lib/ruby/3.4.11/rubygems/resolver/git_specification.rb +0 -57
  916. package/lib/ruby/3.4.11/rubygems/resolver/index_set.rb +0 -79
  917. package/lib/ruby/3.4.11/rubygems/resolver/index_specification.rb +0 -101
  918. package/lib/ruby/3.4.11/rubygems/resolver/installed_specification.rb +0 -57
  919. package/lib/ruby/3.4.11/rubygems/resolver/installer_set.rb +0 -271
  920. package/lib/ruby/3.4.11/rubygems/resolver/local_specification.rb +0 -40
  921. package/lib/ruby/3.4.11/rubygems/resolver/lock_set.rb +0 -81
  922. package/lib/ruby/3.4.11/rubygems/resolver/lock_specification.rb +0 -86
  923. package/lib/ruby/3.4.11/rubygems/resolver/requirement_list.rb +0 -82
  924. package/lib/ruby/3.4.11/rubygems/resolver/set.rb +0 -55
  925. package/lib/ruby/3.4.11/rubygems/resolver/source_set.rb +0 -47
  926. package/lib/ruby/3.4.11/rubygems/resolver/spec_specification.rb +0 -76
  927. package/lib/ruby/3.4.11/rubygems/resolver/specification.rb +0 -126
  928. package/lib/ruby/3.4.11/rubygems/resolver/stats.rb +0 -46
  929. package/lib/ruby/3.4.11/rubygems/resolver/vendor_set.rb +0 -86
  930. package/lib/ruby/3.4.11/rubygems/resolver/vendor_specification.rb +0 -23
  931. package/lib/ruby/3.4.11/rubygems/resolver.rb +0 -341
  932. package/lib/ruby/3.4.11/rubygems/s3_uri_signer.rb +0 -177
  933. package/lib/ruby/3.4.11/rubygems/safe_marshal/elements.rb +0 -146
  934. package/lib/ruby/3.4.11/rubygems/safe_marshal/reader.rb +0 -325
  935. package/lib/ruby/3.4.11/rubygems/safe_marshal/visitors/stream_printer.rb +0 -31
  936. package/lib/ruby/3.4.11/rubygems/safe_marshal/visitors/to_ruby.rb +0 -428
  937. package/lib/ruby/3.4.11/rubygems/safe_marshal/visitors/visitor.rb +0 -74
  938. package/lib/ruby/3.4.11/rubygems/safe_marshal.rb +0 -74
  939. package/lib/ruby/3.4.11/rubygems/safe_yaml.rb +0 -45
  940. package/lib/ruby/3.4.11/rubygems/security/policies.rb +0 -114
  941. package/lib/ruby/3.4.11/rubygems/security/policy.rb +0 -288
  942. package/lib/ruby/3.4.11/rubygems/security/signer.rb +0 -212
  943. package/lib/ruby/3.4.11/rubygems/security/trust_dir.rb +0 -117
  944. package/lib/ruby/3.4.11/rubygems/security.rb +0 -615
  945. package/lib/ruby/3.4.11/rubygems/security_option.rb +0 -43
  946. package/lib/ruby/3.4.11/rubygems/source/git.rb +0 -244
  947. package/lib/ruby/3.4.11/rubygems/source/installed.rb +0 -39
  948. package/lib/ruby/3.4.11/rubygems/source/local.rb +0 -131
  949. package/lib/ruby/3.4.11/rubygems/source/lock.rb +0 -49
  950. package/lib/ruby/3.4.11/rubygems/source/specific_file.rb +0 -73
  951. package/lib/ruby/3.4.11/rubygems/source/vendor.rb +0 -24
  952. package/lib/ruby/3.4.11/rubygems/source.rb +0 -247
  953. package/lib/ruby/3.4.11/rubygems/source_list.rb +0 -146
  954. package/lib/ruby/3.4.11/rubygems/spec_fetcher.rb +0 -290
  955. package/lib/ruby/3.4.11/rubygems/specification.rb +0 -2666
  956. package/lib/ruby/3.4.11/rubygems/specification_policy.rb +0 -558
  957. package/lib/ruby/3.4.11/rubygems/specification_record.rb +0 -212
  958. package/lib/ruby/3.4.11/rubygems/ssl_certs/.document +0 -1
  959. package/lib/ruby/3.4.11/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA.pem +0 -21
  960. package/lib/ruby/3.4.11/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA_R3.pem +0 -21
  961. package/lib/ruby/3.4.11/rubygems/stub_specification.rb +0 -235
  962. package/lib/ruby/3.4.11/rubygems/target_rbconfig.rb +0 -50
  963. package/lib/ruby/3.4.11/rubygems/text.rb +0 -85
  964. package/lib/ruby/3.4.11/rubygems/uninstaller.rb +0 -429
  965. package/lib/ruby/3.4.11/rubygems/unknown_command_spell_checker.rb +0 -21
  966. package/lib/ruby/3.4.11/rubygems/update_suggestion.rb +0 -56
  967. package/lib/ruby/3.4.11/rubygems/uri.rb +0 -126
  968. package/lib/ruby/3.4.11/rubygems/uri_formatter.rb +0 -47
  969. package/lib/ruby/3.4.11/rubygems/user_interaction.rb +0 -650
  970. package/lib/ruby/3.4.11/rubygems/util/licenses.rb +0 -834
  971. package/lib/ruby/3.4.11/rubygems/util/list.rb +0 -40
  972. package/lib/ruby/3.4.11/rubygems/util.rb +0 -118
  973. package/lib/ruby/3.4.11/rubygems/validator.rb +0 -144
  974. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/.document +0 -1
  975. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +0 -57
  976. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +0 -88
  977. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +0 -36
  978. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +0 -66
  979. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +0 -62
  980. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +0 -63
  981. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +0 -61
  982. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +0 -126
  983. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +0 -46
  984. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +0 -36
  985. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +0 -164
  986. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph.rb +0 -255
  987. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/errors.rb +0 -149
  988. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/gem_metadata.rb +0 -6
  989. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +0 -112
  990. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/modules/ui.rb +0 -67
  991. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/resolution.rb +0 -839
  992. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/resolver.rb +0 -46
  993. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/state.rb +0 -58
  994. package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo.rb +0 -11
  995. package/lib/ruby/3.4.11/rubygems/vendor/net-http/.document +0 -1
  996. package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/exceptions.rb +0 -34
  997. package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/generic_request.rb +0 -414
  998. package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/header.rb +0 -981
  999. package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/proxy_delta.rb +0 -17
  1000. package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/request.rb +0 -88
  1001. package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/requests.rb +0 -430
  1002. package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/response.rb +0 -738
  1003. package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/responses.rb +0 -1174
  1004. package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/status.rb +0 -84
  1005. package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http.rb +0 -2580
  1006. package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/https.rb +0 -23
  1007. package/lib/ruby/3.4.11/rubygems/vendor/net-protocol/.document +0 -1
  1008. package/lib/ruby/3.4.11/rubygems/vendor/net-protocol/lib/net/protocol.rb +0 -544
  1009. package/lib/ruby/3.4.11/rubygems/vendor/optparse/.document +0 -1
  1010. package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optionparser.rb +0 -2
  1011. package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/ac.rb +0 -70
  1012. package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/date.rb +0 -18
  1013. package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/kwargs.rb +0 -27
  1014. package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/shellwords.rb +0 -7
  1015. package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/time.rb +0 -11
  1016. package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/uri.rb +0 -7
  1017. package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/version.rb +0 -80
  1018. package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse.rb +0 -2426
  1019. package/lib/ruby/3.4.11/rubygems/vendor/resolv/.document +0 -1
  1020. package/lib/ruby/3.4.11/rubygems/vendor/resolv/lib/resolv.rb +0 -3455
  1021. package/lib/ruby/3.4.11/rubygems/vendor/securerandom/.document +0 -1
  1022. package/lib/ruby/3.4.11/rubygems/vendor/securerandom/lib/securerandom.rb +0 -102
  1023. package/lib/ruby/3.4.11/rubygems/vendor/timeout/.document +0 -1
  1024. package/lib/ruby/3.4.11/rubygems/vendor/timeout/lib/timeout.rb +0 -198
  1025. package/lib/ruby/3.4.11/rubygems/vendor/tsort/.document +0 -1
  1026. package/lib/ruby/3.4.11/rubygems/vendor/tsort/lib/tsort.rb +0 -455
  1027. package/lib/ruby/3.4.11/rubygems/vendor/uri/.document +0 -1
  1028. package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/common.rb +0 -880
  1029. package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/file.rb +0 -100
  1030. package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ftp.rb +0 -267
  1031. package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/generic.rb +0 -1592
  1032. package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/http.rb +0 -125
  1033. package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/https.rb +0 -23
  1034. package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ldap.rb +0 -261
  1035. package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ldaps.rb +0 -22
  1036. package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/mailto.rb +0 -293
  1037. package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/rfc2396_parser.rb +0 -546
  1038. package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/rfc3986_parser.rb +0 -206
  1039. package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/version.rb +0 -6
  1040. package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ws.rb +0 -83
  1041. package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/wss.rb +0 -23
  1042. package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri.rb +0 -104
  1043. package/lib/ruby/3.4.11/rubygems/vendored_molinillo.rb +0 -3
  1044. package/lib/ruby/3.4.11/rubygems/vendored_net_http.rb +0 -5
  1045. package/lib/ruby/3.4.11/rubygems/vendored_optparse.rb +0 -3
  1046. package/lib/ruby/3.4.11/rubygems/vendored_securerandom.rb +0 -3
  1047. package/lib/ruby/3.4.11/rubygems/vendored_timeout.rb +0 -5
  1048. package/lib/ruby/3.4.11/rubygems/vendored_tsort.rb +0 -3
  1049. package/lib/ruby/3.4.11/rubygems/version.rb +0 -441
  1050. package/lib/ruby/3.4.11/rubygems/version_option.rb +0 -80
  1051. package/lib/ruby/3.4.11/rubygems/yaml_serializer.rb +0 -98
  1052. package/lib/ruby/3.4.11/rubygems.rb +0 -1417
  1053. package/lib/ruby/3.4.11/securerandom.gemspec +0 -34
  1054. package/lib/ruby/3.4.11/securerandom.rb +0 -102
  1055. package/lib/ruby/3.4.11/set/set.gemspec +0 -30
  1056. package/lib/ruby/3.4.11/set/sorted_set.rb +0 -6
  1057. package/lib/ruby/3.4.11/set.rb +0 -855
  1058. package/lib/ruby/3.4.11/shellwords.gemspec +0 -31
  1059. package/lib/ruby/3.4.11/shellwords.rb +0 -254
  1060. package/lib/ruby/3.4.11/singleton.gemspec +0 -30
  1061. package/lib/ruby/3.4.11/singleton.rb +0 -239
  1062. package/lib/ruby/3.4.11/syntax_suggest/api.rb +0 -233
  1063. package/lib/ruby/3.4.11/syntax_suggest/around_block_scan.rb +0 -232
  1064. package/lib/ruby/3.4.11/syntax_suggest/block_expand.rb +0 -165
  1065. package/lib/ruby/3.4.11/syntax_suggest/capture/before_after_keyword_ends.rb +0 -85
  1066. package/lib/ruby/3.4.11/syntax_suggest/capture/falling_indent_lines.rb +0 -71
  1067. package/lib/ruby/3.4.11/syntax_suggest/capture_code_context.rb +0 -245
  1068. package/lib/ruby/3.4.11/syntax_suggest/clean_document.rb +0 -306
  1069. package/lib/ruby/3.4.11/syntax_suggest/cli.rb +0 -130
  1070. package/lib/ruby/3.4.11/syntax_suggest/code_block.rb +0 -100
  1071. package/lib/ruby/3.4.11/syntax_suggest/code_frontier.rb +0 -178
  1072. package/lib/ruby/3.4.11/syntax_suggest/code_line.rb +0 -243
  1073. package/lib/ruby/3.4.11/syntax_suggest/code_search.rb +0 -139
  1074. package/lib/ruby/3.4.11/syntax_suggest/core_ext.rb +0 -96
  1075. package/lib/ruby/3.4.11/syntax_suggest/display_code_with_line_numbers.rb +0 -70
  1076. package/lib/ruby/3.4.11/syntax_suggest/display_invalid_blocks.rb +0 -83
  1077. package/lib/ruby/3.4.11/syntax_suggest/explain_syntax.rb +0 -117
  1078. package/lib/ruby/3.4.11/syntax_suggest/left_right_lex_count.rb +0 -168
  1079. package/lib/ruby/3.4.11/syntax_suggest/lex_all.rb +0 -74
  1080. package/lib/ruby/3.4.11/syntax_suggest/lex_value.rb +0 -70
  1081. package/lib/ruby/3.4.11/syntax_suggest/mini_stringio.rb +0 -30
  1082. package/lib/ruby/3.4.11/syntax_suggest/parse_blocks_from_indent_line.rb +0 -60
  1083. package/lib/ruby/3.4.11/syntax_suggest/pathname_from_message.rb +0 -59
  1084. package/lib/ruby/3.4.11/syntax_suggest/priority_engulf_queue.rb +0 -63
  1085. package/lib/ruby/3.4.11/syntax_suggest/priority_queue.rb +0 -105
  1086. package/lib/ruby/3.4.11/syntax_suggest/ripper_errors.rb +0 -39
  1087. package/lib/ruby/3.4.11/syntax_suggest/scan_history.rb +0 -134
  1088. package/lib/ruby/3.4.11/syntax_suggest/syntax_suggest.gemspec +0 -32
  1089. package/lib/ruby/3.4.11/syntax_suggest/unvisited_lines.rb +0 -36
  1090. package/lib/ruby/3.4.11/syntax_suggest/version.rb +0 -5
  1091. package/lib/ruby/3.4.11/syntax_suggest.rb +0 -3
  1092. package/lib/ruby/3.4.11/tempfile.gemspec +0 -33
  1093. package/lib/ruby/3.4.11/tempfile.rb +0 -640
  1094. package/lib/ruby/3.4.11/time.gemspec +0 -35
  1095. package/lib/ruby/3.4.11/time.rb +0 -731
  1096. package/lib/ruby/3.4.11/timeout.gemspec +0 -33
  1097. package/lib/ruby/3.4.11/timeout.rb +0 -200
  1098. package/lib/ruby/3.4.11/tmpdir.gemspec +0 -30
  1099. package/lib/ruby/3.4.11/tmpdir.rb +0 -189
  1100. package/lib/ruby/3.4.11/tsort.gemspec +0 -29
  1101. package/lib/ruby/3.4.11/tsort.rb +0 -455
  1102. package/lib/ruby/3.4.11/un.gemspec +0 -31
  1103. package/lib/ruby/3.4.11/un.rb +0 -441
  1104. package/lib/ruby/3.4.11/unicode_normalize/normalize.rb +0 -181
  1105. package/lib/ruby/3.4.11/unicode_normalize/tables.rb +0 -9259
  1106. package/lib/ruby/3.4.11/uri/common.rb +0 -880
  1107. package/lib/ruby/3.4.11/uri/file.rb +0 -100
  1108. package/lib/ruby/3.4.11/uri/ftp.rb +0 -267
  1109. package/lib/ruby/3.4.11/uri/generic.rb +0 -1592
  1110. package/lib/ruby/3.4.11/uri/http.rb +0 -125
  1111. package/lib/ruby/3.4.11/uri/https.rb +0 -23
  1112. package/lib/ruby/3.4.11/uri/ldap.rb +0 -261
  1113. package/lib/ruby/3.4.11/uri/ldaps.rb +0 -22
  1114. package/lib/ruby/3.4.11/uri/mailto.rb +0 -293
  1115. package/lib/ruby/3.4.11/uri/rfc2396_parser.rb +0 -546
  1116. package/lib/ruby/3.4.11/uri/rfc3986_parser.rb +0 -206
  1117. package/lib/ruby/3.4.11/uri/uri.gemspec +0 -42
  1118. package/lib/ruby/3.4.11/uri/version.rb +0 -6
  1119. package/lib/ruby/3.4.11/uri/ws.rb +0 -83
  1120. package/lib/ruby/3.4.11/uri/wss.rb +0 -23
  1121. package/lib/ruby/3.4.11/uri.rb +0 -104
  1122. package/lib/ruby/3.4.11/weakref.gemspec +0 -34
  1123. package/lib/ruby/3.4.11/weakref.rb +0 -58
  1124. package/lib/ruby/3.4.11/yaml/dbm.rb +0 -295
  1125. package/lib/ruby/3.4.11/yaml/store.rb +0 -98
  1126. package/lib/ruby/3.4.11/yaml/yaml.gemspec +0 -30
  1127. package/lib/ruby/3.4.11/yaml.rb +0 -70
@@ -1,2666 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- #
4
- #--
5
- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
6
- # All rights reserved.
7
- # See LICENSE.txt for permissions.
8
- #++
9
-
10
- require_relative "deprecate"
11
- require_relative "basic_specification"
12
- require_relative "stub_specification"
13
- require_relative "platform"
14
- require_relative "specification_record"
15
- require_relative "util/list"
16
-
17
- require "rbconfig"
18
-
19
- ##
20
- # The Specification class contains the information for a gem. Typically
21
- # defined in a .gemspec file or a Rakefile, and looks like this:
22
- #
23
- # Gem::Specification.new do |s|
24
- # s.name = 'example'
25
- # s.version = '0.1.0'
26
- # s.licenses = ['MIT']
27
- # s.summary = "This is an example!"
28
- # s.description = "Much longer explanation of the example!"
29
- # s.authors = ["Ruby Coder"]
30
- # s.email = 'rubycoder@example.com'
31
- # s.files = ["lib/example.rb"]
32
- # s.homepage = 'https://rubygems.org/gems/example'
33
- # s.metadata = { "source_code_uri" => "https://github.com/example/example" }
34
- # end
35
- #
36
- # Starting in RubyGems 2.0, a Specification can hold arbitrary
37
- # metadata. See #metadata for restrictions on the format and size of metadata
38
- # items you may add to a specification.
39
-
40
- class Gem::Specification < Gem::BasicSpecification
41
- extend Gem::Deprecate
42
-
43
- # REFACTOR: Consider breaking out this version stuff into a separate
44
- # module. There's enough special stuff around it that it may justify
45
- # a separate class.
46
-
47
- ##
48
- # The version number of a specification that does not specify one
49
- # (i.e. RubyGems 0.7 or earlier).
50
-
51
- NONEXISTENT_SPECIFICATION_VERSION = -1
52
-
53
- ##
54
- # The specification version applied to any new Specification instances
55
- # created. This should be bumped whenever something in the spec format
56
- # changes.
57
- #
58
- # Specification Version History:
59
- #
60
- # spec ruby
61
- # ver ver yyyy-mm-dd description
62
- # -1 <0.8.0 pre-spec-version-history
63
- # 1 0.8.0 2004-08-01 Deprecated "test_suite_file" for "test_files"
64
- # "test_file=x" is a shortcut for "test_files=[x]"
65
- # 2 0.9.5 2007-10-01 Added "required_rubygems_version"
66
- # Now forward-compatible with future versions
67
- # 3 1.3.2 2009-01-03 Added Fixnum validation to specification_version
68
- # 4 1.9.0 2011-06-07 Added metadata
69
- #--
70
- # When updating this number, be sure to also update #to_ruby.
71
- #
72
- # NOTE RubyGems < 1.2 cannot load specification versions > 2.
73
-
74
- CURRENT_SPECIFICATION_VERSION = 4 # :nodoc:
75
-
76
- ##
77
- # An informal list of changes to the specification. The highest-valued
78
- # key should be equal to the CURRENT_SPECIFICATION_VERSION.
79
-
80
- SPECIFICATION_VERSION_HISTORY = { # :nodoc:
81
- -1 => ["(RubyGems versions up to and including 0.7 did not have versioned specifications)"],
82
- 1 => [
83
- 'Deprecated "test_suite_file" in favor of the new, but equivalent, "test_files"',
84
- '"test_file=x" is a shortcut for "test_files=[x]"',
85
- ],
86
- 2 => [
87
- 'Added "required_rubygems_version"',
88
- "Now forward-compatible with future versions",
89
- ],
90
- 3 => [
91
- "Added Fixnum validation to the specification_version",
92
- ],
93
- 4 => [
94
- "Added sandboxed freeform metadata to the specification version.",
95
- ],
96
- }.freeze
97
-
98
- MARSHAL_FIELDS = { # :nodoc:
99
- -1 => 16,
100
- 1 => 16,
101
- 2 => 16,
102
- 3 => 17,
103
- 4 => 18,
104
- }.freeze
105
-
106
- today = Time.now.utc
107
- TODAY = Time.utc(today.year, today.month, today.day) # :nodoc:
108
-
109
- @load_cache = {} # :nodoc:
110
- @load_cache_mutex = Thread::Mutex.new
111
-
112
- VALID_NAME_PATTERN = /\A[a-zA-Z0-9\.\-\_]+\z/ # :nodoc:
113
-
114
- # :startdoc:
115
-
116
- ##
117
- # List of attribute names: [:name, :version, ...]
118
-
119
- @@required_attributes = [:rubygems_version,
120
- :specification_version,
121
- :name,
122
- :version,
123
- :date,
124
- :summary,
125
- :require_paths]
126
-
127
- ##
128
- # Map of attribute names to default values.
129
-
130
- @@default_value = {
131
- authors: [],
132
- autorequire: nil,
133
- bindir: "bin",
134
- cert_chain: [],
135
- date: nil,
136
- dependencies: [],
137
- description: nil,
138
- email: nil,
139
- executables: [],
140
- extensions: [],
141
- extra_rdoc_files: [],
142
- files: [],
143
- homepage: nil,
144
- licenses: [],
145
- metadata: {},
146
- name: nil,
147
- platform: Gem::Platform::RUBY,
148
- post_install_message: nil,
149
- rdoc_options: [],
150
- require_paths: ["lib"],
151
- required_ruby_version: Gem::Requirement.default,
152
- required_rubygems_version: Gem::Requirement.default,
153
- requirements: [],
154
- rubygems_version: Gem::VERSION,
155
- signing_key: nil,
156
- specification_version: CURRENT_SPECIFICATION_VERSION,
157
- summary: nil,
158
- test_files: [],
159
- version: nil,
160
- }.freeze
161
-
162
- # rubocop:disable Style/MutableConstant
163
- INITIALIZE_CODE_FOR_DEFAULTS = {} # :nodoc:
164
- # rubocop:enable Style/MutableConstant
165
-
166
- @@default_value.each do |k,v|
167
- INITIALIZE_CODE_FOR_DEFAULTS[k] = case v
168
- when [], {}, true, false, nil, Numeric, Symbol
169
- v.inspect
170
- when String
171
- v.dump
172
- else
173
- "default_value(:#{k}).dup"
174
- end
175
- end
176
-
177
- @@attributes = @@default_value.keys.sort_by(&:to_s)
178
- @@array_attributes = @@default_value.select {|_k,v| v.is_a?(Array) }.keys
179
- @@nil_attributes, @@non_nil_attributes = @@default_value.keys.partition do |k|
180
- @@default_value[k].nil?
181
- end
182
-
183
- # Sentinel object to represent "not found" stubs
184
- NOT_FOUND = Struct.new(:to_spec, :this).new # :nodoc:
185
- deprecate_constant :NOT_FOUND
186
-
187
- # Tracking removed method calls to warn users during build time.
188
- REMOVED_METHODS = [:rubyforge_project=, :mark_version].freeze # :nodoc:
189
- def removed_method_calls
190
- @removed_method_calls ||= []
191
- end
192
-
193
- ######################################################################
194
- # :section: Required gemspec attributes
195
-
196
- ##
197
- # This gem's name.
198
- #
199
- # Usage:
200
- #
201
- # spec.name = 'rake'
202
-
203
- attr_accessor :name
204
-
205
- ##
206
- # This gem's version.
207
- #
208
- # The version string can contain numbers and periods, such as +1.0.0+.
209
- # A gem is a 'prerelease' gem if the version has a letter in it, such as
210
- # +1.0.0.pre+.
211
- #
212
- # Usage:
213
- #
214
- # spec.version = '0.4.1'
215
-
216
- attr_reader :version
217
-
218
- ##
219
- # A short summary of this gem's description. Displayed in <tt>gem list -d</tt>.
220
- #
221
- # The #description should be more detailed than the summary.
222
- #
223
- # Usage:
224
- #
225
- # spec.summary = "This is a small summary of my gem"
226
-
227
- attr_reader :summary
228
-
229
- ##
230
- # Files included in this gem. You cannot append to this accessor, you must
231
- # assign to it.
232
- #
233
- # Only add files you can require to this list, not directories, etc.
234
- #
235
- # Directories are automatically stripped from this list when building a gem,
236
- # other non-files cause an error.
237
- #
238
- # Usage:
239
- #
240
- # require 'rake'
241
- # spec.files = FileList['lib/**/*.rb',
242
- # 'bin/*',
243
- # '[A-Z]*'].to_a
244
- #
245
- # # or without Rake...
246
- # spec.files = Dir['lib/**/*.rb'] + Dir['bin/*']
247
- # spec.files += Dir['[A-Z]*']
248
- # spec.files.reject! { |fn| fn.include? "CVS" }
249
-
250
- def files
251
- # DO NOT CHANGE TO ||= ! This is not a normal accessor. (yes, it sucks)
252
- # DOC: Why isn't it normal? Why does it suck? How can we fix this?
253
- @files = [@files,
254
- @test_files,
255
- add_bindir(@executables),
256
- @extra_rdoc_files,
257
- @extensions].flatten.compact.uniq.sort
258
- end
259
-
260
- ##
261
- # A list of authors for this gem.
262
- #
263
- # Alternatively, a single author can be specified by assigning a string to
264
- # +spec.author+
265
- #
266
- # Usage:
267
- #
268
- # spec.authors = ['John Jones', 'Mary Smith']
269
-
270
- def authors=(value)
271
- @authors = Array(value).flatten.grep(String)
272
- end
273
-
274
- ######################################################################
275
- # :section: Recommended gemspec attributes
276
-
277
- ##
278
- # The version of Ruby required by this gem
279
- #
280
- # Usage:
281
- #
282
- # spec.required_ruby_version = '>= 2.7.0'
283
-
284
- attr_reader :required_ruby_version
285
-
286
- ##
287
- # A long description of this gem
288
- #
289
- # The description should be more detailed than the summary but not
290
- # excessively long. A few paragraphs is a recommended length with no
291
- # examples or formatting.
292
- #
293
- # Usage:
294
- #
295
- # spec.description = <<~EOF
296
- # Rake is a Make-like program implemented in Ruby. Tasks and
297
- # dependencies are specified in standard Ruby syntax.
298
- # EOF
299
-
300
- attr_reader :description
301
-
302
- ##
303
- # A contact email address (or addresses) for this gem
304
- #
305
- # Usage:
306
- #
307
- # spec.email = 'john.jones@example.com'
308
- # spec.email = ['jack@example.com', 'jill@example.com']
309
-
310
- attr_accessor :email
311
-
312
- ##
313
- # The URL of this gem's home page
314
- #
315
- # Usage:
316
- #
317
- # spec.homepage = 'https://github.com/ruby/rake'
318
-
319
- attr_accessor :homepage
320
-
321
- ##
322
- # The license for this gem.
323
- #
324
- # The license must be no more than 64 characters.
325
- #
326
- # This should just be the name of your license. The full text of the license
327
- # should be inside of the gem (at the top level) when you build it.
328
- #
329
- # The simplest way is to specify the standard SPDX ID
330
- # https://spdx.org/licenses/ for the license.
331
- # Ideally, you should pick one that is OSI (Open Source Initiative)
332
- # https://opensource.org/licenses/ approved.
333
- #
334
- # The most commonly used OSI-approved licenses are MIT and Apache-2.0.
335
- # GitHub also provides a license picker at https://choosealicense.com/.
336
- #
337
- # You can also use a custom license file along with your gemspec and specify
338
- # a LicenseRef-<idstring>, where idstring is the name of the file containing
339
- # the license text.
340
- #
341
- # You should specify a license for your gem so that people know how they are
342
- # permitted to use it and any restrictions you're placing on it. Not
343
- # specifying a license means all rights are reserved; others have no right
344
- # to use the code for any purpose.
345
- #
346
- # You can set multiple licenses with #licenses=
347
- #
348
- # Usage:
349
- # spec.license = 'MIT'
350
-
351
- def license=(o)
352
- self.licenses = [o]
353
- end
354
-
355
- ##
356
- # The license(s) for the library.
357
- #
358
- # Each license must be a short name, no more than 64 characters.
359
- #
360
- # This should just be the name of your license. The full
361
- # text of the license should be inside of the gem when you build it.
362
- #
363
- # See #license= for more discussion
364
- #
365
- # Usage:
366
- # spec.licenses = ['MIT', 'GPL-2.0']
367
-
368
- def licenses=(licenses)
369
- @licenses = Array licenses
370
- end
371
-
372
- ##
373
- # The metadata holds extra data for this gem that may be useful to other
374
- # consumers and is settable by gem authors.
375
- #
376
- # Metadata items have the following restrictions:
377
- #
378
- # * The metadata must be a Hash object
379
- # * All keys and values must be Strings
380
- # * Keys can be a maximum of 128 bytes and values can be a maximum of 1024
381
- # bytes
382
- # * All strings must be UTF-8, no binary data is allowed
383
- #
384
- # You can use metadata to specify links to your gem's homepage, codebase,
385
- # documentation, wiki, mailing list, issue tracker and changelog.
386
- #
387
- # s.metadata = {
388
- # "bug_tracker_uri" => "https://example.com/user/bestgemever/issues",
389
- # "changelog_uri" => "https://example.com/user/bestgemever/CHANGELOG.md",
390
- # "documentation_uri" => "https://www.example.info/gems/bestgemever/0.0.1",
391
- # "homepage_uri" => "https://bestgemever.example.io",
392
- # "mailing_list_uri" => "https://groups.example.com/bestgemever",
393
- # "source_code_uri" => "https://example.com/user/bestgemever",
394
- # "wiki_uri" => "https://example.com/user/bestgemever/wiki",
395
- # "funding_uri" => "https://example.com/donate"
396
- # }
397
- #
398
- # These links will be used on your gem's page on rubygems.org and must pass
399
- # validation against following regex.
400
- #
401
- # %r{\Ahttps?:\/\/([^\s:@]+:[^\s:@]*@)?[A-Za-z\d\-]+(\.[A-Za-z\d\-]+)+\.?(:\d{1,5})?([\/?]\S*)?\z}
402
-
403
- attr_accessor :metadata
404
-
405
- ######################################################################
406
- # :section: Optional gemspec attributes
407
-
408
- ##
409
- # Singular (alternative) writer for #authors
410
- #
411
- # Usage:
412
- #
413
- # spec.author = 'John Jones'
414
-
415
- def author=(o)
416
- self.authors = [o]
417
- end
418
-
419
- ##
420
- # The path in the gem for executable scripts. Usually 'exe'
421
- #
422
- # Usage:
423
- #
424
- # spec.bindir = 'exe'
425
-
426
- attr_accessor :bindir
427
-
428
- ##
429
- # The certificate chain used to sign this gem. See Gem::Security for
430
- # details.
431
-
432
- attr_accessor :cert_chain
433
-
434
- ##
435
- # A message that gets displayed after the gem is installed.
436
- #
437
- # Usage:
438
- #
439
- # spec.post_install_message = "Thanks for installing!"
440
-
441
- attr_accessor :post_install_message
442
-
443
- ##
444
- # The platform this gem runs on.
445
- #
446
- # This is usually Gem::Platform::RUBY or Gem::Platform::CURRENT.
447
- #
448
- # Most gems contain pure Ruby code; they should simply leave the default
449
- # value in place. Some gems contain C (or other) code to be compiled into a
450
- # Ruby "extension". The gem should leave the default value in place unless
451
- # the code will only compile on a certain type of system. Some gems consist
452
- # of pre-compiled code ("binary gems"). It's especially important that they
453
- # set the platform attribute appropriately. A shortcut is to set the
454
- # platform to Gem::Platform::CURRENT, which will cause the gem builder to set
455
- # the platform to the appropriate value for the system on which the build is
456
- # being performed.
457
- #
458
- # If this attribute is set to a non-default value, it will be included in
459
- # the filename of the gem when it is built such as:
460
- # nokogiri-1.6.0-x86-mingw32.gem
461
- #
462
- # Usage:
463
- #
464
- # spec.platform = Gem::Platform.local
465
-
466
- def platform=(platform)
467
- @original_platform = platform
468
-
469
- case platform
470
- when Gem::Platform::CURRENT then
471
- @new_platform = Gem::Platform.local
472
- @original_platform = @new_platform.to_s
473
-
474
- when Gem::Platform then
475
- @new_platform = platform
476
-
477
- # legacy constants
478
- when nil, Gem::Platform::RUBY then
479
- @new_platform = Gem::Platform::RUBY
480
- when "mswin32" then # was Gem::Platform::WIN32
481
- @new_platform = Gem::Platform.new "x86-mswin32"
482
- when "i586-linux" then # was Gem::Platform::LINUX_586
483
- @new_platform = Gem::Platform.new "x86-linux"
484
- when "powerpc-darwin" then # was Gem::Platform::DARWIN
485
- @new_platform = Gem::Platform.new "ppc-darwin"
486
- else
487
- @new_platform = Gem::Platform.new platform
488
- end
489
-
490
- @platform = @new_platform.to_s
491
-
492
- invalidate_memoized_attributes
493
- end
494
-
495
- ##
496
- # Paths in the gem to add to <code>$LOAD_PATH</code> when this gem is
497
- # activated.
498
- #--
499
- # See also #require_paths
500
- #++
501
- # If you have an extension you do not need to add <code>"ext"</code> to the
502
- # require path, the extension build process will copy the extension files
503
- # into "lib" for you.
504
- #
505
- # The default value is <code>"lib"</code>
506
- #
507
- # Usage:
508
- #
509
- # # If all library files are in the root directory...
510
- # spec.require_paths = ['.']
511
-
512
- def require_paths=(val)
513
- @require_paths = Array(val)
514
- end
515
-
516
- ##
517
- # The RubyGems version required by this gem
518
-
519
- attr_reader :required_rubygems_version
520
-
521
- ##
522
- # The key used to sign this gem. See Gem::Security for details.
523
-
524
- attr_accessor :signing_key
525
-
526
- ##
527
- # Adds a development dependency named +gem+ with +requirements+ to this
528
- # gem.
529
- #
530
- # Usage:
531
- #
532
- # spec.add_development_dependency 'example', '~> 1.1', '>= 1.1.4'
533
- #
534
- # Development dependencies aren't installed by default and aren't
535
- # activated when a gem is required.
536
-
537
- def add_development_dependency(gem, *requirements)
538
- add_dependency_with_type(gem, :development, requirements)
539
- end
540
-
541
- ##
542
- # Adds a runtime dependency named +gem+ with +requirements+ to this gem.
543
- #
544
- # Usage:
545
- #
546
- # spec.add_dependency 'example', '~> 1.1', '>= 1.1.4'
547
-
548
- def add_dependency(gem, *requirements)
549
- if requirements.uniq.size != requirements.size
550
- warn "WARNING: duplicated #{gem} dependency #{requirements}"
551
- end
552
-
553
- add_dependency_with_type(gem, :runtime, requirements)
554
- end
555
-
556
- ##
557
- # Executables included in the gem.
558
- #
559
- # For example, the rake gem has rake as an executable. You don't specify the
560
- # full path (as in bin/rake); all application-style files are expected to be
561
- # found in bindir. These files must be executable Ruby files. Files that
562
- # use bash or other interpreters will not work.
563
- #
564
- # Executables included may only be ruby scripts, not scripts for other
565
- # languages or compiled binaries.
566
- #
567
- # Usage:
568
- #
569
- # spec.executables << 'rake'
570
-
571
- def executables
572
- @executables ||= []
573
- end
574
-
575
- ##
576
- # Extensions to build when installing the gem, specifically the paths to
577
- # extconf.rb-style files used to compile extensions.
578
- #
579
- # These files will be run when the gem is installed, causing the C (or
580
- # whatever) code to be compiled on the user's machine.
581
- #
582
- # Usage:
583
- #
584
- # spec.extensions << 'ext/rmagic/extconf.rb'
585
- #
586
- # See Gem::Ext::Builder for information about writing extensions for gems.
587
-
588
- def extensions
589
- @extensions ||= []
590
- end
591
-
592
- ##
593
- # Extra files to add to RDoc such as README or doc/examples.txt
594
- #
595
- # When the user elects to generate the RDoc documentation for a gem (typically
596
- # at install time), all the library files are sent to RDoc for processing.
597
- # This option allows you to have some non-code files included for a more
598
- # complete set of documentation.
599
- #
600
- # Usage:
601
- #
602
- # spec.extra_rdoc_files = ['README', 'doc/user-guide.txt']
603
-
604
- def extra_rdoc_files
605
- @extra_rdoc_files ||= []
606
- end
607
-
608
- ##
609
- # The version of RubyGems that installed this gem. Returns
610
- # <code>Gem::Version.new(0)</code> for gems installed by versions earlier
611
- # than RubyGems 2.2.0.
612
-
613
- def installed_by_version # :nodoc:
614
- @installed_by_version ||= Gem::Version.new(0)
615
- end
616
-
617
- ##
618
- # Sets the version of RubyGems that installed this gem. See also
619
- # #installed_by_version.
620
-
621
- def installed_by_version=(version) # :nodoc:
622
- @installed_by_version = Gem::Version.new version
623
- end
624
-
625
- ##
626
- # Specifies the rdoc options to be used when generating API documentation.
627
- #
628
- # Usage:
629
- #
630
- # spec.rdoc_options << '--title' << 'Rake -- Ruby Make' <<
631
- # '--main' << 'README' <<
632
- # '--line-numbers'
633
-
634
- def rdoc_options
635
- @rdoc_options ||= []
636
- end
637
-
638
- LATEST_RUBY_WITHOUT_PATCH_VERSIONS = Gem::Version.new("2.1")
639
-
640
- ##
641
- # The version of Ruby required by this gem. The ruby version can be
642
- # specified to the patch-level:
643
- #
644
- # $ ruby -v -e 'p Gem.ruby_version'
645
- # ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0]
646
- # #<Gem::Version "2.0.0.247">
647
- #
648
- # Prereleases can also be specified.
649
- #
650
- # Usage:
651
- #
652
- # # This gem will work with 1.8.6 or greater...
653
- # spec.required_ruby_version = '>= 1.8.6'
654
- #
655
- # # Only with final releases of major version 2 where minor version is at least 3
656
- # spec.required_ruby_version = '~> 2.3'
657
- #
658
- # # Only prereleases or final releases after 2.6.0.preview2
659
- # spec.required_ruby_version = '> 2.6.0.preview2'
660
- #
661
- # # This gem will work with 2.3.0 or greater, including major version 3, but lesser than 4.0.0
662
- # spec.required_ruby_version = '>= 2.3', '< 4'
663
-
664
- def required_ruby_version=(req)
665
- @required_ruby_version = Gem::Requirement.create req
666
-
667
- @required_ruby_version.requirements.map! do |op, v|
668
- if v >= LATEST_RUBY_WITHOUT_PATCH_VERSIONS && v.release.segments.size == 4
669
- [op == "~>" ? "=" : op, Gem::Version.new(v.segments.tap {|s| s.delete_at(3) }.join("."))]
670
- else
671
- [op, v]
672
- end
673
- end
674
- end
675
-
676
- ##
677
- # The RubyGems version required by this gem
678
-
679
- def required_rubygems_version=(req)
680
- @required_rubygems_version = Gem::Requirement.create req
681
- end
682
-
683
- ##
684
- # Lists the external (to RubyGems) requirements that must be met for this gem
685
- # to work. It's simply information for the user.
686
- #
687
- # Usage:
688
- #
689
- # spec.requirements << 'libmagick, v6.0'
690
- # spec.requirements << 'A good graphics card'
691
-
692
- def requirements
693
- @requirements ||= []
694
- end
695
-
696
- ##
697
- # A collection of unit test files. They will be loaded as unit tests when
698
- # the user requests a gem to be unit tested.
699
- #
700
- # Usage:
701
- # spec.test_files = Dir.glob('test/tc_*.rb')
702
- # spec.test_files = ['tests/test-suite.rb']
703
-
704
- def test_files=(files) # :nodoc:
705
- @test_files = Array files
706
- end
707
-
708
- ######################################################################
709
- # :section: Read-only attributes
710
-
711
- ##
712
- # The version of RubyGems used to create this gem.
713
-
714
- attr_accessor :rubygems_version
715
-
716
- ##
717
- # The path where this gem installs its extensions.
718
-
719
- def extensions_dir
720
- @extensions_dir ||= super
721
- end
722
-
723
- ######################################################################
724
- # :section: Specification internals
725
-
726
- ##
727
- # True when this gemspec has been activated. This attribute is not persisted.
728
-
729
- attr_accessor :activated
730
-
731
- alias_method :activated?, :activated
732
-
733
- ##
734
- # Autorequire was used by old RubyGems to automatically require a file.
735
- #
736
- # Deprecated: It is neither supported nor functional.
737
-
738
- attr_accessor :autorequire # :nodoc:
739
-
740
- ##
741
- # Sets the default executable for this gem.
742
- #
743
- # Deprecated: You must now specify the executable name to Gem.bin_path.
744
-
745
- attr_writer :default_executable
746
- rubygems_deprecate :default_executable=
747
-
748
- ##
749
- # Allows deinstallation of gems with legacy platforms.
750
-
751
- attr_writer :original_platform # :nodoc:
752
-
753
- ##
754
- # The Gem::Specification version of this gemspec.
755
- #
756
- # Do not set this, it is set automatically when the gem is packaged.
757
-
758
- attr_accessor :specification_version
759
-
760
- def self._all # :nodoc:
761
- specification_record.all
762
- end
763
-
764
- def self.clear_load_cache # :nodoc:
765
- @load_cache_mutex.synchronize do
766
- @load_cache.clear
767
- end
768
- end
769
- private_class_method :clear_load_cache
770
-
771
- def self.gem_path # :nodoc:
772
- Gem.path
773
- end
774
- private_class_method :gem_path
775
-
776
- def self.each_gemspec(dirs) # :nodoc:
777
- dirs.each do |dir|
778
- Gem::Util.glob_files_in_dir("*.gemspec", dir).each do |path|
779
- yield path
780
- end
781
- end
782
- end
783
-
784
- def self.gemspec_stubs_in(dir, pattern) # :nodoc:
785
- Gem::Util.glob_files_in_dir(pattern, dir).map {|path| yield path }.select(&:valid?)
786
- end
787
-
788
- def self.each_spec(dirs) # :nodoc:
789
- each_gemspec(dirs) do |path|
790
- spec = self.load path
791
- yield spec if spec
792
- end
793
- end
794
-
795
- ##
796
- # Returns a Gem::StubSpecification for every installed gem
797
-
798
- def self.stubs
799
- specification_record.stubs
800
- end
801
-
802
- ##
803
- # Returns a Gem::StubSpecification for default gems
804
-
805
- def self.default_stubs(pattern = "*.gemspec")
806
- base_dir = Gem.default_dir
807
- gems_dir = File.join base_dir, "gems"
808
- gemspec_stubs_in(Gem.default_specifications_dir, pattern) do |path|
809
- Gem::StubSpecification.default_gemspec_stub(path, base_dir, gems_dir)
810
- end
811
- end
812
-
813
- ##
814
- # Returns a Gem::StubSpecification for installed gem named +name+
815
- # only returns stubs that match Gem.platforms
816
-
817
- def self.stubs_for(name)
818
- specification_record.stubs_for(name)
819
- end
820
-
821
- ##
822
- # Finds stub specifications matching a pattern from the standard locations,
823
- # optionally filtering out specs not matching the current platform
824
- #
825
- def self.stubs_for_pattern(pattern, match_platform = true) # :nodoc:
826
- specification_record.stubs_for_pattern(pattern, match_platform)
827
- end
828
-
829
- def self._resort!(specs) # :nodoc:
830
- specs.sort! do |a, b|
831
- names = a.name <=> b.name
832
- next names if names.nonzero?
833
- versions = b.version <=> a.version
834
- next versions if versions.nonzero?
835
- platforms = Gem::Platform.sort_priority(b.platform) <=> Gem::Platform.sort_priority(a.platform)
836
- next platforms if platforms.nonzero?
837
- default_gem = a.default_gem_priority <=> b.default_gem_priority
838
- next default_gem if default_gem.nonzero?
839
- a.base_dir_priority(gem_path) <=> b.base_dir_priority(gem_path)
840
- end
841
- end
842
-
843
- ##
844
- # Loads the default specifications. It should be called only once.
845
-
846
- def self.load_defaults
847
- each_spec([Gem.default_specifications_dir]) do |spec|
848
- # #load returns nil if the spec is bad, so we just ignore
849
- # it at this stage
850
- Gem.register_default_spec(spec)
851
- end
852
- end
853
-
854
- ##
855
- # Adds +spec+ to the known specifications, keeping the collection
856
- # properly sorted.
857
-
858
- def self.add_spec(spec)
859
- specification_record.add_spec(spec)
860
- end
861
-
862
- ##
863
- # Removes +spec+ from the known specs.
864
-
865
- def self.remove_spec(spec)
866
- specification_record.remove_spec(spec)
867
- end
868
-
869
- ##
870
- # Returns all specifications. This method is discouraged from use.
871
- # You probably want to use one of the Enumerable methods instead.
872
-
873
- def self.all
874
- warn "NOTE: Specification.all called from #{caller(1, 1).first}" unless
875
- Gem::Deprecate.skip
876
- _all
877
- end
878
-
879
- ##
880
- # Sets the known specs to +specs+.
881
-
882
- def self.all=(specs)
883
- specification_record.all = specs
884
- end
885
-
886
- ##
887
- # Return full names of all specs in sorted order.
888
-
889
- def self.all_names
890
- specification_record.all_names
891
- end
892
-
893
- ##
894
- # Return the list of all array-oriented instance variables.
895
- #--
896
- # Not sure why we need to use so much stupid reflection in here...
897
-
898
- def self.array_attributes
899
- @@array_attributes.dup
900
- end
901
-
902
- ##
903
- # Return the list of all instance variables.
904
- #--
905
- # Not sure why we need to use so much stupid reflection in here...
906
-
907
- def self.attribute_names
908
- @@attributes.dup
909
- end
910
-
911
- ##
912
- # Return the directories that Specification uses to find specs.
913
-
914
- def self.dirs
915
- @@dirs ||= Gem::SpecificationRecord.dirs_from(gem_path)
916
- end
917
-
918
- ##
919
- # Set the directories that Specification uses to find specs. Setting
920
- # this resets the list of known specs.
921
-
922
- def self.dirs=(dirs)
923
- reset
924
-
925
- @@dirs = Gem::SpecificationRecord.dirs_from(Array(dirs))
926
- end
927
-
928
- extend Enumerable
929
-
930
- ##
931
- # Enumerate every known spec. See ::dirs= and ::add_spec to set the list of
932
- # specs.
933
-
934
- def self.each(&block)
935
- specification_record.each(&block)
936
- end
937
-
938
- ##
939
- # Returns every spec that matches +name+ and optional +requirements+.
940
-
941
- def self.find_all_by_name(name, *requirements)
942
- specification_record.find_all_by_name(name, *requirements)
943
- end
944
-
945
- ##
946
- # Returns every spec that has the given +full_name+
947
-
948
- def self.find_all_by_full_name(full_name)
949
- stubs.select {|s| s.full_name == full_name }.map(&:to_spec)
950
- end
951
-
952
- ##
953
- # Find the best specification matching a +name+ and +requirements+. Raises
954
- # if the dependency doesn't resolve to a valid specification.
955
-
956
- def self.find_by_name(name, *requirements)
957
- requirements = Gem::Requirement.default if requirements.empty?
958
-
959
- Gem::Dependency.new(name, *requirements).to_spec
960
- end
961
-
962
- ##
963
- # Find the best specification matching a +full_name+.
964
- def self.find_by_full_name(full_name)
965
- stubs.find {|s| s.full_name == full_name }&.to_spec
966
- end
967
-
968
- ##
969
- # Return the best specification that contains the file matching +path+.
970
-
971
- def self.find_by_path(path)
972
- specification_record.find_by_path(path)
973
- end
974
-
975
- ##
976
- # Return the best specification that contains the file matching +path+
977
- # amongst the specs that are not activated.
978
-
979
- def self.find_inactive_by_path(path)
980
- specification_record.find_inactive_by_path(path)
981
- end
982
-
983
- ##
984
- # Return the best specification that contains the file matching +path+, among
985
- # those already activated.
986
-
987
- def self.find_active_stub_by_path(path)
988
- specification_record.find_active_stub_by_path(path)
989
- end
990
-
991
- ##
992
- # Return currently unresolved specs that contain the file matching +path+.
993
-
994
- def self.find_in_unresolved(path)
995
- unresolved_specs.find_all {|spec| spec.contains_requirable_file? path }
996
- end
997
-
998
- ##
999
- # Search through all unresolved deps and sub-dependencies and return
1000
- # specs that contain the file matching +path+.
1001
-
1002
- def self.find_in_unresolved_tree(path)
1003
- unresolved_specs.each do |spec|
1004
- spec.traverse do |_from_spec, _dep, to_spec, trail|
1005
- if to_spec.has_conflicts? || to_spec.conficts_when_loaded_with?(trail)
1006
- :next
1007
- else
1008
- return trail.reverse if to_spec.contains_requirable_file? path
1009
- end
1010
- end
1011
- end
1012
-
1013
- []
1014
- end
1015
-
1016
- def self.unresolved_specs
1017
- unresolved_deps.values.flat_map(&:to_specs)
1018
- end
1019
- private_class_method :unresolved_specs
1020
-
1021
- ##
1022
- # Special loader for YAML files. When a Specification object is loaded
1023
- # from a YAML file, it bypasses the normal Ruby object initialization
1024
- # routine (#initialize). This method makes up for that and deals with
1025
- # gems of different ages.
1026
- #
1027
- # +input+ can be anything that YAML.load() accepts: String or IO.
1028
-
1029
- def self.from_yaml(input)
1030
- Gem.load_yaml
1031
-
1032
- input = normalize_yaml_input input
1033
- spec = Gem::SafeYAML.safe_load input
1034
-
1035
- if spec && spec.class == FalseClass
1036
- raise Gem::EndOfYAMLException
1037
- end
1038
-
1039
- unless Gem::Specification === spec
1040
- raise Gem::Exception, "YAML data doesn't evaluate to gem specification"
1041
- end
1042
-
1043
- spec.specification_version ||= NONEXISTENT_SPECIFICATION_VERSION
1044
- spec.reset_nil_attributes_to_default
1045
- spec.flatten_require_paths
1046
-
1047
- spec
1048
- end
1049
-
1050
- ##
1051
- # Return the latest specs, optionally including prerelease specs if
1052
- # +prerelease+ is true.
1053
-
1054
- def self.latest_specs(prerelease = false)
1055
- specification_record.latest_specs(prerelease)
1056
- end
1057
-
1058
- ##
1059
- # Return the latest installed spec for gem +name+.
1060
-
1061
- def self.latest_spec_for(name)
1062
- specification_record.latest_spec_for(name)
1063
- end
1064
-
1065
- def self._latest_specs(specs, prerelease = false) # :nodoc:
1066
- result = {}
1067
-
1068
- specs.reverse_each do |spec|
1069
- unless prerelease
1070
- next if spec.version.prerelease?
1071
- end
1072
-
1073
- result[spec.name] = spec
1074
- end
1075
-
1076
- result.flat_map(&:last).sort_by(&:name)
1077
- end
1078
-
1079
- ##
1080
- # Loads Ruby format gemspec from +file+.
1081
-
1082
- def self.load(file)
1083
- return unless file
1084
-
1085
- spec = @load_cache_mutex.synchronize { @load_cache[file] }
1086
- return spec if spec
1087
-
1088
- return unless File.file?(file)
1089
-
1090
- code = Gem.open_file(file, "r:UTF-8:-", &:read)
1091
-
1092
- begin
1093
- spec = eval code, binding, file
1094
-
1095
- if Gem::Specification === spec
1096
- spec.loaded_from = File.expand_path file.to_s
1097
- @load_cache_mutex.synchronize do
1098
- prev = @load_cache[file]
1099
- if prev
1100
- spec = prev
1101
- else
1102
- @load_cache[file] = spec
1103
- end
1104
- end
1105
- return spec
1106
- end
1107
-
1108
- warn "[#{file}] isn't a Gem::Specification (#{spec.class} instead)."
1109
- rescue SignalException, SystemExit
1110
- raise
1111
- rescue SyntaxError, StandardError => e
1112
- warn "Invalid gemspec in [#{file}]: #{e}"
1113
- end
1114
-
1115
- nil
1116
- end
1117
-
1118
- ##
1119
- # Specification attributes that must be non-nil
1120
-
1121
- def self.non_nil_attributes
1122
- @@non_nil_attributes.dup
1123
- end
1124
-
1125
- ##
1126
- # Make sure the YAML specification is properly formatted with dashes
1127
-
1128
- def self.normalize_yaml_input(input)
1129
- result = input.respond_to?(:read) ? input.read : input
1130
- result = "--- " + result unless result.start_with?("--- ")
1131
- result = result.dup
1132
- result.gsub!(/ !!null \n/, " \n")
1133
- # date: 2011-04-26 00:00:00.000000000Z
1134
- # date: 2011-04-26 00:00:00.000000000 Z
1135
- result.gsub!(/^(date: \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+?)Z/, '\1 Z')
1136
- result
1137
- end
1138
-
1139
- ##
1140
- # Return a list of all outdated local gem names. This method is HEAVY
1141
- # as it must go fetch specifications from the server.
1142
- #
1143
- # Use outdated_and_latest_version if you wish to retrieve the latest remote
1144
- # version as well.
1145
-
1146
- def self.outdated
1147
- outdated_and_latest_version.map {|local, _| local.name }
1148
- end
1149
-
1150
- ##
1151
- # Enumerates the outdated local gems yielding the local specification and
1152
- # the latest remote version.
1153
- #
1154
- # This method may take some time to return as it must check each local gem
1155
- # against the server's index.
1156
-
1157
- def self.outdated_and_latest_version
1158
- return enum_for __method__ unless block_given?
1159
-
1160
- # TODO: maybe we should switch to rubygems' version service?
1161
- fetcher = Gem::SpecFetcher.fetcher
1162
-
1163
- latest_specs(true).each do |local_spec|
1164
- dependency =
1165
- Gem::Dependency.new local_spec.name, ">= #{local_spec.version}"
1166
-
1167
- remotes, = fetcher.search_for_dependency dependency
1168
- remotes = remotes.map {|n, _| n.version }
1169
-
1170
- latest_remote = remotes.sort.last
1171
-
1172
- yield [local_spec, latest_remote] if
1173
- latest_remote && local_spec.version < latest_remote
1174
- end
1175
-
1176
- nil
1177
- end
1178
-
1179
- ##
1180
- # Is +name+ a required attribute?
1181
-
1182
- def self.required_attribute?(name)
1183
- @@required_attributes.include? name.to_sym
1184
- end
1185
-
1186
- ##
1187
- # Required specification attributes
1188
-
1189
- def self.required_attributes
1190
- @@required_attributes.dup
1191
- end
1192
-
1193
- ##
1194
- # Reset the list of known specs, running pre and post reset hooks
1195
- # registered in Gem.
1196
-
1197
- def self.reset
1198
- @@dirs = nil
1199
- Gem.pre_reset_hooks.each(&:call)
1200
- @specification_record = nil
1201
- clear_load_cache
1202
-
1203
- unless unresolved_deps.empty?
1204
- unresolved = unresolved_deps.filter_map do |name, dep|
1205
- matching_versions = find_all_by_name(name)
1206
- next if dep.latest_version? && matching_versions.any?(&:default_gem?)
1207
-
1208
- [dep, matching_versions.uniq(&:full_name)]
1209
- end.to_h
1210
-
1211
- unless unresolved.empty?
1212
- warn "WARN: Unresolved or ambiguous specs during Gem::Specification.reset:"
1213
- unresolved.each do |dep, versions|
1214
- warn " #{dep}"
1215
-
1216
- unless versions.empty?
1217
- warn " Available/installed versions of this gem:"
1218
- versions.each {|s| warn " - #{s.version}" }
1219
- end
1220
- end
1221
- warn "WARN: Clearing out unresolved specs. Try 'gem cleanup <gem>'"
1222
- warn "Please report a bug if this causes problems."
1223
- end
1224
-
1225
- unresolved_deps.clear
1226
- end
1227
- Gem.post_reset_hooks.each(&:call)
1228
- end
1229
-
1230
- ##
1231
- # Keeps track of all currently known specifications
1232
-
1233
- def self.specification_record
1234
- @specification_record ||= Gem::SpecificationRecord.new(dirs)
1235
- end
1236
-
1237
- # DOC: This method needs documented or nodoc'd
1238
- def self.unresolved_deps
1239
- @unresolved_deps ||= Hash.new {|h, n| h[n] = Gem::Dependency.new n }
1240
- end
1241
-
1242
- ##
1243
- # Load custom marshal format, re-initializing defaults as needed
1244
-
1245
- def self._load(str)
1246
- Gem.load_yaml
1247
- Gem.load_safe_marshal
1248
-
1249
- yaml_set = false
1250
- retry_count = 0
1251
-
1252
- array = begin
1253
- Gem::SafeMarshal.safe_load str
1254
- rescue ArgumentError => e
1255
- # Avoid an infinite retry loop when the argument error has nothing to do
1256
- # with the classes not being defined.
1257
- # 1 retry each allowed in case all 3 of
1258
- # - YAML
1259
- # - YAML::Syck::DefaultKey
1260
- # - YAML::PrivateType
1261
- # need to be defined
1262
- raise if retry_count >= 3
1263
-
1264
- #
1265
- # Some very old marshaled specs included references to `YAML::PrivateType`
1266
- # and `YAML::Syck::DefaultKey` constants due to bugs in the old emitter
1267
- # that generated them. Workaround the issue by defining the necessary
1268
- # constants and retrying.
1269
- #
1270
- message = e.message
1271
- raise unless message.include?("YAML::")
1272
-
1273
- unless Object.const_defined?(:YAML)
1274
- Object.const_set "YAML", Psych
1275
- yaml_set = true
1276
- end
1277
-
1278
- if message.include?("YAML::Syck::")
1279
- YAML.const_set "Syck", YAML unless YAML.const_defined?(:Syck)
1280
-
1281
- YAML::Syck.const_set "DefaultKey", Class.new if message.include?("YAML::Syck::DefaultKey") && !YAML::Syck.const_defined?(:DefaultKey)
1282
- elsif message.include?("YAML::PrivateType") && !YAML.const_defined?(:PrivateType)
1283
- YAML.const_set "PrivateType", Class.new
1284
- end
1285
-
1286
- retry_count += 1
1287
- retry
1288
- ensure
1289
- Object.__send__(:remove_const, "YAML") if yaml_set
1290
- end
1291
-
1292
- spec = Gem::Specification.new
1293
- spec.instance_variable_set :@specification_version, array[1]
1294
-
1295
- current_version = CURRENT_SPECIFICATION_VERSION
1296
-
1297
- field_count = if spec.specification_version > current_version
1298
- spec.instance_variable_set :@specification_version,
1299
- current_version
1300
- MARSHAL_FIELDS[current_version]
1301
- else
1302
- MARSHAL_FIELDS[spec.specification_version]
1303
- end
1304
-
1305
- if array.size < field_count
1306
- raise TypeError, "invalid Gem::Specification format #{array.inspect}"
1307
- end
1308
-
1309
- spec.instance_variable_set :@rubygems_version, array[0]
1310
- # spec version
1311
- spec.instance_variable_set :@name, array[2]
1312
- spec.instance_variable_set :@version, array[3]
1313
- spec.date = array[4]
1314
- spec.instance_variable_set :@summary, array[5]
1315
- spec.instance_variable_set :@required_ruby_version, array[6]
1316
- spec.instance_variable_set :@required_rubygems_version, array[7]
1317
- spec.platform = array[8]
1318
- spec.instance_variable_set :@dependencies, array[9]
1319
- # offset due to rubyforge_project removal
1320
- spec.instance_variable_set :@email, array[11]
1321
- spec.instance_variable_set :@authors, array[12]
1322
- spec.instance_variable_set :@description, array[13]
1323
- spec.instance_variable_set :@homepage, array[14]
1324
- spec.instance_variable_set :@has_rdoc, array[15]
1325
- spec.instance_variable_set :@licenses, array[17]
1326
- spec.instance_variable_set :@metadata, array[18]
1327
- spec.instance_variable_set :@loaded, false
1328
- spec.instance_variable_set :@activated, false
1329
-
1330
- spec
1331
- end
1332
-
1333
- def <=>(other) # :nodoc:
1334
- sort_obj <=> other.sort_obj
1335
- end
1336
-
1337
- def ==(other) # :nodoc:
1338
- self.class === other &&
1339
- name == other.name &&
1340
- version == other.version &&
1341
- platform == other.platform
1342
- end
1343
-
1344
- ##
1345
- # Dump only crucial instance variables.
1346
- #--
1347
- # MAINTAIN ORDER!
1348
- # (down with the man)
1349
-
1350
- def _dump(limit)
1351
- Marshal.dump [
1352
- @rubygems_version,
1353
- @specification_version,
1354
- @name,
1355
- @version,
1356
- date,
1357
- @summary,
1358
- @required_ruby_version,
1359
- @required_rubygems_version,
1360
- @original_platform,
1361
- @dependencies,
1362
- "", # rubyforge_project
1363
- @email,
1364
- @authors,
1365
- @description,
1366
- @homepage,
1367
- true, # has_rdoc
1368
- @new_platform,
1369
- @licenses,
1370
- @metadata,
1371
- ]
1372
- end
1373
-
1374
- ##
1375
- # Activate this spec, registering it as a loaded spec and adding
1376
- # it's lib paths to $LOAD_PATH. Returns true if the spec was
1377
- # activated, false if it was previously activated. Freaks out if
1378
- # there are conflicts upon activation.
1379
-
1380
- def activate
1381
- other = Gem.loaded_specs[name]
1382
- if other
1383
- check_version_conflict other
1384
- return false
1385
- end
1386
-
1387
- raise_if_conflicts
1388
-
1389
- activate_dependencies
1390
- add_self_to_load_path
1391
-
1392
- Gem.loaded_specs[name] = self
1393
- @activated = true
1394
- @loaded = true
1395
-
1396
- true
1397
- end
1398
-
1399
- ##
1400
- # Activate all unambiguously resolved runtime dependencies of this
1401
- # spec. Add any ambiguous dependencies to the unresolved list to be
1402
- # resolved later, as needed.
1403
-
1404
- def activate_dependencies
1405
- unresolved = Gem::Specification.unresolved_deps
1406
-
1407
- runtime_dependencies.each do |spec_dep|
1408
- if loaded = Gem.loaded_specs[spec_dep.name]
1409
- next if spec_dep.matches_spec? loaded
1410
-
1411
- msg = "can't satisfy '#{spec_dep}', already activated '#{loaded.full_name}'"
1412
- e = Gem::LoadError.new msg
1413
- e.name = spec_dep.name
1414
-
1415
- raise e
1416
- end
1417
-
1418
- specs = spec_dep.matching_specs(true).uniq(&:full_name)
1419
-
1420
- if specs.size == 0
1421
- raise Gem::MissingSpecError.new(spec_dep.name, spec_dep.requirement, "at: #{spec_file}")
1422
- elsif specs.size == 1
1423
- specs.first.activate
1424
- else
1425
- name = spec_dep.name
1426
- unresolved[name] = unresolved[name].merge spec_dep
1427
- end
1428
- end
1429
-
1430
- unresolved.delete self.name
1431
- end
1432
-
1433
- ##
1434
- # Abbreviate the spec for downloading. Abbreviated specs are only used for
1435
- # searching, downloading and related activities and do not need deployment
1436
- # specific information (e.g. list of files). So we abbreviate the spec,
1437
- # making it much smaller for quicker downloads.
1438
-
1439
- def abbreviate
1440
- self.files = []
1441
- self.test_files = []
1442
- self.rdoc_options = []
1443
- self.extra_rdoc_files = []
1444
- self.cert_chain = []
1445
- end
1446
-
1447
- ##
1448
- # Sanitize the descriptive fields in the spec. Sometimes non-ASCII
1449
- # characters will garble the site index. Non-ASCII characters will
1450
- # be replaced by their XML entity equivalent.
1451
-
1452
- def sanitize
1453
- self.summary = sanitize_string(summary)
1454
- self.description = sanitize_string(description)
1455
- self.post_install_message = sanitize_string(post_install_message)
1456
- self.authors = authors.collect {|a| sanitize_string(a) }
1457
- end
1458
-
1459
- ##
1460
- # Sanitize a single string.
1461
-
1462
- def sanitize_string(string)
1463
- return string unless string
1464
-
1465
- # HACK: the #to_s is in here because RSpec has an Array of Arrays of
1466
- # Strings for authors. Need a way to disallow bad values on gemspec
1467
- # generation. (Probably won't happen.)
1468
- string.to_s
1469
- end
1470
-
1471
- ##
1472
- # Returns an array with bindir attached to each executable in the
1473
- # +executables+ list
1474
-
1475
- def add_bindir(executables)
1476
- return nil if executables.nil?
1477
-
1478
- if @bindir
1479
- Array(executables).map {|e| File.join(@bindir, e) }
1480
- else
1481
- executables
1482
- end
1483
- rescue StandardError
1484
- nil
1485
- end
1486
-
1487
- ##
1488
- # Adds a dependency on gem +dependency+ with type +type+ that requires
1489
- # +requirements+. Valid types are currently <tt>:runtime</tt> and
1490
- # <tt>:development</tt>.
1491
-
1492
- def add_dependency_with_type(dependency, type, requirements)
1493
- requirements = if requirements.empty?
1494
- Gem::Requirement.default
1495
- else
1496
- requirements.flatten
1497
- end
1498
-
1499
- unless dependency.respond_to?(:name) &&
1500
- dependency.respond_to?(:requirement)
1501
- dependency = Gem::Dependency.new(dependency.to_s, requirements, type)
1502
- end
1503
-
1504
- dependencies << dependency
1505
- end
1506
-
1507
- private :add_dependency_with_type
1508
-
1509
- alias_method :add_runtime_dependency, :add_dependency
1510
-
1511
- ##
1512
- # Adds this spec's require paths to LOAD_PATH, in the proper location.
1513
-
1514
- def add_self_to_load_path
1515
- return if default_gem?
1516
-
1517
- paths = full_require_paths
1518
-
1519
- Gem.add_to_load_path(*paths)
1520
- end
1521
-
1522
- ##
1523
- # Singular reader for #authors. Returns the first author in the list
1524
-
1525
- def author
1526
- (val = authors) && val.first
1527
- end
1528
-
1529
- ##
1530
- # The list of author names who wrote this gem.
1531
- #
1532
- # spec.authors = ['Chad Fowler', 'Jim Weirich', 'Rich Kilmer']
1533
-
1534
- def authors
1535
- @authors ||= []
1536
- end
1537
-
1538
- ##
1539
- # Returns the full path to installed gem's bin directory.
1540
- #
1541
- # NOTE: do not confuse this with +bindir+, which is just 'bin', not
1542
- # a full path.
1543
-
1544
- def bin_dir
1545
- @bin_dir ||= File.join gem_dir, bindir
1546
- end
1547
-
1548
- ##
1549
- # Returns the full path to an executable named +name+ in this gem.
1550
-
1551
- def bin_file(name)
1552
- File.join bin_dir, name
1553
- end
1554
-
1555
- ##
1556
- # Returns the build_args used to install the gem
1557
-
1558
- def build_args
1559
- if File.exist? build_info_file
1560
- build_info = File.readlines build_info_file
1561
- build_info = build_info.map(&:strip)
1562
- build_info.delete ""
1563
- build_info
1564
- else
1565
- []
1566
- end
1567
- end
1568
-
1569
- ##
1570
- # Builds extensions for this platform if the gem has extensions listed and
1571
- # the gem.build_complete file is missing.
1572
-
1573
- def build_extensions # :nodoc:
1574
- return if extensions.empty?
1575
- return if default_gem?
1576
- # we need to fresh build when same name and version of default gems
1577
- return if self.class.find_by_full_name(full_name)&.default_gem?
1578
- return if File.exist? gem_build_complete_path
1579
- return unless File.writable?(base_dir)
1580
- return unless File.exist?(File.join(base_dir, "extensions"))
1581
-
1582
- begin
1583
- # We need to require things in $LOAD_PATH without looking for the
1584
- # extension we are about to build.
1585
- unresolved_deps = Gem::Specification.unresolved_deps.dup
1586
- Gem::Specification.unresolved_deps.clear
1587
-
1588
- require_relative "config_file"
1589
- require_relative "ext"
1590
- require_relative "user_interaction"
1591
-
1592
- ui = Gem::SilentUI.new
1593
- Gem::DefaultUserInteraction.use_ui ui do
1594
- builder = Gem::Ext::Builder.new self
1595
- builder.build_extensions
1596
- end
1597
- ensure
1598
- ui&.close
1599
- Gem::Specification.unresolved_deps.replace unresolved_deps
1600
- end
1601
- end
1602
-
1603
- ##
1604
- # Returns the full path to the build info directory
1605
-
1606
- def build_info_dir
1607
- File.join base_dir, "build_info"
1608
- end
1609
-
1610
- ##
1611
- # Returns the full path to the file containing the build
1612
- # information generated when the gem was installed
1613
-
1614
- def build_info_file
1615
- File.join build_info_dir, "#{full_name}.info"
1616
- end
1617
-
1618
- ##
1619
- # Returns the full path to the cache directory containing this
1620
- # spec's cached gem.
1621
-
1622
- def cache_dir
1623
- @cache_dir ||= File.join base_dir, "cache"
1624
- end
1625
-
1626
- ##
1627
- # Returns the full path to the cached gem for this spec.
1628
-
1629
- def cache_file
1630
- @cache_file ||= File.join cache_dir, "#{full_name}.gem"
1631
- end
1632
-
1633
- ##
1634
- # Return any possible conflicts against the currently loaded specs.
1635
-
1636
- def conflicts
1637
- conflicts = {}
1638
- runtime_dependencies.each do |dep|
1639
- spec = Gem.loaded_specs[dep.name]
1640
- if spec && !spec.satisfies_requirement?(dep)
1641
- (conflicts[spec] ||= []) << dep
1642
- end
1643
- end
1644
- env_req = Gem.env_requirement(name)
1645
- (conflicts[self] ||= []) << env_req unless env_req.satisfied_by? version
1646
- conflicts
1647
- end
1648
-
1649
- ##
1650
- # return true if there will be conflict when spec if loaded together with the list of specs.
1651
-
1652
- def conficts_when_loaded_with?(list_of_specs) # :nodoc:
1653
- result = list_of_specs.any? do |spec|
1654
- spec.runtime_dependencies.any? {|dep| (dep.name == name) && !satisfies_requirement?(dep) }
1655
- end
1656
- result
1657
- end
1658
-
1659
- ##
1660
- # Return true if there are possible conflicts against the currently loaded specs.
1661
-
1662
- def has_conflicts?
1663
- return true unless Gem.env_requirement(name).satisfied_by?(version)
1664
- runtime_dependencies.any? do |dep|
1665
- spec = Gem.loaded_specs[dep.name]
1666
- spec && !spec.satisfies_requirement?(dep)
1667
- end
1668
- rescue ArgumentError => e
1669
- raise e, "#{name} #{version}: #{e.message}"
1670
- end
1671
-
1672
- # The date this gem was created.
1673
- #
1674
- # If SOURCE_DATE_EPOCH is set as an environment variable, use that to support
1675
- # reproducible builds; otherwise, default to the current UTC date.
1676
- #
1677
- # Details on SOURCE_DATE_EPOCH:
1678
- # https://reproducible-builds.org/specs/source-date-epoch/
1679
-
1680
- def date
1681
- @date ||= Time.utc(*Gem.source_date_epoch.utc.to_a[3..5].reverse)
1682
- end
1683
-
1684
- DateLike = Object.new # :nodoc:
1685
- def DateLike.===(obj) # :nodoc:
1686
- defined?(::Date) && Date === obj
1687
- end
1688
-
1689
- DateTimeFormat = # :nodoc:
1690
- /\A
1691
- (\d{4})-(\d{2})-(\d{2})
1692
- (\s+ \d{2}:\d{2}:\d{2}\.\d+ \s* (Z | [-+]\d\d:\d\d) )?
1693
- \Z/x
1694
-
1695
- ##
1696
- # The date this gem was created
1697
- #
1698
- # DO NOT set this, it is set automatically when the gem is packaged.
1699
-
1700
- def date=(date)
1701
- # We want to end up with a Time object with one-day resolution.
1702
- # This is the cleanest, most-readable, faster-than-using-Date
1703
- # way to do it.
1704
- @date = case date
1705
- when String then
1706
- if DateTimeFormat =~ date
1707
- Time.utc($1.to_i, $2.to_i, $3.to_i)
1708
- else
1709
- raise(Gem::InvalidSpecificationException,
1710
- "invalid date format in specification: #{date.inspect}")
1711
- end
1712
- when Time, DateLike then
1713
- Time.utc(date.year, date.month, date.day)
1714
- else
1715
- TODAY
1716
- end
1717
- end
1718
-
1719
- ##
1720
- # The default executable for this gem.
1721
- #
1722
- # Deprecated: The name of the gem is assumed to be the name of the
1723
- # executable now. See Gem.bin_path.
1724
-
1725
- def default_executable # :nodoc:
1726
- if defined?(@default_executable) && @default_executable
1727
- result = @default_executable
1728
- elsif @executables && @executables.size == 1
1729
- result = Array(@executables).first
1730
- else
1731
- result = nil
1732
- end
1733
- result
1734
- end
1735
- rubygems_deprecate :default_executable
1736
-
1737
- ##
1738
- # The default value for specification attribute +name+
1739
-
1740
- def default_value(name)
1741
- @@default_value[name]
1742
- end
1743
-
1744
- ##
1745
- # A list of Gem::Dependency objects this gem depends on.
1746
- #
1747
- # Use #add_dependency or #add_development_dependency to add dependencies to
1748
- # a gem.
1749
-
1750
- def dependencies
1751
- @dependencies ||= []
1752
- end
1753
-
1754
- ##
1755
- # Return a list of all gems that have a dependency on this gemspec. The
1756
- # list is structured with entries that conform to:
1757
- #
1758
- # [depending_gem, dependency, [list_of_gems_that_satisfy_dependency]]
1759
-
1760
- def dependent_gems(check_dev=true)
1761
- out = []
1762
- Gem::Specification.each do |spec|
1763
- deps = check_dev ? spec.dependencies : spec.runtime_dependencies
1764
- deps.each do |dep|
1765
- next unless satisfies_requirement?(dep)
1766
- sats = []
1767
- find_all_satisfiers(dep) do |sat|
1768
- sats << sat
1769
- end
1770
- out << [spec, dep, sats]
1771
- end
1772
- end
1773
- out
1774
- end
1775
-
1776
- ##
1777
- # Returns all specs that matches this spec's runtime dependencies.
1778
-
1779
- def dependent_specs
1780
- runtime_dependencies.flat_map(&:to_specs)
1781
- end
1782
-
1783
- ##
1784
- # A detailed description of this gem. See also #summary
1785
-
1786
- def description=(str)
1787
- @description = str.to_s
1788
- end
1789
-
1790
- ##
1791
- # List of dependencies that are used for development
1792
-
1793
- def development_dependencies
1794
- dependencies.select {|d| d.type == :development }
1795
- end
1796
-
1797
- ##
1798
- # Returns the full path to this spec's documentation directory. If +type+
1799
- # is given it will be appended to the end. For example:
1800
- #
1801
- # spec.doc_dir # => "/path/to/gem_repo/doc/a-1"
1802
- #
1803
- # spec.doc_dir 'ri' # => "/path/to/gem_repo/doc/a-1/ri"
1804
-
1805
- def doc_dir(type = nil)
1806
- @doc_dir ||= File.join base_dir, "doc", full_name
1807
-
1808
- if type
1809
- File.join @doc_dir, type
1810
- else
1811
- @doc_dir
1812
- end
1813
- end
1814
-
1815
- def encode_with(coder) # :nodoc:
1816
- coder.add "name", @name
1817
- coder.add "version", @version
1818
- coder.add "platform", platform.to_s
1819
- coder.add "original_platform", original_platform.to_s if platform.to_s != original_platform.to_s
1820
-
1821
- attributes = @@attributes.map(&:to_s) - %w[name version platform]
1822
- attributes.each do |name|
1823
- value = instance_variable_get("@#{name}")
1824
- coder.add name, value unless value.nil?
1825
- end
1826
- end
1827
-
1828
- def eql?(other) # :nodoc:
1829
- self.class === other && same_attributes?(other)
1830
- end
1831
-
1832
- ##
1833
- # Singular accessor for #executables
1834
-
1835
- def executable
1836
- (val = executables) && val.first
1837
- end
1838
-
1839
- ##
1840
- # Singular accessor for #executables
1841
-
1842
- def executable=(o)
1843
- self.executables = [o]
1844
- end
1845
-
1846
- ##
1847
- # Sets executables to +value+, ensuring it is an array.
1848
-
1849
- def executables=(value)
1850
- @executables = Array(value)
1851
- end
1852
-
1853
- ##
1854
- # Sets extensions to +extensions+, ensuring it is an array.
1855
-
1856
- def extensions=(extensions)
1857
- @extensions = Array extensions
1858
- end
1859
-
1860
- ##
1861
- # Sets extra_rdoc_files to +files+, ensuring it is an array.
1862
-
1863
- def extra_rdoc_files=(files)
1864
- @extra_rdoc_files = Array files
1865
- end
1866
-
1867
- ##
1868
- # The default (generated) file name of the gem. See also #spec_name.
1869
- #
1870
- # spec.file_name # => "example-1.0.gem"
1871
-
1872
- def file_name
1873
- "#{full_name}.gem"
1874
- end
1875
-
1876
- ##
1877
- # Sets files to +files+, ensuring it is an array.
1878
-
1879
- def files=(files)
1880
- @files = Array files
1881
- end
1882
-
1883
- ##
1884
- # Finds all gems that satisfy +dep+
1885
-
1886
- def find_all_satisfiers(dep)
1887
- Gem::Specification.each do |spec|
1888
- yield spec if spec.satisfies_requirement? dep
1889
- end
1890
- end
1891
-
1892
- private :find_all_satisfiers
1893
-
1894
- ##
1895
- # Creates a duplicate spec without large blobs that aren't used at runtime.
1896
-
1897
- def for_cache
1898
- spec = dup
1899
-
1900
- spec.files = nil
1901
- spec.test_files = nil
1902
-
1903
- spec
1904
- end
1905
-
1906
- def full_name
1907
- @full_name ||= super
1908
- end
1909
-
1910
- ##
1911
- # Work around old bundler versions removing my methods
1912
- # Can be removed once RubyGems can no longer install Bundler 2.5
1913
-
1914
- def gem_dir # :nodoc:
1915
- super
1916
- end
1917
-
1918
- def gems_dir
1919
- @gems_dir ||= File.join(base_dir, "gems")
1920
- end
1921
-
1922
- ##
1923
- # Deprecated and ignored, defaults to true.
1924
- #
1925
- # Formerly used to indicate this gem was RDoc-capable.
1926
-
1927
- def has_rdoc # :nodoc:
1928
- true
1929
- end
1930
- rubygems_deprecate :has_rdoc
1931
-
1932
- ##
1933
- # Deprecated and ignored.
1934
- #
1935
- # Formerly used to indicate this gem was RDoc-capable.
1936
-
1937
- def has_rdoc=(ignored) # :nodoc:
1938
- @has_rdoc = true
1939
- end
1940
- rubygems_deprecate :has_rdoc=
1941
-
1942
- alias_method :has_rdoc?, :has_rdoc # :nodoc:
1943
- rubygems_deprecate :has_rdoc?
1944
-
1945
- ##
1946
- # True if this gem has files in test_files
1947
-
1948
- def has_unit_tests? # :nodoc:
1949
- !test_files.empty?
1950
- end
1951
-
1952
- # :stopdoc:
1953
- alias_method :has_test_suite?, :has_unit_tests?
1954
- # :startdoc:
1955
-
1956
- def hash # :nodoc:
1957
- name.hash ^ version.hash
1958
- end
1959
-
1960
- def init_with(coder) # :nodoc:
1961
- @installed_by_version ||= nil
1962
- yaml_initialize coder.tag, coder.map
1963
- end
1964
-
1965
- eval <<-RUBY, binding, __FILE__, __LINE__ + 1
1966
- # frozen_string_literal: true
1967
-
1968
- def set_nil_attributes_to_nil
1969
- #{@@nil_attributes.map {|key| "@#{key} = nil" }.join "; "}
1970
- end
1971
- private :set_nil_attributes_to_nil
1972
-
1973
- def set_not_nil_attributes_to_default_values
1974
- #{@@non_nil_attributes.map {|key| "@#{key} = #{INITIALIZE_CODE_FOR_DEFAULTS[key]}" }.join ";"}
1975
- end
1976
- private :set_not_nil_attributes_to_default_values
1977
- RUBY
1978
-
1979
- ##
1980
- # Specification constructor. Assigns the default values to the attributes
1981
- # and yields itself for further initialization. Optionally takes +name+ and
1982
- # +version+.
1983
-
1984
- def initialize(name = nil, version = nil)
1985
- super()
1986
- @gems_dir = nil
1987
- @base_dir = nil
1988
- @loaded = false
1989
- @activated = false
1990
- @loaded_from = nil
1991
- @original_platform = nil
1992
- @installed_by_version = nil
1993
-
1994
- set_nil_attributes_to_nil
1995
- set_not_nil_attributes_to_default_values
1996
-
1997
- @new_platform = Gem::Platform::RUBY
1998
-
1999
- self.name = name if name
2000
- self.version = version if version
2001
-
2002
- if (platform = Gem.platforms.last) && platform != Gem::Platform::RUBY && platform != Gem::Platform.local
2003
- self.platform = platform
2004
- end
2005
-
2006
- yield self if block_given?
2007
- end
2008
-
2009
- ##
2010
- # Duplicates Array and Gem::Requirement attributes from +other_spec+ so state isn't shared.
2011
- #
2012
-
2013
- def initialize_copy(other_spec)
2014
- self.class.array_attributes.each do |name|
2015
- name = :"@#{name}"
2016
- next unless other_spec.instance_variable_defined? name
2017
-
2018
- begin
2019
- val = other_spec.instance_variable_get(name)
2020
- if val
2021
- instance_variable_set name, val.dup
2022
- elsif Gem.configuration.really_verbose
2023
- warn "WARNING: #{full_name} has an invalid nil value for #{name}"
2024
- end
2025
- rescue TypeError
2026
- e = Gem::FormatException.new \
2027
- "#{full_name} has an invalid value for #{name}"
2028
-
2029
- e.file_path = loaded_from
2030
- raise e
2031
- end
2032
- end
2033
-
2034
- @required_ruby_version = other_spec.required_ruby_version.dup
2035
- @required_rubygems_version = other_spec.required_rubygems_version.dup
2036
- end
2037
-
2038
- def base_dir
2039
- return Gem.dir unless loaded_from
2040
- @base_dir ||= if default_gem?
2041
- File.dirname File.dirname File.dirname loaded_from
2042
- else
2043
- File.dirname File.dirname loaded_from
2044
- end
2045
- end
2046
-
2047
- ##
2048
- # Expire memoized instance variables that can incorrectly generate, replace
2049
- # or miss files due changes in certain attributes used to compute them.
2050
-
2051
- def invalidate_memoized_attributes
2052
- @full_name = nil
2053
- @cache_file = nil
2054
- end
2055
-
2056
- private :invalidate_memoized_attributes
2057
-
2058
- def inspect # :nodoc:
2059
- if $DEBUG
2060
- super
2061
- else
2062
- "#{super[0..-2]} #{full_name}>"
2063
- end
2064
- end
2065
-
2066
- ##
2067
- # Files in the Gem under one of the require_paths
2068
-
2069
- def lib_files
2070
- @files.select do |file|
2071
- require_paths.any? do |path|
2072
- file.start_with? path
2073
- end
2074
- end
2075
- end
2076
-
2077
- ##
2078
- # Singular accessor for #licenses
2079
-
2080
- def license
2081
- licenses.first
2082
- end
2083
-
2084
- ##
2085
- # Plural accessor for setting licenses
2086
- #
2087
- # See #license= for details
2088
-
2089
- def licenses
2090
- @licenses ||= []
2091
- end
2092
-
2093
- def internal_init # :nodoc:
2094
- super
2095
- @bin_dir = nil
2096
- @cache_dir = nil
2097
- @cache_file = nil
2098
- @doc_dir = nil
2099
- @ri_dir = nil
2100
- @spec_dir = nil
2101
- @spec_file = nil
2102
- end
2103
-
2104
- ##
2105
- # Track removed method calls to warn about during build time.
2106
- # Warn about unknown attributes while loading a spec.
2107
-
2108
- def method_missing(sym, *a, &b) # :nodoc:
2109
- if REMOVED_METHODS.include?(sym)
2110
- removed_method_calls << sym
2111
- return
2112
- end
2113
-
2114
- if @specification_version > CURRENT_SPECIFICATION_VERSION &&
2115
- sym.to_s.end_with?("=")
2116
- warn "ignoring #{sym} loading #{full_name}" if $DEBUG
2117
- else
2118
- super
2119
- end
2120
- end
2121
-
2122
- ##
2123
- # Is this specification missing its extensions? When this returns true you
2124
- # probably want to build_extensions
2125
-
2126
- def missing_extensions?
2127
- return false if extensions.empty?
2128
- return false if default_gem?
2129
- return false if File.exist? gem_build_complete_path
2130
-
2131
- true
2132
- end
2133
-
2134
- ##
2135
- # Normalize the list of files so that:
2136
- # * All file lists have redundancies removed.
2137
- # * Files referenced in the extra_rdoc_files are included in the package
2138
- # file list.
2139
-
2140
- def normalize
2141
- if defined?(@extra_rdoc_files) && @extra_rdoc_files
2142
- @extra_rdoc_files.uniq!
2143
- @files ||= []
2144
- @files.concat(@extra_rdoc_files)
2145
- end
2146
-
2147
- @files = @files.uniq.sort if @files
2148
- @extensions = @extensions.uniq.sort if @extensions
2149
- @test_files = @test_files.uniq.sort if @test_files
2150
- @executables = @executables.uniq.sort if @executables
2151
- @extra_rdoc_files = @extra_rdoc_files.uniq.sort if @extra_rdoc_files
2152
- end
2153
-
2154
- ##
2155
- # Return a NameTuple that represents this Specification
2156
-
2157
- def name_tuple
2158
- Gem::NameTuple.new name, version, original_platform
2159
- end
2160
-
2161
- ##
2162
- # Returns the full name (name-version) of this gemspec using the original
2163
- # platform. For use with legacy gems.
2164
-
2165
- def original_name # :nodoc:
2166
- if platform == Gem::Platform::RUBY || platform.nil?
2167
- "#{@name}-#{@version}"
2168
- else
2169
- "#{@name}-#{@version}-#{@original_platform}"
2170
- end
2171
- end
2172
-
2173
- ##
2174
- # Cruft. Use +platform+.
2175
-
2176
- def original_platform # :nodoc:
2177
- @original_platform ||= platform
2178
- end
2179
-
2180
- ##
2181
- # The platform this gem runs on. See Gem::Platform for details.
2182
-
2183
- def platform
2184
- @new_platform ||= Gem::Platform::RUBY # rubocop:disable Naming/MemoizedInstanceVariableName
2185
- end
2186
-
2187
- def pretty_print(q) # :nodoc:
2188
- q.group 2, "Gem::Specification.new do |s|", "end" do
2189
- q.breakable
2190
-
2191
- attributes = @@attributes - [:name, :version]
2192
- attributes.unshift :installed_by_version
2193
- attributes.unshift :version
2194
- attributes.unshift :name
2195
-
2196
- attributes.each do |attr_name|
2197
- current_value = send attr_name
2198
- current_value = current_value.sort if [:files, :test_files].include? attr_name
2199
- next unless current_value != default_value(attr_name) ||
2200
- self.class.required_attribute?(attr_name)
2201
-
2202
- q.text "s.#{attr_name} = "
2203
-
2204
- if attr_name == :date
2205
- current_value = current_value.utc
2206
-
2207
- q.text "Time.utc(#{current_value.year}, #{current_value.month}, #{current_value.day})"
2208
- else
2209
- q.pp current_value
2210
- end
2211
-
2212
- q.breakable
2213
- end
2214
- end
2215
- end
2216
-
2217
- ##
2218
- # Raise an exception if the version of this spec conflicts with the one
2219
- # that is already loaded (+other+)
2220
-
2221
- def check_version_conflict(other) # :nodoc:
2222
- return if version == other.version
2223
-
2224
- # This gem is already loaded. If the currently loaded gem is not in the
2225
- # list of candidate gems, then we have a version conflict.
2226
-
2227
- msg = "can't activate #{full_name}, already activated #{other.full_name}"
2228
-
2229
- e = Gem::LoadError.new msg
2230
- e.name = name
2231
-
2232
- raise e
2233
- end
2234
-
2235
- private :check_version_conflict
2236
-
2237
- ##
2238
- # Check the spec for possible conflicts and freak out if there are any.
2239
-
2240
- def raise_if_conflicts # :nodoc:
2241
- if has_conflicts?
2242
- raise Gem::ConflictError.new self, conflicts
2243
- end
2244
- end
2245
-
2246
- ##
2247
- # Sets rdoc_options to +value+, ensuring it is an array.
2248
-
2249
- def rdoc_options=(options)
2250
- @rdoc_options = Array options
2251
- end
2252
-
2253
- ##
2254
- # Singular accessor for #require_paths
2255
-
2256
- def require_path
2257
- (val = require_paths) && val.first
2258
- end
2259
-
2260
- ##
2261
- # Singular accessor for #require_paths
2262
-
2263
- def require_path=(path)
2264
- self.require_paths = Array(path)
2265
- end
2266
-
2267
- ##
2268
- # Set requirements to +req+, ensuring it is an array.
2269
-
2270
- def requirements=(req)
2271
- @requirements = Array req
2272
- end
2273
-
2274
- def respond_to_missing?(m, include_private = false) # :nodoc:
2275
- false
2276
- end
2277
-
2278
- ##
2279
- # Returns the full path to this spec's ri directory.
2280
-
2281
- def ri_dir
2282
- @ri_dir ||= File.join base_dir, "ri", full_name
2283
- end
2284
-
2285
- ##
2286
- # Return a string containing a Ruby code representation of the given
2287
- # object.
2288
-
2289
- def ruby_code(obj)
2290
- case obj
2291
- when String then obj.dump + ".freeze"
2292
- when Array then "[" + obj.map {|x| ruby_code x }.join(", ") + "]"
2293
- when Hash then
2294
- seg = obj.keys.sort.map {|k| "#{k.to_s.dump} => #{obj[k].to_s.dump}" }
2295
- "{ #{seg.join(", ")} }"
2296
- when Gem::Version then ruby_code(obj.to_s)
2297
- when DateLike then obj.strftime("%Y-%m-%d").dump
2298
- when Time then obj.strftime("%Y-%m-%d").dump
2299
- when Numeric then obj.inspect
2300
- when true, false, nil then obj.inspect
2301
- when Gem::Platform then "Gem::Platform.new(#{ruby_code obj.to_a})"
2302
- when Gem::Requirement then
2303
- list = obj.as_list
2304
- "Gem::Requirement.new(#{ruby_code(list.size == 1 ? obj.to_s : list)})"
2305
- else raise Gem::Exception, "ruby_code case not handled: #{obj.class}"
2306
- end
2307
- end
2308
-
2309
- private :ruby_code
2310
-
2311
- ##
2312
- # List of dependencies that will automatically be activated at runtime.
2313
-
2314
- def runtime_dependencies
2315
- dependencies.select(&:runtime?)
2316
- end
2317
-
2318
- ##
2319
- # True if this gem has the same attributes as +other+.
2320
-
2321
- def same_attributes?(spec)
2322
- @@attributes.all? {|name, _default| send(name) == spec.send(name) }
2323
- end
2324
-
2325
- private :same_attributes?
2326
-
2327
- ##
2328
- # Checks if this specification meets the requirement of +dependency+.
2329
-
2330
- def satisfies_requirement?(dependency)
2331
- @name == dependency.name &&
2332
- dependency.requirement.satisfied_by?(@version)
2333
- end
2334
-
2335
- ##
2336
- # Returns an object you can use to sort specifications in #sort_by.
2337
-
2338
- def sort_obj
2339
- [@name, @version, Gem::Platform.sort_priority(@new_platform)]
2340
- end
2341
-
2342
- ##
2343
- # Used by Gem::Resolver to order Gem::Specification objects
2344
-
2345
- def source # :nodoc:
2346
- Gem::Source::Installed.new
2347
- end
2348
-
2349
- ##
2350
- # Returns the full path to the directory containing this spec's
2351
- # gemspec file. eg: /usr/local/lib/ruby/gems/1.8/specifications
2352
-
2353
- def spec_dir
2354
- @spec_dir ||= File.join base_dir, "specifications"
2355
- end
2356
-
2357
- ##
2358
- # Returns the full path to this spec's gemspec file.
2359
- # eg: /usr/local/lib/ruby/gems/1.8/specifications/mygem-1.0.gemspec
2360
-
2361
- def spec_file
2362
- @spec_file ||= File.join spec_dir, "#{full_name}.gemspec"
2363
- end
2364
-
2365
- ##
2366
- # The default name of the gemspec. See also #file_name
2367
- #
2368
- # spec.spec_name # => "example-1.0.gemspec"
2369
-
2370
- def spec_name
2371
- "#{full_name}.gemspec"
2372
- end
2373
-
2374
- ##
2375
- # A short summary of this gem's description.
2376
-
2377
- def summary=(str)
2378
- @summary = str.to_s.strip.
2379
- gsub(/(\w-)\n[ \t]*(\w)/, '\1\2').gsub(/\n[ \t]*/, " ") # so. weird.
2380
- end
2381
-
2382
- ##
2383
- # Singular accessor for #test_files
2384
-
2385
- def test_file # :nodoc:
2386
- (val = test_files) && val.first
2387
- end
2388
-
2389
- ##
2390
- # Singular mutator for #test_files
2391
-
2392
- def test_file=(file) # :nodoc:
2393
- self.test_files = [file]
2394
- end
2395
-
2396
- ##
2397
- # Test files included in this gem. You cannot append to this accessor, you
2398
- # must assign to it.
2399
-
2400
- def test_files # :nodoc:
2401
- # Handle the possibility that we have @test_suite_file but not
2402
- # @test_files. This will happen when an old gem is loaded via
2403
- # YAML.
2404
- if defined? @test_suite_file
2405
- @test_files = [@test_suite_file].flatten
2406
- @test_suite_file = nil
2407
- end
2408
- if defined?(@test_files) && @test_files
2409
- @test_files
2410
- else
2411
- @test_files = []
2412
- end
2413
- end
2414
-
2415
- ##
2416
- # Returns a Ruby code representation of this specification, such that it can
2417
- # be eval'ed and reconstruct the same specification later. Attributes that
2418
- # still have their default values are omitted.
2419
-
2420
- def to_ruby
2421
- result = []
2422
- result << "# -*- encoding: utf-8 -*-"
2423
- result << "#{Gem::StubSpecification::PREFIX}#{name} #{version} #{platform} #{raw_require_paths.join("\0")}"
2424
- result << "#{Gem::StubSpecification::PREFIX}#{extensions.join "\0"}" unless
2425
- extensions.empty?
2426
- result << nil
2427
- result << "Gem::Specification.new do |s|"
2428
-
2429
- result << " s.name = #{ruby_code name}"
2430
- result << " s.version = #{ruby_code version}"
2431
- unless platform.nil? || platform == Gem::Platform::RUBY
2432
- result << " s.platform = #{ruby_code original_platform}"
2433
- end
2434
- result << ""
2435
- result << " s.required_rubygems_version = #{ruby_code required_rubygems_version} if s.respond_to? :required_rubygems_version="
2436
-
2437
- if metadata && !metadata.empty?
2438
- result << " s.metadata = #{ruby_code metadata} if s.respond_to? :metadata="
2439
- end
2440
- result << " s.require_paths = #{ruby_code raw_require_paths}"
2441
-
2442
- handled = [
2443
- :dependencies,
2444
- :name,
2445
- :platform,
2446
- :require_paths,
2447
- :required_rubygems_version,
2448
- :specification_version,
2449
- :version,
2450
- :has_rdoc,
2451
- :default_executable,
2452
- :metadata,
2453
- :signing_key,
2454
- ]
2455
-
2456
- @@attributes.each do |attr_name|
2457
- next if handled.include? attr_name
2458
- current_value = send(attr_name)
2459
- if current_value != default_value(attr_name) || self.class.required_attribute?(attr_name)
2460
- result << " s.#{attr_name} = #{ruby_code current_value}"
2461
- end
2462
- end
2463
-
2464
- if String === signing_key
2465
- result << " s.signing_key = #{ruby_code signing_key}"
2466
- end
2467
-
2468
- if @installed_by_version
2469
- result << nil
2470
- result << " s.installed_by_version = #{ruby_code Gem::VERSION}"
2471
- end
2472
-
2473
- unless dependencies.empty?
2474
- result << nil
2475
- result << " s.specification_version = #{specification_version}"
2476
- result << nil
2477
-
2478
- dependencies.each do |dep|
2479
- dep.instance_variable_set :@type, :runtime if dep.type.nil? # HACK
2480
- result << " s.add_#{dep.type}_dependency(%q<#{dep.name}>.freeze, #{ruby_code dep.requirements_list})"
2481
- end
2482
- end
2483
-
2484
- result << "end"
2485
- result << nil
2486
-
2487
- result.join "\n"
2488
- end
2489
-
2490
- ##
2491
- # Returns a Ruby lighter-weight code representation of this specification,
2492
- # used for indexing only.
2493
- #
2494
- # See #to_ruby.
2495
-
2496
- def to_ruby_for_cache
2497
- for_cache.to_ruby
2498
- end
2499
-
2500
- def to_s # :nodoc:
2501
- "#<Gem::Specification name=#{@name} version=#{@version}>"
2502
- end
2503
-
2504
- ##
2505
- # Returns self
2506
-
2507
- def to_spec
2508
- self
2509
- end
2510
-
2511
- def to_yaml(opts = {}) # :nodoc:
2512
- Gem.load_yaml
2513
-
2514
- # Because the user can switch the YAML engine behind our
2515
- # back, we have to check again here to make sure that our
2516
- # psych code was properly loaded, and load it if not.
2517
- unless Gem.const_defined?(:NoAliasYAMLTree)
2518
- require_relative "psych_tree"
2519
- end
2520
-
2521
- builder = Gem::NoAliasYAMLTree.create
2522
- builder << self
2523
- ast = builder.tree
2524
-
2525
- require "stringio"
2526
- io = StringIO.new
2527
- io.set_encoding Encoding::UTF_8
2528
-
2529
- Psych::Visitors::Emitter.new(io).accept(ast)
2530
-
2531
- io.string.gsub(/ !!null \n/, " \n")
2532
- end
2533
-
2534
- ##
2535
- # Recursively walk dependencies of this spec, executing the +block+ for each
2536
- # hop.
2537
-
2538
- def traverse(trail = [], visited = {}, &block)
2539
- trail.push(self)
2540
- begin
2541
- runtime_dependencies.each do |dep|
2542
- dep.matching_specs(true).each do |dep_spec|
2543
- next if visited.key?(dep_spec)
2544
- visited[dep_spec] = true
2545
- trail.push(dep_spec)
2546
- begin
2547
- result = block[self, dep, dep_spec, trail]
2548
- ensure
2549
- trail.pop
2550
- end
2551
- next if result == :next
2552
- spec_name = dep_spec.name
2553
- dep_spec.traverse(trail, visited, &block) unless
2554
- trail.any? {|s| s.name == spec_name }
2555
- end
2556
- end
2557
- ensure
2558
- trail.pop
2559
- end
2560
- end
2561
-
2562
- ##
2563
- # Checks that the specification contains all required fields, and does a
2564
- # very basic sanity check.
2565
- #
2566
- # Raises InvalidSpecificationException if the spec does not pass the
2567
- # checks..
2568
-
2569
- def validate(packaging = true, strict = false)
2570
- normalize
2571
-
2572
- validation_policy = Gem::SpecificationPolicy.new(self)
2573
- validation_policy.packaging = packaging
2574
- validation_policy.validate(strict)
2575
- end
2576
-
2577
- def keep_only_files_and_directories
2578
- @executables.delete_if {|x| File.directory?(File.join(@bindir, x)) }
2579
- @extensions.delete_if {|x| File.directory?(x) && !File.symlink?(x) }
2580
- @extra_rdoc_files.delete_if {|x| File.directory?(x) && !File.symlink?(x) }
2581
- @files.delete_if {|x| File.directory?(x) && !File.symlink?(x) }
2582
- @test_files.delete_if {|x| File.directory?(x) && !File.symlink?(x) }
2583
- end
2584
-
2585
- def validate_for_resolution
2586
- Gem::SpecificationPolicy.new(self).validate_for_resolution
2587
- end
2588
-
2589
- def validate_metadata
2590
- Gem::SpecificationPolicy.new(self).validate_metadata
2591
- end
2592
- rubygems_deprecate :validate_metadata
2593
-
2594
- def validate_dependencies
2595
- Gem::SpecificationPolicy.new(self).validate_dependencies
2596
- end
2597
- rubygems_deprecate :validate_dependencies
2598
-
2599
- def validate_permissions
2600
- Gem::SpecificationPolicy.new(self).validate_permissions
2601
- end
2602
- rubygems_deprecate :validate_permissions
2603
-
2604
- ##
2605
- # Set the version to +version+.
2606
-
2607
- def version=(version)
2608
- @version = Gem::Version.create(version)
2609
- return if @version.nil?
2610
-
2611
- invalidate_memoized_attributes
2612
- end
2613
-
2614
- def stubbed?
2615
- false
2616
- end
2617
-
2618
- def yaml_initialize(tag, vals) # :nodoc:
2619
- vals.each do |ivar, val|
2620
- case ivar
2621
- when "date"
2622
- # Force Date to go through the extra coerce logic in date=
2623
- self.date = val
2624
- when "platform"
2625
- self.platform = val
2626
- else
2627
- instance_variable_set "@#{ivar}", val
2628
- end
2629
- end
2630
- end
2631
-
2632
- ##
2633
- # Reset nil attributes to their default values to make the spec valid
2634
-
2635
- def reset_nil_attributes_to_default
2636
- nil_attributes = self.class.non_nil_attributes.find_all do |name|
2637
- !instance_variable_defined?("@#{name}") || instance_variable_get("@#{name}").nil?
2638
- end
2639
-
2640
- nil_attributes.each do |attribute|
2641
- default = default_value attribute
2642
-
2643
- value = case default
2644
- when Time, Numeric, Symbol, true, false, nil then default
2645
- else default.dup
2646
- end
2647
-
2648
- instance_variable_set "@#{attribute}", value
2649
- end
2650
-
2651
- @installed_by_version ||= nil
2652
-
2653
- nil
2654
- end
2655
-
2656
- def flatten_require_paths # :nodoc:
2657
- return unless raw_require_paths.first.is_a?(Array)
2658
-
2659
- warn "#{name} #{version} includes a gemspec with `require_paths` set to an array of arrays. Newer versions of this gem might've already fixed this"
2660
- raw_require_paths.flatten!
2661
- end
2662
-
2663
- def raw_require_paths # :nodoc:
2664
- @require_paths
2665
- end
2666
- end