@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
|
@@ -0,0 +1,2378 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
##
|
|
3
|
+
# This file contains stuff stolen outright from:
|
|
4
|
+
#
|
|
5
|
+
# rtags.rb -
|
|
6
|
+
# ruby-lex.rb - ruby lexcal analyzer
|
|
7
|
+
# ruby-token.rb - ruby tokens
|
|
8
|
+
# by Keiju ISHITSUKA (Nippon Rational Inc.)
|
|
9
|
+
#
|
|
10
|
+
|
|
11
|
+
if ENV['RDOC_USE_PRISM_PARSER']
|
|
12
|
+
require 'rdoc/parser/prism_ruby'
|
|
13
|
+
RDoc::Parser.const_set(:Ruby, RDoc::Parser::PrismRuby)
|
|
14
|
+
puts "========================================================================="
|
|
15
|
+
puts "RDoc is using the experimental Prism parser to generate the documentation"
|
|
16
|
+
puts "========================================================================="
|
|
17
|
+
return
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
require 'ripper'
|
|
21
|
+
require_relative 'ripper_state_lex'
|
|
22
|
+
|
|
23
|
+
##
|
|
24
|
+
# Extracts code elements from a source file returning a TopLevel object
|
|
25
|
+
# containing the constituent file elements.
|
|
26
|
+
#
|
|
27
|
+
# This file is based on rtags
|
|
28
|
+
#
|
|
29
|
+
# RubyParser understands how to document:
|
|
30
|
+
# * classes
|
|
31
|
+
# * modules
|
|
32
|
+
# * methods
|
|
33
|
+
# * constants
|
|
34
|
+
# * aliases
|
|
35
|
+
# * private, public, protected
|
|
36
|
+
# * private_class_function, public_class_function
|
|
37
|
+
# * private_constant, public_constant
|
|
38
|
+
# * module_function
|
|
39
|
+
# * attr, attr_reader, attr_writer, attr_accessor
|
|
40
|
+
# * extra accessors given on the command line
|
|
41
|
+
# * metaprogrammed methods
|
|
42
|
+
# * require
|
|
43
|
+
# * include
|
|
44
|
+
#
|
|
45
|
+
# == Method Arguments
|
|
46
|
+
#
|
|
47
|
+
#--
|
|
48
|
+
# NOTE: I don't think this works, needs tests, remove the paragraph following
|
|
49
|
+
# this block when known to work
|
|
50
|
+
#
|
|
51
|
+
# The parser extracts the arguments from the method definition. You can
|
|
52
|
+
# override this with a custom argument definition using the :args: directive:
|
|
53
|
+
#
|
|
54
|
+
# ##
|
|
55
|
+
# # This method tries over and over until it is tired
|
|
56
|
+
#
|
|
57
|
+
# def go_go_go(thing_to_try, tries = 10) # :args: thing_to_try
|
|
58
|
+
# puts thing_to_try
|
|
59
|
+
# go_go_go thing_to_try, tries - 1
|
|
60
|
+
# end
|
|
61
|
+
#
|
|
62
|
+
# If you have a more-complex set of overrides you can use the :call-seq:
|
|
63
|
+
# directive:
|
|
64
|
+
#++
|
|
65
|
+
#
|
|
66
|
+
# The parser extracts the arguments from the method definition. You can
|
|
67
|
+
# override this with a custom argument definition using the :call-seq:
|
|
68
|
+
# directive:
|
|
69
|
+
#
|
|
70
|
+
# ##
|
|
71
|
+
# # This method can be called with a range or an offset and length
|
|
72
|
+
# #
|
|
73
|
+
# # :call-seq:
|
|
74
|
+
# # my_method(Range)
|
|
75
|
+
# # my_method(offset, length)
|
|
76
|
+
#
|
|
77
|
+
# def my_method(*args)
|
|
78
|
+
# end
|
|
79
|
+
#
|
|
80
|
+
# The parser extracts +yield+ expressions from method bodies to gather the
|
|
81
|
+
# yielded argument names. If your method manually calls a block instead of
|
|
82
|
+
# yielding or you want to override the discovered argument names use
|
|
83
|
+
# the :yields: directive:
|
|
84
|
+
#
|
|
85
|
+
# ##
|
|
86
|
+
# # My method is awesome
|
|
87
|
+
#
|
|
88
|
+
# def my_method(&block) # :yields: happy, times
|
|
89
|
+
# block.call 1, 2
|
|
90
|
+
# end
|
|
91
|
+
#
|
|
92
|
+
# == Metaprogrammed Methods
|
|
93
|
+
#
|
|
94
|
+
# To pick up a metaprogrammed method, the parser looks for a comment starting
|
|
95
|
+
# with '##' before an identifier:
|
|
96
|
+
#
|
|
97
|
+
# ##
|
|
98
|
+
# # This is a meta-programmed method!
|
|
99
|
+
#
|
|
100
|
+
# add_my_method :meta_method, :arg1, :arg2
|
|
101
|
+
#
|
|
102
|
+
# The parser looks at the token after the identifier to determine the name, in
|
|
103
|
+
# this example, :meta_method. If a name cannot be found, a warning is printed
|
|
104
|
+
# and 'unknown is used.
|
|
105
|
+
#
|
|
106
|
+
# You can force the name of a method using the :method: directive:
|
|
107
|
+
#
|
|
108
|
+
# ##
|
|
109
|
+
# # :method: some_method!
|
|
110
|
+
#
|
|
111
|
+
# By default, meta-methods are instance methods. To indicate that a method is
|
|
112
|
+
# a singleton method instead use the :singleton-method: directive:
|
|
113
|
+
#
|
|
114
|
+
# ##
|
|
115
|
+
# # :singleton-method:
|
|
116
|
+
#
|
|
117
|
+
# You can also use the :singleton-method: directive with a name:
|
|
118
|
+
#
|
|
119
|
+
# ##
|
|
120
|
+
# # :singleton-method: some_method!
|
|
121
|
+
#
|
|
122
|
+
# You can define arguments for metaprogrammed methods via either the
|
|
123
|
+
# :call-seq:, :arg: or :args: directives.
|
|
124
|
+
#
|
|
125
|
+
# Additionally you can mark a method as an attribute by
|
|
126
|
+
# using :attr:, :attr_reader:, :attr_writer: or :attr_accessor:. Just like
|
|
127
|
+
# for :method:, the name is optional.
|
|
128
|
+
#
|
|
129
|
+
# ##
|
|
130
|
+
# # :attr_reader: my_attr_name
|
|
131
|
+
#
|
|
132
|
+
# == Hidden methods and attributes
|
|
133
|
+
#
|
|
134
|
+
# You can provide documentation for methods that don't appear using
|
|
135
|
+
# the :method:, :singleton-method: and :attr: directives:
|
|
136
|
+
#
|
|
137
|
+
# ##
|
|
138
|
+
# # :attr_writer: ghost_writer
|
|
139
|
+
# # There is an attribute here, but you can't see it!
|
|
140
|
+
#
|
|
141
|
+
# ##
|
|
142
|
+
# # :method: ghost_method
|
|
143
|
+
# # There is a method here, but you can't see it!
|
|
144
|
+
#
|
|
145
|
+
# ##
|
|
146
|
+
# # this is a comment for a regular method
|
|
147
|
+
#
|
|
148
|
+
# def regular_method() end
|
|
149
|
+
#
|
|
150
|
+
# Note that by default, the :method: directive will be ignored if there is a
|
|
151
|
+
# standard rdocable item following it.
|
|
152
|
+
|
|
153
|
+
class RDoc::Parser::Ruby < RDoc::Parser
|
|
154
|
+
|
|
155
|
+
parse_files_matching(/\.rbw?$/)
|
|
156
|
+
|
|
157
|
+
include RDoc::TokenStream
|
|
158
|
+
include RDoc::Parser::RubyTools
|
|
159
|
+
|
|
160
|
+
##
|
|
161
|
+
# RDoc::NormalClass type
|
|
162
|
+
|
|
163
|
+
NORMAL = "::"
|
|
164
|
+
|
|
165
|
+
##
|
|
166
|
+
# RDoc::SingleClass type
|
|
167
|
+
|
|
168
|
+
SINGLE = "<<"
|
|
169
|
+
|
|
170
|
+
##
|
|
171
|
+
# Creates a new Ruby parser.
|
|
172
|
+
|
|
173
|
+
def initialize(top_level, content, options, stats)
|
|
174
|
+
super
|
|
175
|
+
|
|
176
|
+
content = handle_tab_width(content)
|
|
177
|
+
|
|
178
|
+
@size = 0
|
|
179
|
+
@token_listeners = nil
|
|
180
|
+
content = RDoc::Encoding.remove_magic_comment content
|
|
181
|
+
@scanner = RDoc::Parser::RipperStateLex.parse(content)
|
|
182
|
+
@content = content
|
|
183
|
+
@scanner_point = 0
|
|
184
|
+
@prev_seek = nil
|
|
185
|
+
@markup = @options.markup
|
|
186
|
+
@track_visibility = :nodoc != @options.visibility
|
|
187
|
+
@encoding = @options.encoding
|
|
188
|
+
|
|
189
|
+
reset
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
##
|
|
193
|
+
# Return +true+ if +tk+ is a newline.
|
|
194
|
+
|
|
195
|
+
def tk_nl?(tk)
|
|
196
|
+
:on_nl == tk[:kind] or :on_ignored_nl == tk[:kind]
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
##
|
|
200
|
+
# Retrieves the read token stream and replaces +pattern+ with +replacement+
|
|
201
|
+
# using gsub. If the result is only a ";" returns an empty string.
|
|
202
|
+
|
|
203
|
+
def get_tkread_clean(pattern, replacement) # :nodoc:
|
|
204
|
+
read = get_tkread.gsub(pattern, replacement).strip
|
|
205
|
+
return '' if read == ';'
|
|
206
|
+
read
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
##
|
|
210
|
+
# Extracts the visibility information for the visibility token +tk+
|
|
211
|
+
# and +single+ class type identifier.
|
|
212
|
+
#
|
|
213
|
+
# Returns the visibility type (a string), the visibility (a symbol) and
|
|
214
|
+
# +singleton+ if the methods following should be converted to singleton
|
|
215
|
+
# methods.
|
|
216
|
+
|
|
217
|
+
def get_visibility_information(tk, single) # :nodoc:
|
|
218
|
+
vis_type = tk[:text]
|
|
219
|
+
singleton = single == SINGLE
|
|
220
|
+
|
|
221
|
+
vis =
|
|
222
|
+
case vis_type
|
|
223
|
+
when 'private' then :private
|
|
224
|
+
when 'protected' then :protected
|
|
225
|
+
when 'public' then :public
|
|
226
|
+
when 'private_class_method' then
|
|
227
|
+
singleton = true
|
|
228
|
+
:private
|
|
229
|
+
when 'public_class_method' then
|
|
230
|
+
singleton = true
|
|
231
|
+
:public
|
|
232
|
+
when 'module_function' then
|
|
233
|
+
singleton = true
|
|
234
|
+
:public
|
|
235
|
+
else
|
|
236
|
+
raise RDoc::Error, "Invalid visibility: #{tk.name}"
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
return vis_type, vis, singleton
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
##
|
|
243
|
+
# Look for the first comment in a file that isn't a shebang line.
|
|
244
|
+
|
|
245
|
+
def collect_first_comment
|
|
246
|
+
skip_tkspace
|
|
247
|
+
comment = ''.dup
|
|
248
|
+
comment = RDoc::Encoding.change_encoding comment, @encoding if @encoding
|
|
249
|
+
first_line = true
|
|
250
|
+
first_comment_tk_kind = nil
|
|
251
|
+
line_no = nil
|
|
252
|
+
|
|
253
|
+
tk = get_tk
|
|
254
|
+
|
|
255
|
+
while tk && (:on_comment == tk[:kind] or :on_embdoc == tk[:kind])
|
|
256
|
+
comment_body = retrieve_comment_body(tk)
|
|
257
|
+
if first_line and comment_body =~ /\A#!/ then
|
|
258
|
+
skip_tkspace
|
|
259
|
+
tk = get_tk
|
|
260
|
+
elsif first_line and comment_body =~ /\A#\s*-\*-/ then
|
|
261
|
+
first_line = false
|
|
262
|
+
skip_tkspace
|
|
263
|
+
tk = get_tk
|
|
264
|
+
else
|
|
265
|
+
break if first_comment_tk_kind and not first_comment_tk_kind === tk[:kind]
|
|
266
|
+
first_comment_tk_kind = tk[:kind]
|
|
267
|
+
|
|
268
|
+
line_no = tk[:line_no] if first_line
|
|
269
|
+
first_line = false
|
|
270
|
+
comment << comment_body
|
|
271
|
+
tk = get_tk
|
|
272
|
+
|
|
273
|
+
if :on_nl === tk then
|
|
274
|
+
skip_tkspace_without_nl
|
|
275
|
+
tk = get_tk
|
|
276
|
+
end
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
unget_tk tk
|
|
281
|
+
|
|
282
|
+
new_comment comment, line_no
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
##
|
|
286
|
+
# Consumes trailing whitespace from the token stream
|
|
287
|
+
|
|
288
|
+
def consume_trailing_spaces # :nodoc:
|
|
289
|
+
skip_tkspace_without_nl
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
##
|
|
293
|
+
# Creates a new attribute in +container+ with +name+.
|
|
294
|
+
|
|
295
|
+
def create_attr(container, single, name, rw, comment) # :nodoc:
|
|
296
|
+
att = RDoc::Attr.new get_tkread, name, rw, comment, singleton: single == SINGLE
|
|
297
|
+
record_location att
|
|
298
|
+
|
|
299
|
+
container.add_attribute att
|
|
300
|
+
@stats.add_attribute att
|
|
301
|
+
|
|
302
|
+
att
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
##
|
|
306
|
+
# Creates a module alias in +container+ at +rhs_name+ (or at the top-level
|
|
307
|
+
# for "::") with the name from +constant+.
|
|
308
|
+
|
|
309
|
+
def create_module_alias(container, constant, rhs_name) # :nodoc:
|
|
310
|
+
mod = if rhs_name =~ /^::/ then
|
|
311
|
+
@store.find_class_or_module rhs_name
|
|
312
|
+
else
|
|
313
|
+
container.find_module_named rhs_name
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
container.add_module_alias mod, rhs_name, constant, @top_level
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
##
|
|
320
|
+
# Aborts with +msg+
|
|
321
|
+
|
|
322
|
+
def error(msg)
|
|
323
|
+
msg = make_message msg
|
|
324
|
+
|
|
325
|
+
abort msg
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
##
|
|
329
|
+
# Looks for a true or false token.
|
|
330
|
+
|
|
331
|
+
def get_bool
|
|
332
|
+
skip_tkspace
|
|
333
|
+
tk = get_tk
|
|
334
|
+
if :on_kw == tk[:kind] && 'true' == tk[:text]
|
|
335
|
+
true
|
|
336
|
+
elsif :on_kw == tk[:kind] && ('false' == tk[:text] || 'nil' == tk[:text])
|
|
337
|
+
false
|
|
338
|
+
else
|
|
339
|
+
unget_tk tk
|
|
340
|
+
true
|
|
341
|
+
end
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
##
|
|
345
|
+
# Look for the name of a class of module (optionally with a leading :: or
|
|
346
|
+
# with :: separated named) and return the ultimate name, the associated
|
|
347
|
+
# container, and the given name (with the ::).
|
|
348
|
+
|
|
349
|
+
def get_class_or_module(container, ignore_constants = false)
|
|
350
|
+
skip_tkspace
|
|
351
|
+
name_t = get_tk
|
|
352
|
+
given_name = ''.dup
|
|
353
|
+
|
|
354
|
+
# class ::A -> A is in the top level
|
|
355
|
+
if :on_op == name_t[:kind] and '::' == name_t[:text] then # bug
|
|
356
|
+
name_t = get_tk
|
|
357
|
+
container = @top_level
|
|
358
|
+
given_name << '::'
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
skip_tkspace_without_nl
|
|
362
|
+
given_name << name_t[:text]
|
|
363
|
+
|
|
364
|
+
is_self = name_t[:kind] == :on_op && name_t[:text] == '<<'
|
|
365
|
+
new_modules = []
|
|
366
|
+
while !is_self && (tk = peek_tk) and :on_op == tk[:kind] and '::' == tk[:text] do
|
|
367
|
+
prev_container = container
|
|
368
|
+
container = container.find_module_named name_t[:text]
|
|
369
|
+
container ||=
|
|
370
|
+
if ignore_constants then
|
|
371
|
+
c = RDoc::NormalModule.new name_t[:text]
|
|
372
|
+
c.store = @store
|
|
373
|
+
new_modules << [prev_container, c]
|
|
374
|
+
c
|
|
375
|
+
else
|
|
376
|
+
c = prev_container.add_module RDoc::NormalModule, name_t[:text]
|
|
377
|
+
c.ignore unless prev_container.document_children
|
|
378
|
+
@top_level.add_to_classes_or_modules c
|
|
379
|
+
c
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
record_location container
|
|
383
|
+
|
|
384
|
+
get_tk
|
|
385
|
+
skip_tkspace
|
|
386
|
+
if :on_lparen == peek_tk[:kind] # ProcObjectInConstant::()
|
|
387
|
+
parse_method_or_yield_parameters
|
|
388
|
+
break
|
|
389
|
+
end
|
|
390
|
+
name_t = get_tk
|
|
391
|
+
unless :on_const == name_t[:kind] || :on_ident == name_t[:kind]
|
|
392
|
+
raise RDoc::Error, "Invalid class or module definition: #{given_name}"
|
|
393
|
+
end
|
|
394
|
+
if prev_container == container and !ignore_constants
|
|
395
|
+
given_name = name_t[:text]
|
|
396
|
+
else
|
|
397
|
+
given_name << '::' + name_t[:text]
|
|
398
|
+
end
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
skip_tkspace_without_nl
|
|
402
|
+
|
|
403
|
+
return [container, name_t, given_name, new_modules]
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
##
|
|
407
|
+
# Skip opening parentheses and yield the block.
|
|
408
|
+
# Skip closing parentheses too when exists.
|
|
409
|
+
|
|
410
|
+
def skip_parentheses(&block)
|
|
411
|
+
left_tk = peek_tk
|
|
412
|
+
|
|
413
|
+
if :on_lparen == left_tk[:kind]
|
|
414
|
+
get_tk
|
|
415
|
+
|
|
416
|
+
ret = skip_parentheses(&block)
|
|
417
|
+
|
|
418
|
+
right_tk = peek_tk
|
|
419
|
+
if :on_rparen == right_tk[:kind]
|
|
420
|
+
get_tk
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
ret
|
|
424
|
+
else
|
|
425
|
+
yield
|
|
426
|
+
end
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
##
|
|
430
|
+
# Return a superclass, which can be either a constant of an expression
|
|
431
|
+
|
|
432
|
+
def get_class_specification
|
|
433
|
+
tk = peek_tk
|
|
434
|
+
if tk.nil?
|
|
435
|
+
return ''
|
|
436
|
+
elsif :on_kw == tk[:kind] && 'self' == tk[:text]
|
|
437
|
+
return 'self'
|
|
438
|
+
elsif :on_gvar == tk[:kind]
|
|
439
|
+
return ''
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
res = get_constant
|
|
443
|
+
|
|
444
|
+
skip_tkspace_without_nl
|
|
445
|
+
|
|
446
|
+
get_tkread # empty out read buffer
|
|
447
|
+
|
|
448
|
+
tk = get_tk
|
|
449
|
+
return res unless tk
|
|
450
|
+
|
|
451
|
+
case tk[:kind]
|
|
452
|
+
when :on_nl, :on_comment, :on_embdoc, :on_semicolon then
|
|
453
|
+
unget_tk(tk)
|
|
454
|
+
return res
|
|
455
|
+
end
|
|
456
|
+
|
|
457
|
+
res += parse_call_parameters(tk)
|
|
458
|
+
res
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
##
|
|
462
|
+
# Parse a constant, which might be qualified by one or more class or module
|
|
463
|
+
# names
|
|
464
|
+
|
|
465
|
+
def get_constant
|
|
466
|
+
res = ""
|
|
467
|
+
skip_tkspace_without_nl
|
|
468
|
+
tk = get_tk
|
|
469
|
+
|
|
470
|
+
while tk && ((:on_op == tk[:kind] && '::' == tk[:text]) || :on_const == tk[:kind]) do
|
|
471
|
+
res += tk[:text]
|
|
472
|
+
tk = get_tk
|
|
473
|
+
end
|
|
474
|
+
|
|
475
|
+
unget_tk(tk)
|
|
476
|
+
res
|
|
477
|
+
end
|
|
478
|
+
|
|
479
|
+
##
|
|
480
|
+
# Get an included module that may be surrounded by parens
|
|
481
|
+
|
|
482
|
+
def get_included_module_with_optional_parens
|
|
483
|
+
skip_tkspace_without_nl
|
|
484
|
+
get_tkread
|
|
485
|
+
tk = get_tk
|
|
486
|
+
end_token = get_end_token tk
|
|
487
|
+
return '' unless end_token
|
|
488
|
+
|
|
489
|
+
nest = 0
|
|
490
|
+
continue = false
|
|
491
|
+
only_constant = true
|
|
492
|
+
|
|
493
|
+
while tk != nil do
|
|
494
|
+
is_element_of_constant = false
|
|
495
|
+
case tk[:kind]
|
|
496
|
+
when :on_semicolon then
|
|
497
|
+
break if nest == 0
|
|
498
|
+
when :on_lbracket then
|
|
499
|
+
nest += 1
|
|
500
|
+
when :on_rbracket then
|
|
501
|
+
nest -= 1
|
|
502
|
+
when :on_lbrace then
|
|
503
|
+
nest += 1
|
|
504
|
+
when :on_rbrace then
|
|
505
|
+
nest -= 1
|
|
506
|
+
if nest <= 0
|
|
507
|
+
# we might have a.each { |i| yield i }
|
|
508
|
+
unget_tk(tk) if nest < 0
|
|
509
|
+
break
|
|
510
|
+
end
|
|
511
|
+
when :on_lparen then
|
|
512
|
+
nest += 1
|
|
513
|
+
when end_token[:kind] then
|
|
514
|
+
if end_token[:kind] == :on_rparen
|
|
515
|
+
nest -= 1
|
|
516
|
+
break if nest <= 0
|
|
517
|
+
else
|
|
518
|
+
break if nest <= 0
|
|
519
|
+
end
|
|
520
|
+
when :on_rparen then
|
|
521
|
+
nest -= 1
|
|
522
|
+
when :on_comment, :on_embdoc then
|
|
523
|
+
@read.pop
|
|
524
|
+
if :on_nl == end_token[:kind] and "\n" == tk[:text][-1] and
|
|
525
|
+
(!continue or (tk[:state] & Ripper::EXPR_LABEL) != 0) then
|
|
526
|
+
break if !continue and nest <= 0
|
|
527
|
+
end
|
|
528
|
+
when :on_comma then
|
|
529
|
+
continue = true
|
|
530
|
+
when :on_ident then
|
|
531
|
+
continue = false if continue
|
|
532
|
+
when :on_kw then
|
|
533
|
+
case tk[:text]
|
|
534
|
+
when 'def', 'do', 'case', 'for', 'begin', 'class', 'module'
|
|
535
|
+
nest += 1
|
|
536
|
+
when 'if', 'unless', 'while', 'until', 'rescue'
|
|
537
|
+
# postfix if/unless/while/until/rescue must be EXPR_LABEL
|
|
538
|
+
nest += 1 unless (tk[:state] & Ripper::EXPR_LABEL) != 0
|
|
539
|
+
when 'end'
|
|
540
|
+
nest -= 1
|
|
541
|
+
break if nest == 0
|
|
542
|
+
end
|
|
543
|
+
when :on_const then
|
|
544
|
+
is_element_of_constant = true
|
|
545
|
+
when :on_op then
|
|
546
|
+
is_element_of_constant = true if '::' == tk[:text]
|
|
547
|
+
end
|
|
548
|
+
only_constant = false unless is_element_of_constant
|
|
549
|
+
tk = get_tk
|
|
550
|
+
end
|
|
551
|
+
|
|
552
|
+
if only_constant
|
|
553
|
+
get_tkread_clean(/\s+/, ' ')
|
|
554
|
+
else
|
|
555
|
+
''
|
|
556
|
+
end
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
##
|
|
560
|
+
# Little hack going on here. In the statement:
|
|
561
|
+
#
|
|
562
|
+
# f = 2*(1+yield)
|
|
563
|
+
#
|
|
564
|
+
# We see the RPAREN as the next token, so we need to exit early. This still
|
|
565
|
+
# won't catch all cases (such as "a = yield + 1"
|
|
566
|
+
|
|
567
|
+
def get_end_token(tk) # :nodoc:
|
|
568
|
+
case tk[:kind]
|
|
569
|
+
when :on_lparen
|
|
570
|
+
token = RDoc::Parser::RipperStateLex::Token.new
|
|
571
|
+
token[:kind] = :on_rparen
|
|
572
|
+
token[:text] = ')'
|
|
573
|
+
token
|
|
574
|
+
when :on_rparen
|
|
575
|
+
nil
|
|
576
|
+
else
|
|
577
|
+
token = RDoc::Parser::RipperStateLex::Token.new
|
|
578
|
+
token[:kind] = :on_nl
|
|
579
|
+
token[:text] = "\n"
|
|
580
|
+
token
|
|
581
|
+
end
|
|
582
|
+
end
|
|
583
|
+
|
|
584
|
+
##
|
|
585
|
+
# Retrieves the method container for a singleton method.
|
|
586
|
+
|
|
587
|
+
def get_method_container(container, name_t) # :nodoc:
|
|
588
|
+
prev_container = container
|
|
589
|
+
container = container.find_module_named(name_t[:text])
|
|
590
|
+
|
|
591
|
+
unless container then
|
|
592
|
+
constant = prev_container.constants.find do |const|
|
|
593
|
+
const.name == name_t[:text]
|
|
594
|
+
end
|
|
595
|
+
|
|
596
|
+
if constant then
|
|
597
|
+
parse_method_dummy prev_container
|
|
598
|
+
return
|
|
599
|
+
end
|
|
600
|
+
end
|
|
601
|
+
|
|
602
|
+
unless container then
|
|
603
|
+
# TODO seems broken, should starting at Object in @store
|
|
604
|
+
obj = name_t[:text].split("::").inject(Object) do |state, item|
|
|
605
|
+
state.const_get(item)
|
|
606
|
+
end rescue nil
|
|
607
|
+
|
|
608
|
+
type = obj.class == Class ? RDoc::NormalClass : RDoc::NormalModule
|
|
609
|
+
|
|
610
|
+
unless [Class, Module].include?(obj.class) then
|
|
611
|
+
warn("Couldn't find #{name_t[:text]}. Assuming it's a module")
|
|
612
|
+
end
|
|
613
|
+
|
|
614
|
+
if type == RDoc::NormalClass then
|
|
615
|
+
sclass = obj.superclass ? obj.superclass.name : nil
|
|
616
|
+
container = prev_container.add_class type, name_t[:text], sclass
|
|
617
|
+
else
|
|
618
|
+
container = prev_container.add_module type, name_t[:text]
|
|
619
|
+
end
|
|
620
|
+
|
|
621
|
+
record_location container
|
|
622
|
+
end
|
|
623
|
+
|
|
624
|
+
container
|
|
625
|
+
end
|
|
626
|
+
|
|
627
|
+
##
|
|
628
|
+
# Extracts a name or symbol from the token stream.
|
|
629
|
+
|
|
630
|
+
def get_symbol_or_name
|
|
631
|
+
tk = get_tk
|
|
632
|
+
case tk[:kind]
|
|
633
|
+
when :on_symbol then
|
|
634
|
+
text = tk[:text].sub(/^:/, '')
|
|
635
|
+
|
|
636
|
+
next_tk = peek_tk
|
|
637
|
+
if next_tk && :on_op == next_tk[:kind] && '=' == next_tk[:text] then
|
|
638
|
+
get_tk
|
|
639
|
+
text << '='
|
|
640
|
+
end
|
|
641
|
+
|
|
642
|
+
text
|
|
643
|
+
when :on_ident, :on_const, :on_gvar, :on_cvar, :on_ivar, :on_op, :on_kw then
|
|
644
|
+
tk[:text]
|
|
645
|
+
when :on_tstring, :on_dstring then
|
|
646
|
+
tk[:text][1..-2]
|
|
647
|
+
else
|
|
648
|
+
raise RDoc::Error, "Name or symbol expected (got #{tk})"
|
|
649
|
+
end
|
|
650
|
+
end
|
|
651
|
+
|
|
652
|
+
##
|
|
653
|
+
# Marks containers between +container+ and +ancestor+ as ignored
|
|
654
|
+
|
|
655
|
+
def suppress_parents(container, ancestor) # :nodoc:
|
|
656
|
+
while container and container != ancestor do
|
|
657
|
+
container.suppress unless container.documented?
|
|
658
|
+
container = container.parent
|
|
659
|
+
end
|
|
660
|
+
end
|
|
661
|
+
|
|
662
|
+
##
|
|
663
|
+
# Look for directives in a normal comment block:
|
|
664
|
+
#
|
|
665
|
+
# # :stopdoc:
|
|
666
|
+
# # Don't display comment from this point forward
|
|
667
|
+
#
|
|
668
|
+
# This routine modifies its +comment+ parameter.
|
|
669
|
+
|
|
670
|
+
def look_for_directives_in(container, comment)
|
|
671
|
+
@preprocess.handle comment, container do |directive, param|
|
|
672
|
+
case directive
|
|
673
|
+
when 'method', 'singleton-method',
|
|
674
|
+
'attr', 'attr_accessor', 'attr_reader', 'attr_writer' then
|
|
675
|
+
false # handled elsewhere
|
|
676
|
+
when 'section' then
|
|
677
|
+
break unless container.kind_of?(RDoc::Context)
|
|
678
|
+
container.set_current_section param, comment.dup
|
|
679
|
+
comment.text = ''
|
|
680
|
+
break
|
|
681
|
+
end
|
|
682
|
+
end
|
|
683
|
+
|
|
684
|
+
comment.remove_private
|
|
685
|
+
end
|
|
686
|
+
|
|
687
|
+
##
|
|
688
|
+
# Adds useful info about the parser to +message+
|
|
689
|
+
|
|
690
|
+
def make_message(message)
|
|
691
|
+
prefix = "#{@file_name}:".dup
|
|
692
|
+
|
|
693
|
+
tk = peek_tk
|
|
694
|
+
prefix << "#{tk[:line_no]}:#{tk[:char_no]}:" if tk
|
|
695
|
+
|
|
696
|
+
"#{prefix} #{message}"
|
|
697
|
+
end
|
|
698
|
+
|
|
699
|
+
##
|
|
700
|
+
# Creates a comment with the correct format
|
|
701
|
+
|
|
702
|
+
def new_comment(comment, line_no = nil)
|
|
703
|
+
c = RDoc::Comment.new comment, @top_level, :ruby
|
|
704
|
+
c.line = line_no
|
|
705
|
+
c.format = @markup
|
|
706
|
+
c
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
##
|
|
710
|
+
# Creates an RDoc::Attr for the name following +tk+, setting the comment to
|
|
711
|
+
# +comment+.
|
|
712
|
+
|
|
713
|
+
def parse_attr(context, single, tk, comment)
|
|
714
|
+
line_no = tk[:line_no]
|
|
715
|
+
|
|
716
|
+
args = parse_symbol_arg 1
|
|
717
|
+
if args.size > 0 then
|
|
718
|
+
name = args[0]
|
|
719
|
+
rw = "R"
|
|
720
|
+
skip_tkspace_without_nl
|
|
721
|
+
tk = get_tk
|
|
722
|
+
|
|
723
|
+
if :on_comma == tk[:kind] then
|
|
724
|
+
rw = "RW" if get_bool
|
|
725
|
+
else
|
|
726
|
+
unget_tk tk
|
|
727
|
+
end
|
|
728
|
+
|
|
729
|
+
att = create_attr context, single, name, rw, comment
|
|
730
|
+
att.line = line_no
|
|
731
|
+
|
|
732
|
+
read_documentation_modifiers att, RDoc::ATTR_MODIFIERS
|
|
733
|
+
else
|
|
734
|
+
warn "'attr' ignored - looks like a variable"
|
|
735
|
+
end
|
|
736
|
+
end
|
|
737
|
+
|
|
738
|
+
##
|
|
739
|
+
# Creates an RDoc::Attr for each attribute listed after +tk+, setting the
|
|
740
|
+
# comment for each to +comment+.
|
|
741
|
+
|
|
742
|
+
def parse_attr_accessor(context, single, tk, comment)
|
|
743
|
+
line_no = tk[:line_no]
|
|
744
|
+
|
|
745
|
+
args = parse_symbol_arg
|
|
746
|
+
rw = "?"
|
|
747
|
+
|
|
748
|
+
tmp = RDoc::CodeObject.new
|
|
749
|
+
read_documentation_modifiers tmp, RDoc::ATTR_MODIFIERS
|
|
750
|
+
# TODO In most other places we let the context keep track of document_self
|
|
751
|
+
# and add found items appropriately but here we do not. I'm not sure why.
|
|
752
|
+
return if @track_visibility and not tmp.document_self
|
|
753
|
+
|
|
754
|
+
case tk[:text]
|
|
755
|
+
when "attr_reader" then rw = "R"
|
|
756
|
+
when "attr_writer" then rw = "W"
|
|
757
|
+
when "attr_accessor" then rw = "RW"
|
|
758
|
+
else
|
|
759
|
+
rw = '?'
|
|
760
|
+
end
|
|
761
|
+
|
|
762
|
+
for name in args
|
|
763
|
+
att = create_attr context, single, name, rw, comment
|
|
764
|
+
att.line = line_no
|
|
765
|
+
end
|
|
766
|
+
end
|
|
767
|
+
|
|
768
|
+
##
|
|
769
|
+
# Parses an +alias+ in +context+ with +comment+
|
|
770
|
+
|
|
771
|
+
def parse_alias(context, single, tk, comment)
|
|
772
|
+
line_no = tk[:line_no]
|
|
773
|
+
|
|
774
|
+
skip_tkspace
|
|
775
|
+
|
|
776
|
+
if :on_lparen === peek_tk[:kind] then
|
|
777
|
+
get_tk
|
|
778
|
+
skip_tkspace
|
|
779
|
+
end
|
|
780
|
+
|
|
781
|
+
new_name = get_symbol_or_name
|
|
782
|
+
|
|
783
|
+
skip_tkspace
|
|
784
|
+
if :on_comma === peek_tk[:kind] then
|
|
785
|
+
get_tk
|
|
786
|
+
skip_tkspace
|
|
787
|
+
end
|
|
788
|
+
|
|
789
|
+
begin
|
|
790
|
+
old_name = get_symbol_or_name
|
|
791
|
+
rescue RDoc::Error
|
|
792
|
+
return
|
|
793
|
+
end
|
|
794
|
+
|
|
795
|
+
al = RDoc::Alias.new(get_tkread, old_name, new_name, comment, singleton: single == SINGLE)
|
|
796
|
+
record_location al
|
|
797
|
+
al.line = line_no
|
|
798
|
+
|
|
799
|
+
read_documentation_modifiers al, RDoc::ATTR_MODIFIERS
|
|
800
|
+
if al.document_self or not @track_visibility
|
|
801
|
+
context.add_alias al
|
|
802
|
+
@stats.add_alias al
|
|
803
|
+
end
|
|
804
|
+
|
|
805
|
+
al
|
|
806
|
+
end
|
|
807
|
+
|
|
808
|
+
##
|
|
809
|
+
# Extracts call parameters from the token stream.
|
|
810
|
+
|
|
811
|
+
def parse_call_parameters(tk)
|
|
812
|
+
end_token = case tk[:kind]
|
|
813
|
+
when :on_lparen
|
|
814
|
+
:on_rparen
|
|
815
|
+
when :on_rparen
|
|
816
|
+
return ""
|
|
817
|
+
else
|
|
818
|
+
:on_nl
|
|
819
|
+
end
|
|
820
|
+
nest = 0
|
|
821
|
+
|
|
822
|
+
loop do
|
|
823
|
+
break if tk.nil?
|
|
824
|
+
case tk[:kind]
|
|
825
|
+
when :on_semicolon
|
|
826
|
+
break
|
|
827
|
+
when :on_lparen
|
|
828
|
+
nest += 1
|
|
829
|
+
when end_token
|
|
830
|
+
if end_token == :on_rparen
|
|
831
|
+
nest -= 1
|
|
832
|
+
break if RDoc::Parser::RipperStateLex.end?(tk) and nest <= 0
|
|
833
|
+
else
|
|
834
|
+
break if RDoc::Parser::RipperStateLex.end?(tk)
|
|
835
|
+
end
|
|
836
|
+
when :on_comment, :on_embdoc
|
|
837
|
+
unget_tk(tk)
|
|
838
|
+
break
|
|
839
|
+
when :on_op
|
|
840
|
+
if tk[:text] =~ /^(.{1,2})?=$/
|
|
841
|
+
unget_tk(tk)
|
|
842
|
+
break
|
|
843
|
+
end
|
|
844
|
+
end
|
|
845
|
+
tk = get_tk
|
|
846
|
+
end
|
|
847
|
+
|
|
848
|
+
get_tkread_clean "\n", " "
|
|
849
|
+
end
|
|
850
|
+
|
|
851
|
+
##
|
|
852
|
+
# Parses a class in +context+ with +comment+
|
|
853
|
+
|
|
854
|
+
def parse_class(container, single, tk, comment)
|
|
855
|
+
line_no = tk[:line_no]
|
|
856
|
+
|
|
857
|
+
declaration_context = container
|
|
858
|
+
container, name_t, given_name, = get_class_or_module container
|
|
859
|
+
|
|
860
|
+
if name_t[:kind] == :on_const
|
|
861
|
+
cls = parse_class_regular container, declaration_context, single,
|
|
862
|
+
name_t, given_name, comment
|
|
863
|
+
elsif name_t[:kind] == :on_op && name_t[:text] == '<<'
|
|
864
|
+
case name = skip_parentheses { get_class_specification }
|
|
865
|
+
when 'self', container.name
|
|
866
|
+
read_documentation_modifiers cls, RDoc::CLASS_MODIFIERS
|
|
867
|
+
parse_statements container, SINGLE
|
|
868
|
+
return # don't update line
|
|
869
|
+
else
|
|
870
|
+
cls = parse_class_singleton container, name, comment
|
|
871
|
+
end
|
|
872
|
+
else
|
|
873
|
+
warn "Expected class name or '<<'. Got #{name_t[:kind]}: #{name_t[:text].inspect}"
|
|
874
|
+
return
|
|
875
|
+
end
|
|
876
|
+
|
|
877
|
+
cls.line = line_no
|
|
878
|
+
|
|
879
|
+
# after end modifiers
|
|
880
|
+
read_documentation_modifiers cls, RDoc::CLASS_MODIFIERS
|
|
881
|
+
|
|
882
|
+
cls
|
|
883
|
+
end
|
|
884
|
+
|
|
885
|
+
##
|
|
886
|
+
# Parses and creates a regular class
|
|
887
|
+
|
|
888
|
+
def parse_class_regular(container, declaration_context, single, # :nodoc:
|
|
889
|
+
name_t, given_name, comment)
|
|
890
|
+
superclass = '::Object'
|
|
891
|
+
|
|
892
|
+
if given_name =~ /^::/ then
|
|
893
|
+
declaration_context = @top_level
|
|
894
|
+
given_name = $'
|
|
895
|
+
end
|
|
896
|
+
|
|
897
|
+
tk = peek_tk
|
|
898
|
+
if tk[:kind] == :on_op && tk[:text] == '<' then
|
|
899
|
+
get_tk
|
|
900
|
+
skip_tkspace
|
|
901
|
+
superclass = get_class_specification
|
|
902
|
+
superclass = '(unknown)' if superclass.empty?
|
|
903
|
+
end
|
|
904
|
+
|
|
905
|
+
cls_type = single == SINGLE ? RDoc::SingleClass : RDoc::NormalClass
|
|
906
|
+
cls = declaration_context.add_class cls_type, given_name, superclass
|
|
907
|
+
cls.ignore unless container.document_children
|
|
908
|
+
|
|
909
|
+
read_documentation_modifiers cls, RDoc::CLASS_MODIFIERS
|
|
910
|
+
record_location cls
|
|
911
|
+
|
|
912
|
+
cls.add_comment comment, @top_level
|
|
913
|
+
|
|
914
|
+
@top_level.add_to_classes_or_modules cls
|
|
915
|
+
@stats.add_class cls
|
|
916
|
+
|
|
917
|
+
suppress_parents container, declaration_context unless cls.document_self
|
|
918
|
+
|
|
919
|
+
parse_statements cls
|
|
920
|
+
|
|
921
|
+
cls
|
|
922
|
+
end
|
|
923
|
+
|
|
924
|
+
##
|
|
925
|
+
# Parses a singleton class in +container+ with the given +name+ and
|
|
926
|
+
# +comment+.
|
|
927
|
+
|
|
928
|
+
def parse_class_singleton(container, name, comment) # :nodoc:
|
|
929
|
+
other = @store.find_class_named name
|
|
930
|
+
|
|
931
|
+
unless other then
|
|
932
|
+
if name =~ /^::/ then
|
|
933
|
+
name = $'
|
|
934
|
+
container = @top_level
|
|
935
|
+
end
|
|
936
|
+
|
|
937
|
+
other = container.add_module RDoc::NormalModule, name
|
|
938
|
+
record_location other
|
|
939
|
+
|
|
940
|
+
# class << $gvar
|
|
941
|
+
other.ignore if name.empty?
|
|
942
|
+
|
|
943
|
+
other.add_comment comment, @top_level
|
|
944
|
+
end
|
|
945
|
+
|
|
946
|
+
# notify :nodoc: all if not a constant-named class/module
|
|
947
|
+
# (and remove any comment)
|
|
948
|
+
unless name =~ /\A(::)?[A-Z]/ then
|
|
949
|
+
other.document_self = nil
|
|
950
|
+
other.document_children = false
|
|
951
|
+
other.clear_comment
|
|
952
|
+
end
|
|
953
|
+
|
|
954
|
+
@top_level.add_to_classes_or_modules other
|
|
955
|
+
@stats.add_class other
|
|
956
|
+
|
|
957
|
+
read_documentation_modifiers other, RDoc::CLASS_MODIFIERS
|
|
958
|
+
parse_statements(other, SINGLE)
|
|
959
|
+
|
|
960
|
+
other
|
|
961
|
+
end
|
|
962
|
+
|
|
963
|
+
##
|
|
964
|
+
# Parses a constant in +context+ with +comment+. If +ignore_constants+ is
|
|
965
|
+
# true, no found constants will be added to RDoc.
|
|
966
|
+
|
|
967
|
+
def parse_constant(container, tk, comment, ignore_constants = false)
|
|
968
|
+
line_no = tk[:line_no]
|
|
969
|
+
|
|
970
|
+
name = tk[:text]
|
|
971
|
+
skip_tkspace_without_nl
|
|
972
|
+
|
|
973
|
+
return unless name =~ /^\w+$/
|
|
974
|
+
|
|
975
|
+
new_modules = []
|
|
976
|
+
if :on_op == peek_tk[:kind] && '::' == peek_tk[:text] then
|
|
977
|
+
unget_tk tk
|
|
978
|
+
|
|
979
|
+
container, name_t, _, new_modules = get_class_or_module container, true
|
|
980
|
+
|
|
981
|
+
name = name_t[:text]
|
|
982
|
+
end
|
|
983
|
+
|
|
984
|
+
is_array_or_hash = false
|
|
985
|
+
if peek_tk && :on_lbracket == peek_tk[:kind]
|
|
986
|
+
get_tk
|
|
987
|
+
nest = 1
|
|
988
|
+
while bracket_tk = get_tk
|
|
989
|
+
case bracket_tk[:kind]
|
|
990
|
+
when :on_lbracket
|
|
991
|
+
nest += 1
|
|
992
|
+
when :on_rbracket
|
|
993
|
+
nest -= 1
|
|
994
|
+
break if nest == 0
|
|
995
|
+
end
|
|
996
|
+
end
|
|
997
|
+
skip_tkspace_without_nl
|
|
998
|
+
is_array_or_hash = true
|
|
999
|
+
end
|
|
1000
|
+
|
|
1001
|
+
unless peek_tk && :on_op == peek_tk[:kind] && '=' == peek_tk[:text] then
|
|
1002
|
+
return false
|
|
1003
|
+
end
|
|
1004
|
+
get_tk
|
|
1005
|
+
|
|
1006
|
+
unless ignore_constants
|
|
1007
|
+
new_modules.each do |prev_c, new_module|
|
|
1008
|
+
prev_c.add_module_by_normal_module new_module
|
|
1009
|
+
new_module.ignore unless prev_c.document_children
|
|
1010
|
+
@top_level.add_to_classes_or_modules new_module
|
|
1011
|
+
end
|
|
1012
|
+
end
|
|
1013
|
+
|
|
1014
|
+
value = ''
|
|
1015
|
+
con = RDoc::Constant.new name, value, comment
|
|
1016
|
+
|
|
1017
|
+
body = parse_constant_body container, con, is_array_or_hash
|
|
1018
|
+
|
|
1019
|
+
return unless body
|
|
1020
|
+
|
|
1021
|
+
con.value = body
|
|
1022
|
+
record_location con
|
|
1023
|
+
con.line = line_no
|
|
1024
|
+
read_documentation_modifiers con, RDoc::CONSTANT_MODIFIERS
|
|
1025
|
+
|
|
1026
|
+
return if is_array_or_hash
|
|
1027
|
+
|
|
1028
|
+
@stats.add_constant con
|
|
1029
|
+
container.add_constant con
|
|
1030
|
+
|
|
1031
|
+
true
|
|
1032
|
+
end
|
|
1033
|
+
|
|
1034
|
+
def parse_constant_body(container, constant, is_array_or_hash) # :nodoc:
|
|
1035
|
+
nest = 0
|
|
1036
|
+
rhs_name = ''.dup
|
|
1037
|
+
|
|
1038
|
+
get_tkread
|
|
1039
|
+
|
|
1040
|
+
tk = get_tk
|
|
1041
|
+
|
|
1042
|
+
body = nil
|
|
1043
|
+
loop do
|
|
1044
|
+
break if tk.nil?
|
|
1045
|
+
if :on_semicolon == tk[:kind] then
|
|
1046
|
+
break if nest <= 0
|
|
1047
|
+
elsif [:on_tlambeg, :on_lparen, :on_lbrace, :on_lbracket].include?(tk[:kind]) then
|
|
1048
|
+
nest += 1
|
|
1049
|
+
elsif (:on_kw == tk[:kind] && 'def' == tk[:text]) then
|
|
1050
|
+
nest += 1
|
|
1051
|
+
elsif (:on_kw == tk[:kind] && %w{do if unless case begin}.include?(tk[:text])) then
|
|
1052
|
+
if (tk[:state] & Ripper::EXPR_LABEL) == 0
|
|
1053
|
+
nest += 1
|
|
1054
|
+
end
|
|
1055
|
+
elsif [:on_rparen, :on_rbrace, :on_rbracket].include?(tk[:kind]) ||
|
|
1056
|
+
(:on_kw == tk[:kind] && 'end' == tk[:text]) then
|
|
1057
|
+
nest -= 1
|
|
1058
|
+
elsif (:on_comment == tk[:kind] or :on_embdoc == tk[:kind]) then
|
|
1059
|
+
unget_tk tk
|
|
1060
|
+
if nest <= 0 and RDoc::Parser::RipperStateLex.end?(tk) then
|
|
1061
|
+
body = get_tkread_clean(/^[ \t]+/, '')
|
|
1062
|
+
read_documentation_modifiers constant, RDoc::CONSTANT_MODIFIERS
|
|
1063
|
+
break
|
|
1064
|
+
else
|
|
1065
|
+
read_documentation_modifiers constant, RDoc::CONSTANT_MODIFIERS
|
|
1066
|
+
end
|
|
1067
|
+
elsif :on_const == tk[:kind] then
|
|
1068
|
+
rhs_name << tk[:text]
|
|
1069
|
+
|
|
1070
|
+
next_tk = peek_tk
|
|
1071
|
+
if nest <= 0 and (next_tk.nil? || :on_nl == next_tk[:kind]) then
|
|
1072
|
+
create_module_alias container, constant, rhs_name unless is_array_or_hash
|
|
1073
|
+
break
|
|
1074
|
+
end
|
|
1075
|
+
elsif :on_nl == tk[:kind] then
|
|
1076
|
+
if nest <= 0 and RDoc::Parser::RipperStateLex.end?(tk) then
|
|
1077
|
+
unget_tk tk
|
|
1078
|
+
break
|
|
1079
|
+
end
|
|
1080
|
+
elsif :on_op == tk[:kind] && '::' == tk[:text]
|
|
1081
|
+
rhs_name << '::'
|
|
1082
|
+
end
|
|
1083
|
+
tk = get_tk
|
|
1084
|
+
end
|
|
1085
|
+
|
|
1086
|
+
body ? body : get_tkread_clean(/^[ \t]+/, '')
|
|
1087
|
+
end
|
|
1088
|
+
|
|
1089
|
+
##
|
|
1090
|
+
# Generates an RDoc::Method or RDoc::Attr from +comment+ by looking for
|
|
1091
|
+
# :method: or :attr: directives in +comment+.
|
|
1092
|
+
|
|
1093
|
+
def parse_comment(container, tk, comment)
|
|
1094
|
+
return parse_comment_tomdoc container, tk, comment if @markup == 'tomdoc'
|
|
1095
|
+
column = tk[:char_no]
|
|
1096
|
+
line_no = comment.line.nil? ? tk[:line_no] : comment.line
|
|
1097
|
+
|
|
1098
|
+
comment.text = comment.text.sub(/(^# +:?)(singleton-)(method:)/, '\1\3')
|
|
1099
|
+
singleton = !!$~
|
|
1100
|
+
|
|
1101
|
+
co =
|
|
1102
|
+
if (comment.text = comment.text.sub(/^# +:?method: *(\S*).*?\n/i, '')) && !!$~ then
|
|
1103
|
+
line_no += $`.count("\n")
|
|
1104
|
+
parse_comment_ghost container, comment.text, $1, column, line_no, comment
|
|
1105
|
+
elsif (comment.text = comment.text.sub(/# +:?(attr(_reader|_writer|_accessor)?): *(\S*).*?\n/i, '')) && !!$~ then
|
|
1106
|
+
parse_comment_attr container, $1, $3, comment
|
|
1107
|
+
end
|
|
1108
|
+
|
|
1109
|
+
if co then
|
|
1110
|
+
co.singleton = singleton
|
|
1111
|
+
co.line = line_no
|
|
1112
|
+
end
|
|
1113
|
+
|
|
1114
|
+
true
|
|
1115
|
+
end
|
|
1116
|
+
|
|
1117
|
+
##
|
|
1118
|
+
# Parse a comment that is describing an attribute in +container+ with the
|
|
1119
|
+
# given +name+ and +comment+.
|
|
1120
|
+
|
|
1121
|
+
def parse_comment_attr(container, type, name, comment) # :nodoc:
|
|
1122
|
+
return if name.empty?
|
|
1123
|
+
|
|
1124
|
+
rw = case type
|
|
1125
|
+
when 'attr_reader' then 'R'
|
|
1126
|
+
when 'attr_writer' then 'W'
|
|
1127
|
+
else 'RW'
|
|
1128
|
+
end
|
|
1129
|
+
|
|
1130
|
+
create_attr container, NORMAL, name, rw, comment
|
|
1131
|
+
end
|
|
1132
|
+
|
|
1133
|
+
def parse_comment_ghost(container, text, name, column, line_no, # :nodoc:
|
|
1134
|
+
comment)
|
|
1135
|
+
name = nil if name.empty?
|
|
1136
|
+
|
|
1137
|
+
meth = RDoc::GhostMethod.new get_tkread, name
|
|
1138
|
+
record_location meth
|
|
1139
|
+
|
|
1140
|
+
meth.start_collecting_tokens
|
|
1141
|
+
indent = RDoc::Parser::RipperStateLex::Token.new(1, 1, :on_sp, ' ' * column)
|
|
1142
|
+
position_comment = RDoc::Parser::RipperStateLex::Token.new(line_no, 1, :on_comment)
|
|
1143
|
+
position_comment[:text] = "# File #{@top_level.relative_name}, line #{line_no}"
|
|
1144
|
+
newline = RDoc::Parser::RipperStateLex::Token.new(0, 0, :on_nl, "\n")
|
|
1145
|
+
meth.add_tokens [position_comment, newline, indent]
|
|
1146
|
+
|
|
1147
|
+
meth.params =
|
|
1148
|
+
if text.sub!(/^#\s+:?args?:\s*(.*?)\s*$/i, '') then
|
|
1149
|
+
$1
|
|
1150
|
+
else
|
|
1151
|
+
''
|
|
1152
|
+
end
|
|
1153
|
+
|
|
1154
|
+
comment.normalize
|
|
1155
|
+
meth.call_seq = comment.extract_call_seq
|
|
1156
|
+
|
|
1157
|
+
return unless meth.name
|
|
1158
|
+
|
|
1159
|
+
container.add_method meth
|
|
1160
|
+
|
|
1161
|
+
meth.comment = comment
|
|
1162
|
+
|
|
1163
|
+
@stats.add_method meth
|
|
1164
|
+
|
|
1165
|
+
meth
|
|
1166
|
+
end
|
|
1167
|
+
|
|
1168
|
+
##
|
|
1169
|
+
# Creates an RDoc::Method on +container+ from +comment+ if there is a
|
|
1170
|
+
# Signature section in the comment
|
|
1171
|
+
|
|
1172
|
+
def parse_comment_tomdoc(container, tk, comment)
|
|
1173
|
+
return unless signature = RDoc::TomDoc.signature(comment)
|
|
1174
|
+
column = tk[:char_no]
|
|
1175
|
+
line_no = tk[:line_no]
|
|
1176
|
+
|
|
1177
|
+
name, = signature.split %r%[ \(]%, 2
|
|
1178
|
+
|
|
1179
|
+
meth = RDoc::GhostMethod.new get_tkread, name
|
|
1180
|
+
record_location meth
|
|
1181
|
+
meth.line = line_no
|
|
1182
|
+
|
|
1183
|
+
meth.start_collecting_tokens
|
|
1184
|
+
indent = RDoc::Parser::RipperStateLex::Token.new(1, 1, :on_sp, ' ' * column)
|
|
1185
|
+
position_comment = RDoc::Parser::RipperStateLex::Token.new(line_no, 1, :on_comment)
|
|
1186
|
+
position_comment[:text] = "# File #{@top_level.relative_name}, line #{line_no}"
|
|
1187
|
+
newline = RDoc::Parser::RipperStateLex::Token.new(0, 0, :on_nl, "\n")
|
|
1188
|
+
meth.add_tokens [position_comment, newline, indent]
|
|
1189
|
+
|
|
1190
|
+
meth.call_seq = signature
|
|
1191
|
+
|
|
1192
|
+
comment.normalize
|
|
1193
|
+
|
|
1194
|
+
return unless meth.name
|
|
1195
|
+
|
|
1196
|
+
container.add_method meth
|
|
1197
|
+
|
|
1198
|
+
meth.comment = comment
|
|
1199
|
+
|
|
1200
|
+
@stats.add_method meth
|
|
1201
|
+
end
|
|
1202
|
+
|
|
1203
|
+
##
|
|
1204
|
+
# Parses an +include+ or +extend+, indicated by the +klass+ and adds it to
|
|
1205
|
+
# +container+ # with +comment+
|
|
1206
|
+
|
|
1207
|
+
def parse_extend_or_include(klass, container, comment) # :nodoc:
|
|
1208
|
+
loop do
|
|
1209
|
+
skip_tkspace_comment
|
|
1210
|
+
|
|
1211
|
+
name = get_included_module_with_optional_parens
|
|
1212
|
+
|
|
1213
|
+
unless name.empty? then
|
|
1214
|
+
obj = container.add klass, name, comment
|
|
1215
|
+
record_location obj
|
|
1216
|
+
end
|
|
1217
|
+
|
|
1218
|
+
return if peek_tk.nil? || :on_comma != peek_tk[:kind]
|
|
1219
|
+
|
|
1220
|
+
get_tk
|
|
1221
|
+
end
|
|
1222
|
+
end
|
|
1223
|
+
|
|
1224
|
+
##
|
|
1225
|
+
# Parses an +included+ with a block feature of ActiveSupport::Concern.
|
|
1226
|
+
|
|
1227
|
+
def parse_included_with_activesupport_concern(container, comment) # :nodoc:
|
|
1228
|
+
skip_tkspace_without_nl
|
|
1229
|
+
tk = get_tk
|
|
1230
|
+
unless tk[:kind] == :on_lbracket || (tk[:kind] == :on_kw && tk[:text] == 'do')
|
|
1231
|
+
unget_tk tk
|
|
1232
|
+
return nil # should be a block
|
|
1233
|
+
end
|
|
1234
|
+
|
|
1235
|
+
parse_statements container
|
|
1236
|
+
|
|
1237
|
+
container
|
|
1238
|
+
end
|
|
1239
|
+
|
|
1240
|
+
##
|
|
1241
|
+
# Parses identifiers that can create new methods or change visibility.
|
|
1242
|
+
#
|
|
1243
|
+
# Returns true if the comment was not consumed.
|
|
1244
|
+
|
|
1245
|
+
def parse_identifier(container, single, tk, comment) # :nodoc:
|
|
1246
|
+
case tk[:text]
|
|
1247
|
+
when 'private', 'protected', 'public', 'private_class_method',
|
|
1248
|
+
'public_class_method', 'module_function' then
|
|
1249
|
+
parse_visibility container, single, tk
|
|
1250
|
+
return true
|
|
1251
|
+
when 'private_constant', 'public_constant'
|
|
1252
|
+
parse_constant_visibility container, single, tk
|
|
1253
|
+
return true
|
|
1254
|
+
when 'attr' then
|
|
1255
|
+
parse_attr container, single, tk, comment
|
|
1256
|
+
when /^attr_(reader|writer|accessor)$/ then
|
|
1257
|
+
parse_attr_accessor container, single, tk, comment
|
|
1258
|
+
when 'alias_method' then
|
|
1259
|
+
parse_alias container, single, tk, comment
|
|
1260
|
+
when 'require', 'include' then
|
|
1261
|
+
# ignore
|
|
1262
|
+
else
|
|
1263
|
+
if comment.text =~ /\A#\#$/ then
|
|
1264
|
+
case comment.text
|
|
1265
|
+
when /^# +:?attr(_reader|_writer|_accessor)?:/ then
|
|
1266
|
+
parse_meta_attr container, single, tk, comment
|
|
1267
|
+
else
|
|
1268
|
+
method = parse_meta_method container, single, tk, comment
|
|
1269
|
+
method.params = container.params if
|
|
1270
|
+
container.params
|
|
1271
|
+
method.block_params = container.block_params if
|
|
1272
|
+
container.block_params
|
|
1273
|
+
end
|
|
1274
|
+
end
|
|
1275
|
+
end
|
|
1276
|
+
|
|
1277
|
+
false
|
|
1278
|
+
end
|
|
1279
|
+
|
|
1280
|
+
##
|
|
1281
|
+
# Parses a meta-programmed attribute and creates an RDoc::Attr.
|
|
1282
|
+
#
|
|
1283
|
+
# To create foo and bar attributes on class C with comment "My attributes":
|
|
1284
|
+
#
|
|
1285
|
+
# class C
|
|
1286
|
+
#
|
|
1287
|
+
# ##
|
|
1288
|
+
# # :attr:
|
|
1289
|
+
# #
|
|
1290
|
+
# # My attributes
|
|
1291
|
+
#
|
|
1292
|
+
# my_attr :foo, :bar
|
|
1293
|
+
#
|
|
1294
|
+
# end
|
|
1295
|
+
#
|
|
1296
|
+
# To create a foo attribute on class C with comment "My attribute":
|
|
1297
|
+
#
|
|
1298
|
+
# class C
|
|
1299
|
+
#
|
|
1300
|
+
# ##
|
|
1301
|
+
# # :attr: foo
|
|
1302
|
+
# #
|
|
1303
|
+
# # My attribute
|
|
1304
|
+
#
|
|
1305
|
+
# my_attr :foo, :bar
|
|
1306
|
+
#
|
|
1307
|
+
# end
|
|
1308
|
+
|
|
1309
|
+
def parse_meta_attr(context, single, tk, comment)
|
|
1310
|
+
args = parse_symbol_arg
|
|
1311
|
+
rw = "?"
|
|
1312
|
+
|
|
1313
|
+
# If nodoc is given, don't document any of them
|
|
1314
|
+
|
|
1315
|
+
tmp = RDoc::CodeObject.new
|
|
1316
|
+
read_documentation_modifiers tmp, RDoc::ATTR_MODIFIERS
|
|
1317
|
+
|
|
1318
|
+
regexp = /^# +:?(attr(_reader|_writer|_accessor)?): *(\S*).*?\n/i
|
|
1319
|
+
if regexp =~ comment.text then
|
|
1320
|
+
comment.text = comment.text.sub(regexp, '')
|
|
1321
|
+
rw = case $1
|
|
1322
|
+
when 'attr_reader' then 'R'
|
|
1323
|
+
when 'attr_writer' then 'W'
|
|
1324
|
+
else 'RW'
|
|
1325
|
+
end
|
|
1326
|
+
name = $3 unless $3.empty?
|
|
1327
|
+
end
|
|
1328
|
+
|
|
1329
|
+
if name then
|
|
1330
|
+
att = create_attr context, single, name, rw, comment
|
|
1331
|
+
else
|
|
1332
|
+
args.each do |attr_name|
|
|
1333
|
+
att = create_attr context, single, attr_name, rw, comment
|
|
1334
|
+
end
|
|
1335
|
+
end
|
|
1336
|
+
|
|
1337
|
+
att
|
|
1338
|
+
end
|
|
1339
|
+
|
|
1340
|
+
##
|
|
1341
|
+
# Parses a meta-programmed method
|
|
1342
|
+
|
|
1343
|
+
def parse_meta_method(container, single, tk, comment)
|
|
1344
|
+
column = tk[:char_no]
|
|
1345
|
+
line_no = tk[:line_no]
|
|
1346
|
+
|
|
1347
|
+
start_collecting_tokens
|
|
1348
|
+
add_token tk
|
|
1349
|
+
add_token_listener self
|
|
1350
|
+
|
|
1351
|
+
skip_tkspace_without_nl
|
|
1352
|
+
|
|
1353
|
+
comment.text = comment.text.sub(/(^# +:?)(singleton-)(method:)/, '\1\3')
|
|
1354
|
+
singleton = !!$~
|
|
1355
|
+
|
|
1356
|
+
name = parse_meta_method_name comment, tk
|
|
1357
|
+
|
|
1358
|
+
return unless name
|
|
1359
|
+
|
|
1360
|
+
meth = RDoc::MetaMethod.new get_tkread, name, singleton: singleton
|
|
1361
|
+
record_location meth
|
|
1362
|
+
meth.line = line_no
|
|
1363
|
+
|
|
1364
|
+
remove_token_listener self
|
|
1365
|
+
|
|
1366
|
+
meth.start_collecting_tokens
|
|
1367
|
+
indent = RDoc::Parser::RipperStateLex::Token.new(1, 1, :on_sp, ' ' * column)
|
|
1368
|
+
position_comment = RDoc::Parser::RipperStateLex::Token.new(line_no, 1, :on_comment)
|
|
1369
|
+
position_comment[:text] = "# File #{@top_level.relative_name}, line #{line_no}"
|
|
1370
|
+
newline = RDoc::Parser::RipperStateLex::Token.new(0, 0, :on_nl, "\n")
|
|
1371
|
+
meth.add_tokens [position_comment, newline, indent]
|
|
1372
|
+
meth.add_tokens @token_stream
|
|
1373
|
+
|
|
1374
|
+
parse_meta_method_params container, single, meth, tk, comment
|
|
1375
|
+
|
|
1376
|
+
meth.comment = comment
|
|
1377
|
+
|
|
1378
|
+
@stats.add_method meth
|
|
1379
|
+
|
|
1380
|
+
meth
|
|
1381
|
+
end
|
|
1382
|
+
|
|
1383
|
+
##
|
|
1384
|
+
# Parses the name of a metaprogrammed method. +comment+ is used to
|
|
1385
|
+
# determine the name while +tk+ is used in an error message if the name
|
|
1386
|
+
# cannot be determined.
|
|
1387
|
+
|
|
1388
|
+
def parse_meta_method_name(comment, tk) # :nodoc:
|
|
1389
|
+
if comment.text.sub!(/^# +:?method: *(\S*).*?\n/i, '') then
|
|
1390
|
+
return $1 unless $1.empty?
|
|
1391
|
+
end
|
|
1392
|
+
|
|
1393
|
+
name_t = get_tk
|
|
1394
|
+
|
|
1395
|
+
if :on_symbol == name_t[:kind] then
|
|
1396
|
+
name_t[:text][1..-1]
|
|
1397
|
+
elsif :on_tstring == name_t[:kind] then
|
|
1398
|
+
name_t[:text][1..-2]
|
|
1399
|
+
elsif :on_op == name_t[:kind] && '=' == name_t[:text] then # ignore
|
|
1400
|
+
remove_token_listener self
|
|
1401
|
+
|
|
1402
|
+
nil
|
|
1403
|
+
else
|
|
1404
|
+
warn "unknown name token #{name_t.inspect} for meta-method '#{tk[:text]}'"
|
|
1405
|
+
'unknown'
|
|
1406
|
+
end
|
|
1407
|
+
end
|
|
1408
|
+
|
|
1409
|
+
##
|
|
1410
|
+
# Parses the parameters and block for a meta-programmed method.
|
|
1411
|
+
|
|
1412
|
+
def parse_meta_method_params(container, single, meth, tk, comment) # :nodoc:
|
|
1413
|
+
token_listener meth do
|
|
1414
|
+
meth.params = ''
|
|
1415
|
+
|
|
1416
|
+
look_for_directives_in meth, comment
|
|
1417
|
+
comment.normalize
|
|
1418
|
+
meth.call_seq = comment.extract_call_seq
|
|
1419
|
+
|
|
1420
|
+
container.add_method meth
|
|
1421
|
+
|
|
1422
|
+
last_tk = tk
|
|
1423
|
+
|
|
1424
|
+
while tk = get_tk do
|
|
1425
|
+
if :on_semicolon == tk[:kind] then
|
|
1426
|
+
break
|
|
1427
|
+
elsif :on_nl == tk[:kind] then
|
|
1428
|
+
break unless last_tk and :on_comma == last_tk[:kind]
|
|
1429
|
+
elsif :on_sp == tk[:kind] then
|
|
1430
|
+
# expression continues
|
|
1431
|
+
elsif :on_kw == tk[:kind] && 'do' == tk[:text] then
|
|
1432
|
+
parse_statements container, single, meth
|
|
1433
|
+
break
|
|
1434
|
+
else
|
|
1435
|
+
last_tk = tk
|
|
1436
|
+
end
|
|
1437
|
+
end
|
|
1438
|
+
end
|
|
1439
|
+
end
|
|
1440
|
+
|
|
1441
|
+
##
|
|
1442
|
+
# Parses a normal method defined by +def+
|
|
1443
|
+
|
|
1444
|
+
def parse_method(container, single, tk, comment)
|
|
1445
|
+
singleton = nil
|
|
1446
|
+
added_container = false
|
|
1447
|
+
name = nil
|
|
1448
|
+
column = tk[:char_no]
|
|
1449
|
+
line_no = tk[:line_no]
|
|
1450
|
+
|
|
1451
|
+
start_collecting_tokens
|
|
1452
|
+
add_token tk
|
|
1453
|
+
|
|
1454
|
+
token_listener self do
|
|
1455
|
+
prev_container = container
|
|
1456
|
+
name, container, singleton = parse_method_name container
|
|
1457
|
+
added_container = container != prev_container
|
|
1458
|
+
end
|
|
1459
|
+
|
|
1460
|
+
return unless name
|
|
1461
|
+
|
|
1462
|
+
meth = RDoc::AnyMethod.new get_tkread, name, singleton: single == SINGLE ? true : singleton
|
|
1463
|
+
look_for_directives_in meth, comment
|
|
1464
|
+
if singleton
|
|
1465
|
+
# `current_line_visibility' is useless because it works against
|
|
1466
|
+
# the normal method named as same as the singleton method, after
|
|
1467
|
+
# the latter was defined. Of course these are different things.
|
|
1468
|
+
container.current_line_visibility = :public
|
|
1469
|
+
end
|
|
1470
|
+
|
|
1471
|
+
record_location meth
|
|
1472
|
+
meth.line = line_no
|
|
1473
|
+
|
|
1474
|
+
meth.start_collecting_tokens
|
|
1475
|
+
indent = RDoc::Parser::RipperStateLex::Token.new(1, 1, :on_sp, ' ' * column)
|
|
1476
|
+
token = RDoc::Parser::RipperStateLex::Token.new(line_no, 1, :on_comment)
|
|
1477
|
+
token[:text] = "# File #{@top_level.relative_name}, line #{line_no}"
|
|
1478
|
+
newline = RDoc::Parser::RipperStateLex::Token.new(0, 0, :on_nl, "\n")
|
|
1479
|
+
meth.add_tokens [token, newline, indent]
|
|
1480
|
+
meth.add_tokens @token_stream
|
|
1481
|
+
|
|
1482
|
+
parse_method_params_and_body container, single, meth, added_container
|
|
1483
|
+
|
|
1484
|
+
comment.normalize
|
|
1485
|
+
meth.call_seq = comment.extract_call_seq
|
|
1486
|
+
|
|
1487
|
+
meth.comment = comment
|
|
1488
|
+
|
|
1489
|
+
# after end modifiers
|
|
1490
|
+
read_documentation_modifiers meth, RDoc::METHOD_MODIFIERS
|
|
1491
|
+
|
|
1492
|
+
@stats.add_method meth
|
|
1493
|
+
end
|
|
1494
|
+
|
|
1495
|
+
##
|
|
1496
|
+
# Parses the parameters and body of +meth+
|
|
1497
|
+
|
|
1498
|
+
def parse_method_params_and_body(container, single, meth, added_container)
|
|
1499
|
+
token_listener meth do
|
|
1500
|
+
parse_method_parameters meth
|
|
1501
|
+
|
|
1502
|
+
if meth.document_self or not @track_visibility then
|
|
1503
|
+
container.add_method meth
|
|
1504
|
+
elsif added_container then
|
|
1505
|
+
container.document_self = false
|
|
1506
|
+
end
|
|
1507
|
+
|
|
1508
|
+
# Having now read the method parameters and documentation modifiers, we
|
|
1509
|
+
# now know whether we have to rename #initialize to ::new
|
|
1510
|
+
|
|
1511
|
+
if meth.name == "initialize" && !meth.singleton then
|
|
1512
|
+
if meth.dont_rename_initialize then
|
|
1513
|
+
meth.visibility = :protected
|
|
1514
|
+
else
|
|
1515
|
+
meth.singleton = true
|
|
1516
|
+
meth.name = "new"
|
|
1517
|
+
meth.visibility = :public
|
|
1518
|
+
end
|
|
1519
|
+
end
|
|
1520
|
+
|
|
1521
|
+
parse_statements container, single, meth
|
|
1522
|
+
end
|
|
1523
|
+
end
|
|
1524
|
+
|
|
1525
|
+
##
|
|
1526
|
+
# Parses a method that needs to be ignored.
|
|
1527
|
+
|
|
1528
|
+
def parse_method_dummy(container)
|
|
1529
|
+
dummy = RDoc::Context.new
|
|
1530
|
+
dummy.parent = container
|
|
1531
|
+
dummy.store = container.store
|
|
1532
|
+
skip_method dummy
|
|
1533
|
+
end
|
|
1534
|
+
|
|
1535
|
+
##
|
|
1536
|
+
# Parses the name of a method in +container+.
|
|
1537
|
+
#
|
|
1538
|
+
# Returns the method name, the container it is in (for def Foo.name) and if
|
|
1539
|
+
# it is a singleton or regular method.
|
|
1540
|
+
|
|
1541
|
+
def parse_method_name(container) # :nodoc:
|
|
1542
|
+
skip_tkspace
|
|
1543
|
+
name_t = get_tk
|
|
1544
|
+
back_tk = skip_tkspace_without_nl
|
|
1545
|
+
singleton = false
|
|
1546
|
+
|
|
1547
|
+
dot = get_tk
|
|
1548
|
+
if dot[:kind] == :on_period || (dot[:kind] == :on_op && dot[:text] == '::') then
|
|
1549
|
+
singleton = true
|
|
1550
|
+
|
|
1551
|
+
name, container = parse_method_name_singleton container, name_t
|
|
1552
|
+
else
|
|
1553
|
+
unget_tk dot
|
|
1554
|
+
back_tk.reverse_each do |token|
|
|
1555
|
+
unget_tk token
|
|
1556
|
+
end
|
|
1557
|
+
|
|
1558
|
+
name = parse_method_name_regular container, name_t
|
|
1559
|
+
end
|
|
1560
|
+
|
|
1561
|
+
return name, container, singleton
|
|
1562
|
+
end
|
|
1563
|
+
|
|
1564
|
+
##
|
|
1565
|
+
# For the given +container+ and initial name token +name_t+ the method name
|
|
1566
|
+
# is parsed from the token stream for a regular method.
|
|
1567
|
+
|
|
1568
|
+
def parse_method_name_regular(container, name_t) # :nodoc:
|
|
1569
|
+
if :on_op == name_t[:kind] && (%w{* & [] []= <<}.include?(name_t[:text])) then
|
|
1570
|
+
name_t[:text]
|
|
1571
|
+
else
|
|
1572
|
+
unless [:on_kw, :on_const, :on_ident].include?(name_t[:kind]) then
|
|
1573
|
+
warn "expected method name token, . or ::, got #{name_t.inspect}"
|
|
1574
|
+
skip_method container
|
|
1575
|
+
return
|
|
1576
|
+
end
|
|
1577
|
+
name_t[:text]
|
|
1578
|
+
end
|
|
1579
|
+
end
|
|
1580
|
+
|
|
1581
|
+
##
|
|
1582
|
+
# For the given +container+ and initial name token +name_t+ the method name
|
|
1583
|
+
# and the new +container+ (if necessary) are parsed from the token stream
|
|
1584
|
+
# for a singleton method.
|
|
1585
|
+
|
|
1586
|
+
def parse_method_name_singleton(container, name_t) # :nodoc:
|
|
1587
|
+
skip_tkspace
|
|
1588
|
+
name_t2 = get_tk
|
|
1589
|
+
|
|
1590
|
+
if (:on_kw == name_t[:kind] && 'self' == name_t[:text]) || (:on_op == name_t[:kind] && '%' == name_t[:text]) then
|
|
1591
|
+
# NOTE: work around '[' being consumed early
|
|
1592
|
+
if :on_lbracket == name_t2[:kind]
|
|
1593
|
+
get_tk
|
|
1594
|
+
name = '[]'
|
|
1595
|
+
else
|
|
1596
|
+
name = name_t2[:text]
|
|
1597
|
+
end
|
|
1598
|
+
elsif :on_const == name_t[:kind] then
|
|
1599
|
+
name = name_t2[:text]
|
|
1600
|
+
|
|
1601
|
+
container = get_method_container container, name_t
|
|
1602
|
+
|
|
1603
|
+
return unless container
|
|
1604
|
+
|
|
1605
|
+
name
|
|
1606
|
+
elsif :on_ident == name_t[:kind] || :on_ivar == name_t[:kind] || :on_gvar == name_t[:kind] then
|
|
1607
|
+
parse_method_dummy container
|
|
1608
|
+
|
|
1609
|
+
name = nil
|
|
1610
|
+
elsif (:on_kw == name_t[:kind]) && ('true' == name_t[:text] || 'false' == name_t[:text] || 'nil' == name_t[:text]) then
|
|
1611
|
+
klass_name = "#{name_t[:text].capitalize}Class"
|
|
1612
|
+
container = @store.find_class_named klass_name
|
|
1613
|
+
container ||= @top_level.add_class RDoc::NormalClass, klass_name
|
|
1614
|
+
|
|
1615
|
+
name = name_t2[:text]
|
|
1616
|
+
else
|
|
1617
|
+
warn "unexpected method name token #{name_t.inspect}"
|
|
1618
|
+
# break
|
|
1619
|
+
skip_method container
|
|
1620
|
+
|
|
1621
|
+
name = nil
|
|
1622
|
+
end
|
|
1623
|
+
|
|
1624
|
+
return name, container
|
|
1625
|
+
end
|
|
1626
|
+
|
|
1627
|
+
##
|
|
1628
|
+
# Extracts +yield+ parameters from +method+
|
|
1629
|
+
|
|
1630
|
+
def parse_method_or_yield_parameters(method = nil,
|
|
1631
|
+
modifiers = RDoc::METHOD_MODIFIERS)
|
|
1632
|
+
skip_tkspace_without_nl
|
|
1633
|
+
tk = get_tk
|
|
1634
|
+
end_token = get_end_token tk
|
|
1635
|
+
return '' unless end_token
|
|
1636
|
+
|
|
1637
|
+
nest = 0
|
|
1638
|
+
continue = false
|
|
1639
|
+
|
|
1640
|
+
while tk != nil do
|
|
1641
|
+
case tk[:kind]
|
|
1642
|
+
when :on_semicolon then
|
|
1643
|
+
break if nest == 0
|
|
1644
|
+
when :on_lbracket then
|
|
1645
|
+
nest += 1
|
|
1646
|
+
when :on_rbracket then
|
|
1647
|
+
nest -= 1
|
|
1648
|
+
when :on_lbrace then
|
|
1649
|
+
nest += 1
|
|
1650
|
+
when :on_rbrace then
|
|
1651
|
+
nest -= 1
|
|
1652
|
+
if nest <= 0
|
|
1653
|
+
# we might have a.each { |i| yield i }
|
|
1654
|
+
unget_tk(tk) if nest < 0
|
|
1655
|
+
break
|
|
1656
|
+
end
|
|
1657
|
+
when :on_lparen then
|
|
1658
|
+
nest += 1
|
|
1659
|
+
when end_token[:kind] then
|
|
1660
|
+
if end_token[:kind] == :on_rparen
|
|
1661
|
+
nest -= 1
|
|
1662
|
+
break if nest <= 0
|
|
1663
|
+
else
|
|
1664
|
+
break
|
|
1665
|
+
end
|
|
1666
|
+
when :on_rparen then
|
|
1667
|
+
nest -= 1
|
|
1668
|
+
when :on_comment, :on_embdoc then
|
|
1669
|
+
@read.pop
|
|
1670
|
+
if :on_nl == end_token[:kind] and "\n" == tk[:text][-1] and
|
|
1671
|
+
(!continue or (tk[:state] & Ripper::EXPR_LABEL) != 0) then
|
|
1672
|
+
if method && method.block_params.nil? then
|
|
1673
|
+
unget_tk tk
|
|
1674
|
+
read_documentation_modifiers method, modifiers
|
|
1675
|
+
end
|
|
1676
|
+
break if !continue and nest <= 0
|
|
1677
|
+
end
|
|
1678
|
+
when :on_comma then
|
|
1679
|
+
continue = true
|
|
1680
|
+
when :on_ident then
|
|
1681
|
+
continue = false if continue
|
|
1682
|
+
end
|
|
1683
|
+
tk = get_tk
|
|
1684
|
+
end
|
|
1685
|
+
|
|
1686
|
+
get_tkread_clean(/\s+/, ' ')
|
|
1687
|
+
end
|
|
1688
|
+
|
|
1689
|
+
##
|
|
1690
|
+
# Capture the method's parameters. Along the way, look for a comment
|
|
1691
|
+
# containing:
|
|
1692
|
+
#
|
|
1693
|
+
# # yields: ....
|
|
1694
|
+
#
|
|
1695
|
+
# and add this as the block_params for the method
|
|
1696
|
+
|
|
1697
|
+
def parse_method_parameters(method)
|
|
1698
|
+
res = parse_method_or_yield_parameters method
|
|
1699
|
+
|
|
1700
|
+
res = "(#{res})" unless res =~ /\A\(/
|
|
1701
|
+
method.params = res unless method.params
|
|
1702
|
+
|
|
1703
|
+
return if method.block_params
|
|
1704
|
+
|
|
1705
|
+
skip_tkspace_without_nl
|
|
1706
|
+
read_documentation_modifiers method, RDoc::METHOD_MODIFIERS
|
|
1707
|
+
end
|
|
1708
|
+
|
|
1709
|
+
##
|
|
1710
|
+
# Parses an RDoc::NormalModule in +container+ with +comment+
|
|
1711
|
+
|
|
1712
|
+
def parse_module(container, single, tk, comment)
|
|
1713
|
+
container, name_t, = get_class_or_module container
|
|
1714
|
+
|
|
1715
|
+
name = name_t[:text]
|
|
1716
|
+
|
|
1717
|
+
mod = container.add_module RDoc::NormalModule, name
|
|
1718
|
+
mod.ignore unless container.document_children
|
|
1719
|
+
record_location mod
|
|
1720
|
+
|
|
1721
|
+
read_documentation_modifiers mod, RDoc::CLASS_MODIFIERS
|
|
1722
|
+
mod.add_comment comment, @top_level
|
|
1723
|
+
parse_statements mod
|
|
1724
|
+
|
|
1725
|
+
# after end modifiers
|
|
1726
|
+
read_documentation_modifiers mod, RDoc::CLASS_MODIFIERS
|
|
1727
|
+
|
|
1728
|
+
@stats.add_module mod
|
|
1729
|
+
end
|
|
1730
|
+
|
|
1731
|
+
##
|
|
1732
|
+
# Parses an RDoc::Require in +context+ containing +comment+
|
|
1733
|
+
|
|
1734
|
+
def parse_require(context, comment)
|
|
1735
|
+
skip_tkspace_comment
|
|
1736
|
+
tk = get_tk
|
|
1737
|
+
|
|
1738
|
+
if :on_lparen == tk[:kind] then
|
|
1739
|
+
skip_tkspace_comment
|
|
1740
|
+
tk = get_tk
|
|
1741
|
+
end
|
|
1742
|
+
|
|
1743
|
+
name = tk[:text][1..-2] if :on_tstring == tk[:kind]
|
|
1744
|
+
|
|
1745
|
+
if name then
|
|
1746
|
+
@top_level.add_require RDoc::Require.new(name, comment)
|
|
1747
|
+
else
|
|
1748
|
+
unget_tk tk
|
|
1749
|
+
end
|
|
1750
|
+
end
|
|
1751
|
+
|
|
1752
|
+
##
|
|
1753
|
+
# Parses a rescue
|
|
1754
|
+
|
|
1755
|
+
def parse_rescue
|
|
1756
|
+
skip_tkspace_without_nl
|
|
1757
|
+
|
|
1758
|
+
while tk = get_tk
|
|
1759
|
+
case tk[:kind]
|
|
1760
|
+
when :on_nl, :on_semicolon, :on_comment then
|
|
1761
|
+
break
|
|
1762
|
+
when :on_comma then
|
|
1763
|
+
skip_tkspace_without_nl
|
|
1764
|
+
|
|
1765
|
+
get_tk if :on_nl == peek_tk[:kind]
|
|
1766
|
+
end
|
|
1767
|
+
|
|
1768
|
+
skip_tkspace_without_nl
|
|
1769
|
+
end
|
|
1770
|
+
end
|
|
1771
|
+
|
|
1772
|
+
##
|
|
1773
|
+
# Retrieve comment body without =begin/=end
|
|
1774
|
+
|
|
1775
|
+
def retrieve_comment_body(tk)
|
|
1776
|
+
if :on_embdoc == tk[:kind]
|
|
1777
|
+
tk[:text].gsub(/\A=begin.*\n/, '').gsub(/=end\n?\z/, '')
|
|
1778
|
+
else
|
|
1779
|
+
tk[:text]
|
|
1780
|
+
end
|
|
1781
|
+
end
|
|
1782
|
+
|
|
1783
|
+
##
|
|
1784
|
+
# The core of the Ruby parser.
|
|
1785
|
+
|
|
1786
|
+
def parse_statements(container, single = NORMAL, current_method = nil,
|
|
1787
|
+
comment = new_comment(''))
|
|
1788
|
+
raise 'no' unless RDoc::Comment === comment
|
|
1789
|
+
comment = RDoc::Encoding.change_encoding comment, @encoding if @encoding
|
|
1790
|
+
|
|
1791
|
+
nest = 1
|
|
1792
|
+
save_visibility = container.visibility
|
|
1793
|
+
container.visibility = :public unless current_method
|
|
1794
|
+
|
|
1795
|
+
non_comment_seen = true
|
|
1796
|
+
|
|
1797
|
+
while tk = get_tk do
|
|
1798
|
+
keep_comment = false
|
|
1799
|
+
try_parse_comment = false
|
|
1800
|
+
|
|
1801
|
+
non_comment_seen = true unless (:on_comment == tk[:kind] or :on_embdoc == tk[:kind])
|
|
1802
|
+
|
|
1803
|
+
case tk[:kind]
|
|
1804
|
+
when :on_nl, :on_ignored_nl, :on_comment, :on_embdoc then
|
|
1805
|
+
if :on_nl == tk[:kind] or :on_ignored_nl == tk[:kind]
|
|
1806
|
+
skip_tkspace
|
|
1807
|
+
tk = get_tk
|
|
1808
|
+
else
|
|
1809
|
+
past_tokens = @read.size > 1 ? @read[0..-2] : []
|
|
1810
|
+
nl_position = 0
|
|
1811
|
+
past_tokens.reverse.each_with_index do |read_tk, i|
|
|
1812
|
+
if read_tk =~ /^\n$/ then
|
|
1813
|
+
nl_position = (past_tokens.size - 1) - i
|
|
1814
|
+
break
|
|
1815
|
+
elsif read_tk =~ /^#.*\n$/ then
|
|
1816
|
+
nl_position = ((past_tokens.size - 1) - i) + 1
|
|
1817
|
+
break
|
|
1818
|
+
end
|
|
1819
|
+
end
|
|
1820
|
+
comment_only_line = past_tokens[nl_position..-1].all?{ |c| c =~ /^\s+$/ }
|
|
1821
|
+
unless comment_only_line then
|
|
1822
|
+
tk = get_tk
|
|
1823
|
+
end
|
|
1824
|
+
end
|
|
1825
|
+
|
|
1826
|
+
if tk and (:on_comment == tk[:kind] or :on_embdoc == tk[:kind]) then
|
|
1827
|
+
if non_comment_seen then
|
|
1828
|
+
# Look for RDoc in a comment about to be thrown away
|
|
1829
|
+
non_comment_seen = parse_comment container, tk, comment unless
|
|
1830
|
+
comment.empty?
|
|
1831
|
+
|
|
1832
|
+
comment = ''
|
|
1833
|
+
comment = RDoc::Encoding.change_encoding comment, @encoding if @encoding
|
|
1834
|
+
end
|
|
1835
|
+
|
|
1836
|
+
line_no = nil
|
|
1837
|
+
while tk and (:on_comment == tk[:kind] or :on_embdoc == tk[:kind]) do
|
|
1838
|
+
comment_body = retrieve_comment_body(tk)
|
|
1839
|
+
line_no = tk[:line_no] if comment.empty?
|
|
1840
|
+
comment += comment_body
|
|
1841
|
+
comment << "\n" unless comment_body =~ /\n\z/
|
|
1842
|
+
|
|
1843
|
+
if comment_body.size > 1 && comment_body =~ /\n\z/ then
|
|
1844
|
+
skip_tkspace_without_nl # leading spaces
|
|
1845
|
+
end
|
|
1846
|
+
tk = get_tk
|
|
1847
|
+
end
|
|
1848
|
+
|
|
1849
|
+
comment = new_comment comment, line_no
|
|
1850
|
+
|
|
1851
|
+
unless comment.empty? then
|
|
1852
|
+
look_for_directives_in container, comment
|
|
1853
|
+
|
|
1854
|
+
if container.done_documenting then
|
|
1855
|
+
throw :eof if RDoc::TopLevel === container
|
|
1856
|
+
container.ongoing_visibility = save_visibility
|
|
1857
|
+
end
|
|
1858
|
+
end
|
|
1859
|
+
|
|
1860
|
+
keep_comment = true
|
|
1861
|
+
else
|
|
1862
|
+
non_comment_seen = true
|
|
1863
|
+
end
|
|
1864
|
+
|
|
1865
|
+
unget_tk tk
|
|
1866
|
+
keep_comment = true
|
|
1867
|
+
container.current_line_visibility = nil
|
|
1868
|
+
|
|
1869
|
+
when :on_kw then
|
|
1870
|
+
case tk[:text]
|
|
1871
|
+
when 'class' then
|
|
1872
|
+
parse_class container, single, tk, comment
|
|
1873
|
+
|
|
1874
|
+
when 'module' then
|
|
1875
|
+
parse_module container, single, tk, comment
|
|
1876
|
+
|
|
1877
|
+
when 'def' then
|
|
1878
|
+
parse_method container, single, tk, comment
|
|
1879
|
+
|
|
1880
|
+
when 'alias' then
|
|
1881
|
+
parse_alias container, single, tk, comment unless current_method
|
|
1882
|
+
|
|
1883
|
+
when 'yield' then
|
|
1884
|
+
if current_method.nil? then
|
|
1885
|
+
warn "Warning: yield outside of method" if container.document_self
|
|
1886
|
+
else
|
|
1887
|
+
parse_yield container, single, tk, current_method
|
|
1888
|
+
end
|
|
1889
|
+
|
|
1890
|
+
when 'until', 'while' then
|
|
1891
|
+
if (tk[:state] & Ripper::EXPR_LABEL) == 0
|
|
1892
|
+
nest += 1
|
|
1893
|
+
skip_optional_do_after_expression
|
|
1894
|
+
end
|
|
1895
|
+
|
|
1896
|
+
# Until and While can have a 'do', which shouldn't increase the nesting.
|
|
1897
|
+
# We can't solve the general case, but we can handle most occurrences by
|
|
1898
|
+
# ignoring a do at the end of a line.
|
|
1899
|
+
|
|
1900
|
+
# 'for' is trickier
|
|
1901
|
+
when 'for' then
|
|
1902
|
+
nest += 1
|
|
1903
|
+
skip_for_variable
|
|
1904
|
+
skip_optional_do_after_expression
|
|
1905
|
+
|
|
1906
|
+
when 'case', 'do', 'if', 'unless', 'begin' then
|
|
1907
|
+
if (tk[:state] & Ripper::EXPR_LABEL) == 0
|
|
1908
|
+
nest += 1
|
|
1909
|
+
end
|
|
1910
|
+
|
|
1911
|
+
when 'super' then
|
|
1912
|
+
current_method.calls_super = true if current_method
|
|
1913
|
+
|
|
1914
|
+
when 'rescue' then
|
|
1915
|
+
parse_rescue
|
|
1916
|
+
|
|
1917
|
+
when 'end' then
|
|
1918
|
+
nest -= 1
|
|
1919
|
+
if nest == 0 then
|
|
1920
|
+
container.ongoing_visibility = save_visibility
|
|
1921
|
+
|
|
1922
|
+
parse_comment container, tk, comment unless comment.empty?
|
|
1923
|
+
|
|
1924
|
+
return
|
|
1925
|
+
end
|
|
1926
|
+
end
|
|
1927
|
+
|
|
1928
|
+
when :on_const then
|
|
1929
|
+
unless parse_constant container, tk, comment, current_method then
|
|
1930
|
+
try_parse_comment = true
|
|
1931
|
+
end
|
|
1932
|
+
|
|
1933
|
+
when :on_ident then
|
|
1934
|
+
if nest == 1 and current_method.nil? then
|
|
1935
|
+
keep_comment = parse_identifier container, single, tk, comment
|
|
1936
|
+
end
|
|
1937
|
+
|
|
1938
|
+
case tk[:text]
|
|
1939
|
+
when "require" then
|
|
1940
|
+
parse_require container, comment
|
|
1941
|
+
when "include" then
|
|
1942
|
+
parse_extend_or_include RDoc::Include, container, comment
|
|
1943
|
+
when "extend" then
|
|
1944
|
+
parse_extend_or_include RDoc::Extend, container, comment
|
|
1945
|
+
when "included" then
|
|
1946
|
+
parse_included_with_activesupport_concern container, comment
|
|
1947
|
+
end
|
|
1948
|
+
|
|
1949
|
+
else
|
|
1950
|
+
try_parse_comment = nest == 1
|
|
1951
|
+
end
|
|
1952
|
+
|
|
1953
|
+
if try_parse_comment then
|
|
1954
|
+
non_comment_seen = parse_comment container, tk, comment unless
|
|
1955
|
+
comment.empty?
|
|
1956
|
+
|
|
1957
|
+
keep_comment = false
|
|
1958
|
+
end
|
|
1959
|
+
|
|
1960
|
+
unless keep_comment then
|
|
1961
|
+
comment = new_comment ''
|
|
1962
|
+
comment = RDoc::Encoding.change_encoding comment, @encoding if @encoding
|
|
1963
|
+
container.params = nil
|
|
1964
|
+
container.block_params = nil
|
|
1965
|
+
end
|
|
1966
|
+
|
|
1967
|
+
consume_trailing_spaces
|
|
1968
|
+
end
|
|
1969
|
+
|
|
1970
|
+
container.params = nil
|
|
1971
|
+
container.block_params = nil
|
|
1972
|
+
end
|
|
1973
|
+
|
|
1974
|
+
##
|
|
1975
|
+
# Parse up to +no+ symbol arguments
|
|
1976
|
+
|
|
1977
|
+
def parse_symbol_arg(no = nil)
|
|
1978
|
+
skip_tkspace_comment
|
|
1979
|
+
|
|
1980
|
+
tk = get_tk
|
|
1981
|
+
if tk[:kind] == :on_lparen
|
|
1982
|
+
parse_symbol_arg_paren no
|
|
1983
|
+
else
|
|
1984
|
+
parse_symbol_arg_space no, tk
|
|
1985
|
+
end
|
|
1986
|
+
end
|
|
1987
|
+
|
|
1988
|
+
##
|
|
1989
|
+
# Parses up to +no+ symbol arguments surrounded by () and places them in
|
|
1990
|
+
# +args+.
|
|
1991
|
+
|
|
1992
|
+
def parse_symbol_arg_paren(no) # :nodoc:
|
|
1993
|
+
args = []
|
|
1994
|
+
|
|
1995
|
+
loop do
|
|
1996
|
+
skip_tkspace_comment
|
|
1997
|
+
if tk1 = parse_symbol_in_arg
|
|
1998
|
+
args.push tk1
|
|
1999
|
+
break if no and args.size >= no
|
|
2000
|
+
end
|
|
2001
|
+
|
|
2002
|
+
skip_tkspace_comment
|
|
2003
|
+
case (tk2 = get_tk)[:kind]
|
|
2004
|
+
when :on_rparen
|
|
2005
|
+
break
|
|
2006
|
+
when :on_comma
|
|
2007
|
+
else
|
|
2008
|
+
warn("unexpected token: '#{tk2.inspect}'") if $DEBUG_RDOC
|
|
2009
|
+
break
|
|
2010
|
+
end
|
|
2011
|
+
end
|
|
2012
|
+
|
|
2013
|
+
args
|
|
2014
|
+
end
|
|
2015
|
+
|
|
2016
|
+
##
|
|
2017
|
+
# Parses up to +no+ symbol arguments separated by spaces and places them in
|
|
2018
|
+
# +args+.
|
|
2019
|
+
|
|
2020
|
+
def parse_symbol_arg_space(no, tk) # :nodoc:
|
|
2021
|
+
args = []
|
|
2022
|
+
|
|
2023
|
+
unget_tk tk
|
|
2024
|
+
if tk = parse_symbol_in_arg
|
|
2025
|
+
args.push tk
|
|
2026
|
+
return args if no and args.size >= no
|
|
2027
|
+
end
|
|
2028
|
+
|
|
2029
|
+
loop do
|
|
2030
|
+
skip_tkspace_without_nl
|
|
2031
|
+
|
|
2032
|
+
tk1 = get_tk
|
|
2033
|
+
if tk1.nil? || :on_comma != tk1[:kind] then
|
|
2034
|
+
unget_tk tk1
|
|
2035
|
+
break
|
|
2036
|
+
end
|
|
2037
|
+
|
|
2038
|
+
skip_tkspace_comment
|
|
2039
|
+
if tk = parse_symbol_in_arg
|
|
2040
|
+
args.push tk
|
|
2041
|
+
break if no and args.size >= no
|
|
2042
|
+
end
|
|
2043
|
+
end
|
|
2044
|
+
|
|
2045
|
+
args
|
|
2046
|
+
end
|
|
2047
|
+
|
|
2048
|
+
##
|
|
2049
|
+
# Returns symbol text from the next token
|
|
2050
|
+
|
|
2051
|
+
def parse_symbol_in_arg
|
|
2052
|
+
tk = get_tk
|
|
2053
|
+
if :on_symbol == tk[:kind] then
|
|
2054
|
+
tk[:text].sub(/^:/, '')
|
|
2055
|
+
elsif :on_tstring == tk[:kind] then
|
|
2056
|
+
tk[:text][1..-2]
|
|
2057
|
+
elsif :on_dstring == tk[:kind] or :on_ident == tk[:kind] then
|
|
2058
|
+
nil # ignore
|
|
2059
|
+
else
|
|
2060
|
+
warn("Expected symbol or string, got #{tk.inspect}") if $DEBUG_RDOC
|
|
2061
|
+
nil
|
|
2062
|
+
end
|
|
2063
|
+
end
|
|
2064
|
+
|
|
2065
|
+
##
|
|
2066
|
+
# Parses statements in the top-level +container+
|
|
2067
|
+
|
|
2068
|
+
def parse_top_level_statements(container)
|
|
2069
|
+
comment = collect_first_comment
|
|
2070
|
+
|
|
2071
|
+
look_for_directives_in container, comment
|
|
2072
|
+
|
|
2073
|
+
throw :eof if container.done_documenting
|
|
2074
|
+
|
|
2075
|
+
@markup = comment.format
|
|
2076
|
+
|
|
2077
|
+
# HACK move if to RDoc::Context#comment=
|
|
2078
|
+
container.comment = comment if container.document_self unless comment.empty?
|
|
2079
|
+
|
|
2080
|
+
parse_statements container, NORMAL, nil, comment
|
|
2081
|
+
end
|
|
2082
|
+
|
|
2083
|
+
##
|
|
2084
|
+
# Determines the visibility in +container+ from +tk+
|
|
2085
|
+
|
|
2086
|
+
def parse_visibility(container, single, tk)
|
|
2087
|
+
vis_type, vis, singleton = get_visibility_information tk, single
|
|
2088
|
+
|
|
2089
|
+
skip_tkspace_comment false
|
|
2090
|
+
|
|
2091
|
+
ptk = peek_tk
|
|
2092
|
+
# Ryan Davis suggested the extension to ignore modifiers, because he
|
|
2093
|
+
# often writes
|
|
2094
|
+
#
|
|
2095
|
+
# protected unless $TESTING
|
|
2096
|
+
#
|
|
2097
|
+
if [:on_nl, :on_semicolon].include?(ptk[:kind]) || (:on_kw == ptk[:kind] && (['if', 'unless'].include?(ptk[:text]))) then
|
|
2098
|
+
container.ongoing_visibility = vis
|
|
2099
|
+
elsif :on_kw == ptk[:kind] && 'def' == ptk[:text]
|
|
2100
|
+
container.current_line_visibility = vis
|
|
2101
|
+
else
|
|
2102
|
+
update_visibility container, vis_type, vis, singleton
|
|
2103
|
+
end
|
|
2104
|
+
end
|
|
2105
|
+
|
|
2106
|
+
##
|
|
2107
|
+
# Parses a Module#private_constant or Module#public_constant call from +tk+.
|
|
2108
|
+
|
|
2109
|
+
def parse_constant_visibility(container, single, tk)
|
|
2110
|
+
args = parse_symbol_arg
|
|
2111
|
+
case tk[:text]
|
|
2112
|
+
when 'private_constant'
|
|
2113
|
+
vis = :private
|
|
2114
|
+
when 'public_constant'
|
|
2115
|
+
vis = :public
|
|
2116
|
+
else
|
|
2117
|
+
raise RDoc::Error, 'Unreachable'
|
|
2118
|
+
end
|
|
2119
|
+
container.set_constant_visibility_for args, vis
|
|
2120
|
+
end
|
|
2121
|
+
|
|
2122
|
+
##
|
|
2123
|
+
# Determines the block parameter for +context+
|
|
2124
|
+
|
|
2125
|
+
def parse_yield(context, single, tk, method)
|
|
2126
|
+
return if method.block_params
|
|
2127
|
+
|
|
2128
|
+
get_tkread
|
|
2129
|
+
method.block_params = parse_method_or_yield_parameters
|
|
2130
|
+
end
|
|
2131
|
+
|
|
2132
|
+
##
|
|
2133
|
+
# Directives are modifier comments that can appear after class, module, or
|
|
2134
|
+
# method names. For example:
|
|
2135
|
+
#
|
|
2136
|
+
# def fred # :yields: a, b
|
|
2137
|
+
#
|
|
2138
|
+
# or:
|
|
2139
|
+
#
|
|
2140
|
+
# class MyClass # :nodoc:
|
|
2141
|
+
#
|
|
2142
|
+
# We return the directive name and any parameters as a two element array if
|
|
2143
|
+
# the name is in +allowed+. A directive can be found anywhere up to the end
|
|
2144
|
+
# of the current line.
|
|
2145
|
+
|
|
2146
|
+
def read_directive(allowed)
|
|
2147
|
+
tokens = []
|
|
2148
|
+
|
|
2149
|
+
while tk = get_tk do
|
|
2150
|
+
tokens << tk
|
|
2151
|
+
|
|
2152
|
+
if :on_nl == tk[:kind] or (:on_kw == tk[:kind] && 'def' == tk[:text]) then
|
|
2153
|
+
return
|
|
2154
|
+
elsif :on_comment == tk[:kind] or :on_embdoc == tk[:kind] then
|
|
2155
|
+
return unless tk[:text] =~ /:?\b([\w-]+):\s*(.*)/
|
|
2156
|
+
|
|
2157
|
+
directive = $1.downcase
|
|
2158
|
+
|
|
2159
|
+
return [directive, $2] if allowed.include? directive
|
|
2160
|
+
|
|
2161
|
+
return
|
|
2162
|
+
end
|
|
2163
|
+
end
|
|
2164
|
+
ensure
|
|
2165
|
+
unless tokens.length == 1 and (:on_comment == tokens.first[:kind] or :on_embdoc == tokens.first[:kind]) then
|
|
2166
|
+
tokens.reverse_each do |token|
|
|
2167
|
+
unget_tk token
|
|
2168
|
+
end
|
|
2169
|
+
end
|
|
2170
|
+
end
|
|
2171
|
+
|
|
2172
|
+
##
|
|
2173
|
+
# Handles directives following the definition for +context+ (any
|
|
2174
|
+
# RDoc::CodeObject) if the directives are +allowed+ at this point.
|
|
2175
|
+
#
|
|
2176
|
+
# See also RDoc::Markup::PreProcess#handle_directive
|
|
2177
|
+
|
|
2178
|
+
def read_documentation_modifiers(context, allowed)
|
|
2179
|
+
skip_tkspace_without_nl
|
|
2180
|
+
directive, value = read_directive allowed
|
|
2181
|
+
|
|
2182
|
+
return unless directive
|
|
2183
|
+
|
|
2184
|
+
@preprocess.handle_directive '', directive, value, context do |dir, param|
|
|
2185
|
+
if %w[notnew not_new not-new].include? dir then
|
|
2186
|
+
context.dont_rename_initialize = true
|
|
2187
|
+
|
|
2188
|
+
true
|
|
2189
|
+
end
|
|
2190
|
+
end
|
|
2191
|
+
end
|
|
2192
|
+
|
|
2193
|
+
##
|
|
2194
|
+
# Records the location of this +container+ in the file for this parser and
|
|
2195
|
+
# adds it to the list of classes and modules in the file.
|
|
2196
|
+
|
|
2197
|
+
def record_location(container) # :nodoc:
|
|
2198
|
+
case container
|
|
2199
|
+
when RDoc::ClassModule then
|
|
2200
|
+
@top_level.add_to_classes_or_modules container
|
|
2201
|
+
end
|
|
2202
|
+
|
|
2203
|
+
container.record_location @top_level
|
|
2204
|
+
end
|
|
2205
|
+
|
|
2206
|
+
##
|
|
2207
|
+
# Scans this Ruby file for Ruby constructs
|
|
2208
|
+
|
|
2209
|
+
def scan
|
|
2210
|
+
reset
|
|
2211
|
+
|
|
2212
|
+
catch :eof do
|
|
2213
|
+
begin
|
|
2214
|
+
parse_top_level_statements @top_level
|
|
2215
|
+
|
|
2216
|
+
rescue StandardError => e
|
|
2217
|
+
if @content.include?('<%') and @content.include?('%>') then
|
|
2218
|
+
# Maybe, this is ERB.
|
|
2219
|
+
$stderr.puts "\033[2KRDoc detects ERB file. Skips it for compatibility:"
|
|
2220
|
+
$stderr.puts @file_name
|
|
2221
|
+
return
|
|
2222
|
+
end
|
|
2223
|
+
|
|
2224
|
+
if @scanner_point >= @scanner.size
|
|
2225
|
+
now_line_no = @scanner[@scanner.size - 1][:line_no]
|
|
2226
|
+
else
|
|
2227
|
+
now_line_no = peek_tk[:line_no]
|
|
2228
|
+
end
|
|
2229
|
+
first_tk_index = @scanner.find_index { |tk| tk[:line_no] == now_line_no }
|
|
2230
|
+
last_tk_index = @scanner.find_index { |tk| tk[:line_no] == now_line_no + 1 }
|
|
2231
|
+
last_tk_index = last_tk_index ? last_tk_index - 1 : @scanner.size - 1
|
|
2232
|
+
code = @scanner[first_tk_index..last_tk_index].map{ |t| t[:text] }.join
|
|
2233
|
+
|
|
2234
|
+
$stderr.puts <<-EOF
|
|
2235
|
+
|
|
2236
|
+
#{self.class} failure around line #{now_line_no} of
|
|
2237
|
+
#{@file_name}
|
|
2238
|
+
|
|
2239
|
+
EOF
|
|
2240
|
+
|
|
2241
|
+
unless code.empty? then
|
|
2242
|
+
$stderr.puts code
|
|
2243
|
+
$stderr.puts
|
|
2244
|
+
end
|
|
2245
|
+
|
|
2246
|
+
raise e
|
|
2247
|
+
end
|
|
2248
|
+
end
|
|
2249
|
+
|
|
2250
|
+
@top_level
|
|
2251
|
+
end
|
|
2252
|
+
|
|
2253
|
+
##
|
|
2254
|
+
# while, until, and for have an optional do
|
|
2255
|
+
|
|
2256
|
+
def skip_optional_do_after_expression
|
|
2257
|
+
skip_tkspace_without_nl
|
|
2258
|
+
tk = get_tk
|
|
2259
|
+
|
|
2260
|
+
b_nest = 0
|
|
2261
|
+
nest = 0
|
|
2262
|
+
|
|
2263
|
+
loop do
|
|
2264
|
+
break unless tk
|
|
2265
|
+
case tk[:kind]
|
|
2266
|
+
when :on_semicolon, :on_nl, :on_ignored_nl then
|
|
2267
|
+
break if b_nest.zero?
|
|
2268
|
+
when :on_lparen then
|
|
2269
|
+
nest += 1
|
|
2270
|
+
when :on_rparen then
|
|
2271
|
+
nest -= 1
|
|
2272
|
+
when :on_kw then
|
|
2273
|
+
case tk[:text]
|
|
2274
|
+
when 'begin'
|
|
2275
|
+
b_nest += 1
|
|
2276
|
+
when 'end'
|
|
2277
|
+
b_nest -= 1
|
|
2278
|
+
when 'do'
|
|
2279
|
+
break if nest.zero?
|
|
2280
|
+
end
|
|
2281
|
+
when :on_comment, :on_embdoc then
|
|
2282
|
+
if b_nest.zero? and "\n" == tk[:text][-1] then
|
|
2283
|
+
break
|
|
2284
|
+
end
|
|
2285
|
+
end
|
|
2286
|
+
tk = get_tk
|
|
2287
|
+
end
|
|
2288
|
+
|
|
2289
|
+
skip_tkspace_without_nl
|
|
2290
|
+
|
|
2291
|
+
get_tk if peek_tk && :on_kw == peek_tk[:kind] && 'do' == peek_tk[:text]
|
|
2292
|
+
end
|
|
2293
|
+
|
|
2294
|
+
##
|
|
2295
|
+
# skip the var [in] part of a 'for' statement
|
|
2296
|
+
|
|
2297
|
+
def skip_for_variable
|
|
2298
|
+
skip_tkspace_without_nl
|
|
2299
|
+
get_tk
|
|
2300
|
+
skip_tkspace_without_nl
|
|
2301
|
+
tk = get_tk
|
|
2302
|
+
unget_tk(tk) unless :on_kw == tk[:kind] and 'in' == tk[:text]
|
|
2303
|
+
end
|
|
2304
|
+
|
|
2305
|
+
##
|
|
2306
|
+
# Skips the next method in +container+
|
|
2307
|
+
|
|
2308
|
+
def skip_method(container)
|
|
2309
|
+
meth = RDoc::AnyMethod.new "", "anon"
|
|
2310
|
+
parse_method_parameters meth
|
|
2311
|
+
parse_statements container, false, meth
|
|
2312
|
+
end
|
|
2313
|
+
|
|
2314
|
+
##
|
|
2315
|
+
# Skip spaces until a comment is found
|
|
2316
|
+
|
|
2317
|
+
def skip_tkspace_comment(skip_nl = true)
|
|
2318
|
+
loop do
|
|
2319
|
+
skip_nl ? skip_tkspace : skip_tkspace_without_nl
|
|
2320
|
+
next_tk = peek_tk
|
|
2321
|
+
return if next_tk.nil? || (:on_comment != next_tk[:kind] and :on_embdoc != next_tk[:kind])
|
|
2322
|
+
get_tk
|
|
2323
|
+
end
|
|
2324
|
+
end
|
|
2325
|
+
|
|
2326
|
+
##
|
|
2327
|
+
# Updates visibility in +container+ from +vis_type+ and +vis+.
|
|
2328
|
+
|
|
2329
|
+
def update_visibility(container, vis_type, vis, singleton) # :nodoc:
|
|
2330
|
+
new_methods = []
|
|
2331
|
+
|
|
2332
|
+
case vis_type
|
|
2333
|
+
when 'module_function' then
|
|
2334
|
+
args = parse_symbol_arg
|
|
2335
|
+
container.set_visibility_for args, :private, false
|
|
2336
|
+
|
|
2337
|
+
container.methods_matching args do |m|
|
|
2338
|
+
s_m = m.dup
|
|
2339
|
+
record_location s_m
|
|
2340
|
+
s_m.singleton = true
|
|
2341
|
+
new_methods << s_m
|
|
2342
|
+
end
|
|
2343
|
+
when 'public_class_method', 'private_class_method' then
|
|
2344
|
+
args = parse_symbol_arg
|
|
2345
|
+
|
|
2346
|
+
container.methods_matching args, true do |m|
|
|
2347
|
+
if m.parent != container then
|
|
2348
|
+
m = m.dup
|
|
2349
|
+
record_location m
|
|
2350
|
+
new_methods << m
|
|
2351
|
+
end
|
|
2352
|
+
|
|
2353
|
+
m.visibility = vis
|
|
2354
|
+
end
|
|
2355
|
+
else
|
|
2356
|
+
args = parse_symbol_arg
|
|
2357
|
+
container.set_visibility_for args, vis, singleton
|
|
2358
|
+
end
|
|
2359
|
+
|
|
2360
|
+
new_methods.each do |method|
|
|
2361
|
+
case method
|
|
2362
|
+
when RDoc::AnyMethod then
|
|
2363
|
+
container.add_method method
|
|
2364
|
+
when RDoc::Attr then
|
|
2365
|
+
container.add_attribute method
|
|
2366
|
+
end
|
|
2367
|
+
method.visibility = vis
|
|
2368
|
+
end
|
|
2369
|
+
end
|
|
2370
|
+
|
|
2371
|
+
##
|
|
2372
|
+
# Prints +message+ to +$stderr+ unless we're being quiet
|
|
2373
|
+
|
|
2374
|
+
def warn(message)
|
|
2375
|
+
@options.warn make_message message
|
|
2376
|
+
end
|
|
2377
|
+
|
|
2378
|
+
end
|