@ai-ecoverse/wasix-ruby 3.4.11-2 → 3.4.11-3
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.
- package/PRESTAGE.md +38 -6
- package/bin/ruby +1 -0
- package/bin/ruby.wasm +0 -0
- package/lib/ruby/3.4.0/socket.rb +1790 -0
- package/lib/ruby/3.4.0/wasm32-wasi/rbconfig.rb +5 -5
- package/lib/ruby/3.4.11/English.gemspec +22 -0
- package/lib/ruby/3.4.11/English.rb +164 -0
- package/lib/ruby/3.4.11/benchmark.gemspec +32 -0
- package/lib/ruby/3.4.11/benchmark.rb +594 -0
- package/lib/ruby/3.4.11/bundled_gems.rb +248 -0
- package/lib/ruby/3.4.11/bundler/.document +1 -0
- package/lib/ruby/3.4.11/bundler/build_metadata.rb +43 -0
- package/lib/ruby/3.4.11/bundler/bundler.gemspec +45 -0
- package/lib/ruby/3.4.11/bundler/capistrano.rb +22 -0
- package/lib/ruby/3.4.11/bundler/checksum.rb +264 -0
- package/lib/ruby/3.4.11/bundler/ci_detector.rb +75 -0
- package/lib/ruby/3.4.11/bundler/cli/add.rb +49 -0
- package/lib/ruby/3.4.11/bundler/cli/binstubs.rb +57 -0
- package/lib/ruby/3.4.11/bundler/cli/cache.rb +43 -0
- package/lib/ruby/3.4.11/bundler/cli/check.rb +40 -0
- package/lib/ruby/3.4.11/bundler/cli/clean.rb +25 -0
- package/lib/ruby/3.4.11/bundler/cli/common.rb +138 -0
- package/lib/ruby/3.4.11/bundler/cli/config.rb +204 -0
- package/lib/ruby/3.4.11/bundler/cli/console.rb +42 -0
- package/lib/ruby/3.4.11/bundler/cli/doctor/diagnose.rb +167 -0
- package/lib/ruby/3.4.11/bundler/cli/doctor/ssl.rb +249 -0
- package/lib/ruby/3.4.11/bundler/cli/doctor.rb +33 -0
- package/lib/ruby/3.4.11/bundler/cli/exec.rb +89 -0
- package/lib/ruby/3.4.11/bundler/cli/fund.rb +36 -0
- package/lib/ruby/3.4.11/bundler/cli/gem.rb +467 -0
- package/lib/ruby/3.4.11/bundler/cli/info.rb +83 -0
- package/lib/ruby/3.4.11/bundler/cli/init.rb +51 -0
- package/lib/ruby/3.4.11/bundler/cli/inject.rb +60 -0
- package/lib/ruby/3.4.11/bundler/cli/install.rb +199 -0
- package/lib/ruby/3.4.11/bundler/cli/issue.rb +41 -0
- package/lib/ruby/3.4.11/bundler/cli/list.rb +66 -0
- package/lib/ruby/3.4.11/bundler/cli/lock.rb +94 -0
- package/lib/ruby/3.4.11/bundler/cli/open.rb +29 -0
- package/lib/ruby/3.4.11/bundler/cli/outdated.rb +297 -0
- package/lib/ruby/3.4.11/bundler/cli/platform.rb +48 -0
- package/lib/ruby/3.4.11/bundler/cli/plugin.rb +35 -0
- package/lib/ruby/3.4.11/bundler/cli/pristine.rb +60 -0
- package/lib/ruby/3.4.11/bundler/cli/remove.rb +17 -0
- package/lib/ruby/3.4.11/bundler/cli/show.rb +75 -0
- package/lib/ruby/3.4.11/bundler/cli/update.rb +123 -0
- package/lib/ruby/3.4.11/bundler/cli/viz.rb +31 -0
- package/lib/ruby/3.4.11/bundler/cli.rb +790 -0
- package/lib/ruby/3.4.11/bundler/compact_index_client/cache.rb +96 -0
- package/lib/ruby/3.4.11/bundler/compact_index_client/cache_file.rb +148 -0
- package/lib/ruby/3.4.11/bundler/compact_index_client/parser.rb +84 -0
- package/lib/ruby/3.4.11/bundler/compact_index_client/updater.rb +105 -0
- package/lib/ruby/3.4.11/bundler/compact_index_client.rb +97 -0
- package/lib/ruby/3.4.11/bundler/constants.rb +14 -0
- package/lib/ruby/3.4.11/bundler/current_ruby.rb +82 -0
- package/lib/ruby/3.4.11/bundler/definition.rb +1187 -0
- package/lib/ruby/3.4.11/bundler/dependency.rb +151 -0
- package/lib/ruby/3.4.11/bundler/deployment.rb +69 -0
- package/lib/ruby/3.4.11/bundler/deprecate.rb +44 -0
- package/lib/ruby/3.4.11/bundler/digest.rb +71 -0
- package/lib/ruby/3.4.11/bundler/dsl.rb +638 -0
- package/lib/ruby/3.4.11/bundler/endpoint_specification.rb +174 -0
- package/lib/ruby/3.4.11/bundler/env.rb +148 -0
- package/lib/ruby/3.4.11/bundler/environment_preserver.rb +68 -0
- package/lib/ruby/3.4.11/bundler/errors.rb +281 -0
- package/lib/ruby/3.4.11/bundler/feature_flag.rb +50 -0
- package/lib/ruby/3.4.11/bundler/fetcher/base.rb +52 -0
- package/lib/ruby/3.4.11/bundler/fetcher/compact_index.rb +120 -0
- package/lib/ruby/3.4.11/bundler/fetcher/dependency.rb +78 -0
- package/lib/ruby/3.4.11/bundler/fetcher/downloader.rb +91 -0
- package/lib/ruby/3.4.11/bundler/fetcher/gem_remote_fetcher.rb +16 -0
- package/lib/ruby/3.4.11/bundler/fetcher/index.rb +25 -0
- package/lib/ruby/3.4.11/bundler/fetcher.rb +331 -0
- package/lib/ruby/3.4.11/bundler/force_platform.rb +16 -0
- package/lib/ruby/3.4.11/bundler/friendly_errors.rb +126 -0
- package/lib/ruby/3.4.11/bundler/gem_helper.rb +237 -0
- package/lib/ruby/3.4.11/bundler/gem_helpers.rb +144 -0
- package/lib/ruby/3.4.11/bundler/gem_tasks.rb +7 -0
- package/lib/ruby/3.4.11/bundler/gem_version_promoter.rb +147 -0
- package/lib/ruby/3.4.11/bundler/graph.rb +152 -0
- package/lib/ruby/3.4.11/bundler/index.rb +205 -0
- package/lib/ruby/3.4.11/bundler/injector.rb +285 -0
- package/lib/ruby/3.4.11/bundler/inline.rb +98 -0
- package/lib/ruby/3.4.11/bundler/installer/gem_installer.rb +85 -0
- package/lib/ruby/3.4.11/bundler/installer/parallel_installer.rb +203 -0
- package/lib/ruby/3.4.11/bundler/installer/standalone.rb +113 -0
- package/lib/ruby/3.4.11/bundler/installer.rb +243 -0
- package/lib/ruby/3.4.11/bundler/lazy_specification.rb +243 -0
- package/lib/ruby/3.4.11/bundler/lockfile_generator.rb +104 -0
- package/lib/ruby/3.4.11/bundler/lockfile_parser.rb +300 -0
- package/lib/ruby/3.4.11/bundler/man/.document +1 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-add.1 +76 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-add.1.ronn +87 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-binstubs.1 +33 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-binstubs.1.ronn +44 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-cache.1 +68 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-cache.1.ronn +108 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-check.1 +24 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-check.1.ronn +31 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-clean.1 +17 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-clean.1.ronn +18 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-config.1 +317 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-config.1.ronn +408 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-console.1 +33 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-console.1.ronn +39 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-doctor.1 +30 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-doctor.1.ronn +33 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-env.1 +9 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-env.1.ronn +10 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-exec.1 +107 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-exec.1.ronn +154 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-fund.1 +22 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-fund.1.ronn +25 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-gem.1 +87 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-gem.1.ronn +149 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-help.1 +9 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-help.1.ronn +12 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-info.1 +17 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-info.1.ronn +21 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-init.1 +20 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-init.1.ronn +32 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-inject.1 +31 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-inject.1.ronn +32 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-install.1 +218 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-install.1.ronn +387 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-issue.1 +45 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-issue.1.ronn +37 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-licenses.1 +9 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-licenses.1.ronn +10 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-list.1 +35 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-list.1.ronn +36 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-lock.1 +75 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-lock.1.ronn +115 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-open.1 +32 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-open.1.ronn +28 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-outdated.1 +103 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-outdated.1.ronn +110 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-platform.1 +49 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-platform.1.ronn +49 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-plugin.1 +58 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-plugin.1.ronn +63 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-pristine.1 +23 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-pristine.1.ronn +34 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-remove.1 +21 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-remove.1.ronn +23 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-show.1 +19 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-show.1.ronn +25 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-update.1 +281 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-update.1.ronn +359 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-version.1 +22 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-version.1.ronn +24 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-viz.1 +30 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-viz.1.ronn +36 -0
- package/lib/ruby/3.4.11/bundler/man/bundle.1 +102 -0
- package/lib/ruby/3.4.11/bundler/man/bundle.1.ronn +116 -0
- package/lib/ruby/3.4.11/bundler/man/gemfile.5 +472 -0
- package/lib/ruby/3.4.11/bundler/man/gemfile.5.ronn +558 -0
- package/lib/ruby/3.4.11/bundler/man/index.txt +33 -0
- package/lib/ruby/3.4.11/bundler/match_metadata.rb +30 -0
- package/lib/ruby/3.4.11/bundler/match_platform.rb +23 -0
- package/lib/ruby/3.4.11/bundler/match_remote_metadata.rb +29 -0
- package/lib/ruby/3.4.11/bundler/materialization.rb +59 -0
- package/lib/ruby/3.4.11/bundler/mirror.rb +221 -0
- package/lib/ruby/3.4.11/bundler/plugin/api/source.rb +322 -0
- package/lib/ruby/3.4.11/bundler/plugin/api.rb +81 -0
- package/lib/ruby/3.4.11/bundler/plugin/dsl.rb +53 -0
- package/lib/ruby/3.4.11/bundler/plugin/events.rb +85 -0
- package/lib/ruby/3.4.11/bundler/plugin/index.rb +197 -0
- package/lib/ruby/3.4.11/bundler/plugin/installer/git.rb +34 -0
- package/lib/ruby/3.4.11/bundler/plugin/installer/path.rb +26 -0
- package/lib/ruby/3.4.11/bundler/plugin/installer/rubygems.rb +19 -0
- package/lib/ruby/3.4.11/bundler/plugin/installer.rb +132 -0
- package/lib/ruby/3.4.11/bundler/plugin/source_list.rb +31 -0
- package/lib/ruby/3.4.11/bundler/plugin.rb +378 -0
- package/lib/ruby/3.4.11/bundler/process_lock.rb +20 -0
- package/lib/ruby/3.4.11/bundler/remote_specification.rb +126 -0
- package/lib/ruby/3.4.11/bundler/resolver/base.rb +118 -0
- package/lib/ruby/3.4.11/bundler/resolver/candidate.rb +85 -0
- package/lib/ruby/3.4.11/bundler/resolver/incompatibility.rb +15 -0
- package/lib/ruby/3.4.11/bundler/resolver/package.rb +94 -0
- package/lib/ruby/3.4.11/bundler/resolver/root.rb +25 -0
- package/lib/ruby/3.4.11/bundler/resolver/spec_group.rb +74 -0
- package/lib/ruby/3.4.11/bundler/resolver/strategy.rb +40 -0
- package/lib/ruby/3.4.11/bundler/resolver.rb +526 -0
- package/lib/ruby/3.4.11/bundler/retry.rb +66 -0
- package/lib/ruby/3.4.11/bundler/ruby_dsl.rb +62 -0
- package/lib/ruby/3.4.11/bundler/ruby_version.rb +137 -0
- package/lib/ruby/3.4.11/bundler/rubygems_ext.rb +485 -0
- package/lib/ruby/3.4.11/bundler/rubygems_gem_installer.rb +172 -0
- package/lib/ruby/3.4.11/bundler/rubygems_integration.rb +455 -0
- package/lib/ruby/3.4.11/bundler/runtime.rb +320 -0
- package/lib/ruby/3.4.11/bundler/safe_marshal.rb +31 -0
- package/lib/ruby/3.4.11/bundler/self_manager.rb +206 -0
- package/lib/ruby/3.4.11/bundler/settings/validator.rb +102 -0
- package/lib/ruby/3.4.11/bundler/settings.rb +599 -0
- package/lib/ruby/3.4.11/bundler/setup.rb +39 -0
- package/lib/ruby/3.4.11/bundler/shared_helpers.rb +398 -0
- package/lib/ruby/3.4.11/bundler/similarity_detector.rb +63 -0
- package/lib/ruby/3.4.11/bundler/source/gemspec.rb +15 -0
- package/lib/ruby/3.4.11/bundler/source/git/git_proxy.rb +472 -0
- package/lib/ruby/3.4.11/bundler/source/git.rb +452 -0
- package/lib/ruby/3.4.11/bundler/source/metadata.rb +63 -0
- package/lib/ruby/3.4.11/bundler/source/path/installer.rb +53 -0
- package/lib/ruby/3.4.11/bundler/source/path.rb +250 -0
- package/lib/ruby/3.4.11/bundler/source/rubygems/remote.rb +76 -0
- package/lib/ruby/3.4.11/bundler/source/rubygems.rb +522 -0
- package/lib/ruby/3.4.11/bundler/source/rubygems_aggregate.rb +68 -0
- package/lib/ruby/3.4.11/bundler/source.rb +118 -0
- package/lib/ruby/3.4.11/bundler/source_list.rb +273 -0
- package/lib/ruby/3.4.11/bundler/source_map.rb +71 -0
- package/lib/ruby/3.4.11/bundler/spec_set.rb +395 -0
- package/lib/ruby/3.4.11/bundler/stub_specification.rb +146 -0
- package/lib/ruby/3.4.11/bundler/templates/.document +1 -0
- package/lib/ruby/3.4.11/bundler/templates/Executable +27 -0
- package/lib/ruby/3.4.11/bundler/templates/Executable.bundler +109 -0
- package/lib/ruby/3.4.11/bundler/templates/Executable.standalone +14 -0
- package/lib/ruby/3.4.11/bundler/templates/Gemfile +5 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/CHANGELOG.md.tt +5 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +132 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/Cargo.toml.tt +7 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/Gemfile.tt +24 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/LICENSE.txt.tt +21 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/README.md.tt +49 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/Rakefile.tt +67 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/bin/console.tt +11 -0
- package/lib/ruby/{gems/3.4.0/gems/nkf-0.2.0/bin/setup → 3.4.11/bundler/templates/newgem/bin/setup.tt} +0 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/circleci/config.yml.tt +25 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/exe/newgem.tt +3 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/Cargo.toml.tt +15 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/extconf-c.rb.tt +10 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/extconf-rust.rb.tt +6 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/newgem.c.tt +9 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/newgem.h.tt +6 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/src/lib.rs.tt +12 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/github/workflows/main.yml.tt +37 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/gitignore.tt +23 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/gitlab-ci.yml.tt +18 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/lib/newgem/version.rb.tt +9 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/lib/newgem.rb.tt +15 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/newgem.gemspec.tt +52 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/rspec.tt +3 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/rubocop.yml.tt +8 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/sig/newgem.rbs.tt +8 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/spec/newgem_spec.rb.tt +11 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/spec/spec_helper.rb.tt +15 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/standard.yml.tt +3 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/test/minitest/test_helper.rb.tt +6 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/test/minitest/test_newgem.rb.tt +13 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/test/test-unit/newgem_test.rb.tt +15 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/test/test-unit/test_helper.rb.tt +6 -0
- package/lib/ruby/3.4.11/bundler/ui/rg_proxy.rb +19 -0
- package/lib/ruby/3.4.11/bundler/ui/shell.rb +187 -0
- package/lib/ruby/3.4.11/bundler/ui/silent.rb +96 -0
- package/lib/ruby/3.4.11/bundler/ui.rb +9 -0
- package/lib/ruby/3.4.11/bundler/uri_credentials_filter.rb +43 -0
- package/lib/ruby/3.4.11/bundler/uri_normalizer.rb +23 -0
- package/lib/ruby/3.4.11/bundler/vendor/.document +1 -0
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/.document +1 -0
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb +224 -0
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool/version.rb +3 -0
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb +56 -0
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool.rb +186 -0
- package/lib/ruby/3.4.11/bundler/vendor/fileutils/.document +1 -0
- package/lib/ruby/3.4.11/bundler/vendor/fileutils/lib/fileutils.rb +2696 -0
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/.document +1 -0
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent/connection.rb +41 -0
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent/pool.rb +65 -0
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent/timed_stack_multi.rb +79 -0
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +1111 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/.document +1 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb +20 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/basic_package_source.rb +169 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/failure_writer.rb +182 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/incompatibility.rb +150 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/package.rb +43 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/partial_solution.rb +121 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/rubygems.rb +45 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/solve_failure.rb +19 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb +61 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/strategy.rb +42 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/term.rb +105 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version.rb +3 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_constraint.rb +129 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb +423 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_solver.rb +236 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_union.rb +178 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub.rb +31 -0
- package/lib/ruby/3.4.11/bundler/vendor/securerandom/.document +1 -0
- package/lib/ruby/3.4.11/bundler/vendor/securerandom/lib/securerandom.rb +102 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/.document +1 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/create_file.rb +105 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/create_link.rb +61 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/directory.rb +108 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +143 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +371 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +130 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions.rb +340 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/base.rb +825 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/command.rb +151 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +107 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/error.rb +106 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/group.rb +292 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/invocation.rb +178 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/line_editor/basic.rb +37 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/line_editor/readline.rb +88 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/line_editor.rb +17 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/nested_context.rb +29 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/argument.rb +86 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/arguments.rb +195 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/option.rb +178 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/options.rb +294 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser.rb +4 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/rake_compat.rb +72 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/runner.rb +335 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/basic.rb +388 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/color.rb +112 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/column_printer.rb +29 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/html.rb +81 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/table_printer.rb +118 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/terminal.rb +42 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/wrapped_printer.rb +38 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell.rb +81 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/util.rb +285 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/version.rb +3 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor.rb +674 -0
- package/lib/ruby/3.4.11/bundler/vendor/tsort/.document +1 -0
- package/lib/ruby/3.4.11/bundler/vendor/tsort/lib/tsort.rb +455 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/.document +1 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/common.rb +880 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/file.rb +100 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ftp.rb +267 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/generic.rb +1592 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/http.rb +125 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/https.rb +23 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ldap.rb +261 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ldaps.rb +22 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/mailto.rb +293 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/rfc2396_parser.rb +546 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/rfc3986_parser.rb +206 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/version.rb +6 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ws.rb +83 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/wss.rb +23 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri.rb +104 -0
- package/lib/ruby/3.4.11/bundler/vendored_fileutils.rb +4 -0
- package/lib/ruby/3.4.11/bundler/vendored_net_http.rb +23 -0
- package/lib/ruby/3.4.11/bundler/vendored_persistent.rb +11 -0
- package/lib/ruby/3.4.11/bundler/vendored_pub_grub.rb +4 -0
- package/lib/ruby/3.4.11/bundler/vendored_securerandom.rb +12 -0
- package/lib/ruby/3.4.11/bundler/vendored_thor.rb +8 -0
- package/lib/ruby/3.4.11/bundler/vendored_timeout.rb +12 -0
- package/lib/ruby/3.4.11/bundler/vendored_tsort.rb +4 -0
- package/lib/ruby/3.4.11/bundler/vendored_uri.rb +21 -0
- package/lib/ruby/3.4.11/bundler/version.rb +13 -0
- package/lib/ruby/3.4.11/bundler/vlad.rb +17 -0
- package/lib/ruby/3.4.11/bundler/worker.rb +117 -0
- package/lib/ruby/3.4.11/bundler/yaml_serializer.rb +98 -0
- package/lib/ruby/3.4.11/bundler.rb +701 -0
- package/lib/ruby/3.4.11/cgi/cgi.gemspec +43 -0
- package/lib/ruby/3.4.11/cgi/cookie.rb +210 -0
- package/lib/ruby/3.4.11/cgi/core.rb +900 -0
- package/lib/ruby/3.4.11/cgi/html.rb +1035 -0
- package/lib/ruby/3.4.11/cgi/session/pstore.rb +91 -0
- package/lib/ruby/3.4.11/cgi/session.rb +562 -0
- package/lib/ruby/3.4.11/cgi/util.rb +258 -0
- package/lib/ruby/3.4.11/cgi.rb +297 -0
- package/lib/ruby/3.4.11/delegate.gemspec +29 -0
- package/lib/ruby/3.4.11/delegate.rb +444 -0
- package/lib/ruby/3.4.11/did_you_mean/core_ext/name_error.rb +57 -0
- package/lib/ruby/3.4.11/did_you_mean/did_you_mean.gemspec +25 -0
- package/lib/ruby/3.4.11/did_you_mean/experimental.rb +2 -0
- package/lib/ruby/3.4.11/did_you_mean/formatter.rb +44 -0
- package/lib/ruby/3.4.11/did_you_mean/formatters/plain_formatter.rb +4 -0
- package/lib/ruby/3.4.11/did_you_mean/formatters/verbose_formatter.rb +10 -0
- package/lib/ruby/3.4.11/did_you_mean/jaro_winkler.rb +84 -0
- package/lib/ruby/3.4.11/did_you_mean/levenshtein.rb +57 -0
- package/lib/ruby/3.4.11/did_you_mean/spell_checker.rb +46 -0
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/key_error_checker.rb +28 -0
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/method_name_checker.rb +79 -0
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb +49 -0
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb +85 -0
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/name_error_checkers.rb +20 -0
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/null_checker.rb +6 -0
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/pattern_key_name_checker.rb +28 -0
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/require_path_checker.rb +39 -0
- package/lib/ruby/3.4.11/did_you_mean/tree_spell_checker.rb +109 -0
- package/lib/ruby/3.4.11/did_you_mean/verbose.rb +2 -0
- package/lib/ruby/3.4.11/did_you_mean/version.rb +3 -0
- package/lib/ruby/3.4.11/did_you_mean.rb +131 -0
- package/lib/ruby/3.4.11/erb/compiler.rb +472 -0
- package/lib/ruby/3.4.11/erb/def_method.rb +47 -0
- package/lib/ruby/3.4.11/erb/util.rb +63 -0
- package/lib/ruby/3.4.11/erb/version.rb +5 -0
- package/lib/ruby/3.4.11/erb.gemspec +38 -0
- package/lib/ruby/3.4.11/erb.rb +509 -0
- package/lib/ruby/3.4.11/error_highlight/base.rb +830 -0
- package/lib/ruby/3.4.11/error_highlight/core_ext.rb +47 -0
- package/lib/ruby/3.4.11/error_highlight/error_highlight.gemspec +27 -0
- package/lib/ruby/3.4.11/error_highlight/formatter.rb +74 -0
- package/lib/ruby/3.4.11/error_highlight/version.rb +3 -0
- package/lib/ruby/3.4.11/error_highlight.rb +2 -0
- package/lib/ruby/3.4.11/fileutils.gemspec +31 -0
- package/lib/ruby/3.4.11/fileutils.rb +2696 -0
- package/lib/ruby/3.4.11/find.gemspec +29 -0
- package/lib/ruby/3.4.11/find.rb +90 -0
- package/lib/ruby/3.4.11/forwardable/forwardable.gemspec +26 -0
- package/lib/ruby/3.4.11/forwardable/impl.rb +17 -0
- package/lib/ruby/3.4.11/forwardable.rb +321 -0
- package/lib/ruby/3.4.11/ipaddr.gemspec +36 -0
- package/lib/ruby/3.4.11/ipaddr.rb +841 -0
- package/lib/ruby/3.4.11/irb/cmd/nop.rb +4 -0
- package/lib/ruby/3.4.11/irb/color.rb +262 -0
- package/lib/ruby/3.4.11/irb/color_printer.rb +55 -0
- package/lib/ruby/3.4.11/irb/command/backtrace.rb +17 -0
- package/lib/ruby/3.4.11/irb/command/base.rb +60 -0
- package/lib/ruby/3.4.11/irb/command/break.rb +17 -0
- package/lib/ruby/3.4.11/irb/command/catch.rb +17 -0
- package/lib/ruby/3.4.11/irb/command/cd.rb +51 -0
- package/lib/ruby/3.4.11/irb/command/chws.rb +40 -0
- package/lib/ruby/3.4.11/irb/command/context.rb +16 -0
- package/lib/ruby/3.4.11/irb/command/continue.rb +17 -0
- package/lib/ruby/3.4.11/irb/command/debug.rb +73 -0
- package/lib/ruby/3.4.11/irb/command/delete.rb +17 -0
- package/lib/ruby/3.4.11/irb/command/disable_irb.rb +19 -0
- package/lib/ruby/3.4.11/irb/command/edit.rb +63 -0
- package/lib/ruby/3.4.11/irb/command/exit.rb +18 -0
- package/lib/ruby/3.4.11/irb/command/finish.rb +17 -0
- package/lib/ruby/3.4.11/irb/command/force_exit.rb +18 -0
- package/lib/ruby/3.4.11/irb/command/help.rb +83 -0
- package/lib/ruby/3.4.11/irb/command/history.rb +45 -0
- package/lib/ruby/3.4.11/irb/command/info.rb +17 -0
- package/lib/ruby/3.4.11/irb/command/internal_helpers.rb +27 -0
- package/lib/ruby/3.4.11/irb/command/irb_info.rb +33 -0
- package/lib/ruby/3.4.11/irb/command/load.rb +91 -0
- package/lib/ruby/3.4.11/irb/command/ls.rb +167 -0
- package/lib/ruby/3.4.11/irb/command/measure.rb +49 -0
- package/lib/ruby/3.4.11/irb/command/next.rb +17 -0
- package/lib/ruby/3.4.11/irb/command/pushws.rb +65 -0
- package/lib/ruby/3.4.11/irb/command/show_doc.rb +51 -0
- package/lib/ruby/3.4.11/irb/command/show_source.rb +74 -0
- package/lib/ruby/3.4.11/irb/command/step.rb +17 -0
- package/lib/ruby/3.4.11/irb/command/subirb.rb +123 -0
- package/lib/ruby/3.4.11/irb/command/whereami.rb +23 -0
- package/lib/ruby/3.4.11/irb/command.rb +23 -0
- package/lib/ruby/3.4.11/irb/completion.rb +504 -0
- package/lib/ruby/3.4.11/irb/context.rb +716 -0
- package/lib/ruby/3.4.11/irb/debug/ui.rb +101 -0
- package/lib/ruby/3.4.11/irb/debug.rb +127 -0
- package/lib/ruby/3.4.11/irb/default_commands.rb +276 -0
- package/lib/ruby/3.4.11/irb/easter-egg.rb +152 -0
- package/lib/ruby/3.4.11/irb/ext/change-ws.rb +37 -0
- package/lib/ruby/3.4.11/irb/ext/eval_history.rb +149 -0
- package/lib/ruby/3.4.11/irb/ext/loader.rb +127 -0
- package/lib/ruby/3.4.11/irb/ext/multi-irb.rb +258 -0
- package/lib/ruby/3.4.11/irb/ext/tracer.rb +39 -0
- package/lib/ruby/3.4.11/irb/ext/use-loader.rb +67 -0
- package/lib/ruby/3.4.11/irb/ext/workspaces.rb +36 -0
- package/lib/ruby/3.4.11/irb/frame.rb +80 -0
- package/lib/ruby/3.4.11/irb/help.rb +28 -0
- package/lib/ruby/3.4.11/irb/helper_method/base.rb +16 -0
- package/lib/ruby/3.4.11/irb/helper_method/conf.rb +11 -0
- package/lib/ruby/3.4.11/irb/helper_method.rb +29 -0
- package/lib/ruby/3.4.11/irb/history.rb +112 -0
- package/lib/ruby/3.4.11/irb/init.rb +538 -0
- package/lib/ruby/3.4.11/irb/input-method.rb +515 -0
- package/lib/ruby/3.4.11/irb/inspector.rb +131 -0
- package/lib/ruby/3.4.11/irb/irb.gemspec +46 -0
- package/lib/ruby/3.4.11/irb/lc/error.rb +52 -0
- package/lib/ruby/3.4.11/irb/lc/help-message +55 -0
- package/lib/ruby/3.4.11/irb/lc/ja/error.rb +53 -0
- package/lib/ruby/3.4.11/irb/lc/ja/help-message +58 -0
- package/lib/ruby/3.4.11/irb/locale.rb +153 -0
- package/lib/ruby/3.4.11/irb/nesting_parser.rb +239 -0
- package/lib/ruby/3.4.11/irb/notifier.rb +230 -0
- package/lib/ruby/3.4.11/irb/output-method.rb +80 -0
- package/lib/ruby/3.4.11/irb/pager.rb +100 -0
- package/lib/ruby/3.4.11/irb/ruby-lex.rb +476 -0
- package/lib/ruby/3.4.11/irb/ruby_logo.aa +118 -0
- package/lib/ruby/3.4.11/irb/source_finder.rb +138 -0
- package/lib/ruby/3.4.11/irb/statement.rb +80 -0
- package/lib/ruby/3.4.11/irb/version.rb +11 -0
- package/lib/ruby/3.4.11/irb/workspace.rb +171 -0
- package/lib/ruby/3.4.11/irb/ws-for-case-2.rb +9 -0
- package/lib/ruby/3.4.11/irb/xmp.rb +164 -0
- package/lib/ruby/3.4.11/irb.rb +1593 -0
- package/lib/ruby/3.4.11/logger/errors.rb +9 -0
- package/lib/ruby/3.4.11/logger/formatter.rb +36 -0
- package/lib/ruby/3.4.11/logger/log_device.rb +236 -0
- package/lib/ruby/3.4.11/logger/logger.gemspec +22 -0
- package/lib/ruby/3.4.11/logger/period.rb +47 -0
- package/lib/ruby/3.4.11/logger/severity.rb +38 -0
- package/lib/ruby/3.4.11/logger/version.rb +5 -0
- package/lib/ruby/3.4.11/logger.rb +761 -0
- package/lib/ruby/3.4.11/mkmf.rb +3045 -0
- package/lib/ruby/3.4.11/net/http/exceptions.rb +34 -0
- package/lib/ruby/3.4.11/net/http/generic_request.rb +414 -0
- package/lib/ruby/3.4.11/net/http/header.rb +981 -0
- package/lib/ruby/3.4.11/net/http/net-http.gemspec +39 -0
- package/lib/ruby/3.4.11/net/http/proxy_delta.rb +17 -0
- package/lib/ruby/3.4.11/net/http/request.rb +88 -0
- package/lib/ruby/3.4.11/net/http/requests.rb +430 -0
- package/lib/ruby/3.4.11/net/http/response.rb +738 -0
- package/lib/ruby/3.4.11/net/http/responses.rb +1174 -0
- package/lib/ruby/3.4.11/net/http/status.rb +84 -0
- package/lib/ruby/3.4.11/net/http.rb +2574 -0
- package/lib/ruby/3.4.11/net/https.rb +23 -0
- package/lib/ruby/3.4.11/net/net-protocol.gemspec +34 -0
- package/lib/ruby/3.4.11/net/protocol.rb +544 -0
- package/lib/ruby/3.4.11/open-uri.gemspec +32 -0
- package/lib/ruby/3.4.11/open-uri.rb +895 -0
- package/lib/ruby/3.4.11/open3/open3.gemspec +33 -0
- package/lib/ruby/3.4.11/open3/version.rb +3 -0
- package/lib/ruby/3.4.11/open3.rb +1410 -0
- package/lib/ruby/3.4.11/optionparser.rb +2 -0
- package/lib/ruby/3.4.11/optparse/ac.rb +70 -0
- package/lib/ruby/3.4.11/optparse/date.rb +18 -0
- package/lib/ruby/3.4.11/optparse/kwargs.rb +27 -0
- package/lib/ruby/3.4.11/optparse/optparse.gemspec +31 -0
- package/lib/ruby/3.4.11/optparse/shellwords.rb +7 -0
- package/lib/ruby/3.4.11/optparse/time.rb +11 -0
- package/lib/ruby/3.4.11/optparse/uri.rb +7 -0
- package/lib/ruby/3.4.11/optparse/version.rb +80 -0
- package/lib/ruby/3.4.11/optparse.rb +2429 -0
- package/lib/ruby/3.4.11/ostruct.gemspec +24 -0
- package/lib/ruby/3.4.11/ostruct.rb +489 -0
- package/lib/ruby/3.4.11/pp.gemspec +35 -0
- package/lib/ruby/3.4.11/pp.rb +699 -0
- package/lib/ruby/3.4.11/prettyprint.gemspec +29 -0
- package/lib/ruby/3.4.11/prettyprint.rb +558 -0
- package/lib/ruby/3.4.11/prism/compiler.rb +801 -0
- package/lib/ruby/3.4.11/prism/desugar_compiler.rb +392 -0
- package/lib/ruby/3.4.11/prism/dispatcher.rb +2210 -0
- package/lib/ruby/3.4.11/prism/dsl.rb +1003 -0
- package/lib/ruby/3.4.11/prism/ffi.rb +570 -0
- package/lib/ruby/3.4.11/prism/inspect_visitor.rb +2392 -0
- package/lib/ruby/3.4.11/prism/lex_compat.rb +928 -0
- package/lib/ruby/3.4.11/prism/mutation_compiler.rb +772 -0
- package/lib/ruby/3.4.11/prism/node.rb +18816 -0
- package/lib/ruby/3.4.11/prism/node_ext.rb +511 -0
- package/lib/ruby/3.4.11/prism/pack.rb +230 -0
- package/lib/ruby/3.4.11/prism/parse_result/comments.rb +188 -0
- package/lib/ruby/3.4.11/prism/parse_result/errors.rb +66 -0
- package/lib/ruby/3.4.11/prism/parse_result/newlines.rb +155 -0
- package/lib/ruby/3.4.11/prism/parse_result.rb +911 -0
- package/lib/ruby/3.4.11/prism/pattern.rb +269 -0
- package/lib/ruby/3.4.11/prism/polyfill/append_as_bytes.rb +15 -0
- package/lib/ruby/3.4.11/prism/polyfill/byteindex.rb +13 -0
- package/lib/ruby/3.4.11/prism/polyfill/scan_byte.rb +14 -0
- package/lib/ruby/3.4.11/prism/polyfill/unpack1.rb +14 -0
- package/lib/ruby/3.4.11/prism/polyfill/warn.rb +36 -0
- package/lib/ruby/3.4.11/prism/prism.gemspec +174 -0
- package/lib/ruby/3.4.11/prism/reflection.rb +416 -0
- package/lib/ruby/3.4.11/prism/relocation.rb +505 -0
- package/lib/ruby/3.4.11/prism/serialize.rb +2400 -0
- package/lib/ruby/3.4.11/prism/string_query.rb +31 -0
- package/lib/ruby/3.4.11/prism/translation/parser/builder.rb +62 -0
- package/lib/ruby/3.4.11/prism/translation/parser/compiler.rb +2234 -0
- package/lib/ruby/3.4.11/prism/translation/parser/lexer.rb +820 -0
- package/lib/ruby/3.4.11/prism/translation/parser.rb +374 -0
- package/lib/ruby/3.4.11/prism/translation/parser33.rb +13 -0
- package/lib/ruby/3.4.11/prism/translation/parser34.rb +13 -0
- package/lib/ruby/3.4.11/prism/translation/parser35.rb +13 -0
- package/lib/ruby/3.4.11/prism/translation/parser_current.rb +24 -0
- package/lib/ruby/3.4.11/prism/translation/ripper/sexp.rb +126 -0
- package/lib/ruby/3.4.11/prism/translation/ripper/shim.rb +5 -0
- package/lib/ruby/3.4.11/prism/translation/ripper.rb +3474 -0
- package/lib/ruby/3.4.11/prism/translation/ruby_parser.rb +1929 -0
- package/lib/ruby/3.4.11/prism/translation.rb +16 -0
- package/lib/ruby/3.4.11/prism/visitor.rb +813 -0
- package/lib/ruby/3.4.11/prism.rb +91 -0
- package/lib/ruby/3.4.11/pstore.gemspec +32 -0
- package/lib/ruby/3.4.11/pstore.rb +736 -0
- package/lib/ruby/3.4.11/random/formatter.rb +372 -0
- package/lib/ruby/3.4.11/rdoc/.document +2 -0
- package/lib/ruby/3.4.11/rdoc/code_object/alias.rb +104 -0
- package/lib/ruby/3.4.11/rdoc/code_object/anon_class.rb +10 -0
- package/lib/ruby/3.4.11/rdoc/code_object/any_method.rb +374 -0
- package/lib/ruby/3.4.11/rdoc/code_object/attr.rb +172 -0
- package/lib/ruby/3.4.11/rdoc/code_object/class_module.rb +888 -0
- package/lib/ruby/3.4.11/rdoc/code_object/constant.rb +186 -0
- package/lib/ruby/3.4.11/rdoc/code_object/context/section.rb +175 -0
- package/lib/ruby/3.4.11/rdoc/code_object/context.rb +1222 -0
- package/lib/ruby/3.4.11/rdoc/code_object/extend.rb +9 -0
- package/lib/ruby/3.4.11/rdoc/code_object/ghost_method.rb +6 -0
- package/lib/ruby/3.4.11/rdoc/code_object/include.rb +9 -0
- package/lib/ruby/3.4.11/rdoc/code_object/meta_method.rb +6 -0
- package/lib/ruby/3.4.11/rdoc/code_object/method_attr.rb +410 -0
- package/lib/ruby/3.4.11/rdoc/code_object/mixin.rb +120 -0
- package/lib/ruby/3.4.11/rdoc/code_object/normal_class.rb +92 -0
- package/lib/ruby/3.4.11/rdoc/code_object/normal_module.rb +73 -0
- package/lib/ruby/3.4.11/rdoc/code_object/require.rb +51 -0
- package/lib/ruby/3.4.11/rdoc/code_object/single_class.rb +30 -0
- package/lib/ruby/3.4.11/rdoc/code_object/top_level.rb +273 -0
- package/lib/ruby/3.4.11/rdoc/code_object.rb +395 -0
- package/lib/ruby/3.4.11/rdoc/code_objects.rb +5 -0
- package/lib/ruby/3.4.11/rdoc/comment.rb +236 -0
- package/lib/ruby/3.4.11/rdoc/cross_reference.rb +228 -0
- package/lib/ruby/3.4.11/rdoc/encoding.rb +120 -0
- package/lib/ruby/3.4.11/rdoc/erb_partial.rb +18 -0
- package/lib/ruby/3.4.11/rdoc/erbio.rb +37 -0
- package/lib/ruby/3.4.11/rdoc/generator/darkfish.rb +812 -0
- package/lib/ruby/3.4.11/rdoc/generator/json_index.rb +284 -0
- package/lib/ruby/3.4.11/rdoc/generator/markup.rb +171 -0
- package/lib/ruby/3.4.11/rdoc/generator/pot/message_extractor.rb +68 -0
- package/lib/ruby/3.4.11/rdoc/generator/pot/po.rb +84 -0
- package/lib/ruby/3.4.11/rdoc/generator/pot/po_entry.rb +141 -0
- package/lib/ruby/3.4.11/rdoc/generator/pot.rb +94 -0
- package/lib/ruby/3.4.11/rdoc/generator/ri.rb +30 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/.document +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_footer.rhtml +5 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_head.rhtml +48 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +5 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +15 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +15 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +15 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +21 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +11 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +32 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +6 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_search.rhtml +14 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +11 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +39 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_toggle.rhtml +3 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/class.rhtml +221 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/css/fonts.css +167 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/css/rdoc.css +683 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/add.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/arrow_up.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/brick.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/brick_link.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/bug.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/bullet_black.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/date.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/delete.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/find.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/loadingAnimation.gif +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/macFFBgHack.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/package.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/page_green.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/page_white_text.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/page_white_width.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/plugin.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/ruby.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/tag_blue.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/tag_green.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/transparent.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/wrench.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/wrench_orange.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/zoom.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/index.rhtml +23 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/js/darkfish.js +120 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/js/search.js +110 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/page.rhtml +18 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/servlet_not_found.rhtml +20 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/servlet_root.rhtml +65 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/table_of_contents.rhtml +70 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/json_index/.document +1 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/json_index/js/navigation.js +105 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/json_index/js/searcher.js +229 -0
- package/lib/ruby/3.4.11/rdoc/generator.rb +51 -0
- package/lib/ruby/3.4.11/rdoc/i18n/locale.rb +102 -0
- package/lib/ruby/3.4.11/rdoc/i18n/text.rb +126 -0
- package/lib/ruby/3.4.11/rdoc/i18n.rb +10 -0
- package/lib/ruby/3.4.11/rdoc/known_classes.rb +74 -0
- package/lib/ruby/3.4.11/rdoc/markdown/.document +1 -0
- package/lib/ruby/3.4.11/rdoc/markdown/entities.rb +2131 -0
- package/lib/ruby/3.4.11/rdoc/markdown/literals.rb +454 -0
- package/lib/ruby/3.4.11/rdoc/markdown.rb +16806 -0
- package/lib/ruby/3.4.11/rdoc/markup/attr_changer.rb +22 -0
- package/lib/ruby/3.4.11/rdoc/markup/attr_span.rb +35 -0
- package/lib/ruby/3.4.11/rdoc/markup/attribute_manager.rb +405 -0
- package/lib/ruby/3.4.11/rdoc/markup/attributes.rb +70 -0
- package/lib/ruby/3.4.11/rdoc/markup/blank_line.rb +27 -0
- package/lib/ruby/3.4.11/rdoc/markup/block_quote.rb +14 -0
- package/lib/ruby/3.4.11/rdoc/markup/document.rb +164 -0
- package/lib/ruby/3.4.11/rdoc/markup/formatter.rb +272 -0
- package/lib/ruby/3.4.11/rdoc/markup/hard_break.rb +31 -0
- package/lib/ruby/3.4.11/rdoc/markup/heading.rb +84 -0
- package/lib/ruby/3.4.11/rdoc/markup/include.rb +42 -0
- package/lib/ruby/3.4.11/rdoc/markup/indented_paragraph.rb +47 -0
- package/lib/ruby/3.4.11/rdoc/markup/list.rb +101 -0
- package/lib/ruby/3.4.11/rdoc/markup/list_item.rb +99 -0
- package/lib/ruby/3.4.11/rdoc/markup/paragraph.rb +28 -0
- package/lib/ruby/3.4.11/rdoc/markup/parser.rb +585 -0
- package/lib/ruby/3.4.11/rdoc/markup/pre_process.rb +318 -0
- package/lib/ruby/3.4.11/rdoc/markup/raw.rb +69 -0
- package/lib/ruby/3.4.11/rdoc/markup/regexp_handling.rb +40 -0
- package/lib/ruby/3.4.11/rdoc/markup/rule.rb +20 -0
- package/lib/ruby/3.4.11/rdoc/markup/table.rb +56 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_ansi.rb +93 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_bs.rb +102 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_html.rb +462 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_html_crossref.rb +226 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_html_snippet.rb +287 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_joined_paragraph.rb +46 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_label.rb +74 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_markdown.rb +191 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_rdoc.rb +353 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_table_of_contents.rb +88 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_test.rb +69 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_tt_only.rb +120 -0
- package/lib/ruby/3.4.11/rdoc/markup/verbatim.rb +83 -0
- package/lib/ruby/3.4.11/rdoc/markup.rb +240 -0
- package/lib/ruby/3.4.11/rdoc/options.rb +1416 -0
- package/lib/ruby/3.4.11/rdoc/parser/c.rb +1257 -0
- package/lib/ruby/3.4.11/rdoc/parser/changelog.rb +350 -0
- package/lib/ruby/3.4.11/rdoc/parser/markdown.rb +22 -0
- package/lib/ruby/3.4.11/rdoc/parser/prism_ruby.rb +1092 -0
- package/lib/ruby/3.4.11/rdoc/parser/rd.rb +22 -0
- package/lib/ruby/3.4.11/rdoc/parser/ripper_state_lex.rb +302 -0
- package/lib/ruby/3.4.11/rdoc/parser/ruby.rb +2378 -0
- package/lib/ruby/3.4.11/rdoc/parser/ruby_tools.rb +165 -0
- package/lib/ruby/3.4.11/rdoc/parser/simple.rb +61 -0
- package/lib/ruby/3.4.11/rdoc/parser/text.rb +11 -0
- package/lib/ruby/3.4.11/rdoc/parser.rb +297 -0
- package/lib/ruby/3.4.11/rdoc/rd/.document +1 -0
- package/lib/ruby/3.4.11/rdoc/rd/block_parser.rb +1706 -0
- package/lib/ruby/3.4.11/rdoc/rd/inline.rb +71 -0
- package/lib/ruby/3.4.11/rdoc/rd/inline_parser.rb +1854 -0
- package/lib/ruby/3.4.11/rdoc/rd.rb +99 -0
- package/lib/ruby/3.4.11/rdoc/rdoc.gemspec +68 -0
- package/lib/ruby/3.4.11/rdoc/rdoc.rb +551 -0
- package/lib/ruby/3.4.11/rdoc/ri/driver.rb +1566 -0
- package/lib/ruby/3.4.11/rdoc/ri/formatter.rb +6 -0
- package/lib/ruby/3.4.11/rdoc/ri/paths.rb +171 -0
- package/lib/ruby/3.4.11/rdoc/ri/store.rb +6 -0
- package/lib/ruby/3.4.11/rdoc/ri/task.rb +71 -0
- package/lib/ruby/3.4.11/rdoc/ri.rb +20 -0
- package/lib/ruby/3.4.11/rdoc/rubygems_hook.rb +327 -0
- package/lib/ruby/3.4.11/rdoc/servlet.rb +452 -0
- package/lib/ruby/3.4.11/rdoc/stats/normal.rb +58 -0
- package/lib/ruby/3.4.11/rdoc/stats/quiet.rb +59 -0
- package/lib/ruby/3.4.11/rdoc/stats/verbose.rb +44 -0
- package/lib/ruby/3.4.11/rdoc/stats.rb +461 -0
- package/lib/ruby/3.4.11/rdoc/store.rb +997 -0
- package/lib/ruby/3.4.11/rdoc/task.rb +354 -0
- package/lib/ruby/3.4.11/rdoc/text.rb +322 -0
- package/lib/ruby/3.4.11/rdoc/token_stream.rb +118 -0
- package/lib/ruby/3.4.11/rdoc/tom_doc.rb +257 -0
- package/lib/ruby/3.4.11/rdoc/version.rb +10 -0
- package/lib/ruby/3.4.11/rdoc.rb +211 -0
- package/lib/ruby/3.4.11/readline.gemspec +33 -0
- package/lib/ruby/3.4.11/readline.rb +7 -0
- package/lib/ruby/3.4.11/reline/config.rb +373 -0
- package/lib/ruby/3.4.11/reline/face.rb +199 -0
- package/lib/ruby/3.4.11/reline/history.rb +76 -0
- package/lib/ruby/3.4.11/reline/io/ansi.rb +325 -0
- package/lib/ruby/3.4.11/reline/io/dumb.rb +120 -0
- package/lib/ruby/3.4.11/reline/io/windows.rb +530 -0
- package/lib/ruby/3.4.11/reline/io.rb +55 -0
- package/lib/ruby/3.4.11/reline/key_actor/base.rb +37 -0
- package/lib/ruby/3.4.11/reline/key_actor/composite.rb +17 -0
- package/lib/ruby/3.4.11/reline/key_actor/emacs.rb +517 -0
- package/lib/ruby/3.4.11/reline/key_actor/vi_command.rb +518 -0
- package/lib/ruby/3.4.11/reline/key_actor/vi_insert.rb +517 -0
- package/lib/ruby/3.4.11/reline/key_actor.rb +8 -0
- package/lib/ruby/3.4.11/reline/key_stroke.rb +119 -0
- package/lib/ruby/3.4.11/reline/kill_ring.rb +125 -0
- package/lib/ruby/3.4.11/reline/line_editor.rb +2382 -0
- package/lib/ruby/3.4.11/reline/reline.gemspec +30 -0
- package/lib/ruby/3.4.11/reline/unicode/east_asian_width.rb +1267 -0
- package/lib/ruby/3.4.11/reline/unicode.rb +415 -0
- package/lib/ruby/3.4.11/reline/version.rb +3 -0
- package/lib/ruby/3.4.11/reline.rb +519 -0
- package/lib/ruby/3.4.11/resolv.gemspec +30 -0
- package/lib/ruby/3.4.11/resolv.rb +3587 -0
- package/lib/ruby/3.4.11/ruby2_keywords.gemspec +23 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/.document +1 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/assembler.rb +1160 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/block.rb +11 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/branch_stub.rb +24 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/c_pointer.rb +394 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/c_type.rb +99 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/code_block.rb +91 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/compiler.rb +518 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/context.rb +377 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/entry_stub.rb +7 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/exit_compiler.rb +164 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/hooks.rb +36 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/insn_compiler.rb +6046 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/instruction.rb +1326 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/invariants.rb +155 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/jit_state.rb +65 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/stats.rb +191 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/type.rb +221 -0
- package/lib/ruby/3.4.11/rubygems/available_set.rb +165 -0
- package/lib/ruby/3.4.11/rubygems/basic_specification.rb +383 -0
- package/lib/ruby/3.4.11/rubygems/bundler_version_finder.rb +77 -0
- package/lib/ruby/3.4.11/rubygems/ci_detector.rb +75 -0
- package/lib/ruby/3.4.11/rubygems/command.rb +664 -0
- package/lib/ruby/3.4.11/rubygems/command_manager.rb +255 -0
- package/lib/ruby/3.4.11/rubygems/commands/build_command.rb +127 -0
- package/lib/ruby/3.4.11/rubygems/commands/cert_command.rb +325 -0
- package/lib/ruby/3.4.11/rubygems/commands/check_command.rb +97 -0
- package/lib/ruby/3.4.11/rubygems/commands/cleanup_command.rb +178 -0
- package/lib/ruby/3.4.11/rubygems/commands/contents_command.rb +196 -0
- package/lib/ruby/3.4.11/rubygems/commands/dependency_command.rb +206 -0
- package/lib/ruby/3.4.11/rubygems/commands/environment_command.rb +181 -0
- package/lib/ruby/3.4.11/rubygems/commands/exec_command.rb +256 -0
- package/lib/ruby/3.4.11/rubygems/commands/fetch_command.rb +109 -0
- package/lib/ruby/3.4.11/rubygems/commands/generate_index_command.rb +51 -0
- package/lib/ruby/3.4.11/rubygems/commands/help_command.rb +375 -0
- package/lib/ruby/3.4.11/rubygems/commands/info_command.rb +38 -0
- package/lib/ruby/3.4.11/rubygems/commands/install_command.rb +269 -0
- package/lib/ruby/3.4.11/rubygems/commands/list_command.rb +42 -0
- package/lib/ruby/3.4.11/rubygems/commands/lock_command.rb +109 -0
- package/lib/ruby/3.4.11/rubygems/commands/mirror_command.rb +26 -0
- package/lib/ruby/3.4.11/rubygems/commands/open_command.rb +83 -0
- package/lib/ruby/3.4.11/rubygems/commands/outdated_command.rb +33 -0
- package/lib/ruby/3.4.11/rubygems/commands/owner_command.rb +124 -0
- package/lib/ruby/3.4.11/rubygems/commands/pristine_command.rb +217 -0
- package/lib/ruby/3.4.11/rubygems/commands/push_command.rb +135 -0
- package/lib/ruby/3.4.11/rubygems/commands/query_command.rb +43 -0
- package/lib/ruby/3.4.11/rubygems/commands/rdoc_command.rb +90 -0
- package/lib/ruby/3.4.11/rubygems/commands/rebuild_command.rb +262 -0
- package/lib/ruby/3.4.11/rubygems/commands/search_command.rb +41 -0
- package/lib/ruby/3.4.11/rubygems/commands/server_command.rb +26 -0
- package/lib/ruby/3.4.11/rubygems/commands/setup_command.rb +663 -0
- package/lib/ruby/3.4.11/rubygems/commands/signin_command.rb +34 -0
- package/lib/ruby/3.4.11/rubygems/commands/signout_command.rb +32 -0
- package/lib/ruby/3.4.11/rubygems/commands/sources_command.rb +227 -0
- package/lib/ruby/3.4.11/rubygems/commands/specification_command.rb +156 -0
- package/lib/ruby/3.4.11/rubygems/commands/stale_command.rb +40 -0
- package/lib/ruby/3.4.11/rubygems/commands/uninstall_command.rb +204 -0
- package/lib/ruby/3.4.11/rubygems/commands/unpack_command.rb +168 -0
- package/lib/ruby/3.4.11/rubygems/commands/update_command.rb +326 -0
- package/lib/ruby/3.4.11/rubygems/commands/which_command.rb +88 -0
- package/lib/ruby/3.4.11/rubygems/commands/yank_command.rb +99 -0
- package/lib/ruby/3.4.11/rubygems/compatibility.rb +41 -0
- package/lib/ruby/3.4.11/rubygems/config_file.rb +618 -0
- package/lib/ruby/3.4.11/rubygems/core_ext/kernel_gem.rb +68 -0
- package/lib/ruby/3.4.11/rubygems/core_ext/kernel_require.rb +149 -0
- package/lib/ruby/3.4.11/rubygems/core_ext/kernel_warn.rb +45 -0
- package/lib/ruby/3.4.11/rubygems/core_ext/tcpsocket_init.rb +54 -0
- package/lib/ruby/3.4.11/rubygems/defaults.rb +308 -0
- package/lib/ruby/3.4.11/rubygems/dependency.rb +348 -0
- package/lib/ruby/3.4.11/rubygems/dependency_installer.rb +335 -0
- package/lib/ruby/3.4.11/rubygems/dependency_list.rb +243 -0
- package/lib/ruby/3.4.11/rubygems/deprecate.rb +169 -0
- package/lib/ruby/3.4.11/rubygems/doctor.rb +132 -0
- package/lib/ruby/3.4.11/rubygems/errors.rb +177 -0
- package/lib/ruby/3.4.11/rubygems/exceptions.rb +293 -0
- package/lib/ruby/3.4.11/rubygems/ext/build_error.rb +9 -0
- package/lib/ruby/3.4.11/rubygems/ext/builder.rb +260 -0
- package/lib/ruby/3.4.11/rubygems/ext/cargo_builder/link_flag_converter.rb +27 -0
- package/lib/ruby/3.4.11/rubygems/ext/cargo_builder.rb +346 -0
- package/lib/ruby/3.4.11/rubygems/ext/cmake_builder.rb +21 -0
- package/lib/ruby/3.4.11/rubygems/ext/configure_builder.rb +26 -0
- package/lib/ruby/3.4.11/rubygems/ext/ext_conf_builder.rb +77 -0
- package/lib/ruby/3.4.11/rubygems/ext/rake_builder.rb +37 -0
- package/lib/ruby/3.4.11/rubygems/ext.rb +20 -0
- package/lib/ruby/3.4.11/rubygems/gem_runner.rb +89 -0
- package/lib/ruby/3.4.11/rubygems/gemcutter_utilities/webauthn_listener/response.rb +163 -0
- package/lib/ruby/3.4.11/rubygems/gemcutter_utilities/webauthn_listener.rb +105 -0
- package/lib/ruby/3.4.11/rubygems/gemcutter_utilities/webauthn_poller.rb +80 -0
- package/lib/ruby/3.4.11/rubygems/gemcutter_utilities.rb +397 -0
- package/lib/ruby/3.4.11/rubygems/gemspec_helpers.rb +19 -0
- package/lib/ruby/3.4.11/rubygems/install_default_message.rb +13 -0
- package/lib/ruby/3.4.11/rubygems/install_message.rb +13 -0
- package/lib/ruby/3.4.11/rubygems/install_update_options.rb +204 -0
- package/lib/ruby/3.4.11/rubygems/installer.rb +1031 -0
- package/lib/ruby/3.4.11/rubygems/installer_uninstaller_utils.rb +27 -0
- package/lib/ruby/3.4.11/rubygems/local_remote_options.rb +146 -0
- package/lib/ruby/3.4.11/rubygems/name_tuple.rb +119 -0
- package/lib/ruby/3.4.11/rubygems/openssl.rb +7 -0
- package/lib/ruby/3.4.11/rubygems/package/digest_io.rb +63 -0
- package/lib/ruby/3.4.11/rubygems/package/file_source.rb +32 -0
- package/lib/ruby/3.4.11/rubygems/package/io_source.rb +48 -0
- package/lib/ruby/3.4.11/rubygems/package/old.rb +169 -0
- package/lib/ruby/3.4.11/rubygems/package/source.rb +4 -0
- package/lib/ruby/3.4.11/rubygems/package/tar_header.rb +277 -0
- package/lib/ruby/3.4.11/rubygems/package/tar_reader/entry.rb +244 -0
- package/lib/ruby/3.4.11/rubygems/package/tar_reader.rb +101 -0
- package/lib/ruby/3.4.11/rubygems/package/tar_writer.rb +332 -0
- package/lib/ruby/3.4.11/rubygems/package.rb +742 -0
- package/lib/ruby/3.4.11/rubygems/package_task.rb +123 -0
- package/lib/ruby/3.4.11/rubygems/path_support.rb +85 -0
- package/lib/ruby/3.4.11/rubygems/platform.rb +269 -0
- package/lib/ruby/3.4.11/rubygems/psych_tree.rb +37 -0
- package/lib/ruby/3.4.11/rubygems/query_utils.rb +349 -0
- package/lib/ruby/3.4.11/rubygems/rdoc.rb +26 -0
- package/lib/ruby/3.4.11/rubygems/remote_fetcher.rb +341 -0
- package/lib/ruby/3.4.11/rubygems/request/connection_pools.rb +95 -0
- package/lib/ruby/3.4.11/rubygems/request/http_pool.rb +47 -0
- package/lib/ruby/3.4.11/rubygems/request/https_pool.rb +10 -0
- package/lib/ruby/3.4.11/rubygems/request.rb +298 -0
- package/lib/ruby/3.4.11/rubygems/request_set/gem_dependency_api.rb +841 -0
- package/lib/ruby/3.4.11/rubygems/request_set/lockfile/parser.rb +344 -0
- package/lib/ruby/3.4.11/rubygems/request_set/lockfile/tokenizer.rb +122 -0
- package/lib/ruby/3.4.11/rubygems/request_set/lockfile.rb +235 -0
- package/lib/ruby/3.4.11/rubygems/request_set.rb +468 -0
- package/lib/ruby/3.4.11/rubygems/requirement.rb +298 -0
- package/lib/ruby/3.4.11/rubygems/resolver/activation_request.rb +159 -0
- package/lib/ruby/3.4.11/rubygems/resolver/api_set/gem_parser.rb +21 -0
- package/lib/ruby/3.4.11/rubygems/resolver/api_set.rb +139 -0
- package/lib/ruby/3.4.11/rubygems/resolver/api_specification.rb +105 -0
- package/lib/ruby/3.4.11/rubygems/resolver/best_set.rb +49 -0
- package/lib/ruby/3.4.11/rubygems/resolver/composed_set.rb +65 -0
- package/lib/ruby/3.4.11/rubygems/resolver/conflict.rb +146 -0
- package/lib/ruby/3.4.11/rubygems/resolver/current_set.rb +12 -0
- package/lib/ruby/3.4.11/rubygems/resolver/dependency_request.rb +119 -0
- package/lib/ruby/3.4.11/rubygems/resolver/git_set.rb +120 -0
- package/lib/ruby/3.4.11/rubygems/resolver/git_specification.rb +57 -0
- package/lib/ruby/3.4.11/rubygems/resolver/index_set.rb +79 -0
- package/lib/ruby/3.4.11/rubygems/resolver/index_specification.rb +101 -0
- package/lib/ruby/3.4.11/rubygems/resolver/installed_specification.rb +57 -0
- package/lib/ruby/3.4.11/rubygems/resolver/installer_set.rb +271 -0
- package/lib/ruby/3.4.11/rubygems/resolver/local_specification.rb +40 -0
- package/lib/ruby/3.4.11/rubygems/resolver/lock_set.rb +81 -0
- package/lib/ruby/3.4.11/rubygems/resolver/lock_specification.rb +86 -0
- package/lib/ruby/3.4.11/rubygems/resolver/requirement_list.rb +82 -0
- package/lib/ruby/3.4.11/rubygems/resolver/set.rb +55 -0
- package/lib/ruby/3.4.11/rubygems/resolver/source_set.rb +47 -0
- package/lib/ruby/3.4.11/rubygems/resolver/spec_specification.rb +76 -0
- package/lib/ruby/3.4.11/rubygems/resolver/specification.rb +126 -0
- package/lib/ruby/3.4.11/rubygems/resolver/stats.rb +46 -0
- package/lib/ruby/3.4.11/rubygems/resolver/vendor_set.rb +86 -0
- package/lib/ruby/3.4.11/rubygems/resolver/vendor_specification.rb +23 -0
- package/lib/ruby/3.4.11/rubygems/resolver.rb +341 -0
- package/lib/ruby/3.4.11/rubygems/s3_uri_signer.rb +177 -0
- package/lib/ruby/3.4.11/rubygems/safe_marshal/elements.rb +146 -0
- package/lib/ruby/3.4.11/rubygems/safe_marshal/reader.rb +325 -0
- package/lib/ruby/3.4.11/rubygems/safe_marshal/visitors/stream_printer.rb +31 -0
- package/lib/ruby/3.4.11/rubygems/safe_marshal/visitors/to_ruby.rb +428 -0
- package/lib/ruby/3.4.11/rubygems/safe_marshal/visitors/visitor.rb +74 -0
- package/lib/ruby/3.4.11/rubygems/safe_marshal.rb +74 -0
- package/lib/ruby/3.4.11/rubygems/safe_yaml.rb +45 -0
- package/lib/ruby/3.4.11/rubygems/security/policies.rb +114 -0
- package/lib/ruby/3.4.11/rubygems/security/policy.rb +288 -0
- package/lib/ruby/3.4.11/rubygems/security/signer.rb +212 -0
- package/lib/ruby/3.4.11/rubygems/security/trust_dir.rb +117 -0
- package/lib/ruby/3.4.11/rubygems/security.rb +615 -0
- package/lib/ruby/3.4.11/rubygems/security_option.rb +43 -0
- package/lib/ruby/3.4.11/rubygems/source/git.rb +244 -0
- package/lib/ruby/3.4.11/rubygems/source/installed.rb +39 -0
- package/lib/ruby/3.4.11/rubygems/source/local.rb +131 -0
- package/lib/ruby/3.4.11/rubygems/source/lock.rb +49 -0
- package/lib/ruby/3.4.11/rubygems/source/specific_file.rb +73 -0
- package/lib/ruby/3.4.11/rubygems/source/vendor.rb +24 -0
- package/lib/ruby/3.4.11/rubygems/source.rb +247 -0
- package/lib/ruby/3.4.11/rubygems/source_list.rb +146 -0
- package/lib/ruby/3.4.11/rubygems/spec_fetcher.rb +290 -0
- package/lib/ruby/3.4.11/rubygems/specification.rb +2666 -0
- package/lib/ruby/3.4.11/rubygems/specification_policy.rb +558 -0
- package/lib/ruby/3.4.11/rubygems/specification_record.rb +212 -0
- package/lib/ruby/3.4.11/rubygems/ssl_certs/.document +1 -0
- package/lib/ruby/3.4.11/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA.pem +21 -0
- package/lib/ruby/3.4.11/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA_R3.pem +21 -0
- package/lib/ruby/3.4.11/rubygems/stub_specification.rb +235 -0
- package/lib/ruby/3.4.11/rubygems/target_rbconfig.rb +50 -0
- package/lib/ruby/3.4.11/rubygems/text.rb +85 -0
- package/lib/ruby/3.4.11/rubygems/uninstaller.rb +429 -0
- package/lib/ruby/3.4.11/rubygems/unknown_command_spell_checker.rb +21 -0
- package/lib/ruby/3.4.11/rubygems/update_suggestion.rb +56 -0
- package/lib/ruby/3.4.11/rubygems/uri.rb +126 -0
- package/lib/ruby/3.4.11/rubygems/uri_formatter.rb +47 -0
- package/lib/ruby/3.4.11/rubygems/user_interaction.rb +650 -0
- package/lib/ruby/3.4.11/rubygems/util/licenses.rb +834 -0
- package/lib/ruby/3.4.11/rubygems/util/list.rb +40 -0
- package/lib/ruby/3.4.11/rubygems/util.rb +118 -0
- package/lib/ruby/3.4.11/rubygems/validator.rb +144 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/.document +1 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +57 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +88 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +36 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +66 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +62 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +63 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +61 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +126 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +46 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +36 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +164 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph.rb +255 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/errors.rb +149 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/gem_metadata.rb +6 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +112 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/modules/ui.rb +67 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/resolution.rb +839 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/resolver.rb +46 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/state.rb +58 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo.rb +11 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/.document +1 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/exceptions.rb +34 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/generic_request.rb +414 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/header.rb +981 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/proxy_delta.rb +17 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/request.rb +88 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/requests.rb +430 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/response.rb +738 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/responses.rb +1174 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/status.rb +84 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http.rb +2580 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/https.rb +23 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-protocol/.document +1 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-protocol/lib/net/protocol.rb +544 -0
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/.document +1 -0
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optionparser.rb +2 -0
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/ac.rb +70 -0
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/date.rb +18 -0
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/kwargs.rb +27 -0
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/shellwords.rb +7 -0
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/time.rb +11 -0
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/uri.rb +7 -0
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/version.rb +80 -0
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse.rb +2426 -0
- package/lib/ruby/3.4.11/rubygems/vendor/resolv/.document +1 -0
- package/lib/ruby/3.4.11/rubygems/vendor/resolv/lib/resolv.rb +3455 -0
- package/lib/ruby/3.4.11/rubygems/vendor/securerandom/.document +1 -0
- package/lib/ruby/3.4.11/rubygems/vendor/securerandom/lib/securerandom.rb +102 -0
- package/lib/ruby/3.4.11/rubygems/vendor/timeout/.document +1 -0
- package/lib/ruby/3.4.11/rubygems/vendor/timeout/lib/timeout.rb +198 -0
- package/lib/ruby/3.4.11/rubygems/vendor/tsort/.document +1 -0
- package/lib/ruby/3.4.11/rubygems/vendor/tsort/lib/tsort.rb +455 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/.document +1 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/common.rb +880 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/file.rb +100 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ftp.rb +267 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/generic.rb +1592 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/http.rb +125 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/https.rb +23 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ldap.rb +261 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ldaps.rb +22 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/mailto.rb +293 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/rfc2396_parser.rb +546 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/rfc3986_parser.rb +206 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/version.rb +6 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ws.rb +83 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/wss.rb +23 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri.rb +104 -0
- package/lib/ruby/3.4.11/rubygems/vendored_molinillo.rb +3 -0
- package/lib/ruby/3.4.11/rubygems/vendored_net_http.rb +5 -0
- package/lib/ruby/3.4.11/rubygems/vendored_optparse.rb +3 -0
- package/lib/ruby/3.4.11/rubygems/vendored_securerandom.rb +3 -0
- package/lib/ruby/3.4.11/rubygems/vendored_timeout.rb +5 -0
- package/lib/ruby/3.4.11/rubygems/vendored_tsort.rb +3 -0
- package/lib/ruby/3.4.11/rubygems/version.rb +441 -0
- package/lib/ruby/3.4.11/rubygems/version_option.rb +80 -0
- package/lib/ruby/3.4.11/rubygems/yaml_serializer.rb +98 -0
- package/lib/ruby/3.4.11/rubygems.rb +1417 -0
- package/lib/ruby/3.4.11/securerandom.gemspec +34 -0
- package/lib/ruby/3.4.11/securerandom.rb +102 -0
- package/lib/ruby/3.4.11/set/set.gemspec +30 -0
- package/lib/ruby/3.4.11/set/sorted_set.rb +6 -0
- package/lib/ruby/3.4.11/set.rb +855 -0
- package/lib/ruby/3.4.11/shellwords.gemspec +31 -0
- package/lib/ruby/3.4.11/shellwords.rb +254 -0
- package/lib/ruby/3.4.11/singleton.gemspec +30 -0
- package/lib/ruby/3.4.11/singleton.rb +239 -0
- package/lib/ruby/3.4.11/syntax_suggest/api.rb +233 -0
- package/lib/ruby/3.4.11/syntax_suggest/around_block_scan.rb +232 -0
- package/lib/ruby/3.4.11/syntax_suggest/block_expand.rb +165 -0
- package/lib/ruby/3.4.11/syntax_suggest/capture/before_after_keyword_ends.rb +85 -0
- package/lib/ruby/3.4.11/syntax_suggest/capture/falling_indent_lines.rb +71 -0
- package/lib/ruby/3.4.11/syntax_suggest/capture_code_context.rb +245 -0
- package/lib/ruby/3.4.11/syntax_suggest/clean_document.rb +306 -0
- package/lib/ruby/3.4.11/syntax_suggest/cli.rb +130 -0
- package/lib/ruby/3.4.11/syntax_suggest/code_block.rb +100 -0
- package/lib/ruby/3.4.11/syntax_suggest/code_frontier.rb +178 -0
- package/lib/ruby/3.4.11/syntax_suggest/code_line.rb +243 -0
- package/lib/ruby/3.4.11/syntax_suggest/code_search.rb +139 -0
- package/lib/ruby/3.4.11/syntax_suggest/core_ext.rb +96 -0
- package/lib/ruby/3.4.11/syntax_suggest/display_code_with_line_numbers.rb +70 -0
- package/lib/ruby/3.4.11/syntax_suggest/display_invalid_blocks.rb +83 -0
- package/lib/ruby/3.4.11/syntax_suggest/explain_syntax.rb +117 -0
- package/lib/ruby/3.4.11/syntax_suggest/left_right_lex_count.rb +168 -0
- package/lib/ruby/3.4.11/syntax_suggest/lex_all.rb +74 -0
- package/lib/ruby/3.4.11/syntax_suggest/lex_value.rb +70 -0
- package/lib/ruby/3.4.11/syntax_suggest/mini_stringio.rb +30 -0
- package/lib/ruby/3.4.11/syntax_suggest/parse_blocks_from_indent_line.rb +60 -0
- package/lib/ruby/3.4.11/syntax_suggest/pathname_from_message.rb +59 -0
- package/lib/ruby/3.4.11/syntax_suggest/priority_engulf_queue.rb +63 -0
- package/lib/ruby/3.4.11/syntax_suggest/priority_queue.rb +105 -0
- package/lib/ruby/3.4.11/syntax_suggest/ripper_errors.rb +39 -0
- package/lib/ruby/3.4.11/syntax_suggest/scan_history.rb +134 -0
- package/lib/ruby/3.4.11/syntax_suggest/syntax_suggest.gemspec +32 -0
- package/lib/ruby/3.4.11/syntax_suggest/unvisited_lines.rb +36 -0
- package/lib/ruby/3.4.11/syntax_suggest/version.rb +5 -0
- package/lib/ruby/3.4.11/syntax_suggest.rb +3 -0
- package/lib/ruby/3.4.11/tempfile.gemspec +33 -0
- package/lib/ruby/3.4.11/tempfile.rb +640 -0
- package/lib/ruby/3.4.11/time.gemspec +35 -0
- package/lib/ruby/3.4.11/time.rb +731 -0
- package/lib/ruby/3.4.11/timeout.gemspec +33 -0
- package/lib/ruby/3.4.11/timeout.rb +200 -0
- package/lib/ruby/3.4.11/tmpdir.gemspec +30 -0
- package/lib/ruby/3.4.11/tmpdir.rb +189 -0
- package/lib/ruby/3.4.11/tsort.gemspec +29 -0
- package/lib/ruby/3.4.11/tsort.rb +455 -0
- package/lib/ruby/3.4.11/un.gemspec +31 -0
- package/lib/ruby/3.4.11/un.rb +441 -0
- package/lib/ruby/3.4.11/unicode_normalize/normalize.rb +181 -0
- package/lib/ruby/3.4.11/unicode_normalize/tables.rb +9259 -0
- package/lib/ruby/3.4.11/uri/common.rb +880 -0
- package/lib/ruby/3.4.11/uri/file.rb +100 -0
- package/lib/ruby/3.4.11/uri/ftp.rb +267 -0
- package/lib/ruby/3.4.11/uri/generic.rb +1592 -0
- package/lib/ruby/3.4.11/uri/http.rb +125 -0
- package/lib/ruby/3.4.11/uri/https.rb +23 -0
- package/lib/ruby/3.4.11/uri/ldap.rb +261 -0
- package/lib/ruby/3.4.11/uri/ldaps.rb +22 -0
- package/lib/ruby/3.4.11/uri/mailto.rb +293 -0
- package/lib/ruby/3.4.11/uri/rfc2396_parser.rb +546 -0
- package/lib/ruby/3.4.11/uri/rfc3986_parser.rb +206 -0
- package/lib/ruby/3.4.11/uri/uri.gemspec +42 -0
- package/lib/ruby/3.4.11/uri/version.rb +6 -0
- package/lib/ruby/3.4.11/uri/ws.rb +83 -0
- package/lib/ruby/3.4.11/uri/wss.rb +23 -0
- package/lib/ruby/3.4.11/uri.rb +104 -0
- package/lib/ruby/3.4.11/weakref.gemspec +34 -0
- package/lib/ruby/3.4.11/weakref.rb +58 -0
- package/lib/ruby/3.4.11/yaml/dbm.rb +295 -0
- package/lib/ruby/3.4.11/yaml/store.rb +98 -0
- package/lib/ruby/3.4.11/yaml/yaml.gemspec +30 -0
- package/lib/ruby/3.4.11/yaml.rb +70 -0
- package/lib/ruby/gems/3.4.0/cache/abbrev-0.1.2.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/base64-0.2.0.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/csv-3.3.2.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/drb-2.2.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/getoptlong-0.2.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/matrix-0.4.2.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/minitest-5.25.4.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/mutex_m-0.3.0.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/net-ftp-0.3.8.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/net-imap-0.5.15.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/net-pop-0.1.2.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/net-smtp-0.5.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/observer-0.1.2.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/power_assert-2.0.5.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/prime-0.1.3.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/rake-13.2.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/repl_type_completor-0.1.9.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/resolv-replace-0.1.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/rexml-3.4.4.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/rinda-0.2.0.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/rss-0.3.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/test-unit-3.6.7.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/typeprof-0.30.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/bin/console +0 -0
- package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/bin/setup +0 -0
- package/lib/ruby/gems/3.4.0/gems/bundler-2.6.9/exe/bundle +29 -0
- package/lib/ruby/gems/3.4.0/gems/bundler-2.6.9/exe/bundler +4 -0
- package/lib/ruby/gems/3.4.0/gems/erb-4.0.4.1/libexec/erb +164 -0
- package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/bin/console +0 -0
- package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/bin/setup +0 -0
- package/lib/ruby/gems/3.4.0/gems/irb-1.14.3/exe/irb +9 -0
- package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/bin/console +0 -0
- package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/bin/setup +0 -0
- package/lib/ruby/gems/3.4.0/gems/rdoc-6.14.0/exe/rdoc +43 -0
- package/lib/ruby/gems/3.4.0/gems/rdoc-6.14.0/exe/ri +12 -0
- package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/bin/console +0 -0
- package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/bin/setup +0 -0
- package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/bin/console +0 -0
- package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/bin/setup +0 -0
- package/lib/ruby/gems/3.4.0/gems/syntax_suggest-2.0.3/exe/syntax_suggest +7 -0
- package/lib/ruby/gems/3.4.0/specifications/abbrev-0.1.2.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/base64-0.2.0.gemspec +4 -3
- package/lib/ruby/gems/3.4.0/specifications/csv-3.3.2.gemspec +5 -3
- package/lib/ruby/gems/3.4.0/specifications/default/benchmark-0.4.0.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/bundler-2.6.9.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/cgi-0.4.2.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/date-3.4.1.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/delegate-0.4.0.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/did_you_mean-2.0.0.gemspec +20 -0
- package/lib/ruby/gems/3.4.0/specifications/default/digest-3.2.0.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/english-0.8.0.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/erb-4.0.4.1.gemspec +29 -0
- package/lib/ruby/gems/3.4.0/specifications/default/error_highlight-0.7.0.gemspec +20 -0
- package/lib/ruby/gems/3.4.0/specifications/default/etc-1.4.6.gemspec +25 -0
- package/lib/ruby/gems/3.4.0/specifications/default/fcntl-1.2.0.gemspec +24 -0
- package/lib/ruby/gems/3.4.0/specifications/default/fileutils-1.7.3.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/find-0.2.0.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/forwardable-1.3.3.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/io-console-0.8.1.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/io-nonblock-0.3.2.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/io-wait-0.3.2.gemspec +24 -0
- package/lib/ruby/gems/3.4.0/specifications/default/ipaddr-1.2.7.gemspec +20 -0
- package/lib/ruby/gems/3.4.0/specifications/default/irb-1.14.3.gemspec +28 -0
- package/lib/ruby/gems/3.4.0/specifications/default/json-2.9.1.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/logger-1.6.4.gemspec +20 -0
- package/lib/ruby/gems/3.4.0/specifications/default/net-http-0.6.0.gemspec +26 -0
- package/lib/ruby/gems/3.4.0/specifications/default/net-protocol-0.2.2.gemspec +25 -0
- package/lib/ruby/gems/3.4.0/specifications/default/open-uri-0.5.0.gemspec +27 -0
- package/lib/ruby/gems/3.4.0/specifications/default/open3-0.2.1.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/openssl-3.3.3.gemspec +24 -0
- package/lib/ruby/gems/3.4.0/specifications/default/optparse-0.6.0.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/ostruct-0.6.1.gemspec +20 -0
- package/lib/ruby/gems/3.4.0/specifications/default/pathname-0.4.0.gemspec +24 -0
- package/lib/ruby/gems/3.4.0/specifications/default/pp-0.6.2.gemspec +26 -0
- package/lib/ruby/gems/3.4.0/specifications/default/prettyprint-0.2.0.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/prism-1.5.3.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/pstore-0.2.1.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/psych-5.2.2.gemspec +30 -0
- package/lib/ruby/gems/3.4.0/specifications/default/rdoc-6.14.0.gemspec +30 -0
- package/lib/ruby/gems/3.4.0/specifications/default/readline-0.0.4.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/reline-0.6.0.gemspec +25 -0
- package/lib/ruby/gems/3.4.0/specifications/default/resolv-0.7.2.gemspec +24 -0
- package/lib/ruby/gems/3.4.0/specifications/default/ruby2_keywords-0.0.5.gemspec +20 -0
- package/lib/ruby/gems/3.4.0/specifications/default/securerandom-0.4.1.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/set-1.1.1.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/shellwords-0.2.2.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/singleton-0.3.0.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/stringio-3.1.2.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/strscan-3.1.2.gemspec +24 -0
- package/lib/ruby/gems/3.4.0/specifications/default/syntax_suggest-2.0.3.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/tempfile-0.3.1.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/time-0.4.1.gemspec +26 -0
- package/lib/ruby/gems/3.4.0/specifications/default/timeout-0.4.3.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/tmpdir-0.3.1.gemspec +26 -0
- package/lib/ruby/gems/3.4.0/specifications/default/tsort-0.2.0.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/un-0.3.0.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/uri-1.0.4.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/weakref-0.1.3.gemspec +25 -0
- package/lib/ruby/gems/3.4.0/specifications/default/yaml-0.4.0.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/zlib-3.2.3.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/drb-2.2.1.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/getoptlong-0.2.1.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/matrix-0.4.2.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/minitest-5.25.4.gemspec +7 -5
- package/lib/ruby/gems/3.4.0/specifications/mutex_m-0.3.0.gemspec +4 -3
- package/lib/ruby/gems/3.4.0/specifications/net-ftp-0.3.8.gemspec +10 -4
- package/lib/ruby/gems/3.4.0/specifications/net-imap-0.5.15.gemspec +7 -5
- package/lib/ruby/gems/3.4.0/specifications/net-pop-0.1.2.gemspec +9 -4
- package/lib/ruby/gems/3.4.0/specifications/net-smtp-0.5.1.gemspec +9 -4
- package/lib/ruby/gems/3.4.0/specifications/observer-0.1.2.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/power_assert-2.0.5.gemspec +6 -4
- package/lib/ruby/gems/3.4.0/specifications/prime-0.1.3.gemspec +10 -4
- package/lib/ruby/gems/3.4.0/specifications/rake-13.2.1.gemspec +6 -4
- package/lib/ruby/gems/3.4.0/specifications/repl_type_completor-0.1.9.gemspec +6 -5
- package/lib/ruby/gems/3.4.0/specifications/resolv-replace-0.1.1.gemspec +6 -5
- package/lib/ruby/gems/3.4.0/specifications/rexml-3.4.4.gemspec +5 -3
- package/lib/ruby/gems/3.4.0/specifications/rinda-0.2.0.gemspec +8 -5
- package/lib/ruby/gems/3.4.0/specifications/rss-0.3.1.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/test-unit-3.6.7.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/typeprof-0.30.1.gemspec +7 -5
- package/package.json +17 -13
- package/lib/ruby/3.4.0/expect.rb +0 -71
- package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/abbrev.gemspec +0 -29
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/.bundled.bigdecimal-3.1.8.gemspec +0 -23
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/LICENSE +0 -56
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/bigdecimal-3.1.8.gemspec +0 -23
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/bigdecimal.gemspec +0 -50
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/jacobian.rb +0 -90
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/ludcmp.rb +0 -89
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/math.rb +0 -232
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/newton.rb +0 -80
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/util.rb +0 -185
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal.rb +0 -5
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/linear.rb +0 -74
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/nlsolve.rb +0 -40
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/pi.rb +0 -21
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/.bundled.debug-1.11.0.gemspec +0 -25
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/CONTRIBUTING.md +0 -573
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/Gemfile +0 -10
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/LICENSE.txt +0 -22
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/README.md +0 -996
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/Rakefile +0 -57
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/TODO.md +0 -23
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/debug-1.11.0.gemspec +0 -30
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/debug.gemspec +0 -33
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/exe/rdbg +0 -53
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/abbrev_command.rb +0 -77
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/breakpoint.rb +0 -556
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/client.rb +0 -263
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/color.rb +0 -123
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/config.rb +0 -592
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/console.rb +0 -224
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/dap_custom/traceInspector.rb +0 -336
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/frame_info.rb +0 -190
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/irb_integration.rb +0 -37
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/local.rb +0 -115
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/open.rb +0 -13
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/open_nonstop.rb +0 -15
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/prelude.rb +0 -50
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server.rb +0 -534
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server_cdp.rb +0 -1348
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server_dap.rb +0 -1108
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/session.rb +0 -2667
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/source_repository.rb +0 -150
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/start.rb +0 -5
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/thread_client.rb +0 -1457
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/tracer.rb +0 -241
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/version.rb +0 -5
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug.rb +0 -9
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/misc/README.md.erb +0 -660
- package/lib/ruby/gems/3.4.0/gems/drb-2.2.1/drb.gemspec +0 -41
- package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/getoptlong.gemspec +0 -30
- package/lib/ruby/gems/3.4.0/gems/matrix-0.4.2/matrix.gemspec +0 -26
- package/lib/ruby/gems/3.4.0/gems/minitest-5.25.4/.autotest +0 -34
- package/lib/ruby/gems/3.4.0/gems/net-ftp-0.3.8/net-ftp.gemspec +0 -34
- package/lib/ruby/gems/3.4.0/gems/net-imap-0.5.15/net-imap.gemspec +0 -38
- package/lib/ruby/gems/3.4.0/gems/net-pop-0.1.2/net-pop.gemspec +0 -32
- package/lib/ruby/gems/3.4.0/gems/net-smtp-0.5.1/net-smtp.gemspec +0 -31
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/.bundled.nkf-0.2.0.gemspec +0 -24
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/Gemfile +0 -5
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/LICENSE.txt +0 -22
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/README.md +0 -38
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/Rakefile +0 -24
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/bin/console +0 -14
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/lib/kconv.rb +0 -283
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/lib/nkf.rb +0 -6
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/nkf-0.2.0.gemspec +0 -24
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/nkf.gemspec +0 -43
- package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/observer.gemspec +0 -32
- package/lib/ruby/gems/3.4.0/gems/power_assert-2.0.5/power_assert.gemspec +0 -24
- package/lib/ruby/gems/3.4.0/gems/prime-0.1.3/prime.gemspec +0 -28
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/.bundled.racc-1.8.1.gemspec +0 -26
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/BSDL +0 -22
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/COPYING +0 -56
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/ChangeLog +0 -846
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/README.ja.rdoc +0 -58
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/README.rdoc +0 -60
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/TODO +0 -5
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/bin/racc +0 -320
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/en/grammar.en.rdoc +0 -218
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/en/grammar2.en.rdoc +0 -219
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/command.ja.html +0 -99
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/debug.ja.rdoc +0 -36
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/grammar.ja.rdoc +0 -348
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/index.ja.html +0 -10
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/parser.ja.rdoc +0 -125
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/usage.ja.html +0 -414
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/compat.rb +0 -33
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/debugflags.rb +0 -60
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/exception.rb +0 -16
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/grammar.rb +0 -1191
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/grammarfileparser.rb +0 -667
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/info.rb +0 -18
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/iset.rb +0 -92
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/logfilegenerator.rb +0 -212
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parser-text.rb +0 -644
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parser.rb +0 -630
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parserfilegenerator.rb +0 -473
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/sourcetext.rb +0 -35
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/state.rb +0 -976
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/statetransitiontable.rb +0 -311
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/static.rb +0 -5
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc.rb +0 -6
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/racc-1.8.1.gemspec +0 -26
- package/lib/ruby/gems/3.4.0/gems/rake-13.2.1/rake.gemspec +0 -101
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/.bundled.rbs-3.8.0.gemspec +0 -25
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/.rubocop.yml +0 -53
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/BSDL +0 -22
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/CHANGELOG.md +0 -1854
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/COPYING +0 -56
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/README.md +0 -203
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/Rakefile +0 -415
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/Steepfile +0 -44
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/config.yml +0 -311
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/array.rbs +0 -4062
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/basic_object.rbs +0 -375
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/binding.rbs +0 -150
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/builtin.rbs +0 -277
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/class.rbs +0 -220
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/comparable.rbs +0 -171
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/complex.rbs +0 -786
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/constants.rbs +0 -96
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/data.rbs +0 -415
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/dir.rbs +0 -981
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/encoding.rbs +0 -1371
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerable.rbs +0 -2405
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerator/product.rbs +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerator.rbs +0 -630
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/env.rbs +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/errno.rbs +0 -673
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/errors.rbs +0 -760
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/exception.rbs +0 -376
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/false_class.rbs +0 -82
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/fiber.rbs +0 -550
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/fiber_error.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/file.rbs +0 -2936
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/file_test.rbs +0 -331
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/float.rbs +0 -1151
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/gc.rbs +0 -644
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/global_variables.rbs +0 -184
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/hash.rbs +0 -1861
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/integer.rbs +0 -1413
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io/buffer.rbs +0 -984
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io/wait.rbs +0 -70
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io.rbs +0 -3402
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/kernel.rbs +0 -3054
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/marshal.rbs +0 -207
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/match_data.rbs +0 -635
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/math.rbs +0 -729
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/method.rbs +0 -386
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/module.rbs +0 -1704
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/nil_class.rbs +0 -209
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/numeric.rbs +0 -818
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object.rbs +0 -110
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object_space/weak_key_map.rbs +0 -166
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object_space.rbs +0 -190
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/proc.rbs +0 -868
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/process.rbs +0 -2296
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/ractor.rbs +0 -1065
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/random.rbs +0 -237
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/range.rbs +0 -1107
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rational.rbs +0 -531
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rb_config.rbs +0 -88
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/argf.rbs +0 -1229
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/env_class.rbs +0 -1209
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/random.rbs +0 -293
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/refinement.rbs +0 -59
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/regexp.rbs +0 -1928
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/ruby_vm.rbs +0 -765
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/basic_specification.rbs +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/config_file.rbs +0 -38
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/dependency_installer.rbs +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/errors.rbs +0 -176
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/installer.rbs +0 -15
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/path_support.rbs +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/platform.rbs +0 -7
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/request_set.rbs +0 -49
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/requirement.rbs +0 -148
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/rubygems.rbs +0 -1171
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/source_list.rbs +0 -15
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/specification.rbs +0 -23
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/stream_ui.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/uninstaller.rbs +0 -10
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/version.rbs +0 -294
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/set.rbs +0 -621
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/signal.rbs +0 -100
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/string.rbs +0 -3583
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/struct.rbs +0 -667
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/symbol.rbs +0 -475
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/thread.rbs +0 -1765
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/thread_group.rbs +0 -79
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/time.rbs +0 -1762
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/trace_point.rbs +0 -477
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/true_class.rbs +0 -98
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/unbound_method.rbs +0 -329
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/warning.rbs +0 -87
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/CONTRIBUTING.md +0 -106
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/architecture.md +0 -110
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/collection.md +0 -192
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/data_and_struct.md +0 -86
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/gem.md +0 -57
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/rbs_by_example.md +0 -309
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/repo.md +0 -125
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/sigs.md +0 -167
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/stdlib.md +0 -147
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/syntax.md +0 -905
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/tools.md +0 -17
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/exe/rbs +0 -7
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/goodcheck.yml +0 -91
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs/constants.h +0 -82
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs/ruby_objs.h +0 -72
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs.h +0 -7
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ancestor_graph.rb +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/annotations.rb +0 -199
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/formatter.rb +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/rdoc_annotator.rb +0 -400
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/rdoc_source.rb +0 -131
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate.rb +0 -8
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/annotation.rb +0 -29
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/comment.rb +0 -29
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/declarations.rb +0 -467
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/directives.rb +0 -39
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/members.rb +0 -449
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/type_param.rb +0 -225
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/visitor.rb +0 -137
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/buffer.rb +0 -67
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/builtin_names.rb +0 -58
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/colored_io.rb +0 -48
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/diff.rb +0 -83
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/validate.rb +0 -356
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli.rb +0 -1223
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/cleaner.rb +0 -38
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config/lockfile.rb +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config/lockfile_generator.rb +0 -223
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config.rb +0 -81
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/installer.rb +0 -32
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/base.rb +0 -14
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/git.rb +0 -258
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/local.rb +0 -81
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/rubygems.rb +0 -48
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/stdlib.rb +0 -50
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources.rb +0 -38
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection.rb +0 -16
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/constant.rb +0 -28
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition.rb +0 -395
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder/ancestor_builder.rb +0 -620
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder/method_builder.rb +0 -254
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder.rb +0 -841
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/diff.rb +0 -125
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment/use_map.rb +0 -77
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment.rb +0 -818
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment_loader.rb +0 -173
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment_walker.rb +0 -155
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/errors.rb +0 -600
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/factory.rb +0 -18
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/file_finder.rb +0 -28
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/location_aux.rb +0 -138
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/locator.rb +0 -241
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/method_type.rb +0 -141
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/namespace.rb +0 -125
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser/lex_result.rb +0 -15
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser/token.rb +0 -23
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser_aux.rb +0 -77
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/helpers.rb +0 -140
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/node_usage.rb +0 -99
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/rb.rb +0 -840
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/rbi.rb +0 -641
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/helpers.rb +0 -59
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/reflection.rb +0 -19
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/value_object_generator.rb +0 -279
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime.rb +0 -667
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/repository.rb +0 -127
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/resolver/constant_resolver.rb +0 -219
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/resolver/type_name_resolver.rb +0 -91
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/sorter.rb +0 -198
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/substitution.rb +0 -83
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/subtractor.rb +0 -201
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/errors.rb +0 -80
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/guaranteed.rb +0 -30
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/hook.rb +0 -212
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/observer.rb +0 -19
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/setup.rb +0 -84
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/setup_helper.rb +0 -50
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/tester.rb +0 -167
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/type_check.rb +0 -433
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test.rb +0 -112
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_alias_dependency.rb +0 -100
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_alias_regularity.rb +0 -126
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_name.rb +0 -109
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/types.rb +0 -1557
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/convertibles.rb +0 -176
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/spy.rb +0 -136
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/type_assertions.rb +0 -341
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/with_aliases.rb +0 -143
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test.rb +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/validator.rb +0 -182
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/variance_calculator.rb +0 -189
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/vendorer.rb +0 -71
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/version.rb +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/writer.rb +0 -419
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs.rb +0 -93
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rdoc/discover.rb +0 -20
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rdoc_plugin/parser.rb +0 -163
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/rbs-3.8.0.gemspec +0 -29
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/rbs.gemspec +0 -49
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/annotation.json +0 -14
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/comment.json +0 -26
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/decls.json +0 -326
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/function.json +0 -87
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/location.json +0 -56
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/members.json +0 -266
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/methodType.json +0 -50
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/typeParam.json +0 -36
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/types.json +0 -317
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/ancestor_builder.rbs +0 -163
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/ancestor_graph.rbs +0 -60
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/annotations.rbs +0 -102
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/formatter.rbs +0 -24
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/rdoc_annotater.rbs +0 -82
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/rdoc_source.rbs +0 -30
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotation.rbs +0 -27
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/buffer.rbs +0 -32
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/builtin_names.rbs +0 -44
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/colored_io.rbs +0 -15
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/diff.rbs +0 -21
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/validate.rbs +0 -43
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli.rbs +0 -87
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/cleaner.rbs +0 -13
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config/lockfile.rbs +0 -74
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config/lockfile_generator.rbs +0 -66
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config.rbs +0 -46
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/installer.rbs +0 -17
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/sources.rbs +0 -214
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection.rbs +0 -4
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/comment.rbs +0 -26
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/constant.rbs +0 -21
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/declarations.rbs +0 -267
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/definition.rbs +0 -173
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/definition_builder.rbs +0 -165
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/diff.rbs +0 -28
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/directives.rbs +0 -61
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment.rbs +0 -277
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment_loader.rbs +0 -111
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment_walker.rbs +0 -65
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/errors.rbs +0 -383
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/factory.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/file_finder.rbs +0 -28
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/location.rbs +0 -110
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/locator.rbs +0 -58
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/manifest.yaml +0 -7
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/members.rbs +0 -258
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/method_builder.rbs +0 -84
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/method_types.rbs +0 -58
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/namespace.rbs +0 -146
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/parser.rbs +0 -96
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/helpers.rbs +0 -27
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/node_usage.rbs +0 -20
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/rb.rbs +0 -96
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/rbi.rbs +0 -75
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/runtime.rbs +0 -182
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/rbs.rbs +0 -21
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/rdoc/rbs.rbs +0 -67
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/repository.rbs +0 -85
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/constant_resolver.rbs +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/context.rbs +0 -34
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/type_name_resolver.rbs +0 -35
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/bundler.rbs +0 -38
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/enumerable.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/rubygems.rbs +0 -19
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/sorter.rbs +0 -41
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/substitution.rbs +0 -48
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/subtractor.rbs +0 -37
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/errors.rbs +0 -52
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/guranteed.rbs +0 -9
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/type_check.rbs +0 -19
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test.rbs +0 -82
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_alias_dependency.rbs +0 -53
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_alias_regularity.rbs +0 -98
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_param.rbs +0 -110
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/typename.rbs +0 -79
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/types.rbs +0 -576
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/convertibles.rbs +0 -154
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/spy.rbs +0 -28
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/type_assertions.rbs +0 -194
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/with_aliases.rbs +0 -136
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/use_map.rbs +0 -35
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/util.rbs +0 -9
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/validator.rbs +0 -59
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/variance_calculator.rbs +0 -87
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/vendorer.rbs +0 -51
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/version.rbs +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/visitor.rbs +0 -47
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/writer.rbs +0 -127
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/src/constants.c +0 -153
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/src/ruby_objs.c +0 -793
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/abbrev/0/abbrev.rbs +0 -66
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/abbrev/0/array.rbs +0 -26
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/base64/0/base64.rbs +0 -355
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/benchmark/0/benchmark.rbs +0 -452
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal/0/big_decimal.rbs +0 -1629
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal-math/0/big_math.rbs +0 -119
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal-math/0/manifest.yaml +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/cgi/0/core.rbs +0 -1285
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/cgi/0/manifest.yaml +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/coverage/0/coverage.rbs +0 -263
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/csv/0/csv.rbs +0 -3776
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/csv/0/manifest.yaml +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/date.rbs +0 -1585
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/date_time.rbs +0 -616
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/time.rbs +0 -26
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/dbm/0/dbm.rbs +0 -421
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/delegator.rbs +0 -184
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/kernel.rbs +0 -47
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/simple_delegator.rbs +0 -96
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/did_you_mean/0/did_you_mean.rbs +0 -343
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/digest/0/digest.rbs +0 -577
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/erb/0/erb.rbs +0 -532
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/etc/0/etc.rbs +0 -865
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/fileutils/0/fileutils.rbs +0 -1734
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/find/0/find.rbs +0 -49
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/forwardable/0/forwardable.rbs +0 -268
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/io-console/0/io-console.rbs +0 -414
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/ipaddr/0/ipaddr.rbs +0 -428
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/json/0/json.rbs +0 -1914
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/kconv/0/kconv.rbs +0 -166
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/formatter.rbs +0 -45
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/log_device.rbs +0 -100
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/logger.rbs +0 -796
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/manifest.yaml +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/period.rbs +0 -17
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/severity.rbs +0 -34
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/kernel.rbs +0 -42
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/abstract_reporter.rbs +0 -52
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/assertion.rbs +0 -17
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/assertions.rbs +0 -590
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/backtrace_filter.rbs +0 -23
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/bench_spec.rbs +0 -102
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/benchmark.rbs +0 -259
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/composite_reporter.rbs +0 -25
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/compress.rbs +0 -13
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/error_on_warning.rbs +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/expectation.rbs +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/expectations.rbs +0 -21
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/guard.rbs +0 -64
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/mock.rbs +0 -64
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/executor.rbs +0 -46
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/test/class_methods.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/test.rbs +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel.rbs +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/pride_io.rbs +0 -62
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/pride_lol.rbs +0 -19
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/progress_reporter.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/reportable.rbs +0 -53
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/reporter.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/result.rbs +0 -28
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/runnable.rbs +0 -163
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/skip.rbs +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec/dsl/instance_methods.rbs +0 -48
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec/dsl.rbs +0 -129
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/statistics_reporter.rbs +0 -81
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/summary_reporter.rbs +0 -18
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/test/lifecycle_hooks.rbs +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/test.rbs +0 -69
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unexpected_error.rbs +0 -12
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unexpected_warning.rbs +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unit/test_case.rbs +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unit.rbs +0 -4
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest.rbs +0 -115
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/monitor/0/monitor.rbs +0 -354
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/mutex_m/0/mutex_m.rbs +0 -104
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-http/0/manifest.yaml +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-http/0/net-http.rbs +0 -5552
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-protocol/0/manifest.yaml +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-protocol/0/net-protocol.rbs +0 -56
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-smtp/0/manifest.yaml +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-smtp/0/net-smtp.rbs +0 -55
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/nkf/0/nkf.rbs +0 -402
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/objspace/0/objspace.rbs +0 -487
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/observable/0/observable.rbs +0 -217
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open-uri/0/manifest.yaml +0 -4
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open-uri/0/open-uri.rbs +0 -393
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open3/0/open3.rbs +0 -147
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/openssl/0/manifest.yaml +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/openssl/0/openssl.rbs +0 -12113
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/optparse/0/optparse.rbs +0 -1725
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pathname/0/pathname.rbs +0 -1406
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pp/0/manifest.yaml +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pp/0/pp.rbs +0 -300
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/prettyprint/0/prettyprint.rbs +0 -383
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pstore/0/pstore.rbs +0 -603
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/core_ext.rbs +0 -12
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/dbm.rbs +0 -237
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/manifest.yaml +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/psych.rbs +0 -402
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/store.rbs +0 -59
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pty/0/pty.rbs +0 -237
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/code_object.rbs +0 -51
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/comment.rbs +0 -59
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/context.rbs +0 -153
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/markup.rbs +0 -117
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/parser.rbs +0 -56
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/rdoc.rbs +0 -391
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/ri.rbs +0 -17
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/store.rbs +0 -48
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/top_level.rbs +0 -97
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/resolv/0/manifest.yaml +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/resolv/0/resolv.rbs +0 -1830
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/ripper/0/ripper.rbs +0 -1648
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/securerandom/0/securerandom.rbs +0 -62
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/shellwords/0/shellwords.rbs +0 -229
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/singleton/0/singleton.rbs +0 -131
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/addrinfo.rbs +0 -666
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/basic_socket.rbs +0 -590
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/constants.rbs +0 -2295
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/ip_socket.rbs +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/socket.rbs +0 -4157
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/socket_error.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/tcp_server.rbs +0 -192
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/tcp_socket.rbs +0 -79
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/udp_socket.rbs +0 -133
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/unix_server.rbs +0 -169
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/unix_socket.rbs +0 -170
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/stringio/0/stringio.rbs +0 -567
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/strscan/0/string_scanner.rbs +0 -1627
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tempfile/0/tempfile.rbs +0 -479
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/time/0/time.rbs +0 -432
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/timeout/0/timeout.rbs +0 -81
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tmpdir/0/tmpdir.rbs +0 -69
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/cyclic.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/interfaces.rbs +0 -20
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/tsort.rbs +0 -409
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/common.rbs +0 -582
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/file.rbs +0 -118
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ftp.rbs +0 -13
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/generic.rbs +0 -1108
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/http.rbs +0 -104
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/https.rbs +0 -14
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ldap.rbs +0 -230
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ldaps.rbs +0 -14
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/mailto.rbs +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/rfc2396_parser.rbs +0 -189
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/rfc3986_parser.rbs +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ws.rbs +0 -13
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/wss.rbs +0 -9
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/yaml/0/manifest.yaml +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/yaml/0/yaml.rbs +0 -1
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/buf_error.rbs +0 -10
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/data_error.rbs +0 -10
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/deflate.rbs +0 -210
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/error.rbs +0 -20
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/crc_error.rbs +0 -12
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/error.rbs +0 -23
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/length_error.rbs +0 -12
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/no_footer.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file.rbs +0 -156
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_reader.rbs +0 -293
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_writer.rbs +0 -166
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/inflate.rbs +0 -180
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/mem_error.rbs +0 -10
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/need_dict.rbs +0 -13
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/stream_end.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/stream_error.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/version_error.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/zlib.rbs +0 -449
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/zstream.rbs +0 -200
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/include/rbs/constants.h.erb +0 -20
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/include/rbs/ruby_objs.h.erb +0 -10
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/src/constants.c.erb +0 -36
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/src/ruby_objs.c.erb +0 -27
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/template.rb +0 -122
- package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/resolv-replace.gemspec +0 -22
- package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/rinda.gemspec +0 -35
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/.bundled.syslog-0.2.0.gemspec +0 -23
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/Gemfile +0 -5
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/LICENSE.txt +0 -22
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/README.md +0 -41
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/Rakefile +0 -20
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/bin/console +0 -14
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/bin/setup +0 -8
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/lib/syslog/logger.rb +0 -209
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/lib/syslog.rb +0 -10
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/syslog-0.2.0.gemspec +0 -23
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/syslog.gemspec +0 -26
- package/lib/ruby/gems/3.4.0/gems/typeprof-0.30.1/typeprof.gemspec +0 -32
- package/lib/ruby/gems/3.4.0/specifications/bigdecimal-3.1.8.gemspec +0 -50
- package/lib/ruby/gems/3.4.0/specifications/debug-1.11.0.gemspec +0 -33
- package/lib/ruby/gems/3.4.0/specifications/nkf-0.2.0.gemspec +0 -43
- package/lib/ruby/gems/3.4.0/specifications/racc-1.8.1.gemspec +0 -26
- package/lib/ruby/gems/3.4.0/specifications/rbs-3.8.0.gemspec +0 -49
- 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
|