@ai-ecoverse/wasix-ruby 3.4.11-2 → 3.4.11-20

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 (725) hide show
  1. package/PRESTAGE.md +53 -16
  2. package/README.md +156 -0
  3. package/THIRD-PARTY-NOTICES.md +727 -0
  4. package/bin/bundle +1 -1
  5. package/bin/bundler +1 -1
  6. package/bin/erb +1 -1
  7. package/bin/gem +1 -1
  8. package/bin/irb +1 -1
  9. package/bin/rake +1 -1
  10. package/bin/{ruby.wasm → ruby} +0 -0
  11. package/lib/ruby/3.4.0/io/console/size.rb +23 -0
  12. package/lib/ruby/3.4.0/socket.rb +1790 -0
  13. package/lib/ruby/3.4.0/wasm32-wasi/rbconfig.rb +38 -34
  14. package/lib/ruby/gems/3.4.0/cache/abbrev-0.1.2.gem +0 -0
  15. package/lib/ruby/gems/3.4.0/cache/base64-0.2.0.gem +0 -0
  16. package/lib/ruby/gems/3.4.0/cache/csv-3.3.2.gem +0 -0
  17. package/lib/ruby/gems/3.4.0/cache/drb-2.2.1.gem +0 -0
  18. package/lib/ruby/gems/3.4.0/cache/getoptlong-0.2.1.gem +0 -0
  19. package/lib/ruby/gems/3.4.0/cache/matrix-0.4.2.gem +0 -0
  20. package/lib/ruby/gems/3.4.0/cache/minitest-5.25.4.gem +0 -0
  21. package/lib/ruby/gems/3.4.0/cache/mutex_m-0.3.0.gem +0 -0
  22. package/lib/ruby/gems/3.4.0/cache/net-ftp-0.3.8.gem +0 -0
  23. package/lib/ruby/gems/3.4.0/cache/net-imap-0.5.15.gem +0 -0
  24. package/lib/ruby/gems/3.4.0/cache/net-pop-0.1.2.gem +0 -0
  25. package/lib/ruby/gems/3.4.0/cache/net-smtp-0.5.1.gem +0 -0
  26. package/lib/ruby/gems/3.4.0/cache/observer-0.1.2.gem +0 -0
  27. package/lib/ruby/gems/3.4.0/cache/power_assert-2.0.5.gem +0 -0
  28. package/lib/ruby/gems/3.4.0/cache/prime-0.1.3.gem +0 -0
  29. package/lib/ruby/gems/3.4.0/cache/rake-13.2.1.gem +0 -0
  30. package/lib/ruby/gems/3.4.0/cache/repl_type_completor-0.1.9.gem +0 -0
  31. package/lib/ruby/gems/3.4.0/cache/resolv-replace-0.1.1.gem +0 -0
  32. package/lib/ruby/gems/3.4.0/cache/rexml-3.4.4.gem +0 -0
  33. package/lib/ruby/gems/3.4.0/cache/rinda-0.2.0.gem +0 -0
  34. package/lib/ruby/gems/3.4.0/cache/rss-0.3.1.gem +0 -0
  35. package/lib/ruby/gems/3.4.0/cache/test-unit-3.6.7.gem +0 -0
  36. package/lib/ruby/gems/3.4.0/cache/typeprof-0.30.1.gem +0 -0
  37. package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/bin/console +0 -0
  38. package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/bin/setup +0 -0
  39. package/lib/ruby/gems/3.4.0/gems/bundler-2.6.9/exe/bundle +29 -0
  40. package/lib/ruby/gems/3.4.0/gems/bundler-2.6.9/exe/bundler +4 -0
  41. package/lib/ruby/gems/3.4.0/gems/erb-4.0.4.1/libexec/erb +164 -0
  42. package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/bin/console +0 -0
  43. package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/bin/setup +0 -0
  44. package/lib/ruby/gems/3.4.0/gems/irb-1.14.3/exe/irb +9 -0
  45. package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/bin/console +0 -0
  46. package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/bin/setup +0 -0
  47. package/lib/ruby/gems/3.4.0/gems/rdoc-6.14.0/exe/rdoc +43 -0
  48. package/lib/ruby/gems/3.4.0/gems/rdoc-6.14.0/exe/ri +12 -0
  49. package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/bin/console +0 -0
  50. package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/bin/setup +0 -0
  51. package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/bin/console +0 -0
  52. package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/bin/setup +0 -0
  53. package/lib/ruby/gems/3.4.0/gems/syntax_suggest-2.0.3/exe/syntax_suggest +7 -0
  54. package/lib/ruby/gems/3.4.0/specifications/abbrev-0.1.2.gemspec +5 -4
  55. package/lib/ruby/gems/3.4.0/specifications/base64-0.2.0.gemspec +4 -3
  56. package/lib/ruby/gems/3.4.0/specifications/csv-3.3.2.gemspec +5 -3
  57. package/lib/ruby/gems/3.4.0/specifications/default/benchmark-0.4.0.gemspec +22 -0
  58. package/lib/ruby/gems/3.4.0/specifications/default/bundler-2.6.9.gemspec +23 -0
  59. package/lib/ruby/gems/3.4.0/specifications/default/cgi-0.4.2.gemspec +23 -0
  60. package/lib/ruby/gems/3.4.0/specifications/default/date-3.4.1.gemspec +23 -0
  61. package/lib/ruby/gems/3.4.0/specifications/default/delegate-0.4.0.gemspec +21 -0
  62. package/lib/ruby/gems/3.4.0/specifications/default/did_you_mean-2.0.0.gemspec +20 -0
  63. package/lib/ruby/gems/3.4.0/specifications/default/digest-3.2.0.gemspec +22 -0
  64. package/lib/ruby/gems/3.4.0/specifications/default/english-0.8.0.gemspec +21 -0
  65. package/lib/ruby/gems/3.4.0/specifications/default/erb-4.0.4.1.gemspec +29 -0
  66. package/lib/ruby/gems/3.4.0/specifications/default/error_highlight-0.7.0.gemspec +20 -0
  67. package/lib/ruby/gems/3.4.0/specifications/default/etc-1.4.6.gemspec +25 -0
  68. package/lib/ruby/gems/3.4.0/specifications/default/fcntl-1.2.0.gemspec +24 -0
  69. package/lib/ruby/gems/3.4.0/specifications/default/fileutils-1.7.3.gemspec +21 -0
  70. package/lib/ruby/gems/3.4.0/specifications/default/find-0.2.0.gemspec +21 -0
  71. package/lib/ruby/gems/3.4.0/specifications/default/forwardable-1.3.3.gemspec +21 -0
  72. package/lib/ruby/gems/3.4.0/specifications/default/io-console-0.8.1.gemspec +23 -0
  73. package/lib/ruby/gems/3.4.0/specifications/default/io-nonblock-0.3.2.gemspec +23 -0
  74. package/lib/ruby/gems/3.4.0/specifications/default/io-wait-0.3.2.gemspec +24 -0
  75. package/lib/ruby/gems/3.4.0/specifications/default/ipaddr-1.2.7.gemspec +20 -0
  76. package/lib/ruby/gems/3.4.0/specifications/default/irb-1.14.3.gemspec +28 -0
  77. package/lib/ruby/gems/3.4.0/specifications/default/json-2.9.1.gemspec +23 -0
  78. package/lib/ruby/gems/3.4.0/specifications/default/logger-1.6.4.gemspec +20 -0
  79. package/lib/ruby/gems/3.4.0/specifications/default/net-http-0.6.0.gemspec +26 -0
  80. package/lib/ruby/gems/3.4.0/specifications/default/net-protocol-0.2.2.gemspec +25 -0
  81. package/lib/ruby/gems/3.4.0/specifications/default/open-uri-0.5.0.gemspec +27 -0
  82. package/lib/ruby/gems/3.4.0/specifications/default/open3-0.2.1.gemspec +22 -0
  83. package/lib/ruby/gems/3.4.0/specifications/default/openssl-3.3.3.gemspec +24 -0
  84. package/lib/ruby/gems/3.4.0/specifications/default/optparse-0.6.0.gemspec +23 -0
  85. package/lib/ruby/gems/3.4.0/specifications/default/ostruct-0.6.1.gemspec +20 -0
  86. package/lib/ruby/gems/3.4.0/specifications/default/pathname-0.4.0.gemspec +24 -0
  87. package/lib/ruby/gems/3.4.0/specifications/default/pp-0.6.2.gemspec +26 -0
  88. package/lib/ruby/gems/3.4.0/specifications/default/prettyprint-0.2.0.gemspec +22 -0
  89. package/lib/ruby/gems/3.4.0/specifications/default/prism-1.5.3.gemspec +22 -0
  90. package/lib/ruby/gems/3.4.0/specifications/default/pstore-0.2.1.gemspec +21 -0
  91. package/lib/ruby/gems/3.4.0/specifications/default/psych-5.2.2.gemspec +30 -0
  92. package/lib/ruby/gems/3.4.0/specifications/default/rdoc-6.14.0.gemspec +30 -0
  93. package/lib/ruby/gems/3.4.0/specifications/default/readline-0.0.4.gemspec +23 -0
  94. package/lib/ruby/gems/3.4.0/specifications/default/reline-0.6.0.gemspec +25 -0
  95. package/lib/ruby/gems/3.4.0/specifications/default/resolv-0.7.2.gemspec +24 -0
  96. package/lib/ruby/gems/3.4.0/specifications/default/ruby2_keywords-0.0.5.gemspec +20 -0
  97. package/lib/ruby/gems/3.4.0/specifications/default/securerandom-0.4.1.gemspec +22 -0
  98. package/lib/ruby/gems/3.4.0/specifications/default/set-1.1.1.gemspec +21 -0
  99. package/lib/ruby/gems/3.4.0/specifications/default/shellwords-0.2.2.gemspec +22 -0
  100. package/lib/ruby/gems/3.4.0/specifications/default/singleton-0.3.0.gemspec +21 -0
  101. package/lib/ruby/gems/3.4.0/specifications/default/stringio-3.1.2.gemspec +23 -0
  102. package/lib/ruby/gems/3.4.0/specifications/default/strscan-3.1.2.gemspec +24 -0
  103. package/lib/ruby/gems/3.4.0/specifications/default/syntax_suggest-2.0.3.gemspec +23 -0
  104. package/lib/ruby/gems/3.4.0/specifications/default/tempfile-0.3.1.gemspec +21 -0
  105. package/lib/ruby/gems/3.4.0/specifications/default/time-0.4.1.gemspec +26 -0
  106. package/lib/ruby/gems/3.4.0/specifications/default/timeout-0.4.3.gemspec +21 -0
  107. package/lib/ruby/gems/3.4.0/specifications/default/tmpdir-0.3.1.gemspec +26 -0
  108. package/lib/ruby/gems/3.4.0/specifications/default/tsort-0.2.0.gemspec +22 -0
  109. package/lib/ruby/gems/3.4.0/specifications/default/un-0.3.0.gemspec +22 -0
  110. package/lib/ruby/gems/3.4.0/specifications/default/uri-1.0.4.gemspec +22 -0
  111. package/lib/ruby/gems/3.4.0/specifications/default/weakref-0.1.3.gemspec +25 -0
  112. package/lib/ruby/gems/3.4.0/specifications/default/yaml-0.4.0.gemspec +21 -0
  113. package/lib/ruby/gems/3.4.0/specifications/default/zlib-3.2.3.gemspec +23 -0
  114. package/lib/ruby/gems/3.4.0/specifications/drb-2.2.1.gemspec +5 -4
  115. package/lib/ruby/gems/3.4.0/specifications/getoptlong-0.2.1.gemspec +5 -4
  116. package/lib/ruby/gems/3.4.0/specifications/matrix-0.4.2.gemspec +5 -4
  117. package/lib/ruby/gems/3.4.0/specifications/minitest-5.25.4.gemspec +7 -5
  118. package/lib/ruby/gems/3.4.0/specifications/mutex_m-0.3.0.gemspec +4 -3
  119. package/lib/ruby/gems/3.4.0/specifications/net-ftp-0.3.8.gemspec +10 -4
  120. package/lib/ruby/gems/3.4.0/specifications/net-imap-0.5.15.gemspec +7 -5
  121. package/lib/ruby/gems/3.4.0/specifications/net-pop-0.1.2.gemspec +9 -4
  122. package/lib/ruby/gems/3.4.0/specifications/net-smtp-0.5.1.gemspec +9 -4
  123. package/lib/ruby/gems/3.4.0/specifications/observer-0.1.2.gemspec +5 -4
  124. package/lib/ruby/gems/3.4.0/specifications/power_assert-2.0.5.gemspec +6 -4
  125. package/lib/ruby/gems/3.4.0/specifications/prime-0.1.3.gemspec +10 -4
  126. package/lib/ruby/gems/3.4.0/specifications/rake-13.2.1.gemspec +6 -4
  127. package/lib/ruby/gems/3.4.0/specifications/repl_type_completor-0.1.9.gemspec +6 -5
  128. package/lib/ruby/gems/3.4.0/specifications/resolv-replace-0.1.1.gemspec +6 -5
  129. package/lib/ruby/gems/3.4.0/specifications/rexml-3.4.4.gemspec +5 -3
  130. package/lib/ruby/gems/3.4.0/specifications/rinda-0.2.0.gemspec +8 -5
  131. package/lib/ruby/gems/3.4.0/specifications/rss-0.3.1.gemspec +5 -4
  132. package/lib/ruby/gems/3.4.0/specifications/test-unit-3.6.7.gemspec +5 -4
  133. package/lib/ruby/gems/3.4.0/specifications/typeprof-0.30.1.gemspec +7 -5
  134. package/package.json +60 -21
  135. package/lib/ruby/3.4.0/expect.rb +0 -71
  136. package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/abbrev.gemspec +0 -29
  137. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/.bundled.bigdecimal-3.1.8.gemspec +0 -23
  138. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/LICENSE +0 -56
  139. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/bigdecimal-3.1.8.gemspec +0 -23
  140. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/bigdecimal.gemspec +0 -50
  141. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/jacobian.rb +0 -90
  142. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/ludcmp.rb +0 -89
  143. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/math.rb +0 -232
  144. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/newton.rb +0 -80
  145. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/util.rb +0 -185
  146. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal.rb +0 -5
  147. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/linear.rb +0 -74
  148. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/nlsolve.rb +0 -40
  149. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/pi.rb +0 -21
  150. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/.bundled.debug-1.11.0.gemspec +0 -25
  151. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/CONTRIBUTING.md +0 -573
  152. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/Gemfile +0 -10
  153. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/LICENSE.txt +0 -22
  154. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/README.md +0 -996
  155. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/Rakefile +0 -57
  156. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/TODO.md +0 -23
  157. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/debug-1.11.0.gemspec +0 -30
  158. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/debug.gemspec +0 -33
  159. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/exe/rdbg +0 -53
  160. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/abbrev_command.rb +0 -77
  161. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/breakpoint.rb +0 -556
  162. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/client.rb +0 -263
  163. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/color.rb +0 -123
  164. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/config.rb +0 -592
  165. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/console.rb +0 -224
  166. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/dap_custom/traceInspector.rb +0 -336
  167. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/frame_info.rb +0 -190
  168. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/irb_integration.rb +0 -37
  169. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/local.rb +0 -115
  170. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/open.rb +0 -13
  171. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/open_nonstop.rb +0 -15
  172. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/prelude.rb +0 -50
  173. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server.rb +0 -534
  174. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server_cdp.rb +0 -1348
  175. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server_dap.rb +0 -1108
  176. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/session.rb +0 -2667
  177. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/source_repository.rb +0 -150
  178. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/start.rb +0 -5
  179. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/thread_client.rb +0 -1457
  180. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/tracer.rb +0 -241
  181. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/version.rb +0 -5
  182. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug.rb +0 -9
  183. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/misc/README.md.erb +0 -660
  184. package/lib/ruby/gems/3.4.0/gems/drb-2.2.1/drb.gemspec +0 -41
  185. package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/getoptlong.gemspec +0 -30
  186. package/lib/ruby/gems/3.4.0/gems/matrix-0.4.2/matrix.gemspec +0 -26
  187. package/lib/ruby/gems/3.4.0/gems/minitest-5.25.4/.autotest +0 -34
  188. package/lib/ruby/gems/3.4.0/gems/net-ftp-0.3.8/net-ftp.gemspec +0 -34
  189. package/lib/ruby/gems/3.4.0/gems/net-imap-0.5.15/net-imap.gemspec +0 -38
  190. package/lib/ruby/gems/3.4.0/gems/net-pop-0.1.2/net-pop.gemspec +0 -32
  191. package/lib/ruby/gems/3.4.0/gems/net-smtp-0.5.1/net-smtp.gemspec +0 -31
  192. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/.bundled.nkf-0.2.0.gemspec +0 -24
  193. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/Gemfile +0 -5
  194. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/LICENSE.txt +0 -22
  195. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/README.md +0 -38
  196. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/Rakefile +0 -24
  197. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/bin/console +0 -14
  198. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/bin/setup +0 -8
  199. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/lib/kconv.rb +0 -283
  200. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/lib/nkf.rb +0 -6
  201. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/nkf-0.2.0.gemspec +0 -24
  202. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/nkf.gemspec +0 -43
  203. package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/observer.gemspec +0 -32
  204. package/lib/ruby/gems/3.4.0/gems/power_assert-2.0.5/power_assert.gemspec +0 -24
  205. package/lib/ruby/gems/3.4.0/gems/prime-0.1.3/prime.gemspec +0 -28
  206. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/.bundled.racc-1.8.1.gemspec +0 -26
  207. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/BSDL +0 -22
  208. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/COPYING +0 -56
  209. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/ChangeLog +0 -846
  210. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/README.ja.rdoc +0 -58
  211. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/README.rdoc +0 -60
  212. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/TODO +0 -5
  213. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/bin/racc +0 -320
  214. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/en/grammar.en.rdoc +0 -218
  215. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/en/grammar2.en.rdoc +0 -219
  216. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/command.ja.html +0 -99
  217. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/debug.ja.rdoc +0 -36
  218. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/grammar.ja.rdoc +0 -348
  219. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/index.ja.html +0 -10
  220. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/parser.ja.rdoc +0 -125
  221. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/usage.ja.html +0 -414
  222. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/compat.rb +0 -33
  223. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/debugflags.rb +0 -60
  224. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/exception.rb +0 -16
  225. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/grammar.rb +0 -1191
  226. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/grammarfileparser.rb +0 -667
  227. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/info.rb +0 -18
  228. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/iset.rb +0 -92
  229. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/logfilegenerator.rb +0 -212
  230. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parser-text.rb +0 -644
  231. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parser.rb +0 -630
  232. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parserfilegenerator.rb +0 -473
  233. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/sourcetext.rb +0 -35
  234. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/state.rb +0 -976
  235. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/statetransitiontable.rb +0 -311
  236. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/static.rb +0 -5
  237. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc.rb +0 -6
  238. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/racc-1.8.1.gemspec +0 -26
  239. package/lib/ruby/gems/3.4.0/gems/rake-13.2.1/rake.gemspec +0 -101
  240. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/.bundled.rbs-3.8.0.gemspec +0 -25
  241. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/.rubocop.yml +0 -53
  242. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/BSDL +0 -22
  243. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/CHANGELOG.md +0 -1854
  244. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/COPYING +0 -56
  245. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/README.md +0 -203
  246. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/Rakefile +0 -415
  247. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/Steepfile +0 -44
  248. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/config.yml +0 -311
  249. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/array.rbs +0 -4062
  250. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/basic_object.rbs +0 -375
  251. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/binding.rbs +0 -150
  252. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/builtin.rbs +0 -277
  253. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/class.rbs +0 -220
  254. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/comparable.rbs +0 -171
  255. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/complex.rbs +0 -786
  256. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/constants.rbs +0 -96
  257. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/data.rbs +0 -415
  258. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/dir.rbs +0 -981
  259. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/encoding.rbs +0 -1371
  260. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerable.rbs +0 -2405
  261. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerator/product.rbs +0 -92
  262. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerator.rbs +0 -630
  263. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/env.rbs +0 -6
  264. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/errno.rbs +0 -673
  265. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/errors.rbs +0 -760
  266. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/exception.rbs +0 -376
  267. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/false_class.rbs +0 -82
  268. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/fiber.rbs +0 -550
  269. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/fiber_error.rbs +0 -11
  270. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/file.rbs +0 -2936
  271. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/file_test.rbs +0 -331
  272. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/float.rbs +0 -1151
  273. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/gc.rbs +0 -644
  274. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/global_variables.rbs +0 -184
  275. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/hash.rbs +0 -1861
  276. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/integer.rbs +0 -1413
  277. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io/buffer.rbs +0 -984
  278. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io/wait.rbs +0 -70
  279. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io.rbs +0 -3402
  280. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/kernel.rbs +0 -3054
  281. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/marshal.rbs +0 -207
  282. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/match_data.rbs +0 -635
  283. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/math.rbs +0 -729
  284. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/method.rbs +0 -386
  285. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/module.rbs +0 -1704
  286. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/nil_class.rbs +0 -209
  287. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/numeric.rbs +0 -818
  288. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object.rbs +0 -110
  289. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object_space/weak_key_map.rbs +0 -166
  290. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object_space.rbs +0 -190
  291. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/proc.rbs +0 -868
  292. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/process.rbs +0 -2296
  293. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/ractor.rbs +0 -1065
  294. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/random.rbs +0 -237
  295. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/range.rbs +0 -1107
  296. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rational.rbs +0 -531
  297. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rb_config.rbs +0 -88
  298. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/argf.rbs +0 -1229
  299. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/env_class.rbs +0 -1209
  300. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/random.rbs +0 -293
  301. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/refinement.rbs +0 -59
  302. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/regexp.rbs +0 -1928
  303. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/ruby_vm.rbs +0 -765
  304. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/basic_specification.rbs +0 -6
  305. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/config_file.rbs +0 -38
  306. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/dependency_installer.rbs +0 -6
  307. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/errors.rbs +0 -176
  308. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/installer.rbs +0 -15
  309. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/path_support.rbs +0 -6
  310. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/platform.rbs +0 -7
  311. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/request_set.rbs +0 -49
  312. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/requirement.rbs +0 -148
  313. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/rubygems.rbs +0 -1171
  314. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/source_list.rbs +0 -15
  315. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/specification.rbs +0 -23
  316. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/stream_ui.rbs +0 -5
  317. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/uninstaller.rbs +0 -10
  318. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/version.rbs +0 -294
  319. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/set.rbs +0 -621
  320. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/signal.rbs +0 -100
  321. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/string.rbs +0 -3583
  322. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/struct.rbs +0 -667
  323. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/symbol.rbs +0 -475
  324. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/thread.rbs +0 -1765
  325. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/thread_group.rbs +0 -79
  326. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/time.rbs +0 -1762
  327. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/trace_point.rbs +0 -477
  328. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/true_class.rbs +0 -98
  329. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/unbound_method.rbs +0 -329
  330. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/warning.rbs +0 -87
  331. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/CONTRIBUTING.md +0 -106
  332. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/architecture.md +0 -110
  333. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/collection.md +0 -192
  334. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/data_and_struct.md +0 -86
  335. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/gem.md +0 -57
  336. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/rbs_by_example.md +0 -309
  337. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/repo.md +0 -125
  338. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/sigs.md +0 -167
  339. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/stdlib.md +0 -147
  340. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/syntax.md +0 -905
  341. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/tools.md +0 -17
  342. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/exe/rbs +0 -7
  343. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/goodcheck.yml +0 -91
  344. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs/constants.h +0 -82
  345. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs/ruby_objs.h +0 -72
  346. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs.h +0 -7
  347. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ancestor_graph.rb +0 -92
  348. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/annotations.rb +0 -199
  349. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/formatter.rb +0 -92
  350. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/rdoc_annotator.rb +0 -400
  351. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/rdoc_source.rb +0 -131
  352. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate.rb +0 -8
  353. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/annotation.rb +0 -29
  354. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/comment.rb +0 -29
  355. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/declarations.rb +0 -467
  356. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/directives.rb +0 -39
  357. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/members.rb +0 -449
  358. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/type_param.rb +0 -225
  359. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/visitor.rb +0 -137
  360. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/buffer.rb +0 -67
  361. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/builtin_names.rb +0 -58
  362. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/colored_io.rb +0 -48
  363. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/diff.rb +0 -83
  364. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/validate.rb +0 -356
  365. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli.rb +0 -1223
  366. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/cleaner.rb +0 -38
  367. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config/lockfile.rb +0 -92
  368. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config/lockfile_generator.rb +0 -223
  369. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config.rb +0 -81
  370. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/installer.rb +0 -32
  371. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/base.rb +0 -14
  372. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/git.rb +0 -258
  373. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/local.rb +0 -81
  374. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/rubygems.rb +0 -48
  375. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/stdlib.rb +0 -50
  376. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources.rb +0 -38
  377. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection.rb +0 -16
  378. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/constant.rb +0 -28
  379. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition.rb +0 -395
  380. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder/ancestor_builder.rb +0 -620
  381. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder/method_builder.rb +0 -254
  382. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder.rb +0 -841
  383. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/diff.rb +0 -125
  384. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment/use_map.rb +0 -77
  385. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment.rb +0 -818
  386. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment_loader.rb +0 -173
  387. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment_walker.rb +0 -155
  388. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/errors.rb +0 -600
  389. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/factory.rb +0 -18
  390. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/file_finder.rb +0 -28
  391. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/location_aux.rb +0 -138
  392. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/locator.rb +0 -241
  393. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/method_type.rb +0 -141
  394. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/namespace.rb +0 -125
  395. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser/lex_result.rb +0 -15
  396. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser/token.rb +0 -23
  397. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser_aux.rb +0 -77
  398. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/helpers.rb +0 -140
  399. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/node_usage.rb +0 -99
  400. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/rb.rb +0 -840
  401. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/rbi.rb +0 -641
  402. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/helpers.rb +0 -59
  403. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/reflection.rb +0 -19
  404. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/value_object_generator.rb +0 -279
  405. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime.rb +0 -667
  406. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/repository.rb +0 -127
  407. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/resolver/constant_resolver.rb +0 -219
  408. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/resolver/type_name_resolver.rb +0 -91
  409. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/sorter.rb +0 -198
  410. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/substitution.rb +0 -83
  411. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/subtractor.rb +0 -201
  412. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/errors.rb +0 -80
  413. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/guaranteed.rb +0 -30
  414. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/hook.rb +0 -212
  415. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/observer.rb +0 -19
  416. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/setup.rb +0 -84
  417. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/setup_helper.rb +0 -50
  418. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/tester.rb +0 -167
  419. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/type_check.rb +0 -433
  420. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test.rb +0 -112
  421. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_alias_dependency.rb +0 -100
  422. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_alias_regularity.rb +0 -126
  423. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_name.rb +0 -109
  424. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/types.rb +0 -1557
  425. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/convertibles.rb +0 -176
  426. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/spy.rb +0 -136
  427. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/type_assertions.rb +0 -341
  428. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/with_aliases.rb +0 -143
  429. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test.rb +0 -6
  430. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/validator.rb +0 -182
  431. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/variance_calculator.rb +0 -189
  432. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/vendorer.rb +0 -71
  433. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/version.rb +0 -5
  434. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/writer.rb +0 -419
  435. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs.rb +0 -93
  436. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rdoc/discover.rb +0 -20
  437. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rdoc_plugin/parser.rb +0 -163
  438. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/rbs-3.8.0.gemspec +0 -29
  439. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/rbs.gemspec +0 -49
  440. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/annotation.json +0 -14
  441. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/comment.json +0 -26
  442. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/decls.json +0 -326
  443. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/function.json +0 -87
  444. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/location.json +0 -56
  445. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/members.json +0 -266
  446. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/methodType.json +0 -50
  447. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/typeParam.json +0 -36
  448. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/types.json +0 -317
  449. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/ancestor_builder.rbs +0 -163
  450. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/ancestor_graph.rbs +0 -60
  451. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/annotations.rbs +0 -102
  452. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/formatter.rbs +0 -24
  453. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/rdoc_annotater.rbs +0 -82
  454. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/rdoc_source.rbs +0 -30
  455. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotation.rbs +0 -27
  456. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/buffer.rbs +0 -32
  457. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/builtin_names.rbs +0 -44
  458. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/colored_io.rbs +0 -15
  459. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/diff.rbs +0 -21
  460. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/validate.rbs +0 -43
  461. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli.rbs +0 -87
  462. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/cleaner.rbs +0 -13
  463. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config/lockfile.rbs +0 -74
  464. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config/lockfile_generator.rbs +0 -66
  465. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config.rbs +0 -46
  466. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/installer.rbs +0 -17
  467. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/sources.rbs +0 -214
  468. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection.rbs +0 -4
  469. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/comment.rbs +0 -26
  470. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/constant.rbs +0 -21
  471. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/declarations.rbs +0 -267
  472. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/definition.rbs +0 -173
  473. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/definition_builder.rbs +0 -165
  474. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/diff.rbs +0 -28
  475. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/directives.rbs +0 -61
  476. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment.rbs +0 -277
  477. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment_loader.rbs +0 -111
  478. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment_walker.rbs +0 -65
  479. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/errors.rbs +0 -383
  480. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/factory.rbs +0 -5
  481. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/file_finder.rbs +0 -28
  482. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/location.rbs +0 -110
  483. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/locator.rbs +0 -58
  484. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/manifest.yaml +0 -7
  485. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/members.rbs +0 -258
  486. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/method_builder.rbs +0 -84
  487. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/method_types.rbs +0 -58
  488. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/namespace.rbs +0 -146
  489. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/parser.rbs +0 -96
  490. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/helpers.rbs +0 -27
  491. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/node_usage.rbs +0 -20
  492. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/rb.rbs +0 -96
  493. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/rbi.rbs +0 -75
  494. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/runtime.rbs +0 -182
  495. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/rbs.rbs +0 -21
  496. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/rdoc/rbs.rbs +0 -67
  497. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/repository.rbs +0 -85
  498. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/constant_resolver.rbs +0 -92
  499. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/context.rbs +0 -34
  500. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/type_name_resolver.rbs +0 -35
  501. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/bundler.rbs +0 -38
  502. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/enumerable.rbs +0 -5
  503. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/rubygems.rbs +0 -19
  504. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/sorter.rbs +0 -41
  505. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/substitution.rbs +0 -48
  506. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/subtractor.rbs +0 -37
  507. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/errors.rbs +0 -52
  508. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/guranteed.rbs +0 -9
  509. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/type_check.rbs +0 -19
  510. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test.rbs +0 -82
  511. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_alias_dependency.rbs +0 -53
  512. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_alias_regularity.rbs +0 -98
  513. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_param.rbs +0 -110
  514. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/typename.rbs +0 -79
  515. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/types.rbs +0 -576
  516. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/convertibles.rbs +0 -154
  517. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/spy.rbs +0 -28
  518. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/type_assertions.rbs +0 -194
  519. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/with_aliases.rbs +0 -136
  520. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/use_map.rbs +0 -35
  521. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/util.rbs +0 -9
  522. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/validator.rbs +0 -59
  523. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/variance_calculator.rbs +0 -87
  524. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/vendorer.rbs +0 -51
  525. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/version.rbs +0 -3
  526. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/visitor.rbs +0 -47
  527. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/writer.rbs +0 -127
  528. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/src/constants.c +0 -153
  529. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/src/ruby_objs.c +0 -793
  530. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/abbrev/0/abbrev.rbs +0 -66
  531. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/abbrev/0/array.rbs +0 -26
  532. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/base64/0/base64.rbs +0 -355
  533. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/benchmark/0/benchmark.rbs +0 -452
  534. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal/0/big_decimal.rbs +0 -1629
  535. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal-math/0/big_math.rbs +0 -119
  536. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal-math/0/manifest.yaml +0 -2
  537. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/cgi/0/core.rbs +0 -1285
  538. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/cgi/0/manifest.yaml +0 -3
  539. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/coverage/0/coverage.rbs +0 -263
  540. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/csv/0/csv.rbs +0 -3776
  541. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/csv/0/manifest.yaml +0 -3
  542. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/date.rbs +0 -1585
  543. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/date_time.rbs +0 -616
  544. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/time.rbs +0 -26
  545. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/dbm/0/dbm.rbs +0 -421
  546. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/delegator.rbs +0 -184
  547. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/kernel.rbs +0 -47
  548. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/simple_delegator.rbs +0 -96
  549. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/did_you_mean/0/did_you_mean.rbs +0 -343
  550. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/digest/0/digest.rbs +0 -577
  551. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/erb/0/erb.rbs +0 -532
  552. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/etc/0/etc.rbs +0 -865
  553. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/fileutils/0/fileutils.rbs +0 -1734
  554. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/find/0/find.rbs +0 -49
  555. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/forwardable/0/forwardable.rbs +0 -268
  556. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/io-console/0/io-console.rbs +0 -414
  557. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/ipaddr/0/ipaddr.rbs +0 -428
  558. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/json/0/json.rbs +0 -1914
  559. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/kconv/0/kconv.rbs +0 -166
  560. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/formatter.rbs +0 -45
  561. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/log_device.rbs +0 -100
  562. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/logger.rbs +0 -796
  563. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/manifest.yaml +0 -2
  564. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/period.rbs +0 -17
  565. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/severity.rbs +0 -34
  566. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/kernel.rbs +0 -42
  567. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/abstract_reporter.rbs +0 -52
  568. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/assertion.rbs +0 -17
  569. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/assertions.rbs +0 -590
  570. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/backtrace_filter.rbs +0 -23
  571. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/bench_spec.rbs +0 -102
  572. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/benchmark.rbs +0 -259
  573. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/composite_reporter.rbs +0 -25
  574. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/compress.rbs +0 -13
  575. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/error_on_warning.rbs +0 -3
  576. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/expectation.rbs +0 -2
  577. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/expectations.rbs +0 -21
  578. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/guard.rbs +0 -64
  579. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/mock.rbs +0 -64
  580. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/executor.rbs +0 -46
  581. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/test/class_methods.rbs +0 -5
  582. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/test.rbs +0 -3
  583. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel.rbs +0 -2
  584. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/pride_io.rbs +0 -62
  585. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/pride_lol.rbs +0 -19
  586. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/progress_reporter.rbs +0 -11
  587. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/reportable.rbs +0 -53
  588. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/reporter.rbs +0 -5
  589. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/result.rbs +0 -28
  590. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/runnable.rbs +0 -163
  591. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/skip.rbs +0 -6
  592. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec/dsl/instance_methods.rbs +0 -48
  593. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec/dsl.rbs +0 -129
  594. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec.rbs +0 -11
  595. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/statistics_reporter.rbs +0 -81
  596. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/summary_reporter.rbs +0 -18
  597. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/test/lifecycle_hooks.rbs +0 -92
  598. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/test.rbs +0 -69
  599. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unexpected_error.rbs +0 -12
  600. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unexpected_warning.rbs +0 -6
  601. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unit/test_case.rbs +0 -3
  602. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unit.rbs +0 -4
  603. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest.rbs +0 -115
  604. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/monitor/0/monitor.rbs +0 -354
  605. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/mutex_m/0/mutex_m.rbs +0 -104
  606. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-http/0/manifest.yaml +0 -3
  607. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-http/0/net-http.rbs +0 -5552
  608. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-protocol/0/manifest.yaml +0 -2
  609. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-protocol/0/net-protocol.rbs +0 -56
  610. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-smtp/0/manifest.yaml +0 -2
  611. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-smtp/0/net-smtp.rbs +0 -55
  612. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/nkf/0/nkf.rbs +0 -402
  613. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/objspace/0/objspace.rbs +0 -487
  614. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/observable/0/observable.rbs +0 -217
  615. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open-uri/0/manifest.yaml +0 -4
  616. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open-uri/0/open-uri.rbs +0 -393
  617. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open3/0/open3.rbs +0 -147
  618. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/openssl/0/manifest.yaml +0 -3
  619. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/openssl/0/openssl.rbs +0 -12113
  620. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/optparse/0/optparse.rbs +0 -1725
  621. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pathname/0/pathname.rbs +0 -1406
  622. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pp/0/manifest.yaml +0 -2
  623. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pp/0/pp.rbs +0 -300
  624. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/prettyprint/0/prettyprint.rbs +0 -383
  625. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pstore/0/pstore.rbs +0 -603
  626. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/core_ext.rbs +0 -12
  627. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/dbm.rbs +0 -237
  628. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/manifest.yaml +0 -3
  629. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/psych.rbs +0 -402
  630. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/store.rbs +0 -59
  631. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pty/0/pty.rbs +0 -237
  632. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/code_object.rbs +0 -51
  633. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/comment.rbs +0 -59
  634. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/context.rbs +0 -153
  635. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/markup.rbs +0 -117
  636. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/parser.rbs +0 -56
  637. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/rdoc.rbs +0 -391
  638. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/ri.rbs +0 -17
  639. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/store.rbs +0 -48
  640. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/top_level.rbs +0 -97
  641. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/resolv/0/manifest.yaml +0 -3
  642. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/resolv/0/resolv.rbs +0 -1830
  643. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/ripper/0/ripper.rbs +0 -1648
  644. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/securerandom/0/securerandom.rbs +0 -62
  645. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/shellwords/0/shellwords.rbs +0 -229
  646. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/singleton/0/singleton.rbs +0 -131
  647. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/addrinfo.rbs +0 -666
  648. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/basic_socket.rbs +0 -590
  649. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/constants.rbs +0 -2295
  650. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/ip_socket.rbs +0 -92
  651. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/socket.rbs +0 -4157
  652. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/socket_error.rbs +0 -5
  653. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/tcp_server.rbs +0 -192
  654. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/tcp_socket.rbs +0 -79
  655. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/udp_socket.rbs +0 -133
  656. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/unix_server.rbs +0 -169
  657. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/unix_socket.rbs +0 -170
  658. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/stringio/0/stringio.rbs +0 -567
  659. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/strscan/0/string_scanner.rbs +0 -1627
  660. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tempfile/0/tempfile.rbs +0 -479
  661. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/time/0/time.rbs +0 -432
  662. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/timeout/0/timeout.rbs +0 -81
  663. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tmpdir/0/tmpdir.rbs +0 -69
  664. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/cyclic.rbs +0 -5
  665. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/interfaces.rbs +0 -20
  666. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/tsort.rbs +0 -409
  667. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/common.rbs +0 -582
  668. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/file.rbs +0 -118
  669. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ftp.rbs +0 -13
  670. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/generic.rbs +0 -1108
  671. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/http.rbs +0 -104
  672. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/https.rbs +0 -14
  673. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ldap.rbs +0 -230
  674. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ldaps.rbs +0 -14
  675. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/mailto.rbs +0 -92
  676. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/rfc2396_parser.rbs +0 -189
  677. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/rfc3986_parser.rbs +0 -2
  678. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ws.rbs +0 -13
  679. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/wss.rbs +0 -9
  680. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/yaml/0/manifest.yaml +0 -2
  681. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/yaml/0/yaml.rbs +0 -1
  682. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/buf_error.rbs +0 -10
  683. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/data_error.rbs +0 -10
  684. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/deflate.rbs +0 -210
  685. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/error.rbs +0 -20
  686. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/crc_error.rbs +0 -12
  687. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/error.rbs +0 -23
  688. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/length_error.rbs +0 -12
  689. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/no_footer.rbs +0 -11
  690. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file.rbs +0 -156
  691. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_reader.rbs +0 -293
  692. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_writer.rbs +0 -166
  693. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/inflate.rbs +0 -180
  694. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/mem_error.rbs +0 -10
  695. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/need_dict.rbs +0 -13
  696. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/stream_end.rbs +0 -11
  697. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/stream_error.rbs +0 -11
  698. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/version_error.rbs +0 -11
  699. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/zlib.rbs +0 -449
  700. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/zstream.rbs +0 -200
  701. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/include/rbs/constants.h.erb +0 -20
  702. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/include/rbs/ruby_objs.h.erb +0 -10
  703. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/src/constants.c.erb +0 -36
  704. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/src/ruby_objs.c.erb +0 -27
  705. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/template.rb +0 -122
  706. package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/resolv-replace.gemspec +0 -22
  707. package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/rinda.gemspec +0 -35
  708. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/.bundled.syslog-0.2.0.gemspec +0 -23
  709. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/Gemfile +0 -5
  710. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/LICENSE.txt +0 -22
  711. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/README.md +0 -41
  712. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/Rakefile +0 -20
  713. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/bin/console +0 -14
  714. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/bin/setup +0 -8
  715. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/lib/syslog/logger.rb +0 -209
  716. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/lib/syslog.rb +0 -10
  717. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/syslog-0.2.0.gemspec +0 -23
  718. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/syslog.gemspec +0 -26
  719. package/lib/ruby/gems/3.4.0/gems/typeprof-0.30.1/typeprof.gemspec +0 -32
  720. package/lib/ruby/gems/3.4.0/specifications/bigdecimal-3.1.8.gemspec +0 -50
  721. package/lib/ruby/gems/3.4.0/specifications/debug-1.11.0.gemspec +0 -33
  722. package/lib/ruby/gems/3.4.0/specifications/nkf-0.2.0.gemspec +0 -43
  723. package/lib/ruby/gems/3.4.0/specifications/racc-1.8.1.gemspec +0 -26
  724. package/lib/ruby/gems/3.4.0/specifications/rbs-3.8.0.gemspec +0 -49
  725. package/lib/ruby/gems/3.4.0/specifications/syslog-0.2.0.gemspec +0 -26
@@ -1,1914 +0,0 @@
1
- interface _ToJson
2
- def to_json: (?JSON::State state) -> String
3
- end
4
-
5
- interface _JsonToWritableIO
6
- def to_io: () -> _JsonWrite
7
- end
8
-
9
- interface _JsonWrite
10
- def write: (String json) -> void
11
-
12
- def flush: () -> void
13
- end
14
-
15
- interface _JsonReadableIO
16
- def to_io: () -> _JsonRead
17
- end
18
-
19
- interface _JsonRead
20
- def read: () -> string
21
- end
22
-
23
- type json_options = Hash[Symbol, untyped]
24
-
25
- # <!-- rdoc-file=ext/json/lib/json/common.rb -->
26
- # The base exception for JSON errors.
27
- #
28
- class JSON::JSONError < StandardError
29
- end
30
-
31
- # <!-- rdoc-file=ext/json/lib/json/common.rb -->
32
- # This exception is raised if a generator or unparser error occurs.
33
- #
34
- class JSON::GeneratorError < JSON::JSONError
35
- end
36
-
37
- class JSON::UnparserError < JSON::GeneratorError
38
- end
39
-
40
- # <!-- rdoc-file=ext/json/lib/json/common.rb -->
41
- # This exception is raised if a parser error occurs.
42
- #
43
- class JSON::ParserError < JSON::JSONError
44
- end
45
-
46
- # <!-- rdoc-file=ext/json/lib/json/common.rb -->
47
- # This exception is raised if the nesting of parsed data structures is too deep.
48
- #
49
- class JSON::NestingError < JSON::ParserError
50
- end
51
-
52
- class JSON::State
53
- end
54
-
55
- # <!-- rdoc-file=ext/json/lib/json/ext.rb -->
56
- # This module holds all the modules/classes that implement JSON's functionality
57
- # as C extensions.
58
- #
59
- module JSON::Ext
60
- end
61
-
62
- # <!-- rdoc-file=ext/json/generator/generator.c -->
63
- # This is the JSON generator implemented as a C extension. It can be configured
64
- # to be used by setting
65
- #
66
- # JSON.generator = JSON::Ext::Generator
67
- #
68
- # with the method generator= in JSON.
69
- #
70
- module JSON::Ext::Generator
71
- end
72
-
73
- class JSON::Ext::Generator::State
74
- end
75
-
76
- # <!-- rdoc-file=ext/json/parser/parser.c -->
77
- # This is the JSON parser implemented as a C extension. It can be configured to
78
- # be used by setting
79
- #
80
- # JSON.parser = JSON::Ext::Parser
81
- #
82
- # with the method parser= in JSON.
83
- #
84
- class JSON::Ext::Parser
85
- end
86
-
87
- module JSON::Pure
88
- end
89
-
90
- module JSON::Pure::Generator
91
- end
92
-
93
- class JSON::Pure::Generator::State
94
- end
95
-
96
- class JSON::Pure::Parser
97
- end
98
-
99
- type json_generator = singleton(::JSON::Ext::Generator) | singleton(::JSON::Pure::Generator)
100
- type json_parser = singleton(::JSON::Ext::Parser) | singleton(::JSON::Pure::Parser)
101
- type json_state = singleton(JSON::Ext::Generator::State) | singleton(JSON::Pure::Generator::State)
102
-
103
- # <!-- rdoc-file=ext/json/lib/json.rb -->
104
- # # JavaScript Object Notation (JSON)
105
- #
106
- # JSON is a lightweight data-interchange format.
107
- #
108
- # A JSON value is one of the following:
109
- # * Double-quoted text: `"foo"`.
110
- # * Number: `1`, `1.0`, `2.0e2`.
111
- # * Boolean: `true`, `false`.
112
- # * Null: `null`.
113
- # * Array: an ordered list of values, enclosed by square brackets:
114
- # ["foo", 1, 1.0, 2.0e2, true, false, null]
115
- #
116
- # * Object: a collection of name/value pairs, enclosed by curly braces; each
117
- # name is double-quoted text; the values may be any JSON values:
118
- # {"a": "foo", "b": 1, "c": 1.0, "d": 2.0e2, "e": true, "f": false, "g": null}
119
- #
120
- # A JSON array or object may contain nested arrays, objects, and scalars to any
121
- # depth:
122
- # {"foo": {"bar": 1, "baz": 2}, "bat": [0, 1, 2]}
123
- # [{"foo": 0, "bar": 1}, ["baz", 2]]
124
- #
125
- # ## Using Module JSON
126
- #
127
- # To make module JSON available in your code, begin with:
128
- # require 'json'
129
- #
130
- # All examples here assume that this has been done.
131
- #
132
- # ### Parsing JSON
133
- #
134
- # You can parse a String containing JSON data using either of two methods:
135
- # * `JSON.parse(source, opts)`
136
- # * `JSON.parse!(source, opts)`
137
- #
138
- # where
139
- # * `source` is a Ruby object.
140
- # * `opts` is a Hash object containing options that control both input allowed
141
- # and output formatting.
142
- #
143
- # The difference between the two methods is that JSON.parse! omits some checks
144
- # and may not be safe for some `source` data; use it only for data from trusted
145
- # sources. Use the safer method JSON.parse for less trusted sources.
146
- #
147
- # #### Parsing JSON Arrays
148
- #
149
- # When `source` is a JSON array, JSON.parse by default returns a Ruby Array:
150
- # json = '["foo", 1, 1.0, 2.0e2, true, false, null]'
151
- # ruby = JSON.parse(json)
152
- # ruby # => ["foo", 1, 1.0, 200.0, true, false, nil]
153
- # ruby.class # => Array
154
- #
155
- # The JSON array may contain nested arrays, objects, and scalars to any depth:
156
- # json = '[{"foo": 0, "bar": 1}, ["baz", 2]]'
157
- # JSON.parse(json) # => [{"foo"=>0, "bar"=>1}, ["baz", 2]]
158
- #
159
- # #### Parsing JSON Objects
160
- #
161
- # When the source is a JSON object, JSON.parse by default returns a Ruby Hash:
162
- # json = '{"a": "foo", "b": 1, "c": 1.0, "d": 2.0e2, "e": true, "f": false, "g": null}'
163
- # ruby = JSON.parse(json)
164
- # ruby # => {"a"=>"foo", "b"=>1, "c"=>1.0, "d"=>200.0, "e"=>true, "f"=>false, "g"=>nil}
165
- # ruby.class # => Hash
166
- #
167
- # The JSON object may contain nested arrays, objects, and scalars to any depth:
168
- # json = '{"foo": {"bar": 1, "baz": 2}, "bat": [0, 1, 2]}'
169
- # JSON.parse(json) # => {"foo"=>{"bar"=>1, "baz"=>2}, "bat"=>[0, 1, 2]}
170
- #
171
- # #### Parsing JSON Scalars
172
- #
173
- # When the source is a JSON scalar (not an array or object), JSON.parse returns
174
- # a Ruby scalar.
175
- #
176
- # String:
177
- # ruby = JSON.parse('"foo"')
178
- # ruby # => 'foo'
179
- # ruby.class # => String
180
- #
181
- # Integer:
182
- # ruby = JSON.parse('1')
183
- # ruby # => 1
184
- # ruby.class # => Integer
185
- #
186
- # Float:
187
- # ruby = JSON.parse('1.0')
188
- # ruby # => 1.0
189
- # ruby.class # => Float
190
- # ruby = JSON.parse('2.0e2')
191
- # ruby # => 200
192
- # ruby.class # => Float
193
- #
194
- # Boolean:
195
- # ruby = JSON.parse('true')
196
- # ruby # => true
197
- # ruby.class # => TrueClass
198
- # ruby = JSON.parse('false')
199
- # ruby # => false
200
- # ruby.class # => FalseClass
201
- #
202
- # Null:
203
- # ruby = JSON.parse('null')
204
- # ruby # => nil
205
- # ruby.class # => NilClass
206
- #
207
- # #### Parsing Options
208
- #
209
- # ###### Input Options
210
- #
211
- # Option `max_nesting` (Integer) specifies the maximum nesting depth allowed;
212
- # defaults to `100`; specify `false` to disable depth checking.
213
- #
214
- # With the default, `false`:
215
- # source = '[0, [1, [2, [3]]]]'
216
- # ruby = JSON.parse(source)
217
- # ruby # => [0, [1, [2, [3]]]]
218
- #
219
- # Too deep:
220
- # # Raises JSON::NestingError (nesting of 2 is too deep):
221
- # JSON.parse(source, {max_nesting: 1})
222
- #
223
- # Bad value:
224
- # # Raises TypeError (wrong argument type Symbol (expected Fixnum)):
225
- # JSON.parse(source, {max_nesting: :foo})
226
- #
227
- # ---
228
- #
229
- # Option `allow_nan` (boolean) specifies whether to allow NaN, Infinity, and
230
- # MinusInfinity in `source`; defaults to `false`.
231
- #
232
- # With the default, `false`:
233
- # # Raises JSON::ParserError (225: unexpected token at '[NaN]'):
234
- # JSON.parse('[NaN]')
235
- # # Raises JSON::ParserError (232: unexpected token at '[Infinity]'):
236
- # JSON.parse('[Infinity]')
237
- # # Raises JSON::ParserError (248: unexpected token at '[-Infinity]'):
238
- # JSON.parse('[-Infinity]')
239
- #
240
- # Allow:
241
- # source = '[NaN, Infinity, -Infinity]'
242
- # ruby = JSON.parse(source, {allow_nan: true})
243
- # ruby # => [NaN, Infinity, -Infinity]
244
- #
245
- # ###### Output Options
246
- #
247
- # Option `symbolize_names` (boolean) specifies whether returned Hash keys should
248
- # be Symbols; defaults to `false` (use Strings).
249
- #
250
- # With the default, `false`:
251
- # source = '{"a": "foo", "b": 1.0, "c": true, "d": false, "e": null}'
252
- # ruby = JSON.parse(source)
253
- # ruby # => {"a"=>"foo", "b"=>1.0, "c"=>true, "d"=>false, "e"=>nil}
254
- #
255
- # Use Symbols:
256
- # ruby = JSON.parse(source, {symbolize_names: true})
257
- # ruby # => {:a=>"foo", :b=>1.0, :c=>true, :d=>false, :e=>nil}
258
- #
259
- # ---
260
- #
261
- # Option `object_class` (Class) specifies the Ruby class to be used for each
262
- # JSON object; defaults to Hash.
263
- #
264
- # With the default, Hash:
265
- # source = '{"a": "foo", "b": 1.0, "c": true, "d": false, "e": null}'
266
- # ruby = JSON.parse(source)
267
- # ruby.class # => Hash
268
- #
269
- # Use class OpenStruct:
270
- # ruby = JSON.parse(source, {object_class: OpenStruct})
271
- # ruby # => #<OpenStruct a="foo", b=1.0, c=true, d=false, e=nil>
272
- #
273
- # ---
274
- #
275
- # Option `array_class` (Class) specifies the Ruby class to be used for each JSON
276
- # array; defaults to Array.
277
- #
278
- # With the default, Array:
279
- # source = '["foo", 1.0, true, false, null]'
280
- # ruby = JSON.parse(source)
281
- # ruby.class # => Array
282
- #
283
- # Use class Set:
284
- # ruby = JSON.parse(source, {array_class: Set})
285
- # ruby # => #<Set: {"foo", 1.0, true, false, nil}>
286
- #
287
- # ---
288
- #
289
- # Option `create_additions` (boolean) specifies whether to use JSON additions in
290
- # parsing. See [\JSON Additions](#module-JSON-label-JSON+Additions).
291
- #
292
- # ### Generating JSON
293
- #
294
- # To generate a Ruby String containing JSON data, use method
295
- # `JSON.generate(source, opts)`, where
296
- # * `source` is a Ruby object.
297
- # * `opts` is a Hash object containing options that control both input allowed
298
- # and output formatting.
299
- #
300
- # #### Generating JSON from Arrays
301
- #
302
- # When the source is a Ruby Array, JSON.generate returns a String containing a
303
- # JSON array:
304
- # ruby = [0, 's', :foo]
305
- # json = JSON.generate(ruby)
306
- # json # => '[0,"s","foo"]'
307
- #
308
- # The Ruby Array array may contain nested arrays, hashes, and scalars to any
309
- # depth:
310
- # ruby = [0, [1, 2], {foo: 3, bar: 4}]
311
- # json = JSON.generate(ruby)
312
- # json # => '[0,[1,2],{"foo":3,"bar":4}]'
313
- #
314
- # #### Generating JSON from Hashes
315
- #
316
- # When the source is a Ruby Hash, JSON.generate returns a String containing a
317
- # JSON object:
318
- # ruby = {foo: 0, bar: 's', baz: :bat}
319
- # json = JSON.generate(ruby)
320
- # json # => '{"foo":0,"bar":"s","baz":"bat"}'
321
- #
322
- # The Ruby Hash array may contain nested arrays, hashes, and scalars to any
323
- # depth:
324
- # ruby = {foo: [0, 1], bar: {baz: 2, bat: 3}, bam: :bad}
325
- # json = JSON.generate(ruby)
326
- # json # => '{"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"}'
327
- #
328
- # #### Generating JSON from Other Objects
329
- #
330
- # When the source is neither an Array nor a Hash, the generated JSON data
331
- # depends on the class of the source.
332
- #
333
- # When the source is a Ruby Integer or Float, JSON.generate returns a String
334
- # containing a JSON number:
335
- # JSON.generate(42) # => '42'
336
- # JSON.generate(0.42) # => '0.42'
337
- #
338
- # When the source is a Ruby String, JSON.generate returns a String containing a
339
- # JSON string (with double-quotes):
340
- # JSON.generate('A string') # => '"A string"'
341
- #
342
- # When the source is `true`, `false` or `nil`, JSON.generate returns a String
343
- # containing the corresponding JSON token:
344
- # JSON.generate(true) # => 'true'
345
- # JSON.generate(false) # => 'false'
346
- # JSON.generate(nil) # => 'null'
347
- #
348
- # When the source is none of the above, JSON.generate returns a String
349
- # containing a JSON string representation of the source:
350
- # JSON.generate(:foo) # => '"foo"'
351
- # JSON.generate(Complex(0, 0)) # => '"0+0i"'
352
- # JSON.generate(Dir.new('.')) # => '"#<Dir>"'
353
- #
354
- # #### Generating Options
355
- #
356
- # ###### Input Options
357
- #
358
- # Option `allow_nan` (boolean) specifies whether `NaN`, `Infinity`, and
359
- # `-Infinity` may be generated; defaults to `false`.
360
- #
361
- # With the default, `false`:
362
- # # Raises JSON::GeneratorError (920: NaN not allowed in JSON):
363
- # JSON.generate(JSON::NaN)
364
- # # Raises JSON::GeneratorError (917: Infinity not allowed in JSON):
365
- # JSON.generate(JSON::Infinity)
366
- # # Raises JSON::GeneratorError (917: -Infinity not allowed in JSON):
367
- # JSON.generate(JSON::MinusInfinity)
368
- #
369
- # Allow:
370
- # ruby = [Float::NaN, Float::Infinity, Float::MinusInfinity]
371
- # JSON.generate(ruby, allow_nan: true) # => '[NaN,Infinity,-Infinity]'
372
- #
373
- # ---
374
- #
375
- # Option `max_nesting` (Integer) specifies the maximum nesting depth in `obj`;
376
- # defaults to `100`.
377
- #
378
- # With the default, `100`:
379
- # obj = [[[[[[0]]]]]]
380
- # JSON.generate(obj) # => '[[[[[[0]]]]]]'
381
- #
382
- # Too deep:
383
- # # Raises JSON::NestingError (nesting of 2 is too deep):
384
- # JSON.generate(obj, max_nesting: 2)
385
- #
386
- # ###### Escaping Options
387
- #
388
- # Options `script_safe` (boolean) specifies wether `'\u2028'`, `'\u2029'` and
389
- # `'/'` should be escaped as to make the JSON object safe to interpolate in
390
- # script tags.
391
- #
392
- # Options `ascii_only` (boolean) specifies wether all characters outside the
393
- # ASCII range should be escaped.
394
- #
395
- # ###### Output Options
396
- #
397
- # The default formatting options generate the most compact JSON data, all on one
398
- # line and with no whitespace.
399
- #
400
- # You can use these formatting options to generate JSON data in a more open
401
- # format, using whitespace. See also JSON.pretty_generate.
402
- #
403
- # * Option `array_nl` (String) specifies a string (usually a newline) to be
404
- # inserted after each JSON array; defaults to the empty String, `''`.
405
- # * Option `object_nl` (String) specifies a string (usually a newline) to be
406
- # inserted after each JSON object; defaults to the empty String, `''`.
407
- # * Option `indent` (String) specifies the string (usually spaces) to be used
408
- # for indentation; defaults to the empty String, `''`; defaults to the empty
409
- # String, `''`; has no effect unless options `array_nl` or `object_nl`
410
- # specify newlines.
411
- # * Option `space` (String) specifies a string (usually a space) to be
412
- # inserted after the colon in each JSON object's pair; defaults to the empty
413
- # String, `''`.
414
- # * Option `space_before` (String) specifies a string (usually a space) to be
415
- # inserted before the colon in each JSON object's pair; defaults to the
416
- # empty String, `''`.
417
- #
418
- # In this example, `obj` is used first to generate the shortest JSON data (no
419
- # whitespace), then again with all formatting options specified:
420
- #
421
- # obj = {foo: [:bar, :baz], bat: {bam: 0, bad: 1}}
422
- # json = JSON.generate(obj)
423
- # puts 'Compact:', json
424
- # opts = {
425
- # array_nl: "\n",
426
- # object_nl: "\n",
427
- # indent: ' ',
428
- # space_before: ' ',
429
- # space: ' '
430
- # }
431
- # puts 'Open:', JSON.generate(obj, opts)
432
- #
433
- # Output:
434
- # Compact:
435
- # {"foo":["bar","baz"],"bat":{"bam":0,"bad":1}}
436
- # Open:
437
- # {
438
- # "foo" : [
439
- # "bar",
440
- # "baz"
441
- # ],
442
- # "bat" : {
443
- # "bam" : 0,
444
- # "bad" : 1
445
- # }
446
- # }
447
- #
448
- # ## JSON Additions
449
- #
450
- # When you "round trip" a non-String object from Ruby to JSON and back, you have
451
- # a new String, instead of the object you began with:
452
- # ruby0 = Range.new(0, 2)
453
- # json = JSON.generate(ruby0)
454
- # json # => '0..2"'
455
- # ruby1 = JSON.parse(json)
456
- # ruby1 # => '0..2'
457
- # ruby1.class # => String
458
- #
459
- # You can use JSON *additions* to preserve the original object. The addition is
460
- # an extension of a ruby class, so that:
461
- # * JSON.generate stores more information in the JSON string.
462
- # * JSON.parse, called with option `create_additions`, uses that information
463
- # to create a proper Ruby object.
464
- #
465
- # This example shows a Range being generated into JSON and parsed back into
466
- # Ruby, both without and with the addition for Range:
467
- # ruby = Range.new(0, 2)
468
- # # This passage does not use the addition for Range.
469
- # json0 = JSON.generate(ruby)
470
- # ruby0 = JSON.parse(json0)
471
- # # This passage uses the addition for Range.
472
- # require 'json/add/range'
473
- # json1 = JSON.generate(ruby)
474
- # ruby1 = JSON.parse(json1, create_additions: true)
475
- # # Make a nice display.
476
- # display = <<~EOT
477
- # Generated JSON:
478
- # Without addition: #{json0} (#{json0.class})
479
- # With addition: #{json1} (#{json1.class})
480
- # Parsed JSON:
481
- # Without addition: #{ruby0.inspect} (#{ruby0.class})
482
- # With addition: #{ruby1.inspect} (#{ruby1.class})
483
- # EOT
484
- # puts display
485
- #
486
- # This output shows the different results:
487
- # Generated JSON:
488
- # Without addition: "0..2" (String)
489
- # With addition: {"json_class":"Range","a":[0,2,false]} (String)
490
- # Parsed JSON:
491
- # Without addition: "0..2" (String)
492
- # With addition: 0..2 (Range)
493
- #
494
- # The JSON module includes additions for certain classes. You can also craft
495
- # custom additions. See [Custom \JSON
496
- # Additions](#module-JSON-label-Custom+JSON+Additions).
497
- #
498
- # ### Built-in Additions
499
- #
500
- # The JSON module includes additions for certain classes. To use an addition,
501
- # `require` its source:
502
- # * BigDecimal: `require 'json/add/bigdecimal'`
503
- # * Complex: `require 'json/add/complex'`
504
- # * Date: `require 'json/add/date'`
505
- # * DateTime: `require 'json/add/date_time'`
506
- # * Exception: `require 'json/add/exception'`
507
- # * OpenStruct: `require 'json/add/ostruct'`
508
- # * Range: `require 'json/add/range'`
509
- # * Rational: `require 'json/add/rational'`
510
- # * Regexp: `require 'json/add/regexp'`
511
- # * Set: `require 'json/add/set'`
512
- # * Struct: `require 'json/add/struct'`
513
- # * Symbol: `require 'json/add/symbol'`
514
- # * Time: `require 'json/add/time'`
515
- #
516
- # To reduce punctuation clutter, the examples below show the generated JSON via
517
- # `puts`, rather than the usual `inspect`,
518
- #
519
- # BigDecimal:
520
- # require 'json/add/bigdecimal'
521
- # ruby0 = BigDecimal(0) # 0.0
522
- # json = JSON.generate(ruby0) # {"json_class":"BigDecimal","b":"27:0.0"}
523
- # ruby1 = JSON.parse(json, create_additions: true) # 0.0
524
- # ruby1.class # => BigDecimal
525
- #
526
- # Complex:
527
- # require 'json/add/complex'
528
- # ruby0 = Complex(1+0i) # 1+0i
529
- # json = JSON.generate(ruby0) # {"json_class":"Complex","r":1,"i":0}
530
- # ruby1 = JSON.parse(json, create_additions: true) # 1+0i
531
- # ruby1.class # Complex
532
- #
533
- # Date:
534
- # require 'json/add/date'
535
- # ruby0 = Date.today # 2020-05-02
536
- # json = JSON.generate(ruby0) # {"json_class":"Date","y":2020,"m":5,"d":2,"sg":2299161.0}
537
- # ruby1 = JSON.parse(json, create_additions: true) # 2020-05-02
538
- # ruby1.class # Date
539
- #
540
- # DateTime:
541
- # require 'json/add/date_time'
542
- # ruby0 = DateTime.now # 2020-05-02T10:38:13-05:00
543
- # json = JSON.generate(ruby0) # {"json_class":"DateTime","y":2020,"m":5,"d":2,"H":10,"M":38,"S":13,"of":"-5/24","sg":2299161.0}
544
- # ruby1 = JSON.parse(json, create_additions: true) # 2020-05-02T10:38:13-05:00
545
- # ruby1.class # DateTime
546
- #
547
- # Exception (and its subclasses including RuntimeError):
548
- # require 'json/add/exception'
549
- # ruby0 = Exception.new('A message') # A message
550
- # json = JSON.generate(ruby0) # {"json_class":"Exception","m":"A message","b":null}
551
- # ruby1 = JSON.parse(json, create_additions: true) # A message
552
- # ruby1.class # Exception
553
- # ruby0 = RuntimeError.new('Another message') # Another message
554
- # json = JSON.generate(ruby0) # {"json_class":"RuntimeError","m":"Another message","b":null}
555
- # ruby1 = JSON.parse(json, create_additions: true) # Another message
556
- # ruby1.class # RuntimeError
557
- #
558
- # OpenStruct:
559
- # require 'json/add/ostruct'
560
- # ruby0 = OpenStruct.new(name: 'Matz', language: 'Ruby') # #<OpenStruct name="Matz", language="Ruby">
561
- # json = JSON.generate(ruby0) # {"json_class":"OpenStruct","t":{"name":"Matz","language":"Ruby"}}
562
- # ruby1 = JSON.parse(json, create_additions: true) # #<OpenStruct name="Matz", language="Ruby">
563
- # ruby1.class # OpenStruct
564
- #
565
- # Range:
566
- # require 'json/add/range'
567
- # ruby0 = Range.new(0, 2) # 0..2
568
- # json = JSON.generate(ruby0) # {"json_class":"Range","a":[0,2,false]}
569
- # ruby1 = JSON.parse(json, create_additions: true) # 0..2
570
- # ruby1.class # Range
571
- #
572
- # Rational:
573
- # require 'json/add/rational'
574
- # ruby0 = Rational(1, 3) # 1/3
575
- # json = JSON.generate(ruby0) # {"json_class":"Rational","n":1,"d":3}
576
- # ruby1 = JSON.parse(json, create_additions: true) # 1/3
577
- # ruby1.class # Rational
578
- #
579
- # Regexp:
580
- # require 'json/add/regexp'
581
- # ruby0 = Regexp.new('foo') # (?-mix:foo)
582
- # json = JSON.generate(ruby0) # {"json_class":"Regexp","o":0,"s":"foo"}
583
- # ruby1 = JSON.parse(json, create_additions: true) # (?-mix:foo)
584
- # ruby1.class # Regexp
585
- #
586
- # Set:
587
- # require 'json/add/set'
588
- # ruby0 = Set.new([0, 1, 2]) # #<Set: {0, 1, 2}>
589
- # json = JSON.generate(ruby0) # {"json_class":"Set","a":[0,1,2]}
590
- # ruby1 = JSON.parse(json, create_additions: true) # #<Set: {0, 1, 2}>
591
- # ruby1.class # Set
592
- #
593
- # Struct:
594
- # require 'json/add/struct'
595
- # Customer = Struct.new(:name, :address) # Customer
596
- # ruby0 = Customer.new("Dave", "123 Main") # #<struct Customer name="Dave", address="123 Main">
597
- # json = JSON.generate(ruby0) # {"json_class":"Customer","v":["Dave","123 Main"]}
598
- # ruby1 = JSON.parse(json, create_additions: true) # #<struct Customer name="Dave", address="123 Main">
599
- # ruby1.class # Customer
600
- #
601
- # Symbol:
602
- # require 'json/add/symbol'
603
- # ruby0 = :foo # foo
604
- # json = JSON.generate(ruby0) # {"json_class":"Symbol","s":"foo"}
605
- # ruby1 = JSON.parse(json, create_additions: true) # foo
606
- # ruby1.class # Symbol
607
- #
608
- # Time:
609
- # require 'json/add/time'
610
- # ruby0 = Time.now # 2020-05-02 11:28:26 -0500
611
- # json = JSON.generate(ruby0) # {"json_class":"Time","s":1588436906,"n":840560000}
612
- # ruby1 = JSON.parse(json, create_additions: true) # 2020-05-02 11:28:26 -0500
613
- # ruby1.class # Time
614
- #
615
- # ### Custom JSON Additions
616
- #
617
- # In addition to the JSON additions provided, you can craft JSON additions of
618
- # your own, either for Ruby built-in classes or for user-defined classes.
619
- #
620
- # Here's a user-defined class `Foo`:
621
- # class Foo
622
- # attr_accessor :bar, :baz
623
- # def initialize(bar, baz)
624
- # self.bar = bar
625
- # self.baz = baz
626
- # end
627
- # end
628
- #
629
- # Here's the JSON addition for it:
630
- # # Extend class Foo with JSON addition.
631
- # class Foo
632
- # # Serialize Foo object with its class name and arguments
633
- # def to_json(*args)
634
- # {
635
- # JSON.create_id => self.class.name,
636
- # 'a' => [ bar, baz ]
637
- # }.to_json(*args)
638
- # end
639
- # # Deserialize JSON string by constructing new Foo object with arguments.
640
- # def self.json_create(object)
641
- # new(*object['a'])
642
- # end
643
- # end
644
- #
645
- # Demonstration:
646
- # require 'json'
647
- # # This Foo object has no custom addition.
648
- # foo0 = Foo.new(0, 1)
649
- # json0 = JSON.generate(foo0)
650
- # obj0 = JSON.parse(json0)
651
- # # Lood the custom addition.
652
- # require_relative 'foo_addition'
653
- # # This foo has the custom addition.
654
- # foo1 = Foo.new(0, 1)
655
- # json1 = JSON.generate(foo1)
656
- # obj1 = JSON.parse(json1, create_additions: true)
657
- # # Make a nice display.
658
- # display = <<~EOT
659
- # Generated JSON:
660
- # Without custom addition: #{json0} (#{json0.class})
661
- # With custom addition: #{json1} (#{json1.class})
662
- # Parsed JSON:
663
- # Without custom addition: #{obj0.inspect} (#{obj0.class})
664
- # With custom addition: #{obj1.inspect} (#{obj1.class})
665
- # EOT
666
- # puts display
667
- #
668
- # Output:
669
- #
670
- # Generated JSON:
671
- # Without custom addition: "#<Foo:0x0000000006534e80>" (String)
672
- # With custom addition: {"json_class":"Foo","a":[0,1]} (String)
673
- # Parsed JSON:
674
- # Without custom addition: "#<Foo:0x0000000006534e80>" (String)
675
- # With custom addition: #<Foo:0x0000000006473bb8 @bar=0, @baz=1> (Foo)
676
- #
677
- module JSON
678
- # <!--
679
- # rdoc-file=ext/json/lib/json/common.rb
680
- # - JSON[object] -> new_array or new_string
681
- # -->
682
- # If `object` is a String, calls JSON.parse with `object` and `opts` (see method
683
- # #parse):
684
- # json = '[0, 1, null]'
685
- # JSON[json]# => [0, 1, nil]
686
- #
687
- # Otherwise, calls JSON.generate with `object` and `opts` (see method
688
- # #generate):
689
- # ruby = [0, 1, nil]
690
- # JSON[ruby] # => '[0,1,null]'
691
- #
692
- def self.[]: (untyped object, ?json_options opts) -> untyped
693
-
694
- # <!--
695
- # rdoc-file=ext/json/lib/json/common.rb
696
- # - create_id()
697
- # -->
698
- # Returns the current create identifier. See also JSON.create_id=.
699
- #
700
- def self.create_id: () -> _ToS
701
-
702
- # <!--
703
- # rdoc-file=ext/json/lib/json/common.rb
704
- # - create_id=(new_value)
705
- # -->
706
- # Sets create identifier, which is used to decide if the *json_create* hook of a
707
- # class should be called; initial value is `json_class`:
708
- # JSON.create_id # => 'json_class'
709
- #
710
- def self.create_id=: (_ToS create_id) -> _ToS
711
-
712
- def self.deep_const_get: (interned path) -> untyped
713
-
714
- # <!--
715
- # rdoc-file=ext/json/lib/json/common.rb
716
- # - JSON.dump(obj, io = nil, limit = nil)
717
- # -->
718
- # Dumps `obj` as a JSON string, i.e. calls generate on the object and returns
719
- # the result.
720
- #
721
- # The default options can be changed via method JSON.dump_default_options.
722
- #
723
- # * Argument `io`, if given, should respond to method `write`; the JSON String
724
- # is written to `io`, and `io` is returned. If `io` is not given, the JSON
725
- # String is returned.
726
- # * Argument `limit`, if given, is passed to JSON.generate as option
727
- # `max_nesting`.
728
- #
729
- # ---
730
- #
731
- # When argument `io` is not given, returns the JSON String generated from `obj`:
732
- # obj = {foo: [0, 1], bar: {baz: 2, bat: 3}, bam: :bad}
733
- # json = JSON.dump(obj)
734
- # json # => "{\"foo\":[0,1],\"bar\":{\"baz\":2,\"bat\":3},\"bam\":\"bad\"}"
735
- #
736
- # When argument `io` is given, writes the JSON String to `io` and returns `io`:
737
- # path = 't.json'
738
- # File.open(path, 'w') do |file|
739
- # JSON.dump(obj, file)
740
- # end # => #<File:t.json (closed)>
741
- # puts File.read(path)
742
- #
743
- # Output:
744
- # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"}
745
- #
746
- def self?.dump: (_ToJson obj, ?Integer limit) -> String
747
- | (_ToJson obj, _JsonToWritableIO anIO) -> _JsonWrite
748
- | (_ToJson obj, _JsonWrite anIO, ?Integer limit) -> _JsonWrite
749
-
750
- # <!-- rdoc-file=ext/json/lib/json/common.rb -->
751
- # Sets or returns the default options for the JSON.dump method. Initially:
752
- # opts = JSON.dump_default_options
753
- # opts # => {:max_nesting=>false, :allow_nan=>true}
754
- #
755
- def self.dump_default_options: () -> json_options
756
-
757
- # <!-- rdoc-file=ext/json/lib/json/common.rb -->
758
- # Sets or returns the default options for the JSON.dump method. Initially:
759
- # opts = JSON.dump_default_options
760
- # opts # => {:max_nesting=>false, :allow_nan=>true}
761
- #
762
- def self.dump_default_options=: (json_options) -> json_options
763
-
764
- # <!--
765
- # rdoc-file=ext/json/lib/json/common.rb
766
- # - JSON.fast_generate(obj, opts) -> new_string
767
- # -->
768
- # Arguments `obj` and `opts` here are the same as arguments `obj` and `opts` in
769
- # JSON.generate.
770
- #
771
- # By default, generates JSON data without checking for circular references in
772
- # `obj` (option `max_nesting` set to `false`, disabled).
773
- #
774
- # Raises an exception if `obj` contains circular references:
775
- # a = []; b = []; a.push(b); b.push(a)
776
- # # Raises SystemStackError (stack level too deep):
777
- # JSON.fast_generate(a)
778
- #
779
- def self?.fast_generate: (_ToJson obj, ?json_options opts) -> String
780
-
781
- alias self.fast_unparse self.fast_generate
782
-
783
- alias fast_unparse fast_generate
784
-
785
- # <!--
786
- # rdoc-file=ext/json/lib/json/common.rb
787
- # - JSON.generate(obj, opts = nil) -> new_string
788
- # -->
789
- # Returns a String containing the generated JSON data.
790
- #
791
- # See also JSON.fast_generate, JSON.pretty_generate.
792
- #
793
- # Argument `obj` is the Ruby object to be converted to JSON.
794
- #
795
- # Argument `opts`, if given, contains a Hash of options for the generation. See
796
- # [Generating Options](#module-JSON-label-Generating+Options).
797
- #
798
- # ---
799
- #
800
- # When `obj` is an Array, returns a String containing a JSON array:
801
- # obj = ["foo", 1.0, true, false, nil]
802
- # json = JSON.generate(obj)
803
- # json # => '["foo",1.0,true,false,null]'
804
- #
805
- # When `obj` is a Hash, returns a String containing a JSON object:
806
- # obj = {foo: 0, bar: 's', baz: :bat}
807
- # json = JSON.generate(obj)
808
- # json # => '{"foo":0,"bar":"s","baz":"bat"}'
809
- #
810
- # For examples of generating from other Ruby objects, see [Generating \JSON from
811
- # Other Objects](#module-JSON-label-Generating+JSON+from+Other+Objects).
812
- #
813
- # ---
814
- #
815
- # Raises an exception if any formatting option is not a String.
816
- #
817
- # Raises an exception if `obj` contains circular references:
818
- # a = []; b = []; a.push(b); b.push(a)
819
- # # Raises JSON::NestingError (nesting of 100 is too deep):
820
- # JSON.generate(a)
821
- #
822
- def self?.generate: (_ToJson obj, ?json_options opts) -> String
823
-
824
- # <!-- rdoc-file=ext/json/lib/json/common.rb -->
825
- # Returns the JSON generator module that is used by JSON.
826
- #
827
- def self.generator: () -> json_generator
828
-
829
- def self.generator=: (json_generator generator) -> void
830
-
831
- # <!--
832
- # rdoc-file=ext/json/lib/json/common.rb
833
- # - iconv(to, from, string)
834
- # -->
835
- # Encodes string using String.encode.
836
- #
837
- def self.iconv: (encoding to, encoding from, String string) -> String
838
-
839
- # <!--
840
- # rdoc-file=ext/json/lib/json/common.rb
841
- # - JSON.load(source, proc = nil, options = {}) -> object
842
- # -->
843
- # Returns the Ruby objects created by parsing the given `source`.
844
- #
845
- # BEWARE: This method is meant to serialise data from trusted user input, like
846
- # from your own database server or clients under your control, it could be
847
- # dangerous to allow untrusted users to pass JSON sources into it. If you must
848
- # use it, use JSON.unsafe_load instead to make it clear.
849
- #
850
- # Since JSON version 2.8.0, `load` emits a deprecation warning when a non native
851
- # type is deserialized, without `create_additions` being explicitly enabled, and
852
- # in JSON version 3.0, `load` will have `create_additions` disabled by default.
853
- #
854
- # * Argument `source` must be, or be convertible to, a String:
855
- # * If `source` responds to instance method `to_str`, `source.to_str`
856
- # becomes the source.
857
- # * If `source` responds to instance method `to_io`, `source.to_io.read`
858
- # becomes the source.
859
- # * If `source` responds to instance method `read`, `source.read` becomes
860
- # the source.
861
- # * If both of the following are true, source becomes the String `'null'`:
862
- # * Option `allow_blank` specifies a truthy value.
863
- # * The source, as defined above, is `nil` or the empty String `''`.
864
- # * Otherwise, `source` remains the source.
865
- # * Argument `proc`, if given, must be a Proc that accepts one argument. It
866
- # will be called recursively with each result (depth-first order). See
867
- # details below.
868
- # * Argument `opts`, if given, contains a Hash of options for the parsing. See
869
- # [Parsing Options](#module-JSON-label-Parsing+Options). The default options
870
- # can be changed via method JSON.load_default_options=.
871
- #
872
- # ---
873
- #
874
- # When no `proc` is given, modifies `source` as above and returns the result of
875
- # `parse(source, opts)`; see #parse.
876
- #
877
- # Source for following examples:
878
- # source = <<~JSON
879
- # {
880
- # "name": "Dave",
881
- # "age" :40,
882
- # "hats": [
883
- # "Cattleman's",
884
- # "Panama",
885
- # "Tophat"
886
- # ]
887
- # }
888
- # JSON
889
- #
890
- # Load a String:
891
- # ruby = JSON.load(source)
892
- # ruby # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]}
893
- #
894
- # Load an IO object:
895
- # require 'stringio'
896
- # object = JSON.load(StringIO.new(source))
897
- # object # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]}
898
- #
899
- # Load a File object:
900
- # path = 't.json'
901
- # File.write(path, source)
902
- # File.open(path) do |file|
903
- # JSON.load(file)
904
- # end # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]}
905
- #
906
- # ---
907
- #
908
- # When `proc` is given:
909
- # * Modifies `source` as above.
910
- # * Gets the `result` from calling `parse(source, opts)`.
911
- # * Recursively calls `proc(result)`.
912
- # * Returns the final result.
913
- #
914
- # Example:
915
- # require 'json'
916
- #
917
- # # Some classes for the example.
918
- # class Base
919
- # def initialize(attributes)
920
- # @attributes = attributes
921
- # end
922
- # end
923
- # class User < Base; end
924
- # class Account < Base; end
925
- # class Admin < Base; end
926
- # # The JSON source.
927
- # json = <<-EOF
928
- # {
929
- # "users": [
930
- # {"type": "User", "username": "jane", "email": "jane@example.com"},
931
- # {"type": "User", "username": "john", "email": "john@example.com"}
932
- # ],
933
- # "accounts": [
934
- # {"account": {"type": "Account", "paid": true, "account_id": "1234"}},
935
- # {"account": {"type": "Account", "paid": false, "account_id": "1235"}}
936
- # ],
937
- # "admins": {"type": "Admin", "password": "0wn3d"}
938
- # }
939
- # EOF
940
- # # Deserializer method.
941
- # def deserialize_obj(obj, safe_types = %w(User Account Admin))
942
- # type = obj.is_a?(Hash) && obj["type"]
943
- # safe_types.include?(type) ? Object.const_get(type).new(obj) : obj
944
- # end
945
- # # Call to JSON.load
946
- # ruby = JSON.load(json, proc {|obj|
947
- # case obj
948
- # when Hash
949
- # obj.each {|k, v| obj[k] = deserialize_obj v }
950
- # when Array
951
- # obj.map! {|v| deserialize_obj v }
952
- # end
953
- # })
954
- # pp ruby
955
- #
956
- # Output:
957
- # {"users"=>
958
- # [#<User:0x00000000064c4c98
959
- # @attributes=
960
- # {"type"=>"User", "username"=>"jane", "email"=>"jane@example.com"}>,
961
- # #<User:0x00000000064c4bd0
962
- # @attributes=
963
- # {"type"=>"User", "username"=>"john", "email"=>"john@example.com"}>],
964
- # "accounts"=>
965
- # [{"account"=>
966
- # #<Account:0x00000000064c4928
967
- # @attributes={"type"=>"Account", "paid"=>true, "account_id"=>"1234"}>},
968
- # {"account"=>
969
- # #<Account:0x00000000064c4680
970
- # @attributes={"type"=>"Account", "paid"=>false, "account_id"=>"1235"}>}],
971
- # "admins"=>
972
- # #<Admin:0x00000000064c41f8
973
- # @attributes={"type"=>"Admin", "password"=>"0wn3d"}>}
974
- #
975
- def self?.load: (string | _JsonReadableIO | _JsonRead source, ?Proc proc, ?json_options options) -> untyped
976
-
977
- # <!--
978
- # rdoc-file=ext/json/lib/json/common.rb
979
- # - JSON.load_file(path, opts={}) -> object
980
- # -->
981
- # Calls:
982
- # parse(File.read(path), opts)
983
- #
984
- # See method #parse.
985
- #
986
- def self?.load_file: (string path, ?json_options opts) -> untyped
987
-
988
- # <!--
989
- # rdoc-file=ext/json/lib/json/common.rb
990
- # - JSON.load_file!(path, opts = {})
991
- # -->
992
- # Calls:
993
- # JSON.parse!(File.read(path, opts))
994
- #
995
- # See method #parse!
996
- #
997
- def self?.load_file!: (string path, ?json_options opts) -> untyped
998
-
999
- # <!-- rdoc-file=ext/json/lib/json/common.rb -->
1000
- # Sets or returns default options for the JSON.load method. Initially:
1001
- # opts = JSON.load_default_options
1002
- # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true}
1003
- #
1004
- def self.load_default_options: () -> json_options
1005
-
1006
- # <!-- rdoc-file=ext/json/lib/json/common.rb -->
1007
- # Sets or returns default options for the JSON.load method. Initially:
1008
- # opts = JSON.load_default_options
1009
- # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true}
1010
- #
1011
- def self.load_default_options=: (json_options) -> json_options
1012
-
1013
- # <!--
1014
- # rdoc-file=ext/json/lib/json/common.rb
1015
- # - JSON.parse(source, opts) -> object
1016
- # -->
1017
- # Returns the Ruby objects created by parsing the given `source`.
1018
- #
1019
- # Argument `source` contains the String to be parsed.
1020
- #
1021
- # Argument `opts`, if given, contains a Hash of options for the parsing. See
1022
- # [Parsing Options](#module-JSON-label-Parsing+Options).
1023
- #
1024
- # ---
1025
- #
1026
- # When `source` is a JSON array, returns a Ruby Array:
1027
- # source = '["foo", 1.0, true, false, null]'
1028
- # ruby = JSON.parse(source)
1029
- # ruby # => ["foo", 1.0, true, false, nil]
1030
- # ruby.class # => Array
1031
- #
1032
- # When `source` is a JSON object, returns a Ruby Hash:
1033
- # source = '{"a": "foo", "b": 1.0, "c": true, "d": false, "e": null}'
1034
- # ruby = JSON.parse(source)
1035
- # ruby # => {"a"=>"foo", "b"=>1.0, "c"=>true, "d"=>false, "e"=>nil}
1036
- # ruby.class # => Hash
1037
- #
1038
- # For examples of parsing for all JSON data types, see [Parsing
1039
- # \JSON](#module-JSON-label-Parsing+JSON).
1040
- #
1041
- # Parses nested JSON objects:
1042
- # source = <<~JSON
1043
- # {
1044
- # "name": "Dave",
1045
- # "age" :40,
1046
- # "hats": [
1047
- # "Cattleman's",
1048
- # "Panama",
1049
- # "Tophat"
1050
- # ]
1051
- # }
1052
- # JSON
1053
- # ruby = JSON.parse(source)
1054
- # ruby # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]}
1055
- #
1056
- # ---
1057
- #
1058
- # Raises an exception if `source` is not valid JSON:
1059
- # # Raises JSON::ParserError (783: unexpected token at ''):
1060
- # JSON.parse('')
1061
- #
1062
- def self?.parse: (string source, ?json_options opts) -> untyped
1063
-
1064
- # <!--
1065
- # rdoc-file=ext/json/lib/json/common.rb
1066
- # - JSON.parse!(source, opts) -> object
1067
- # -->
1068
- # Calls
1069
- # parse(source, opts)
1070
- #
1071
- # with `source` and possibly modified `opts`.
1072
- #
1073
- # Differences from JSON.parse:
1074
- # * Option `max_nesting`, if not provided, defaults to `false`, which disables
1075
- # checking for nesting depth.
1076
- # * Option `allow_nan`, if not provided, defaults to `true`.
1077
- #
1078
- def self?.parse!: (string source, ?json_options opts) -> untyped
1079
-
1080
- # <!-- rdoc-file=ext/json/lib/json/common.rb -->
1081
- # Returns the JSON parser class that is used by JSON.
1082
- #
1083
- def self.parser: () -> json_parser
1084
-
1085
- def self.parser=: (json_parser parser) -> void
1086
-
1087
- # <!--
1088
- # rdoc-file=ext/json/lib/json/common.rb
1089
- # - JSON.pretty_generate(obj, opts = nil) -> new_string
1090
- # -->
1091
- # Arguments `obj` and `opts` here are the same as arguments `obj` and `opts` in
1092
- # JSON.generate.
1093
- #
1094
- # Default options are:
1095
- # {
1096
- # indent: ' ', # Two spaces
1097
- # space: ' ', # One space
1098
- # array_nl: "\n", # Newline
1099
- # object_nl: "\n" # Newline
1100
- # }
1101
- #
1102
- # Example:
1103
- # obj = {foo: [:bar, :baz], bat: {bam: 0, bad: 1}}
1104
- # json = JSON.pretty_generate(obj)
1105
- # puts json
1106
- #
1107
- # Output:
1108
- # {
1109
- # "foo": [
1110
- # "bar",
1111
- # "baz"
1112
- # ],
1113
- # "bat": {
1114
- # "bam": 0,
1115
- # "bad": 1
1116
- # }
1117
- # }
1118
- #
1119
- def self?.pretty_generate: (_ToJson obj, ?json_options opts) -> untyped
1120
-
1121
- alias self.pretty_unparse self.pretty_generate
1122
-
1123
- alias pretty_unparse pretty_generate
1124
-
1125
- # Recursively calls passed *Proc* if the parsed data structure is an *Array* or
1126
- # *Hash*
1127
- #
1128
- def self?.recurse_proc: (untyped result) { (*untyped) -> void } -> void
1129
-
1130
- # <!--
1131
- # rdoc-file=ext/json/lib/json/common.rb
1132
- # - restore(source, proc = nil, options = nil)
1133
- # -->
1134
- #
1135
- alias self.restore self.load
1136
-
1137
- # <!--
1138
- # rdoc-file=ext/json/lib/json/common.rb
1139
- # - restore(source, proc = nil, options = nil)
1140
- # -->
1141
- #
1142
- alias restore load
1143
-
1144
- # <!-- rdoc-file=ext/json/lib/json/common.rb -->
1145
- # Sets or Returns the JSON generator state class that is used by JSON.
1146
- #
1147
- def self.state: () -> json_state
1148
-
1149
- # <!-- rdoc-file=ext/json/lib/json/common.rb -->
1150
- # Sets or Returns the JSON generator state class that is used by JSON.
1151
- #
1152
- def self.state=: (json_state) -> json_state
1153
-
1154
- alias self.unparse self.generate
1155
-
1156
- alias unparse generate
1157
- end
1158
-
1159
- JSON::FAST_STATE_PROTOTYPE: json_state
1160
-
1161
- JSON::Infinity: Float
1162
-
1163
- JSON::JSON_LOADED: bool
1164
-
1165
- JSON::MinusInfinity: Float
1166
-
1167
- JSON::NaN: Float
1168
-
1169
- JSON::PRETTY_STATE_PROTOTYPE: json_state
1170
-
1171
- JSON::SAFE_STATE_PROTOTYPE: json_state
1172
-
1173
- JSON::VERSION: String
1174
-
1175
- JSON::VERSION_ARRAY: Array[Integer]
1176
-
1177
- JSON::VERSION_BUILD: Integer
1178
-
1179
- JSON::VERSION_MAJOR: Integer
1180
-
1181
- JSON::VERSION_MINOR: Integer
1182
-
1183
- %a{annotate:rdoc:skip}
1184
- module Kernel
1185
- private
1186
-
1187
- # <!--
1188
- # rdoc-file=ext/json/lib/json/common.rb
1189
- # - j(*objs)
1190
- # -->
1191
- # Outputs *objs* to STDOUT as JSON strings in the shortest form, that is in one
1192
- # line.
1193
- #
1194
- def j: (*_ToJson) -> nil
1195
-
1196
- # <!--
1197
- # rdoc-file=ext/json/lib/json/common.rb
1198
- # - jj(*objs)
1199
- # -->
1200
- # Outputs *objs* to STDOUT as JSON strings in a pretty format, with indentation
1201
- # and over many lines.
1202
- #
1203
- def jj: (*_ToJson) -> nil
1204
-
1205
- # <!--
1206
- # rdoc-file=ext/json/lib/json/common.rb
1207
- # - JSON(object, *args)
1208
- # -->
1209
- # If *object* is string-like, parse the string and return the parsed result as a
1210
- # Ruby data structure. Otherwise, generate a JSON text from the Ruby data
1211
- # structure object and return it.
1212
- #
1213
- # The *opts* argument is passed through to generate/parse respectively. See
1214
- # generate and parse for their documentation.
1215
- #
1216
- def JSON: (string source, ?json_options opts) -> untyped
1217
- | (_ToJson obj, ?json_options opts) -> String
1218
- end
1219
-
1220
- %a{annotate:rdoc:skip}
1221
- class Object
1222
- # Converts this object to a string (calling #to_s), converts
1223
- # it to a JSON string, and returns the result. This is a fallback, if no
1224
- # special method #to_json was defined for some object.
1225
- #
1226
- def to_json: (?JSON::State state) -> String
1227
- end
1228
-
1229
- %a{annotate:rdoc:skip}
1230
- class NilClass
1231
- # Returns a JSON string for nil: 'null'.
1232
- #
1233
- def to_json: (?JSON::State state) -> String
1234
- end
1235
-
1236
- %a{annotate:rdoc:skip}
1237
- class TrueClass
1238
- # Returns a JSON string for true: 'true'.
1239
- #
1240
- def to_json: (?JSON::State state) -> String
1241
- end
1242
-
1243
- %a{annotate:rdoc:skip}
1244
- class FalseClass
1245
- # Returns a JSON string for false: 'false'.
1246
- #
1247
- def to_json: (?JSON::State state) -> String
1248
- end
1249
-
1250
- %a{annotate:rdoc:skip}
1251
- class String
1252
- # This string should be encoded with UTF-8 A call to this method
1253
- # returns a JSON string encoded with UTF16 big endian characters as
1254
- # \u????.
1255
- #
1256
- def to_json: (?JSON::State state) -> String
1257
- end
1258
-
1259
- %a{annotate:rdoc:skip}
1260
- class Integer
1261
- # Returns a JSON string representation for this Integer number.
1262
- #
1263
- def to_json: (?JSON::State state) -> String
1264
- end
1265
-
1266
- %a{annotate:rdoc:skip}
1267
- class Float
1268
- # Returns a JSON string representation for this Float number.
1269
- #
1270
- def to_json: (?JSON::State state) -> String
1271
- end
1272
-
1273
- %a{annotate:rdoc:skip}
1274
- class Hash[unchecked out K, unchecked out V]
1275
- # Returns a JSON string containing a JSON object, that is generated from
1276
- # this Hash instance.
1277
- # _state_ is a JSON::State object, that can also be used to configure the
1278
- # produced JSON string output further.
1279
- #
1280
- def to_json: (?JSON::State state) -> String
1281
- end
1282
-
1283
- %a{annotate:rdoc:skip}
1284
- class Array[unchecked out Elem]
1285
- # Returns a JSON string containing a JSON array, that is generated from
1286
- # this Array instance.
1287
- # _state_ is a JSON::State object, that can also be used to configure the
1288
- # produced JSON string output further.
1289
- #
1290
- def to_json: (?JSON::State state) -> String
1291
- end
1292
-
1293
- %a{annotate:rdoc:skip}
1294
- class BigDecimal
1295
- # <!--
1296
- # rdoc-file=ext/json/lib/json/add/bigdecimal.rb
1297
- # - json_create(object)
1298
- # -->
1299
- # See #as_json.
1300
- #
1301
- def self.json_create: (Hash[String, String] object) -> instance
1302
-
1303
- # <!--
1304
- # rdoc-file=ext/json/lib/json/add/bigdecimal.rb
1305
- # - as_json(*)
1306
- # -->
1307
- # Methods `BigDecimal#as_json` and `BigDecimal.json_create` may be used to
1308
- # serialize and deserialize a BigDecimal object; see
1309
- # [Marshal](rdoc-ref:Marshal).
1310
- #
1311
- # Method `BigDecimal#as_json` serializes `self`, returning a 2-element hash
1312
- # representing `self`:
1313
- #
1314
- # require 'json/add/bigdecimal'
1315
- # x = BigDecimal(2).as_json # => {"json_class"=>"BigDecimal", "b"=>"27:0.2e1"}
1316
- # y = BigDecimal(2.0, 4).as_json # => {"json_class"=>"BigDecimal", "b"=>"36:0.2e1"}
1317
- # z = BigDecimal(Complex(2, 0)).as_json # => {"json_class"=>"BigDecimal", "b"=>"27:0.2e1"}
1318
- #
1319
- # Method `JSON.create` deserializes such a hash, returning a BigDecimal object:
1320
- #
1321
- # BigDecimal.json_create(x) # => 0.2e1
1322
- # BigDecimal.json_create(y) # => 0.2e1
1323
- # BigDecimal.json_create(z) # => 0.2e1
1324
- #
1325
- def as_json: (*untyped) -> Hash[String, String]
1326
-
1327
- # <!--
1328
- # rdoc-file=ext/json/lib/json/add/bigdecimal.rb
1329
- # - to_json(*args)
1330
- # -->
1331
- # Returns a JSON string representing `self`:
1332
- #
1333
- # require 'json/add/bigdecimal'
1334
- # puts BigDecimal(2).to_json
1335
- # puts BigDecimal(2.0, 4).to_json
1336
- # puts BigDecimal(Complex(2, 0)).to_json
1337
- #
1338
- # Output:
1339
- #
1340
- # {"json_class":"BigDecimal","b":"27:0.2e1"}
1341
- # {"json_class":"BigDecimal","b":"36:0.2e1"}
1342
- # {"json_class":"BigDecimal","b":"27:0.2e1"}
1343
- #
1344
- def to_json: (?JSON::State state) -> String
1345
- end
1346
-
1347
- %a{annotate:rdoc:skip}
1348
- class Complex
1349
- # <!--
1350
- # rdoc-file=ext/json/lib/json/add/complex.rb
1351
- # - json_create(object)
1352
- # -->
1353
- # See #as_json.
1354
- #
1355
- def self.json_create: (Hash[String, String | Numeric] object) -> instance
1356
-
1357
- # <!--
1358
- # rdoc-file=ext/json/lib/json/add/complex.rb
1359
- # - as_json(*)
1360
- # -->
1361
- # Methods `Complex#as_json` and `Complex.json_create` may be used to serialize
1362
- # and deserialize a Complex object; see [Marshal](rdoc-ref:Marshal).
1363
- #
1364
- # Method `Complex#as_json` serializes `self`, returning a 2-element hash
1365
- # representing `self`:
1366
- #
1367
- # require 'json/add/complex'
1368
- # x = Complex(2).as_json # => {"json_class"=>"Complex", "r"=>2, "i"=>0}
1369
- # y = Complex(2.0, 4).as_json # => {"json_class"=>"Complex", "r"=>2.0, "i"=>4}
1370
- #
1371
- # Method `JSON.create` deserializes such a hash, returning a Complex object:
1372
- #
1373
- # Complex.json_create(x) # => (2+0i)
1374
- # Complex.json_create(y) # => (2.0+4i)
1375
- #
1376
- def as_json: (*untyped) -> Hash[String, String | Numeric]
1377
-
1378
- # <!--
1379
- # rdoc-file=ext/json/lib/json/add/complex.rb
1380
- # - to_json(*args)
1381
- # -->
1382
- # Returns a JSON string representing `self`:
1383
- #
1384
- # require 'json/add/complex'
1385
- # puts Complex(2).to_json
1386
- # puts Complex(2.0, 4).to_json
1387
- #
1388
- # Output:
1389
- #
1390
- # {"json_class":"Complex","r":2,"i":0}
1391
- # {"json_class":"Complex","r":2.0,"i":4}
1392
- #
1393
- def to_json: (?JSON::State state) -> String
1394
- end
1395
-
1396
- %a{annotate:rdoc:skip}
1397
- class Date
1398
- # <!--
1399
- # rdoc-file=ext/json/lib/json/add/date.rb
1400
- # - json_create(object)
1401
- # -->
1402
- # See #as_json.
1403
- #
1404
- def self.json_create: (Hash[String, String | Integer | Float] object) -> instance
1405
-
1406
- # <!--
1407
- # rdoc-file=ext/json/lib/json/add/date.rb
1408
- # - as_json(*)
1409
- # -->
1410
- # Methods `Date#as_json` and `Date.json_create` may be used to serialize and
1411
- # deserialize a Date object; see [Marshal](rdoc-ref:Marshal).
1412
- #
1413
- # Method `Date#as_json` serializes `self`, returning a 2-element hash
1414
- # representing `self`:
1415
- #
1416
- # require 'json/add/date'
1417
- # x = Date.today.as_json
1418
- # # => {"json_class"=>"Date", "y"=>2023, "m"=>11, "d"=>21, "sg"=>2299161.0}
1419
- #
1420
- # Method `JSON.create` deserializes such a hash, returning a Date object:
1421
- #
1422
- # Date.json_create(x)
1423
- # # => #<Date: 2023-11-21 ((2460270j,0s,0n),+0s,2299161j)>
1424
- #
1425
- def as_json: (*untyped) -> Hash[String, String | Integer | Float]
1426
-
1427
- # <!--
1428
- # rdoc-file=ext/json/lib/json/add/date.rb
1429
- # - to_json(*args)
1430
- # -->
1431
- # Returns a JSON string representing `self`:
1432
- #
1433
- # require 'json/add/date'
1434
- # puts Date.today.to_json
1435
- #
1436
- # Output:
1437
- #
1438
- # {"json_class":"Date","y":2023,"m":11,"d":21,"sg":2299161.0}
1439
- #
1440
- def to_json: (?JSON::State state) -> String
1441
- end
1442
-
1443
- %a{annotate:rdoc:skip}
1444
- class DateTime
1445
- # <!--
1446
- # rdoc-file=ext/json/lib/json/add/date_time.rb
1447
- # - json_create(object)
1448
- # -->
1449
- # See #as_json.
1450
- #
1451
- def self.json_create: (Hash[String, String | Integer | Float] object) -> instance
1452
-
1453
- # <!--
1454
- # rdoc-file=ext/json/lib/json/add/date_time.rb
1455
- # - as_json(*)
1456
- # -->
1457
- # Methods `DateTime#as_json` and `DateTime.json_create` may be used to serialize
1458
- # and deserialize a DateTime object; see [Marshal](rdoc-ref:Marshal).
1459
- #
1460
- # Method `DateTime#as_json` serializes `self`, returning a 2-element hash
1461
- # representing `self`:
1462
- #
1463
- # require 'json/add/datetime'
1464
- # x = DateTime.now.as_json
1465
- # # => {"json_class"=>"DateTime", "y"=>2023, "m"=>11, "d"=>21, "sg"=>2299161.0}
1466
- #
1467
- # Method `JSON.create` deserializes such a hash, returning a DateTime object:
1468
- #
1469
- # DateTime.json_create(x) # BUG? Raises Date::Error "invalid date"
1470
- #
1471
- def as_json: (*untyped) -> Hash[String, String | Integer | Float]
1472
-
1473
- # <!--
1474
- # rdoc-file=ext/json/lib/json/add/date_time.rb
1475
- # - to_json(*args)
1476
- # -->
1477
- # Returns a JSON string representing `self`:
1478
- #
1479
- # require 'json/add/datetime'
1480
- # puts DateTime.now.to_json
1481
- #
1482
- # Output:
1483
- #
1484
- # {"json_class":"DateTime","y":2023,"m":11,"d":21,"sg":2299161.0}
1485
- #
1486
- def to_json: (?JSON::State state) -> String
1487
- end
1488
-
1489
- %a{annotate:rdoc:skip}
1490
- class Exception
1491
- # <!--
1492
- # rdoc-file=ext/json/lib/json/add/exception.rb
1493
- # - json_create(object)
1494
- # -->
1495
- # See #as_json.
1496
- #
1497
- def self.json_create: (Hash[String, String | Array[String] | nil] object) -> instance
1498
-
1499
- # <!--
1500
- # rdoc-file=ext/json/lib/json/add/exception.rb
1501
- # - as_json(*)
1502
- # -->
1503
- # Methods `Exception#as_json` and `Exception.json_create` may be used to
1504
- # serialize and deserialize a Exception object; see [Marshal](rdoc-ref:Marshal).
1505
- #
1506
- # Method `Exception#as_json` serializes `self`, returning a 2-element hash
1507
- # representing `self`:
1508
- #
1509
- # require 'json/add/exception'
1510
- # x = Exception.new('Foo').as_json # => {"json_class"=>"Exception", "m"=>"Foo", "b"=>nil}
1511
- #
1512
- # Method `JSON.create` deserializes such a hash, returning a Exception object:
1513
- #
1514
- # Exception.json_create(x) # => #<Exception: Foo>
1515
- #
1516
- def as_json: (*untyped) -> Hash[String, String | Array[String] | nil]
1517
-
1518
- # <!--
1519
- # rdoc-file=ext/json/lib/json/add/exception.rb
1520
- # - to_json(*args)
1521
- # -->
1522
- # Returns a JSON string representing `self`:
1523
- #
1524
- # require 'json/add/exception'
1525
- # puts Exception.new('Foo').to_json
1526
- #
1527
- # Output:
1528
- #
1529
- # {"json_class":"Exception","m":"Foo","b":null}
1530
- #
1531
- def to_json: (?JSON::State state) -> String
1532
- end
1533
-
1534
- %a{annotate:rdoc:skip}
1535
- class OpenStruct
1536
- # <!--
1537
- # rdoc-file=ext/json/lib/json/add/ostruct.rb
1538
- # - json_create(object)
1539
- # -->
1540
- # See #as_json.
1541
- #
1542
- def self.json_create: (Hash[String, String | Hash[Symbol, untyped]] object) -> instance
1543
-
1544
- # <!--
1545
- # rdoc-file=ext/json/lib/json/add/ostruct.rb
1546
- # - as_json(*)
1547
- # -->
1548
- # Methods `OpenStruct#as_json` and `OpenStruct.json_create` may be used to
1549
- # serialize and deserialize a OpenStruct object; see
1550
- # [Marshal](rdoc-ref:Marshal).
1551
- #
1552
- # Method `OpenStruct#as_json` serializes `self`, returning a 2-element hash
1553
- # representing `self`:
1554
- #
1555
- # require 'json/add/ostruct'
1556
- # x = OpenStruct.new('name' => 'Rowdy', :age => nil).as_json
1557
- # # => {"json_class"=>"OpenStruct", "t"=>{:name=>'Rowdy', :age=>nil}}
1558
- #
1559
- # Method `JSON.create` deserializes such a hash, returning a OpenStruct object:
1560
- #
1561
- # OpenStruct.json_create(x)
1562
- # # => #<OpenStruct name='Rowdy', age=nil>
1563
- #
1564
- def as_json: (*untyped) -> Hash[String, String | Hash[Symbol, untyped]]
1565
-
1566
- # <!--
1567
- # rdoc-file=ext/json/lib/json/add/ostruct.rb
1568
- # - to_json(*args)
1569
- # -->
1570
- # Returns a JSON string representing `self`:
1571
- #
1572
- # require 'json/add/ostruct'
1573
- # puts OpenStruct.new('name' => 'Rowdy', :age => nil).to_json
1574
- #
1575
- # Output:
1576
- #
1577
- # {"json_class":"OpenStruct","t":{'name':'Rowdy',"age":null}}
1578
- #
1579
- def to_json: (?JSON::State state) -> String
1580
- end
1581
-
1582
- %a{annotate:rdoc:skip}
1583
- class Range[out Elem]
1584
- # <!--
1585
- # rdoc-file=ext/json/lib/json/add/range.rb
1586
- # - json_create(object)
1587
- # -->
1588
- # See #as_json.
1589
- #
1590
- def self.json_create: [A] (Hash[String, String | [ A, A, bool ]] object) -> Range[A]
1591
-
1592
- # <!--
1593
- # rdoc-file=ext/json/lib/json/add/range.rb
1594
- # - as_json(*)
1595
- # -->
1596
- # Methods `Range#as_json` and `Range.json_create` may be used to serialize and
1597
- # deserialize a Range object; see [Marshal](rdoc-ref:Marshal).
1598
- #
1599
- # Method `Range#as_json` serializes `self`, returning a 2-element hash
1600
- # representing `self`:
1601
- #
1602
- # require 'json/add/range'
1603
- # x = (1..4).as_json # => {"json_class"=>"Range", "a"=>[1, 4, false]}
1604
- # y = (1...4).as_json # => {"json_class"=>"Range", "a"=>[1, 4, true]}
1605
- # z = ('a'..'d').as_json # => {"json_class"=>"Range", "a"=>["a", "d", false]}
1606
- #
1607
- # Method `JSON.create` deserializes such a hash, returning a Range object:
1608
- #
1609
- # Range.json_create(x) # => 1..4
1610
- # Range.json_create(y) # => 1...4
1611
- # Range.json_create(z) # => "a".."d"
1612
- #
1613
- def as_json: (*untyped) -> Hash[String, String | [ Elem, Elem, bool ]]
1614
-
1615
- # <!--
1616
- # rdoc-file=ext/json/lib/json/add/range.rb
1617
- # - to_json(*args)
1618
- # -->
1619
- # Returns a JSON string representing `self`:
1620
- #
1621
- # require 'json/add/range'
1622
- # puts (1..4).to_json
1623
- # puts (1...4).to_json
1624
- # puts ('a'..'d').to_json
1625
- #
1626
- # Output:
1627
- #
1628
- # {"json_class":"Range","a":[1,4,false]}
1629
- # {"json_class":"Range","a":[1,4,true]}
1630
- # {"json_class":"Range","a":["a","d",false]}
1631
- #
1632
- def to_json: (?JSON::State state) -> String
1633
- end
1634
-
1635
- %a{annotate:rdoc:skip}
1636
- class Rational
1637
- # <!--
1638
- # rdoc-file=ext/json/lib/json/add/rational.rb
1639
- # - json_create(object)
1640
- # -->
1641
- # See #as_json.
1642
- #
1643
- def self.json_create: (Hash[String, String | Integer] object) -> instance
1644
-
1645
- # <!--
1646
- # rdoc-file=ext/json/lib/json/add/rational.rb
1647
- # - as_json(*)
1648
- # -->
1649
- # Methods `Rational#as_json` and `Rational.json_create` may be used to serialize
1650
- # and deserialize a Rational object; see [Marshal](rdoc-ref:Marshal).
1651
- #
1652
- # Method `Rational#as_json` serializes `self`, returning a 2-element hash
1653
- # representing `self`:
1654
- #
1655
- # require 'json/add/rational'
1656
- # x = Rational(2, 3).as_json
1657
- # # => {"json_class"=>"Rational", "n"=>2, "d"=>3}
1658
- #
1659
- # Method `JSON.create` deserializes such a hash, returning a Rational object:
1660
- #
1661
- # Rational.json_create(x)
1662
- # # => (2/3)
1663
- #
1664
- def as_json: (*untyped) -> Hash[String, String | Integer]
1665
-
1666
- # <!--
1667
- # rdoc-file=ext/json/lib/json/add/rational.rb
1668
- # - to_json(*args)
1669
- # -->
1670
- # Returns a JSON string representing `self`:
1671
- #
1672
- # require 'json/add/rational'
1673
- # puts Rational(2, 3).to_json
1674
- #
1675
- # Output:
1676
- #
1677
- # {"json_class":"Rational","n":2,"d":3}
1678
- #
1679
- def to_json: (?JSON::State state) -> String
1680
- end
1681
-
1682
- %a{annotate:rdoc:skip}
1683
- class Regexp
1684
- # <!--
1685
- # rdoc-file=ext/json/lib/json/add/regexp.rb
1686
- # - json_create(object)
1687
- # -->
1688
- # See #as_json.
1689
- #
1690
- def self.json_create: (Hash[String, String | Integer] object) -> instance
1691
-
1692
- # <!--
1693
- # rdoc-file=ext/json/lib/json/add/regexp.rb
1694
- # - as_json(*)
1695
- # -->
1696
- # Methods `Regexp#as_json` and `Regexp.json_create` may be used to serialize and
1697
- # deserialize a Regexp object; see [Marshal](rdoc-ref:Marshal).
1698
- #
1699
- # Method `Regexp#as_json` serializes `self`, returning a 2-element hash
1700
- # representing `self`:
1701
- #
1702
- # require 'json/add/regexp'
1703
- # x = /foo/.as_json
1704
- # # => {"json_class"=>"Regexp", "o"=>0, "s"=>"foo"}
1705
- #
1706
- # Method `JSON.create` deserializes such a hash, returning a Regexp object:
1707
- #
1708
- # Regexp.json_create(x) # => /foo/
1709
- #
1710
- def as_json: (*untyped) -> Hash[String, String | Integer]
1711
-
1712
- # <!--
1713
- # rdoc-file=ext/json/lib/json/add/regexp.rb
1714
- # - to_json(*args)
1715
- # -->
1716
- # Returns a JSON string representing `self`:
1717
- #
1718
- # require 'json/add/regexp'
1719
- # puts /foo/.to_json
1720
- #
1721
- # Output:
1722
- #
1723
- # {"json_class":"Regexp","o":0,"s":"foo"}
1724
- #
1725
- def to_json: (?JSON::State state) -> String
1726
- end
1727
-
1728
- %a{annotate:rdoc:skip}
1729
- class Set[unchecked out A]
1730
- # <!--
1731
- # rdoc-file=ext/json/lib/json/add/set.rb
1732
- # - json_create(object)
1733
- # -->
1734
- # See #as_json.
1735
- #
1736
- def self.json_create: [A] (Hash[String, String | Array[A]] object) -> Set[A]
1737
-
1738
- # <!--
1739
- # rdoc-file=ext/json/lib/json/add/set.rb
1740
- # - as_json(*)
1741
- # -->
1742
- # Methods `Set#as_json` and `Set.json_create` may be used to serialize and
1743
- # deserialize a Set object; see [Marshal](rdoc-ref:Marshal).
1744
- #
1745
- # Method `Set#as_json` serializes `self`, returning a 2-element hash
1746
- # representing `self`:
1747
- #
1748
- # require 'json/add/set'
1749
- # x = Set.new(%w/foo bar baz/).as_json
1750
- # # => {"json_class"=>"Set", "a"=>["foo", "bar", "baz"]}
1751
- #
1752
- # Method `JSON.create` deserializes such a hash, returning a Set object:
1753
- #
1754
- # Set.json_create(x) # => #<Set: {"foo", "bar", "baz"}>
1755
- #
1756
- def as_json: (*untyped) -> Hash[String, String | Array[A]]
1757
-
1758
- # <!--
1759
- # rdoc-file=ext/json/lib/json/add/set.rb
1760
- # - to_json(*args)
1761
- # -->
1762
- # Returns a JSON string representing `self`:
1763
- #
1764
- # require 'json/add/set'
1765
- # puts Set.new(%w/foo bar baz/).to_json
1766
- #
1767
- # Output:
1768
- #
1769
- # {"json_class":"Set","a":["foo","bar","baz"]}
1770
- #
1771
- def to_json: (?JSON::State state) -> String
1772
- end
1773
-
1774
- %a{annotate:rdoc:skip}
1775
- class Struct[Elem]
1776
- # <!--
1777
- # rdoc-file=ext/json/lib/json/add/struct.rb
1778
- # - json_create(object)
1779
- # -->
1780
- # See #as_json.
1781
- #
1782
- def self.json_create: [Elem] (Hash[String, String | Array[Elem]] object) -> Struct[Elem]
1783
-
1784
- # <!--
1785
- # rdoc-file=ext/json/lib/json/add/struct.rb
1786
- # - as_json(*)
1787
- # -->
1788
- # Methods `Struct#as_json` and `Struct.json_create` may be used to serialize and
1789
- # deserialize a Struct object; see [Marshal](rdoc-ref:Marshal).
1790
- #
1791
- # Method `Struct#as_json` serializes `self`, returning a 2-element hash
1792
- # representing `self`:
1793
- #
1794
- # require 'json/add/struct'
1795
- # Customer = Struct.new('Customer', :name, :address, :zip)
1796
- # x = Struct::Customer.new.as_json
1797
- # # => {"json_class"=>"Struct::Customer", "v"=>[nil, nil, nil]}
1798
- #
1799
- # Method `JSON.create` deserializes such a hash, returning a Struct object:
1800
- #
1801
- # Struct::Customer.json_create(x)
1802
- # # => #<struct Struct::Customer name=nil, address=nil, zip=nil>
1803
- #
1804
- def as_json: (*untyped) -> Hash[String, String | Array[Elem]]
1805
-
1806
- # <!--
1807
- # rdoc-file=ext/json/lib/json/add/struct.rb
1808
- # - to_json(*args)
1809
- # -->
1810
- # Returns a JSON string representing `self`:
1811
- #
1812
- # require 'json/add/struct'
1813
- # Customer = Struct.new('Customer', :name, :address, :zip)
1814
- # puts Struct::Customer.new.to_json
1815
- #
1816
- # Output:
1817
- #
1818
- # {"json_class":"Struct","t":{'name':'Rowdy',"age":null}}
1819
- #
1820
- def to_json: (?JSON::State state) -> String
1821
- end
1822
-
1823
- %a{annotate:rdoc:skip}
1824
- class Symbol
1825
- # <!--
1826
- # rdoc-file=ext/json/lib/json/add/symbol.rb
1827
- # - json_create(o)
1828
- # -->
1829
- # See #as_json.
1830
- #
1831
- def self.json_create: (Hash[String, String] object) -> instance
1832
-
1833
- # <!--
1834
- # rdoc-file=ext/json/lib/json/add/symbol.rb
1835
- # - as_json(*)
1836
- # -->
1837
- # Methods `Symbol#as_json` and `Symbol.json_create` may be used to serialize and
1838
- # deserialize a Symbol object; see [Marshal](rdoc-ref:Marshal).
1839
- #
1840
- # Method `Symbol#as_json` serializes `self`, returning a 2-element hash
1841
- # representing `self`:
1842
- #
1843
- # require 'json/add/symbol'
1844
- # x = :foo.as_json
1845
- # # => {"json_class"=>"Symbol", "s"=>"foo"}
1846
- #
1847
- # Method `JSON.create` deserializes such a hash, returning a Symbol object:
1848
- #
1849
- # Symbol.json_create(x) # => :foo
1850
- #
1851
- def as_json: (*untyped) -> Hash[String, String]
1852
-
1853
- # <!--
1854
- # rdoc-file=ext/json/lib/json/add/symbol.rb
1855
- # - to_json(*a)
1856
- # -->
1857
- # Returns a JSON string representing `self`:
1858
- #
1859
- # require 'json/add/symbol'
1860
- # puts :foo.to_json
1861
- #
1862
- # Output:
1863
- #
1864
- # # {"json_class":"Symbol","s":"foo"}
1865
- #
1866
- def to_json: (?JSON::State state) -> String
1867
- end
1868
-
1869
- %a{annotate:rdoc:skip}
1870
- class Time
1871
- # <!--
1872
- # rdoc-file=ext/json/lib/json/add/time.rb
1873
- # - json_create(object)
1874
- # -->
1875
- # See #as_json.
1876
- #
1877
- def self.json_create: (Hash[String, String | Integer] object) -> instance
1878
-
1879
- # <!--
1880
- # rdoc-file=ext/json/lib/json/add/time.rb
1881
- # - as_json(*)
1882
- # -->
1883
- # Methods `Time#as_json` and `Time.json_create` may be used to serialize and
1884
- # deserialize a Time object; see [Marshal](rdoc-ref:Marshal).
1885
- #
1886
- # Method `Time#as_json` serializes `self`, returning a 2-element hash
1887
- # representing `self`:
1888
- #
1889
- # require 'json/add/time'
1890
- # x = Time.now.as_json
1891
- # # => {"json_class"=>"Time", "s"=>1700931656, "n"=>472846644}
1892
- #
1893
- # Method `JSON.create` deserializes such a hash, returning a Time object:
1894
- #
1895
- # Time.json_create(x)
1896
- # # => 2023-11-25 11:00:56.472846644 -0600
1897
- #
1898
- def as_json: (*untyped) -> Hash[String, String | Integer]
1899
-
1900
- # <!--
1901
- # rdoc-file=ext/json/lib/json/add/time.rb
1902
- # - to_json(*args)
1903
- # -->
1904
- # Returns a JSON string representing `self`:
1905
- #
1906
- # require 'json/add/time'
1907
- # puts Time.now.to_json
1908
- #
1909
- # Output:
1910
- #
1911
- # {"json_class":"Time","s":1700931678,"n":980650786}
1912
- #
1913
- def to_json: (?JSON::State state) -> String
1914
- end