@ai-ecoverse/wasix-ruby 3.4.11-3 → 3.4.11-5
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 +40 -38
- package/bin/bundle +1 -1
- package/bin/bundler +1 -1
- package/bin/erb +1 -1
- package/bin/gem +1 -1
- package/bin/irb +1 -1
- package/bin/rake +1 -1
- package/bin/ruby.wasm +0 -0
- package/lib/ruby/3.4.0/wasm32-wasi/rbconfig.rb +3 -3
- package/package.json +16 -14
- package/lib/ruby/3.4.11/English.gemspec +0 -22
- package/lib/ruby/3.4.11/English.rb +0 -164
- package/lib/ruby/3.4.11/benchmark.gemspec +0 -32
- package/lib/ruby/3.4.11/benchmark.rb +0 -594
- package/lib/ruby/3.4.11/bundled_gems.rb +0 -248
- package/lib/ruby/3.4.11/bundler/.document +0 -1
- package/lib/ruby/3.4.11/bundler/build_metadata.rb +0 -43
- package/lib/ruby/3.4.11/bundler/bundler.gemspec +0 -45
- package/lib/ruby/3.4.11/bundler/capistrano.rb +0 -22
- package/lib/ruby/3.4.11/bundler/checksum.rb +0 -264
- package/lib/ruby/3.4.11/bundler/ci_detector.rb +0 -75
- package/lib/ruby/3.4.11/bundler/cli/add.rb +0 -49
- package/lib/ruby/3.4.11/bundler/cli/binstubs.rb +0 -57
- package/lib/ruby/3.4.11/bundler/cli/cache.rb +0 -43
- package/lib/ruby/3.4.11/bundler/cli/check.rb +0 -40
- package/lib/ruby/3.4.11/bundler/cli/clean.rb +0 -25
- package/lib/ruby/3.4.11/bundler/cli/common.rb +0 -138
- package/lib/ruby/3.4.11/bundler/cli/config.rb +0 -204
- package/lib/ruby/3.4.11/bundler/cli/console.rb +0 -42
- package/lib/ruby/3.4.11/bundler/cli/doctor/diagnose.rb +0 -167
- package/lib/ruby/3.4.11/bundler/cli/doctor/ssl.rb +0 -249
- package/lib/ruby/3.4.11/bundler/cli/doctor.rb +0 -33
- package/lib/ruby/3.4.11/bundler/cli/exec.rb +0 -89
- package/lib/ruby/3.4.11/bundler/cli/fund.rb +0 -36
- package/lib/ruby/3.4.11/bundler/cli/gem.rb +0 -467
- package/lib/ruby/3.4.11/bundler/cli/info.rb +0 -83
- package/lib/ruby/3.4.11/bundler/cli/init.rb +0 -51
- package/lib/ruby/3.4.11/bundler/cli/inject.rb +0 -60
- package/lib/ruby/3.4.11/bundler/cli/install.rb +0 -199
- package/lib/ruby/3.4.11/bundler/cli/issue.rb +0 -41
- package/lib/ruby/3.4.11/bundler/cli/list.rb +0 -66
- package/lib/ruby/3.4.11/bundler/cli/lock.rb +0 -94
- package/lib/ruby/3.4.11/bundler/cli/open.rb +0 -29
- package/lib/ruby/3.4.11/bundler/cli/outdated.rb +0 -297
- package/lib/ruby/3.4.11/bundler/cli/platform.rb +0 -48
- package/lib/ruby/3.4.11/bundler/cli/plugin.rb +0 -35
- package/lib/ruby/3.4.11/bundler/cli/pristine.rb +0 -60
- package/lib/ruby/3.4.11/bundler/cli/remove.rb +0 -17
- package/lib/ruby/3.4.11/bundler/cli/show.rb +0 -75
- package/lib/ruby/3.4.11/bundler/cli/update.rb +0 -123
- package/lib/ruby/3.4.11/bundler/cli/viz.rb +0 -31
- package/lib/ruby/3.4.11/bundler/cli.rb +0 -790
- package/lib/ruby/3.4.11/bundler/compact_index_client/cache.rb +0 -96
- package/lib/ruby/3.4.11/bundler/compact_index_client/cache_file.rb +0 -148
- package/lib/ruby/3.4.11/bundler/compact_index_client/parser.rb +0 -84
- package/lib/ruby/3.4.11/bundler/compact_index_client/updater.rb +0 -105
- package/lib/ruby/3.4.11/bundler/compact_index_client.rb +0 -97
- package/lib/ruby/3.4.11/bundler/constants.rb +0 -14
- package/lib/ruby/3.4.11/bundler/current_ruby.rb +0 -82
- package/lib/ruby/3.4.11/bundler/definition.rb +0 -1187
- package/lib/ruby/3.4.11/bundler/dependency.rb +0 -151
- package/lib/ruby/3.4.11/bundler/deployment.rb +0 -69
- package/lib/ruby/3.4.11/bundler/deprecate.rb +0 -44
- package/lib/ruby/3.4.11/bundler/digest.rb +0 -71
- package/lib/ruby/3.4.11/bundler/dsl.rb +0 -638
- package/lib/ruby/3.4.11/bundler/endpoint_specification.rb +0 -174
- package/lib/ruby/3.4.11/bundler/env.rb +0 -148
- package/lib/ruby/3.4.11/bundler/environment_preserver.rb +0 -68
- package/lib/ruby/3.4.11/bundler/errors.rb +0 -281
- package/lib/ruby/3.4.11/bundler/feature_flag.rb +0 -50
- package/lib/ruby/3.4.11/bundler/fetcher/base.rb +0 -52
- package/lib/ruby/3.4.11/bundler/fetcher/compact_index.rb +0 -120
- package/lib/ruby/3.4.11/bundler/fetcher/dependency.rb +0 -78
- package/lib/ruby/3.4.11/bundler/fetcher/downloader.rb +0 -91
- package/lib/ruby/3.4.11/bundler/fetcher/gem_remote_fetcher.rb +0 -16
- package/lib/ruby/3.4.11/bundler/fetcher/index.rb +0 -25
- package/lib/ruby/3.4.11/bundler/fetcher.rb +0 -331
- package/lib/ruby/3.4.11/bundler/force_platform.rb +0 -16
- package/lib/ruby/3.4.11/bundler/friendly_errors.rb +0 -126
- package/lib/ruby/3.4.11/bundler/gem_helper.rb +0 -237
- package/lib/ruby/3.4.11/bundler/gem_helpers.rb +0 -144
- package/lib/ruby/3.4.11/bundler/gem_tasks.rb +0 -7
- package/lib/ruby/3.4.11/bundler/gem_version_promoter.rb +0 -147
- package/lib/ruby/3.4.11/bundler/graph.rb +0 -152
- package/lib/ruby/3.4.11/bundler/index.rb +0 -205
- package/lib/ruby/3.4.11/bundler/injector.rb +0 -285
- package/lib/ruby/3.4.11/bundler/inline.rb +0 -98
- package/lib/ruby/3.4.11/bundler/installer/gem_installer.rb +0 -85
- package/lib/ruby/3.4.11/bundler/installer/parallel_installer.rb +0 -203
- package/lib/ruby/3.4.11/bundler/installer/standalone.rb +0 -113
- package/lib/ruby/3.4.11/bundler/installer.rb +0 -243
- package/lib/ruby/3.4.11/bundler/lazy_specification.rb +0 -243
- package/lib/ruby/3.4.11/bundler/lockfile_generator.rb +0 -104
- package/lib/ruby/3.4.11/bundler/lockfile_parser.rb +0 -300
- package/lib/ruby/3.4.11/bundler/man/.document +0 -1
- package/lib/ruby/3.4.11/bundler/man/bundle-add.1 +0 -76
- package/lib/ruby/3.4.11/bundler/man/bundle-add.1.ronn +0 -87
- package/lib/ruby/3.4.11/bundler/man/bundle-binstubs.1 +0 -33
- package/lib/ruby/3.4.11/bundler/man/bundle-binstubs.1.ronn +0 -44
- package/lib/ruby/3.4.11/bundler/man/bundle-cache.1 +0 -68
- package/lib/ruby/3.4.11/bundler/man/bundle-cache.1.ronn +0 -108
- package/lib/ruby/3.4.11/bundler/man/bundle-check.1 +0 -24
- package/lib/ruby/3.4.11/bundler/man/bundle-check.1.ronn +0 -31
- package/lib/ruby/3.4.11/bundler/man/bundle-clean.1 +0 -17
- package/lib/ruby/3.4.11/bundler/man/bundle-clean.1.ronn +0 -18
- package/lib/ruby/3.4.11/bundler/man/bundle-config.1 +0 -317
- package/lib/ruby/3.4.11/bundler/man/bundle-config.1.ronn +0 -408
- package/lib/ruby/3.4.11/bundler/man/bundle-console.1 +0 -33
- package/lib/ruby/3.4.11/bundler/man/bundle-console.1.ronn +0 -39
- package/lib/ruby/3.4.11/bundler/man/bundle-doctor.1 +0 -30
- package/lib/ruby/3.4.11/bundler/man/bundle-doctor.1.ronn +0 -33
- package/lib/ruby/3.4.11/bundler/man/bundle-env.1 +0 -9
- package/lib/ruby/3.4.11/bundler/man/bundle-env.1.ronn +0 -10
- package/lib/ruby/3.4.11/bundler/man/bundle-exec.1 +0 -107
- package/lib/ruby/3.4.11/bundler/man/bundle-exec.1.ronn +0 -154
- package/lib/ruby/3.4.11/bundler/man/bundle-fund.1 +0 -22
- package/lib/ruby/3.4.11/bundler/man/bundle-fund.1.ronn +0 -25
- package/lib/ruby/3.4.11/bundler/man/bundle-gem.1 +0 -87
- package/lib/ruby/3.4.11/bundler/man/bundle-gem.1.ronn +0 -149
- package/lib/ruby/3.4.11/bundler/man/bundle-help.1 +0 -9
- package/lib/ruby/3.4.11/bundler/man/bundle-help.1.ronn +0 -12
- package/lib/ruby/3.4.11/bundler/man/bundle-info.1 +0 -17
- package/lib/ruby/3.4.11/bundler/man/bundle-info.1.ronn +0 -21
- package/lib/ruby/3.4.11/bundler/man/bundle-init.1 +0 -20
- package/lib/ruby/3.4.11/bundler/man/bundle-init.1.ronn +0 -32
- package/lib/ruby/3.4.11/bundler/man/bundle-inject.1 +0 -31
- package/lib/ruby/3.4.11/bundler/man/bundle-inject.1.ronn +0 -32
- package/lib/ruby/3.4.11/bundler/man/bundle-install.1 +0 -218
- package/lib/ruby/3.4.11/bundler/man/bundle-install.1.ronn +0 -387
- package/lib/ruby/3.4.11/bundler/man/bundle-issue.1 +0 -45
- package/lib/ruby/3.4.11/bundler/man/bundle-issue.1.ronn +0 -37
- package/lib/ruby/3.4.11/bundler/man/bundle-licenses.1 +0 -9
- package/lib/ruby/3.4.11/bundler/man/bundle-licenses.1.ronn +0 -10
- package/lib/ruby/3.4.11/bundler/man/bundle-list.1 +0 -35
- package/lib/ruby/3.4.11/bundler/man/bundle-list.1.ronn +0 -36
- package/lib/ruby/3.4.11/bundler/man/bundle-lock.1 +0 -75
- package/lib/ruby/3.4.11/bundler/man/bundle-lock.1.ronn +0 -115
- package/lib/ruby/3.4.11/bundler/man/bundle-open.1 +0 -32
- package/lib/ruby/3.4.11/bundler/man/bundle-open.1.ronn +0 -28
- package/lib/ruby/3.4.11/bundler/man/bundle-outdated.1 +0 -103
- package/lib/ruby/3.4.11/bundler/man/bundle-outdated.1.ronn +0 -110
- package/lib/ruby/3.4.11/bundler/man/bundle-platform.1 +0 -49
- package/lib/ruby/3.4.11/bundler/man/bundle-platform.1.ronn +0 -49
- package/lib/ruby/3.4.11/bundler/man/bundle-plugin.1 +0 -58
- package/lib/ruby/3.4.11/bundler/man/bundle-plugin.1.ronn +0 -63
- package/lib/ruby/3.4.11/bundler/man/bundle-pristine.1 +0 -23
- package/lib/ruby/3.4.11/bundler/man/bundle-pristine.1.ronn +0 -34
- package/lib/ruby/3.4.11/bundler/man/bundle-remove.1 +0 -21
- package/lib/ruby/3.4.11/bundler/man/bundle-remove.1.ronn +0 -23
- package/lib/ruby/3.4.11/bundler/man/bundle-show.1 +0 -19
- package/lib/ruby/3.4.11/bundler/man/bundle-show.1.ronn +0 -25
- package/lib/ruby/3.4.11/bundler/man/bundle-update.1 +0 -281
- package/lib/ruby/3.4.11/bundler/man/bundle-update.1.ronn +0 -359
- package/lib/ruby/3.4.11/bundler/man/bundle-version.1 +0 -22
- package/lib/ruby/3.4.11/bundler/man/bundle-version.1.ronn +0 -24
- package/lib/ruby/3.4.11/bundler/man/bundle-viz.1 +0 -30
- package/lib/ruby/3.4.11/bundler/man/bundle-viz.1.ronn +0 -36
- package/lib/ruby/3.4.11/bundler/man/bundle.1 +0 -102
- package/lib/ruby/3.4.11/bundler/man/bundle.1.ronn +0 -116
- package/lib/ruby/3.4.11/bundler/man/gemfile.5 +0 -472
- package/lib/ruby/3.4.11/bundler/man/gemfile.5.ronn +0 -558
- package/lib/ruby/3.4.11/bundler/man/index.txt +0 -33
- package/lib/ruby/3.4.11/bundler/match_metadata.rb +0 -30
- package/lib/ruby/3.4.11/bundler/match_platform.rb +0 -23
- package/lib/ruby/3.4.11/bundler/match_remote_metadata.rb +0 -29
- package/lib/ruby/3.4.11/bundler/materialization.rb +0 -59
- package/lib/ruby/3.4.11/bundler/mirror.rb +0 -221
- package/lib/ruby/3.4.11/bundler/plugin/api/source.rb +0 -322
- package/lib/ruby/3.4.11/bundler/plugin/api.rb +0 -81
- package/lib/ruby/3.4.11/bundler/plugin/dsl.rb +0 -53
- package/lib/ruby/3.4.11/bundler/plugin/events.rb +0 -85
- package/lib/ruby/3.4.11/bundler/plugin/index.rb +0 -197
- package/lib/ruby/3.4.11/bundler/plugin/installer/git.rb +0 -34
- package/lib/ruby/3.4.11/bundler/plugin/installer/path.rb +0 -26
- package/lib/ruby/3.4.11/bundler/plugin/installer/rubygems.rb +0 -19
- package/lib/ruby/3.4.11/bundler/plugin/installer.rb +0 -132
- package/lib/ruby/3.4.11/bundler/plugin/source_list.rb +0 -31
- package/lib/ruby/3.4.11/bundler/plugin.rb +0 -378
- package/lib/ruby/3.4.11/bundler/process_lock.rb +0 -20
- package/lib/ruby/3.4.11/bundler/remote_specification.rb +0 -126
- package/lib/ruby/3.4.11/bundler/resolver/base.rb +0 -118
- package/lib/ruby/3.4.11/bundler/resolver/candidate.rb +0 -85
- package/lib/ruby/3.4.11/bundler/resolver/incompatibility.rb +0 -15
- package/lib/ruby/3.4.11/bundler/resolver/package.rb +0 -94
- package/lib/ruby/3.4.11/bundler/resolver/root.rb +0 -25
- package/lib/ruby/3.4.11/bundler/resolver/spec_group.rb +0 -74
- package/lib/ruby/3.4.11/bundler/resolver/strategy.rb +0 -40
- package/lib/ruby/3.4.11/bundler/resolver.rb +0 -526
- package/lib/ruby/3.4.11/bundler/retry.rb +0 -66
- package/lib/ruby/3.4.11/bundler/ruby_dsl.rb +0 -62
- package/lib/ruby/3.4.11/bundler/ruby_version.rb +0 -137
- package/lib/ruby/3.4.11/bundler/rubygems_ext.rb +0 -485
- package/lib/ruby/3.4.11/bundler/rubygems_gem_installer.rb +0 -172
- package/lib/ruby/3.4.11/bundler/rubygems_integration.rb +0 -455
- package/lib/ruby/3.4.11/bundler/runtime.rb +0 -320
- package/lib/ruby/3.4.11/bundler/safe_marshal.rb +0 -31
- package/lib/ruby/3.4.11/bundler/self_manager.rb +0 -206
- package/lib/ruby/3.4.11/bundler/settings/validator.rb +0 -102
- package/lib/ruby/3.4.11/bundler/settings.rb +0 -599
- package/lib/ruby/3.4.11/bundler/setup.rb +0 -39
- package/lib/ruby/3.4.11/bundler/shared_helpers.rb +0 -398
- package/lib/ruby/3.4.11/bundler/similarity_detector.rb +0 -63
- package/lib/ruby/3.4.11/bundler/source/gemspec.rb +0 -15
- package/lib/ruby/3.4.11/bundler/source/git/git_proxy.rb +0 -472
- package/lib/ruby/3.4.11/bundler/source/git.rb +0 -452
- package/lib/ruby/3.4.11/bundler/source/metadata.rb +0 -63
- package/lib/ruby/3.4.11/bundler/source/path/installer.rb +0 -53
- package/lib/ruby/3.4.11/bundler/source/path.rb +0 -250
- package/lib/ruby/3.4.11/bundler/source/rubygems/remote.rb +0 -76
- package/lib/ruby/3.4.11/bundler/source/rubygems.rb +0 -522
- package/lib/ruby/3.4.11/bundler/source/rubygems_aggregate.rb +0 -68
- package/lib/ruby/3.4.11/bundler/source.rb +0 -118
- package/lib/ruby/3.4.11/bundler/source_list.rb +0 -273
- package/lib/ruby/3.4.11/bundler/source_map.rb +0 -71
- package/lib/ruby/3.4.11/bundler/spec_set.rb +0 -395
- package/lib/ruby/3.4.11/bundler/stub_specification.rb +0 -146
- package/lib/ruby/3.4.11/bundler/templates/.document +0 -1
- package/lib/ruby/3.4.11/bundler/templates/Executable +0 -27
- package/lib/ruby/3.4.11/bundler/templates/Executable.bundler +0 -109
- package/lib/ruby/3.4.11/bundler/templates/Executable.standalone +0 -14
- package/lib/ruby/3.4.11/bundler/templates/Gemfile +0 -5
- package/lib/ruby/3.4.11/bundler/templates/newgem/CHANGELOG.md.tt +0 -5
- package/lib/ruby/3.4.11/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +0 -132
- package/lib/ruby/3.4.11/bundler/templates/newgem/Cargo.toml.tt +0 -7
- package/lib/ruby/3.4.11/bundler/templates/newgem/Gemfile.tt +0 -24
- package/lib/ruby/3.4.11/bundler/templates/newgem/LICENSE.txt.tt +0 -21
- package/lib/ruby/3.4.11/bundler/templates/newgem/README.md.tt +0 -49
- package/lib/ruby/3.4.11/bundler/templates/newgem/Rakefile.tt +0 -67
- package/lib/ruby/3.4.11/bundler/templates/newgem/bin/console.tt +0 -11
- package/lib/ruby/3.4.11/bundler/templates/newgem/bin/setup.tt +0 -8
- package/lib/ruby/3.4.11/bundler/templates/newgem/circleci/config.yml.tt +0 -25
- package/lib/ruby/3.4.11/bundler/templates/newgem/exe/newgem.tt +0 -3
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/Cargo.toml.tt +0 -15
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/extconf-c.rb.tt +0 -10
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/extconf-rust.rb.tt +0 -6
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/newgem.c.tt +0 -9
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/newgem.h.tt +0 -6
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/src/lib.rs.tt +0 -12
- package/lib/ruby/3.4.11/bundler/templates/newgem/github/workflows/main.yml.tt +0 -37
- package/lib/ruby/3.4.11/bundler/templates/newgem/gitignore.tt +0 -23
- package/lib/ruby/3.4.11/bundler/templates/newgem/gitlab-ci.yml.tt +0 -18
- package/lib/ruby/3.4.11/bundler/templates/newgem/lib/newgem/version.rb.tt +0 -9
- package/lib/ruby/3.4.11/bundler/templates/newgem/lib/newgem.rb.tt +0 -15
- package/lib/ruby/3.4.11/bundler/templates/newgem/newgem.gemspec.tt +0 -52
- package/lib/ruby/3.4.11/bundler/templates/newgem/rspec.tt +0 -3
- package/lib/ruby/3.4.11/bundler/templates/newgem/rubocop.yml.tt +0 -8
- package/lib/ruby/3.4.11/bundler/templates/newgem/sig/newgem.rbs.tt +0 -8
- package/lib/ruby/3.4.11/bundler/templates/newgem/spec/newgem_spec.rb.tt +0 -11
- package/lib/ruby/3.4.11/bundler/templates/newgem/spec/spec_helper.rb.tt +0 -15
- package/lib/ruby/3.4.11/bundler/templates/newgem/standard.yml.tt +0 -3
- package/lib/ruby/3.4.11/bundler/templates/newgem/test/minitest/test_helper.rb.tt +0 -6
- package/lib/ruby/3.4.11/bundler/templates/newgem/test/minitest/test_newgem.rb.tt +0 -13
- package/lib/ruby/3.4.11/bundler/templates/newgem/test/test-unit/newgem_test.rb.tt +0 -15
- package/lib/ruby/3.4.11/bundler/templates/newgem/test/test-unit/test_helper.rb.tt +0 -6
- package/lib/ruby/3.4.11/bundler/ui/rg_proxy.rb +0 -19
- package/lib/ruby/3.4.11/bundler/ui/shell.rb +0 -187
- package/lib/ruby/3.4.11/bundler/ui/silent.rb +0 -96
- package/lib/ruby/3.4.11/bundler/ui.rb +0 -9
- package/lib/ruby/3.4.11/bundler/uri_credentials_filter.rb +0 -43
- package/lib/ruby/3.4.11/bundler/uri_normalizer.rb +0 -23
- package/lib/ruby/3.4.11/bundler/vendor/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb +0 -224
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool/version.rb +0 -3
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb +0 -56
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool.rb +0 -186
- package/lib/ruby/3.4.11/bundler/vendor/fileutils/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/fileutils/lib/fileutils.rb +0 -2696
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent/connection.rb +0 -41
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent/pool.rb +0 -65
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent/timed_stack_multi.rb +0 -79
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +0 -1111
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb +0 -20
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/basic_package_source.rb +0 -169
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/failure_writer.rb +0 -182
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/incompatibility.rb +0 -150
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/package.rb +0 -43
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/partial_solution.rb +0 -121
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/rubygems.rb +0 -45
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/solve_failure.rb +0 -19
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb +0 -61
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/strategy.rb +0 -42
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/term.rb +0 -105
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version.rb +0 -3
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_constraint.rb +0 -129
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb +0 -423
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_solver.rb +0 -236
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_union.rb +0 -178
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub.rb +0 -31
- package/lib/ruby/3.4.11/bundler/vendor/securerandom/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/securerandom/lib/securerandom.rb +0 -102
- package/lib/ruby/3.4.11/bundler/vendor/thor/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/create_file.rb +0 -105
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/create_link.rb +0 -61
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/directory.rb +0 -108
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +0 -143
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +0 -371
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +0 -130
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions.rb +0 -340
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/base.rb +0 -825
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/command.rb +0 -151
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +0 -107
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/error.rb +0 -106
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/group.rb +0 -292
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/invocation.rb +0 -178
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/line_editor/basic.rb +0 -37
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/line_editor/readline.rb +0 -88
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/line_editor.rb +0 -17
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/nested_context.rb +0 -29
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/argument.rb +0 -86
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/arguments.rb +0 -195
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/option.rb +0 -178
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/options.rb +0 -294
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser.rb +0 -4
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/rake_compat.rb +0 -72
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/runner.rb +0 -335
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/basic.rb +0 -388
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/color.rb +0 -112
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/column_printer.rb +0 -29
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/html.rb +0 -81
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/table_printer.rb +0 -118
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/terminal.rb +0 -42
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/wrapped_printer.rb +0 -38
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell.rb +0 -81
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/util.rb +0 -285
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/version.rb +0 -3
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor.rb +0 -674
- package/lib/ruby/3.4.11/bundler/vendor/tsort/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/tsort/lib/tsort.rb +0 -455
- package/lib/ruby/3.4.11/bundler/vendor/uri/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/common.rb +0 -880
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/file.rb +0 -100
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ftp.rb +0 -267
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/generic.rb +0 -1592
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/http.rb +0 -125
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/https.rb +0 -23
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ldap.rb +0 -261
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ldaps.rb +0 -22
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/mailto.rb +0 -293
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/rfc2396_parser.rb +0 -546
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/rfc3986_parser.rb +0 -206
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/version.rb +0 -6
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ws.rb +0 -83
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/wss.rb +0 -23
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri.rb +0 -104
- package/lib/ruby/3.4.11/bundler/vendored_fileutils.rb +0 -4
- package/lib/ruby/3.4.11/bundler/vendored_net_http.rb +0 -23
- package/lib/ruby/3.4.11/bundler/vendored_persistent.rb +0 -11
- package/lib/ruby/3.4.11/bundler/vendored_pub_grub.rb +0 -4
- package/lib/ruby/3.4.11/bundler/vendored_securerandom.rb +0 -12
- package/lib/ruby/3.4.11/bundler/vendored_thor.rb +0 -8
- package/lib/ruby/3.4.11/bundler/vendored_timeout.rb +0 -12
- package/lib/ruby/3.4.11/bundler/vendored_tsort.rb +0 -4
- package/lib/ruby/3.4.11/bundler/vendored_uri.rb +0 -21
- package/lib/ruby/3.4.11/bundler/version.rb +0 -13
- package/lib/ruby/3.4.11/bundler/vlad.rb +0 -17
- package/lib/ruby/3.4.11/bundler/worker.rb +0 -117
- package/lib/ruby/3.4.11/bundler/yaml_serializer.rb +0 -98
- package/lib/ruby/3.4.11/bundler.rb +0 -701
- package/lib/ruby/3.4.11/cgi/cgi.gemspec +0 -43
- package/lib/ruby/3.4.11/cgi/cookie.rb +0 -210
- package/lib/ruby/3.4.11/cgi/core.rb +0 -900
- package/lib/ruby/3.4.11/cgi/html.rb +0 -1035
- package/lib/ruby/3.4.11/cgi/session/pstore.rb +0 -91
- package/lib/ruby/3.4.11/cgi/session.rb +0 -562
- package/lib/ruby/3.4.11/cgi/util.rb +0 -258
- package/lib/ruby/3.4.11/cgi.rb +0 -297
- package/lib/ruby/3.4.11/delegate.gemspec +0 -29
- package/lib/ruby/3.4.11/delegate.rb +0 -444
- package/lib/ruby/3.4.11/did_you_mean/core_ext/name_error.rb +0 -57
- package/lib/ruby/3.4.11/did_you_mean/did_you_mean.gemspec +0 -25
- package/lib/ruby/3.4.11/did_you_mean/experimental.rb +0 -2
- package/lib/ruby/3.4.11/did_you_mean/formatter.rb +0 -44
- package/lib/ruby/3.4.11/did_you_mean/formatters/plain_formatter.rb +0 -4
- package/lib/ruby/3.4.11/did_you_mean/formatters/verbose_formatter.rb +0 -10
- package/lib/ruby/3.4.11/did_you_mean/jaro_winkler.rb +0 -84
- package/lib/ruby/3.4.11/did_you_mean/levenshtein.rb +0 -57
- package/lib/ruby/3.4.11/did_you_mean/spell_checker.rb +0 -46
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/key_error_checker.rb +0 -28
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/method_name_checker.rb +0 -79
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb +0 -49
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb +0 -85
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/name_error_checkers.rb +0 -20
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/null_checker.rb +0 -6
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/pattern_key_name_checker.rb +0 -28
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/require_path_checker.rb +0 -39
- package/lib/ruby/3.4.11/did_you_mean/tree_spell_checker.rb +0 -109
- package/lib/ruby/3.4.11/did_you_mean/verbose.rb +0 -2
- package/lib/ruby/3.4.11/did_you_mean/version.rb +0 -3
- package/lib/ruby/3.4.11/did_you_mean.rb +0 -131
- package/lib/ruby/3.4.11/erb/compiler.rb +0 -472
- package/lib/ruby/3.4.11/erb/def_method.rb +0 -47
- package/lib/ruby/3.4.11/erb/util.rb +0 -63
- package/lib/ruby/3.4.11/erb/version.rb +0 -5
- package/lib/ruby/3.4.11/erb.gemspec +0 -38
- package/lib/ruby/3.4.11/erb.rb +0 -509
- package/lib/ruby/3.4.11/error_highlight/base.rb +0 -830
- package/lib/ruby/3.4.11/error_highlight/core_ext.rb +0 -47
- package/lib/ruby/3.4.11/error_highlight/error_highlight.gemspec +0 -27
- package/lib/ruby/3.4.11/error_highlight/formatter.rb +0 -74
- package/lib/ruby/3.4.11/error_highlight/version.rb +0 -3
- package/lib/ruby/3.4.11/error_highlight.rb +0 -2
- package/lib/ruby/3.4.11/fileutils.gemspec +0 -31
- package/lib/ruby/3.4.11/fileutils.rb +0 -2696
- package/lib/ruby/3.4.11/find.gemspec +0 -29
- package/lib/ruby/3.4.11/find.rb +0 -90
- package/lib/ruby/3.4.11/forwardable/forwardable.gemspec +0 -26
- package/lib/ruby/3.4.11/forwardable/impl.rb +0 -17
- package/lib/ruby/3.4.11/forwardable.rb +0 -321
- package/lib/ruby/3.4.11/ipaddr.gemspec +0 -36
- package/lib/ruby/3.4.11/ipaddr.rb +0 -841
- package/lib/ruby/3.4.11/irb/cmd/nop.rb +0 -4
- package/lib/ruby/3.4.11/irb/color.rb +0 -262
- package/lib/ruby/3.4.11/irb/color_printer.rb +0 -55
- package/lib/ruby/3.4.11/irb/command/backtrace.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/base.rb +0 -60
- package/lib/ruby/3.4.11/irb/command/break.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/catch.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/cd.rb +0 -51
- package/lib/ruby/3.4.11/irb/command/chws.rb +0 -40
- package/lib/ruby/3.4.11/irb/command/context.rb +0 -16
- package/lib/ruby/3.4.11/irb/command/continue.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/debug.rb +0 -73
- package/lib/ruby/3.4.11/irb/command/delete.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/disable_irb.rb +0 -19
- package/lib/ruby/3.4.11/irb/command/edit.rb +0 -63
- package/lib/ruby/3.4.11/irb/command/exit.rb +0 -18
- package/lib/ruby/3.4.11/irb/command/finish.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/force_exit.rb +0 -18
- package/lib/ruby/3.4.11/irb/command/help.rb +0 -83
- package/lib/ruby/3.4.11/irb/command/history.rb +0 -45
- package/lib/ruby/3.4.11/irb/command/info.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/internal_helpers.rb +0 -27
- package/lib/ruby/3.4.11/irb/command/irb_info.rb +0 -33
- package/lib/ruby/3.4.11/irb/command/load.rb +0 -91
- package/lib/ruby/3.4.11/irb/command/ls.rb +0 -167
- package/lib/ruby/3.4.11/irb/command/measure.rb +0 -49
- package/lib/ruby/3.4.11/irb/command/next.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/pushws.rb +0 -65
- package/lib/ruby/3.4.11/irb/command/show_doc.rb +0 -51
- package/lib/ruby/3.4.11/irb/command/show_source.rb +0 -74
- package/lib/ruby/3.4.11/irb/command/step.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/subirb.rb +0 -123
- package/lib/ruby/3.4.11/irb/command/whereami.rb +0 -23
- package/lib/ruby/3.4.11/irb/command.rb +0 -23
- package/lib/ruby/3.4.11/irb/completion.rb +0 -504
- package/lib/ruby/3.4.11/irb/context.rb +0 -716
- package/lib/ruby/3.4.11/irb/debug/ui.rb +0 -101
- package/lib/ruby/3.4.11/irb/debug.rb +0 -127
- package/lib/ruby/3.4.11/irb/default_commands.rb +0 -276
- package/lib/ruby/3.4.11/irb/easter-egg.rb +0 -152
- package/lib/ruby/3.4.11/irb/ext/change-ws.rb +0 -37
- package/lib/ruby/3.4.11/irb/ext/eval_history.rb +0 -149
- package/lib/ruby/3.4.11/irb/ext/loader.rb +0 -127
- package/lib/ruby/3.4.11/irb/ext/multi-irb.rb +0 -258
- package/lib/ruby/3.4.11/irb/ext/tracer.rb +0 -39
- package/lib/ruby/3.4.11/irb/ext/use-loader.rb +0 -67
- package/lib/ruby/3.4.11/irb/ext/workspaces.rb +0 -36
- package/lib/ruby/3.4.11/irb/frame.rb +0 -80
- package/lib/ruby/3.4.11/irb/help.rb +0 -28
- package/lib/ruby/3.4.11/irb/helper_method/base.rb +0 -16
- package/lib/ruby/3.4.11/irb/helper_method/conf.rb +0 -11
- package/lib/ruby/3.4.11/irb/helper_method.rb +0 -29
- package/lib/ruby/3.4.11/irb/history.rb +0 -112
- package/lib/ruby/3.4.11/irb/init.rb +0 -538
- package/lib/ruby/3.4.11/irb/input-method.rb +0 -515
- package/lib/ruby/3.4.11/irb/inspector.rb +0 -131
- package/lib/ruby/3.4.11/irb/irb.gemspec +0 -46
- package/lib/ruby/3.4.11/irb/lc/error.rb +0 -52
- package/lib/ruby/3.4.11/irb/lc/help-message +0 -55
- package/lib/ruby/3.4.11/irb/lc/ja/error.rb +0 -53
- package/lib/ruby/3.4.11/irb/lc/ja/help-message +0 -58
- package/lib/ruby/3.4.11/irb/locale.rb +0 -153
- package/lib/ruby/3.4.11/irb/nesting_parser.rb +0 -239
- package/lib/ruby/3.4.11/irb/notifier.rb +0 -230
- package/lib/ruby/3.4.11/irb/output-method.rb +0 -80
- package/lib/ruby/3.4.11/irb/pager.rb +0 -100
- package/lib/ruby/3.4.11/irb/ruby-lex.rb +0 -476
- package/lib/ruby/3.4.11/irb/ruby_logo.aa +0 -118
- package/lib/ruby/3.4.11/irb/source_finder.rb +0 -138
- package/lib/ruby/3.4.11/irb/statement.rb +0 -80
- package/lib/ruby/3.4.11/irb/version.rb +0 -11
- package/lib/ruby/3.4.11/irb/workspace.rb +0 -171
- package/lib/ruby/3.4.11/irb/ws-for-case-2.rb +0 -9
- package/lib/ruby/3.4.11/irb/xmp.rb +0 -164
- package/lib/ruby/3.4.11/irb.rb +0 -1593
- package/lib/ruby/3.4.11/logger/errors.rb +0 -9
- package/lib/ruby/3.4.11/logger/formatter.rb +0 -36
- package/lib/ruby/3.4.11/logger/log_device.rb +0 -236
- package/lib/ruby/3.4.11/logger/logger.gemspec +0 -22
- package/lib/ruby/3.4.11/logger/period.rb +0 -47
- package/lib/ruby/3.4.11/logger/severity.rb +0 -38
- package/lib/ruby/3.4.11/logger/version.rb +0 -5
- package/lib/ruby/3.4.11/logger.rb +0 -761
- package/lib/ruby/3.4.11/mkmf.rb +0 -3045
- package/lib/ruby/3.4.11/net/http/exceptions.rb +0 -34
- package/lib/ruby/3.4.11/net/http/generic_request.rb +0 -414
- package/lib/ruby/3.4.11/net/http/header.rb +0 -981
- package/lib/ruby/3.4.11/net/http/net-http.gemspec +0 -39
- package/lib/ruby/3.4.11/net/http/proxy_delta.rb +0 -17
- package/lib/ruby/3.4.11/net/http/request.rb +0 -88
- package/lib/ruby/3.4.11/net/http/requests.rb +0 -430
- package/lib/ruby/3.4.11/net/http/response.rb +0 -738
- package/lib/ruby/3.4.11/net/http/responses.rb +0 -1174
- package/lib/ruby/3.4.11/net/http/status.rb +0 -84
- package/lib/ruby/3.4.11/net/http.rb +0 -2574
- package/lib/ruby/3.4.11/net/https.rb +0 -23
- package/lib/ruby/3.4.11/net/net-protocol.gemspec +0 -34
- package/lib/ruby/3.4.11/net/protocol.rb +0 -544
- package/lib/ruby/3.4.11/open-uri.gemspec +0 -32
- package/lib/ruby/3.4.11/open-uri.rb +0 -895
- package/lib/ruby/3.4.11/open3/open3.gemspec +0 -33
- package/lib/ruby/3.4.11/open3/version.rb +0 -3
- package/lib/ruby/3.4.11/open3.rb +0 -1410
- package/lib/ruby/3.4.11/optionparser.rb +0 -2
- package/lib/ruby/3.4.11/optparse/ac.rb +0 -70
- package/lib/ruby/3.4.11/optparse/date.rb +0 -18
- package/lib/ruby/3.4.11/optparse/kwargs.rb +0 -27
- package/lib/ruby/3.4.11/optparse/optparse.gemspec +0 -31
- package/lib/ruby/3.4.11/optparse/shellwords.rb +0 -7
- package/lib/ruby/3.4.11/optparse/time.rb +0 -11
- package/lib/ruby/3.4.11/optparse/uri.rb +0 -7
- package/lib/ruby/3.4.11/optparse/version.rb +0 -80
- package/lib/ruby/3.4.11/optparse.rb +0 -2429
- package/lib/ruby/3.4.11/ostruct.gemspec +0 -24
- package/lib/ruby/3.4.11/ostruct.rb +0 -489
- package/lib/ruby/3.4.11/pp.gemspec +0 -35
- package/lib/ruby/3.4.11/pp.rb +0 -699
- package/lib/ruby/3.4.11/prettyprint.gemspec +0 -29
- package/lib/ruby/3.4.11/prettyprint.rb +0 -558
- package/lib/ruby/3.4.11/prism/compiler.rb +0 -801
- package/lib/ruby/3.4.11/prism/desugar_compiler.rb +0 -392
- package/lib/ruby/3.4.11/prism/dispatcher.rb +0 -2210
- package/lib/ruby/3.4.11/prism/dsl.rb +0 -1003
- package/lib/ruby/3.4.11/prism/ffi.rb +0 -570
- package/lib/ruby/3.4.11/prism/inspect_visitor.rb +0 -2392
- package/lib/ruby/3.4.11/prism/lex_compat.rb +0 -928
- package/lib/ruby/3.4.11/prism/mutation_compiler.rb +0 -772
- package/lib/ruby/3.4.11/prism/node.rb +0 -18816
- package/lib/ruby/3.4.11/prism/node_ext.rb +0 -511
- package/lib/ruby/3.4.11/prism/pack.rb +0 -230
- package/lib/ruby/3.4.11/prism/parse_result/comments.rb +0 -188
- package/lib/ruby/3.4.11/prism/parse_result/errors.rb +0 -66
- package/lib/ruby/3.4.11/prism/parse_result/newlines.rb +0 -155
- package/lib/ruby/3.4.11/prism/parse_result.rb +0 -911
- package/lib/ruby/3.4.11/prism/pattern.rb +0 -269
- package/lib/ruby/3.4.11/prism/polyfill/append_as_bytes.rb +0 -15
- package/lib/ruby/3.4.11/prism/polyfill/byteindex.rb +0 -13
- package/lib/ruby/3.4.11/prism/polyfill/scan_byte.rb +0 -14
- package/lib/ruby/3.4.11/prism/polyfill/unpack1.rb +0 -14
- package/lib/ruby/3.4.11/prism/polyfill/warn.rb +0 -36
- package/lib/ruby/3.4.11/prism/prism.gemspec +0 -174
- package/lib/ruby/3.4.11/prism/reflection.rb +0 -416
- package/lib/ruby/3.4.11/prism/relocation.rb +0 -505
- package/lib/ruby/3.4.11/prism/serialize.rb +0 -2400
- package/lib/ruby/3.4.11/prism/string_query.rb +0 -31
- package/lib/ruby/3.4.11/prism/translation/parser/builder.rb +0 -62
- package/lib/ruby/3.4.11/prism/translation/parser/compiler.rb +0 -2234
- package/lib/ruby/3.4.11/prism/translation/parser/lexer.rb +0 -820
- package/lib/ruby/3.4.11/prism/translation/parser.rb +0 -374
- package/lib/ruby/3.4.11/prism/translation/parser33.rb +0 -13
- package/lib/ruby/3.4.11/prism/translation/parser34.rb +0 -13
- package/lib/ruby/3.4.11/prism/translation/parser35.rb +0 -13
- package/lib/ruby/3.4.11/prism/translation/parser_current.rb +0 -24
- package/lib/ruby/3.4.11/prism/translation/ripper/sexp.rb +0 -126
- package/lib/ruby/3.4.11/prism/translation/ripper/shim.rb +0 -5
- package/lib/ruby/3.4.11/prism/translation/ripper.rb +0 -3474
- package/lib/ruby/3.4.11/prism/translation/ruby_parser.rb +0 -1929
- package/lib/ruby/3.4.11/prism/translation.rb +0 -16
- package/lib/ruby/3.4.11/prism/visitor.rb +0 -813
- package/lib/ruby/3.4.11/prism.rb +0 -91
- package/lib/ruby/3.4.11/pstore.gemspec +0 -32
- package/lib/ruby/3.4.11/pstore.rb +0 -736
- package/lib/ruby/3.4.11/random/formatter.rb +0 -372
- package/lib/ruby/3.4.11/rdoc/.document +0 -2
- package/lib/ruby/3.4.11/rdoc/code_object/alias.rb +0 -104
- package/lib/ruby/3.4.11/rdoc/code_object/anon_class.rb +0 -10
- package/lib/ruby/3.4.11/rdoc/code_object/any_method.rb +0 -374
- package/lib/ruby/3.4.11/rdoc/code_object/attr.rb +0 -172
- package/lib/ruby/3.4.11/rdoc/code_object/class_module.rb +0 -888
- package/lib/ruby/3.4.11/rdoc/code_object/constant.rb +0 -186
- package/lib/ruby/3.4.11/rdoc/code_object/context/section.rb +0 -175
- package/lib/ruby/3.4.11/rdoc/code_object/context.rb +0 -1222
- package/lib/ruby/3.4.11/rdoc/code_object/extend.rb +0 -9
- package/lib/ruby/3.4.11/rdoc/code_object/ghost_method.rb +0 -6
- package/lib/ruby/3.4.11/rdoc/code_object/include.rb +0 -9
- package/lib/ruby/3.4.11/rdoc/code_object/meta_method.rb +0 -6
- package/lib/ruby/3.4.11/rdoc/code_object/method_attr.rb +0 -410
- package/lib/ruby/3.4.11/rdoc/code_object/mixin.rb +0 -120
- package/lib/ruby/3.4.11/rdoc/code_object/normal_class.rb +0 -92
- package/lib/ruby/3.4.11/rdoc/code_object/normal_module.rb +0 -73
- package/lib/ruby/3.4.11/rdoc/code_object/require.rb +0 -51
- package/lib/ruby/3.4.11/rdoc/code_object/single_class.rb +0 -30
- package/lib/ruby/3.4.11/rdoc/code_object/top_level.rb +0 -273
- package/lib/ruby/3.4.11/rdoc/code_object.rb +0 -395
- package/lib/ruby/3.4.11/rdoc/code_objects.rb +0 -5
- package/lib/ruby/3.4.11/rdoc/comment.rb +0 -236
- package/lib/ruby/3.4.11/rdoc/cross_reference.rb +0 -228
- package/lib/ruby/3.4.11/rdoc/encoding.rb +0 -120
- package/lib/ruby/3.4.11/rdoc/erb_partial.rb +0 -18
- package/lib/ruby/3.4.11/rdoc/erbio.rb +0 -37
- package/lib/ruby/3.4.11/rdoc/generator/darkfish.rb +0 -812
- package/lib/ruby/3.4.11/rdoc/generator/json_index.rb +0 -284
- package/lib/ruby/3.4.11/rdoc/generator/markup.rb +0 -171
- package/lib/ruby/3.4.11/rdoc/generator/pot/message_extractor.rb +0 -68
- package/lib/ruby/3.4.11/rdoc/generator/pot/po.rb +0 -84
- package/lib/ruby/3.4.11/rdoc/generator/pot/po_entry.rb +0 -141
- package/lib/ruby/3.4.11/rdoc/generator/pot.rb +0 -94
- package/lib/ruby/3.4.11/rdoc/generator/ri.rb +0 -30
- 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 +0 -5
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_head.rhtml +0 -48
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +0 -5
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +0 -15
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +0 -15
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +0 -15
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +0 -21
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +0 -11
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +0 -32
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +0 -6
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_search.rhtml +0 -14
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +0 -11
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +0 -39
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_toggle.rhtml +0 -3
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/class.rhtml +0 -221
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/css/fonts.css +0 -167
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/css/rdoc.css +0 -683
- 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 +0 -23
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/js/darkfish.js +0 -120
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/js/search.js +0 -110
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/page.rhtml +0 -18
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/servlet_not_found.rhtml +0 -20
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/servlet_root.rhtml +0 -65
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/table_of_contents.rhtml +0 -70
- package/lib/ruby/3.4.11/rdoc/generator/template/json_index/.document +0 -1
- package/lib/ruby/3.4.11/rdoc/generator/template/json_index/js/navigation.js +0 -105
- package/lib/ruby/3.4.11/rdoc/generator/template/json_index/js/searcher.js +0 -229
- package/lib/ruby/3.4.11/rdoc/generator.rb +0 -51
- package/lib/ruby/3.4.11/rdoc/i18n/locale.rb +0 -102
- package/lib/ruby/3.4.11/rdoc/i18n/text.rb +0 -126
- package/lib/ruby/3.4.11/rdoc/i18n.rb +0 -10
- package/lib/ruby/3.4.11/rdoc/known_classes.rb +0 -74
- package/lib/ruby/3.4.11/rdoc/markdown/.document +0 -1
- package/lib/ruby/3.4.11/rdoc/markdown/entities.rb +0 -2131
- package/lib/ruby/3.4.11/rdoc/markdown/literals.rb +0 -454
- package/lib/ruby/3.4.11/rdoc/markdown.rb +0 -16806
- package/lib/ruby/3.4.11/rdoc/markup/attr_changer.rb +0 -22
- package/lib/ruby/3.4.11/rdoc/markup/attr_span.rb +0 -35
- package/lib/ruby/3.4.11/rdoc/markup/attribute_manager.rb +0 -405
- package/lib/ruby/3.4.11/rdoc/markup/attributes.rb +0 -70
- package/lib/ruby/3.4.11/rdoc/markup/blank_line.rb +0 -27
- package/lib/ruby/3.4.11/rdoc/markup/block_quote.rb +0 -14
- package/lib/ruby/3.4.11/rdoc/markup/document.rb +0 -164
- package/lib/ruby/3.4.11/rdoc/markup/formatter.rb +0 -272
- package/lib/ruby/3.4.11/rdoc/markup/hard_break.rb +0 -31
- package/lib/ruby/3.4.11/rdoc/markup/heading.rb +0 -84
- package/lib/ruby/3.4.11/rdoc/markup/include.rb +0 -42
- package/lib/ruby/3.4.11/rdoc/markup/indented_paragraph.rb +0 -47
- package/lib/ruby/3.4.11/rdoc/markup/list.rb +0 -101
- package/lib/ruby/3.4.11/rdoc/markup/list_item.rb +0 -99
- package/lib/ruby/3.4.11/rdoc/markup/paragraph.rb +0 -28
- package/lib/ruby/3.4.11/rdoc/markup/parser.rb +0 -585
- package/lib/ruby/3.4.11/rdoc/markup/pre_process.rb +0 -318
- package/lib/ruby/3.4.11/rdoc/markup/raw.rb +0 -69
- package/lib/ruby/3.4.11/rdoc/markup/regexp_handling.rb +0 -40
- package/lib/ruby/3.4.11/rdoc/markup/rule.rb +0 -20
- package/lib/ruby/3.4.11/rdoc/markup/table.rb +0 -56
- package/lib/ruby/3.4.11/rdoc/markup/to_ansi.rb +0 -93
- package/lib/ruby/3.4.11/rdoc/markup/to_bs.rb +0 -102
- package/lib/ruby/3.4.11/rdoc/markup/to_html.rb +0 -462
- package/lib/ruby/3.4.11/rdoc/markup/to_html_crossref.rb +0 -226
- package/lib/ruby/3.4.11/rdoc/markup/to_html_snippet.rb +0 -287
- package/lib/ruby/3.4.11/rdoc/markup/to_joined_paragraph.rb +0 -46
- package/lib/ruby/3.4.11/rdoc/markup/to_label.rb +0 -74
- package/lib/ruby/3.4.11/rdoc/markup/to_markdown.rb +0 -191
- package/lib/ruby/3.4.11/rdoc/markup/to_rdoc.rb +0 -353
- package/lib/ruby/3.4.11/rdoc/markup/to_table_of_contents.rb +0 -88
- package/lib/ruby/3.4.11/rdoc/markup/to_test.rb +0 -69
- package/lib/ruby/3.4.11/rdoc/markup/to_tt_only.rb +0 -120
- package/lib/ruby/3.4.11/rdoc/markup/verbatim.rb +0 -83
- package/lib/ruby/3.4.11/rdoc/markup.rb +0 -240
- package/lib/ruby/3.4.11/rdoc/options.rb +0 -1416
- package/lib/ruby/3.4.11/rdoc/parser/c.rb +0 -1257
- package/lib/ruby/3.4.11/rdoc/parser/changelog.rb +0 -350
- package/lib/ruby/3.4.11/rdoc/parser/markdown.rb +0 -22
- package/lib/ruby/3.4.11/rdoc/parser/prism_ruby.rb +0 -1092
- package/lib/ruby/3.4.11/rdoc/parser/rd.rb +0 -22
- package/lib/ruby/3.4.11/rdoc/parser/ripper_state_lex.rb +0 -302
- package/lib/ruby/3.4.11/rdoc/parser/ruby.rb +0 -2378
- package/lib/ruby/3.4.11/rdoc/parser/ruby_tools.rb +0 -165
- package/lib/ruby/3.4.11/rdoc/parser/simple.rb +0 -61
- package/lib/ruby/3.4.11/rdoc/parser/text.rb +0 -11
- package/lib/ruby/3.4.11/rdoc/parser.rb +0 -297
- package/lib/ruby/3.4.11/rdoc/rd/.document +0 -1
- package/lib/ruby/3.4.11/rdoc/rd/block_parser.rb +0 -1706
- package/lib/ruby/3.4.11/rdoc/rd/inline.rb +0 -71
- package/lib/ruby/3.4.11/rdoc/rd/inline_parser.rb +0 -1854
- package/lib/ruby/3.4.11/rdoc/rd.rb +0 -99
- package/lib/ruby/3.4.11/rdoc/rdoc.gemspec +0 -68
- package/lib/ruby/3.4.11/rdoc/rdoc.rb +0 -551
- package/lib/ruby/3.4.11/rdoc/ri/driver.rb +0 -1566
- package/lib/ruby/3.4.11/rdoc/ri/formatter.rb +0 -6
- package/lib/ruby/3.4.11/rdoc/ri/paths.rb +0 -171
- package/lib/ruby/3.4.11/rdoc/ri/store.rb +0 -6
- package/lib/ruby/3.4.11/rdoc/ri/task.rb +0 -71
- package/lib/ruby/3.4.11/rdoc/ri.rb +0 -20
- package/lib/ruby/3.4.11/rdoc/rubygems_hook.rb +0 -327
- package/lib/ruby/3.4.11/rdoc/servlet.rb +0 -452
- package/lib/ruby/3.4.11/rdoc/stats/normal.rb +0 -58
- package/lib/ruby/3.4.11/rdoc/stats/quiet.rb +0 -59
- package/lib/ruby/3.4.11/rdoc/stats/verbose.rb +0 -44
- package/lib/ruby/3.4.11/rdoc/stats.rb +0 -461
- package/lib/ruby/3.4.11/rdoc/store.rb +0 -997
- package/lib/ruby/3.4.11/rdoc/task.rb +0 -354
- package/lib/ruby/3.4.11/rdoc/text.rb +0 -322
- package/lib/ruby/3.4.11/rdoc/token_stream.rb +0 -118
- package/lib/ruby/3.4.11/rdoc/tom_doc.rb +0 -257
- package/lib/ruby/3.4.11/rdoc/version.rb +0 -10
- package/lib/ruby/3.4.11/rdoc.rb +0 -211
- package/lib/ruby/3.4.11/readline.gemspec +0 -33
- package/lib/ruby/3.4.11/readline.rb +0 -7
- package/lib/ruby/3.4.11/reline/config.rb +0 -373
- package/lib/ruby/3.4.11/reline/face.rb +0 -199
- package/lib/ruby/3.4.11/reline/history.rb +0 -76
- package/lib/ruby/3.4.11/reline/io/ansi.rb +0 -325
- package/lib/ruby/3.4.11/reline/io/dumb.rb +0 -120
- package/lib/ruby/3.4.11/reline/io/windows.rb +0 -530
- package/lib/ruby/3.4.11/reline/io.rb +0 -55
- package/lib/ruby/3.4.11/reline/key_actor/base.rb +0 -37
- package/lib/ruby/3.4.11/reline/key_actor/composite.rb +0 -17
- package/lib/ruby/3.4.11/reline/key_actor/emacs.rb +0 -517
- package/lib/ruby/3.4.11/reline/key_actor/vi_command.rb +0 -518
- package/lib/ruby/3.4.11/reline/key_actor/vi_insert.rb +0 -517
- package/lib/ruby/3.4.11/reline/key_actor.rb +0 -8
- package/lib/ruby/3.4.11/reline/key_stroke.rb +0 -119
- package/lib/ruby/3.4.11/reline/kill_ring.rb +0 -125
- package/lib/ruby/3.4.11/reline/line_editor.rb +0 -2382
- package/lib/ruby/3.4.11/reline/reline.gemspec +0 -30
- package/lib/ruby/3.4.11/reline/unicode/east_asian_width.rb +0 -1267
- package/lib/ruby/3.4.11/reline/unicode.rb +0 -415
- package/lib/ruby/3.4.11/reline/version.rb +0 -3
- package/lib/ruby/3.4.11/reline.rb +0 -519
- package/lib/ruby/3.4.11/resolv.gemspec +0 -30
- package/lib/ruby/3.4.11/resolv.rb +0 -3587
- package/lib/ruby/3.4.11/ruby2_keywords.gemspec +0 -23
- package/lib/ruby/3.4.11/ruby_vm/rjit/.document +0 -1
- package/lib/ruby/3.4.11/ruby_vm/rjit/assembler.rb +0 -1160
- package/lib/ruby/3.4.11/ruby_vm/rjit/block.rb +0 -11
- package/lib/ruby/3.4.11/ruby_vm/rjit/branch_stub.rb +0 -24
- package/lib/ruby/3.4.11/ruby_vm/rjit/c_pointer.rb +0 -394
- package/lib/ruby/3.4.11/ruby_vm/rjit/c_type.rb +0 -99
- package/lib/ruby/3.4.11/ruby_vm/rjit/code_block.rb +0 -91
- package/lib/ruby/3.4.11/ruby_vm/rjit/compiler.rb +0 -518
- package/lib/ruby/3.4.11/ruby_vm/rjit/context.rb +0 -377
- package/lib/ruby/3.4.11/ruby_vm/rjit/entry_stub.rb +0 -7
- package/lib/ruby/3.4.11/ruby_vm/rjit/exit_compiler.rb +0 -164
- package/lib/ruby/3.4.11/ruby_vm/rjit/hooks.rb +0 -36
- package/lib/ruby/3.4.11/ruby_vm/rjit/insn_compiler.rb +0 -6046
- package/lib/ruby/3.4.11/ruby_vm/rjit/instruction.rb +0 -1326
- package/lib/ruby/3.4.11/ruby_vm/rjit/invariants.rb +0 -155
- package/lib/ruby/3.4.11/ruby_vm/rjit/jit_state.rb +0 -65
- package/lib/ruby/3.4.11/ruby_vm/rjit/stats.rb +0 -191
- package/lib/ruby/3.4.11/ruby_vm/rjit/type.rb +0 -221
- package/lib/ruby/3.4.11/rubygems/available_set.rb +0 -165
- package/lib/ruby/3.4.11/rubygems/basic_specification.rb +0 -383
- package/lib/ruby/3.4.11/rubygems/bundler_version_finder.rb +0 -77
- package/lib/ruby/3.4.11/rubygems/ci_detector.rb +0 -75
- package/lib/ruby/3.4.11/rubygems/command.rb +0 -664
- package/lib/ruby/3.4.11/rubygems/command_manager.rb +0 -255
- package/lib/ruby/3.4.11/rubygems/commands/build_command.rb +0 -127
- package/lib/ruby/3.4.11/rubygems/commands/cert_command.rb +0 -325
- package/lib/ruby/3.4.11/rubygems/commands/check_command.rb +0 -97
- package/lib/ruby/3.4.11/rubygems/commands/cleanup_command.rb +0 -178
- package/lib/ruby/3.4.11/rubygems/commands/contents_command.rb +0 -196
- package/lib/ruby/3.4.11/rubygems/commands/dependency_command.rb +0 -206
- package/lib/ruby/3.4.11/rubygems/commands/environment_command.rb +0 -181
- package/lib/ruby/3.4.11/rubygems/commands/exec_command.rb +0 -256
- package/lib/ruby/3.4.11/rubygems/commands/fetch_command.rb +0 -109
- package/lib/ruby/3.4.11/rubygems/commands/generate_index_command.rb +0 -51
- package/lib/ruby/3.4.11/rubygems/commands/help_command.rb +0 -375
- package/lib/ruby/3.4.11/rubygems/commands/info_command.rb +0 -38
- package/lib/ruby/3.4.11/rubygems/commands/install_command.rb +0 -269
- package/lib/ruby/3.4.11/rubygems/commands/list_command.rb +0 -42
- package/lib/ruby/3.4.11/rubygems/commands/lock_command.rb +0 -109
- package/lib/ruby/3.4.11/rubygems/commands/mirror_command.rb +0 -26
- package/lib/ruby/3.4.11/rubygems/commands/open_command.rb +0 -83
- package/lib/ruby/3.4.11/rubygems/commands/outdated_command.rb +0 -33
- package/lib/ruby/3.4.11/rubygems/commands/owner_command.rb +0 -124
- package/lib/ruby/3.4.11/rubygems/commands/pristine_command.rb +0 -217
- package/lib/ruby/3.4.11/rubygems/commands/push_command.rb +0 -135
- package/lib/ruby/3.4.11/rubygems/commands/query_command.rb +0 -43
- package/lib/ruby/3.4.11/rubygems/commands/rdoc_command.rb +0 -90
- package/lib/ruby/3.4.11/rubygems/commands/rebuild_command.rb +0 -262
- package/lib/ruby/3.4.11/rubygems/commands/search_command.rb +0 -41
- package/lib/ruby/3.4.11/rubygems/commands/server_command.rb +0 -26
- package/lib/ruby/3.4.11/rubygems/commands/setup_command.rb +0 -663
- package/lib/ruby/3.4.11/rubygems/commands/signin_command.rb +0 -34
- package/lib/ruby/3.4.11/rubygems/commands/signout_command.rb +0 -32
- package/lib/ruby/3.4.11/rubygems/commands/sources_command.rb +0 -227
- package/lib/ruby/3.4.11/rubygems/commands/specification_command.rb +0 -156
- package/lib/ruby/3.4.11/rubygems/commands/stale_command.rb +0 -40
- package/lib/ruby/3.4.11/rubygems/commands/uninstall_command.rb +0 -204
- package/lib/ruby/3.4.11/rubygems/commands/unpack_command.rb +0 -168
- package/lib/ruby/3.4.11/rubygems/commands/update_command.rb +0 -326
- package/lib/ruby/3.4.11/rubygems/commands/which_command.rb +0 -88
- package/lib/ruby/3.4.11/rubygems/commands/yank_command.rb +0 -99
- package/lib/ruby/3.4.11/rubygems/compatibility.rb +0 -41
- package/lib/ruby/3.4.11/rubygems/config_file.rb +0 -618
- package/lib/ruby/3.4.11/rubygems/core_ext/kernel_gem.rb +0 -68
- package/lib/ruby/3.4.11/rubygems/core_ext/kernel_require.rb +0 -149
- package/lib/ruby/3.4.11/rubygems/core_ext/kernel_warn.rb +0 -45
- package/lib/ruby/3.4.11/rubygems/core_ext/tcpsocket_init.rb +0 -54
- package/lib/ruby/3.4.11/rubygems/defaults.rb +0 -308
- package/lib/ruby/3.4.11/rubygems/dependency.rb +0 -348
- package/lib/ruby/3.4.11/rubygems/dependency_installer.rb +0 -335
- package/lib/ruby/3.4.11/rubygems/dependency_list.rb +0 -243
- package/lib/ruby/3.4.11/rubygems/deprecate.rb +0 -169
- package/lib/ruby/3.4.11/rubygems/doctor.rb +0 -132
- package/lib/ruby/3.4.11/rubygems/errors.rb +0 -177
- package/lib/ruby/3.4.11/rubygems/exceptions.rb +0 -293
- package/lib/ruby/3.4.11/rubygems/ext/build_error.rb +0 -9
- package/lib/ruby/3.4.11/rubygems/ext/builder.rb +0 -260
- package/lib/ruby/3.4.11/rubygems/ext/cargo_builder/link_flag_converter.rb +0 -27
- package/lib/ruby/3.4.11/rubygems/ext/cargo_builder.rb +0 -346
- package/lib/ruby/3.4.11/rubygems/ext/cmake_builder.rb +0 -21
- package/lib/ruby/3.4.11/rubygems/ext/configure_builder.rb +0 -26
- package/lib/ruby/3.4.11/rubygems/ext/ext_conf_builder.rb +0 -77
- package/lib/ruby/3.4.11/rubygems/ext/rake_builder.rb +0 -37
- package/lib/ruby/3.4.11/rubygems/ext.rb +0 -20
- package/lib/ruby/3.4.11/rubygems/gem_runner.rb +0 -89
- package/lib/ruby/3.4.11/rubygems/gemcutter_utilities/webauthn_listener/response.rb +0 -163
- package/lib/ruby/3.4.11/rubygems/gemcutter_utilities/webauthn_listener.rb +0 -105
- package/lib/ruby/3.4.11/rubygems/gemcutter_utilities/webauthn_poller.rb +0 -80
- package/lib/ruby/3.4.11/rubygems/gemcutter_utilities.rb +0 -397
- package/lib/ruby/3.4.11/rubygems/gemspec_helpers.rb +0 -19
- package/lib/ruby/3.4.11/rubygems/install_default_message.rb +0 -13
- package/lib/ruby/3.4.11/rubygems/install_message.rb +0 -13
- package/lib/ruby/3.4.11/rubygems/install_update_options.rb +0 -204
- package/lib/ruby/3.4.11/rubygems/installer.rb +0 -1031
- package/lib/ruby/3.4.11/rubygems/installer_uninstaller_utils.rb +0 -27
- package/lib/ruby/3.4.11/rubygems/local_remote_options.rb +0 -146
- package/lib/ruby/3.4.11/rubygems/name_tuple.rb +0 -119
- package/lib/ruby/3.4.11/rubygems/openssl.rb +0 -7
- package/lib/ruby/3.4.11/rubygems/package/digest_io.rb +0 -63
- package/lib/ruby/3.4.11/rubygems/package/file_source.rb +0 -32
- package/lib/ruby/3.4.11/rubygems/package/io_source.rb +0 -48
- package/lib/ruby/3.4.11/rubygems/package/old.rb +0 -169
- package/lib/ruby/3.4.11/rubygems/package/source.rb +0 -4
- package/lib/ruby/3.4.11/rubygems/package/tar_header.rb +0 -277
- package/lib/ruby/3.4.11/rubygems/package/tar_reader/entry.rb +0 -244
- package/lib/ruby/3.4.11/rubygems/package/tar_reader.rb +0 -101
- package/lib/ruby/3.4.11/rubygems/package/tar_writer.rb +0 -332
- package/lib/ruby/3.4.11/rubygems/package.rb +0 -742
- package/lib/ruby/3.4.11/rubygems/package_task.rb +0 -123
- package/lib/ruby/3.4.11/rubygems/path_support.rb +0 -85
- package/lib/ruby/3.4.11/rubygems/platform.rb +0 -269
- package/lib/ruby/3.4.11/rubygems/psych_tree.rb +0 -37
- package/lib/ruby/3.4.11/rubygems/query_utils.rb +0 -349
- package/lib/ruby/3.4.11/rubygems/rdoc.rb +0 -26
- package/lib/ruby/3.4.11/rubygems/remote_fetcher.rb +0 -341
- package/lib/ruby/3.4.11/rubygems/request/connection_pools.rb +0 -95
- package/lib/ruby/3.4.11/rubygems/request/http_pool.rb +0 -47
- package/lib/ruby/3.4.11/rubygems/request/https_pool.rb +0 -10
- package/lib/ruby/3.4.11/rubygems/request.rb +0 -298
- package/lib/ruby/3.4.11/rubygems/request_set/gem_dependency_api.rb +0 -841
- package/lib/ruby/3.4.11/rubygems/request_set/lockfile/parser.rb +0 -344
- package/lib/ruby/3.4.11/rubygems/request_set/lockfile/tokenizer.rb +0 -122
- package/lib/ruby/3.4.11/rubygems/request_set/lockfile.rb +0 -235
- package/lib/ruby/3.4.11/rubygems/request_set.rb +0 -468
- package/lib/ruby/3.4.11/rubygems/requirement.rb +0 -298
- package/lib/ruby/3.4.11/rubygems/resolver/activation_request.rb +0 -159
- package/lib/ruby/3.4.11/rubygems/resolver/api_set/gem_parser.rb +0 -21
- package/lib/ruby/3.4.11/rubygems/resolver/api_set.rb +0 -139
- package/lib/ruby/3.4.11/rubygems/resolver/api_specification.rb +0 -105
- package/lib/ruby/3.4.11/rubygems/resolver/best_set.rb +0 -49
- package/lib/ruby/3.4.11/rubygems/resolver/composed_set.rb +0 -65
- package/lib/ruby/3.4.11/rubygems/resolver/conflict.rb +0 -146
- package/lib/ruby/3.4.11/rubygems/resolver/current_set.rb +0 -12
- package/lib/ruby/3.4.11/rubygems/resolver/dependency_request.rb +0 -119
- package/lib/ruby/3.4.11/rubygems/resolver/git_set.rb +0 -120
- package/lib/ruby/3.4.11/rubygems/resolver/git_specification.rb +0 -57
- package/lib/ruby/3.4.11/rubygems/resolver/index_set.rb +0 -79
- package/lib/ruby/3.4.11/rubygems/resolver/index_specification.rb +0 -101
- package/lib/ruby/3.4.11/rubygems/resolver/installed_specification.rb +0 -57
- package/lib/ruby/3.4.11/rubygems/resolver/installer_set.rb +0 -271
- package/lib/ruby/3.4.11/rubygems/resolver/local_specification.rb +0 -40
- package/lib/ruby/3.4.11/rubygems/resolver/lock_set.rb +0 -81
- package/lib/ruby/3.4.11/rubygems/resolver/lock_specification.rb +0 -86
- package/lib/ruby/3.4.11/rubygems/resolver/requirement_list.rb +0 -82
- package/lib/ruby/3.4.11/rubygems/resolver/set.rb +0 -55
- package/lib/ruby/3.4.11/rubygems/resolver/source_set.rb +0 -47
- package/lib/ruby/3.4.11/rubygems/resolver/spec_specification.rb +0 -76
- package/lib/ruby/3.4.11/rubygems/resolver/specification.rb +0 -126
- package/lib/ruby/3.4.11/rubygems/resolver/stats.rb +0 -46
- package/lib/ruby/3.4.11/rubygems/resolver/vendor_set.rb +0 -86
- package/lib/ruby/3.4.11/rubygems/resolver/vendor_specification.rb +0 -23
- package/lib/ruby/3.4.11/rubygems/resolver.rb +0 -341
- package/lib/ruby/3.4.11/rubygems/s3_uri_signer.rb +0 -177
- package/lib/ruby/3.4.11/rubygems/safe_marshal/elements.rb +0 -146
- package/lib/ruby/3.4.11/rubygems/safe_marshal/reader.rb +0 -325
- package/lib/ruby/3.4.11/rubygems/safe_marshal/visitors/stream_printer.rb +0 -31
- package/lib/ruby/3.4.11/rubygems/safe_marshal/visitors/to_ruby.rb +0 -428
- package/lib/ruby/3.4.11/rubygems/safe_marshal/visitors/visitor.rb +0 -74
- package/lib/ruby/3.4.11/rubygems/safe_marshal.rb +0 -74
- package/lib/ruby/3.4.11/rubygems/safe_yaml.rb +0 -45
- package/lib/ruby/3.4.11/rubygems/security/policies.rb +0 -114
- package/lib/ruby/3.4.11/rubygems/security/policy.rb +0 -288
- package/lib/ruby/3.4.11/rubygems/security/signer.rb +0 -212
- package/lib/ruby/3.4.11/rubygems/security/trust_dir.rb +0 -117
- package/lib/ruby/3.4.11/rubygems/security.rb +0 -615
- package/lib/ruby/3.4.11/rubygems/security_option.rb +0 -43
- package/lib/ruby/3.4.11/rubygems/source/git.rb +0 -244
- package/lib/ruby/3.4.11/rubygems/source/installed.rb +0 -39
- package/lib/ruby/3.4.11/rubygems/source/local.rb +0 -131
- package/lib/ruby/3.4.11/rubygems/source/lock.rb +0 -49
- package/lib/ruby/3.4.11/rubygems/source/specific_file.rb +0 -73
- package/lib/ruby/3.4.11/rubygems/source/vendor.rb +0 -24
- package/lib/ruby/3.4.11/rubygems/source.rb +0 -247
- package/lib/ruby/3.4.11/rubygems/source_list.rb +0 -146
- package/lib/ruby/3.4.11/rubygems/spec_fetcher.rb +0 -290
- package/lib/ruby/3.4.11/rubygems/specification.rb +0 -2666
- package/lib/ruby/3.4.11/rubygems/specification_policy.rb +0 -558
- package/lib/ruby/3.4.11/rubygems/specification_record.rb +0 -212
- package/lib/ruby/3.4.11/rubygems/ssl_certs/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA.pem +0 -21
- package/lib/ruby/3.4.11/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA_R3.pem +0 -21
- package/lib/ruby/3.4.11/rubygems/stub_specification.rb +0 -235
- package/lib/ruby/3.4.11/rubygems/target_rbconfig.rb +0 -50
- package/lib/ruby/3.4.11/rubygems/text.rb +0 -85
- package/lib/ruby/3.4.11/rubygems/uninstaller.rb +0 -429
- package/lib/ruby/3.4.11/rubygems/unknown_command_spell_checker.rb +0 -21
- package/lib/ruby/3.4.11/rubygems/update_suggestion.rb +0 -56
- package/lib/ruby/3.4.11/rubygems/uri.rb +0 -126
- package/lib/ruby/3.4.11/rubygems/uri_formatter.rb +0 -47
- package/lib/ruby/3.4.11/rubygems/user_interaction.rb +0 -650
- package/lib/ruby/3.4.11/rubygems/util/licenses.rb +0 -834
- package/lib/ruby/3.4.11/rubygems/util/list.rb +0 -40
- package/lib/ruby/3.4.11/rubygems/util.rb +0 -118
- package/lib/ruby/3.4.11/rubygems/validator.rb +0 -144
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +0 -57
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +0 -88
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +0 -36
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +0 -66
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +0 -62
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +0 -63
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +0 -61
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +0 -126
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +0 -46
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +0 -36
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +0 -164
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph.rb +0 -255
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/errors.rb +0 -149
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/gem_metadata.rb +0 -6
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +0 -112
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/modules/ui.rb +0 -67
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/resolution.rb +0 -839
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/resolver.rb +0 -46
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/state.rb +0 -58
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo.rb +0 -11
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/exceptions.rb +0 -34
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/generic_request.rb +0 -414
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/header.rb +0 -981
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/proxy_delta.rb +0 -17
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/request.rb +0 -88
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/requests.rb +0 -430
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/response.rb +0 -738
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/responses.rb +0 -1174
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/status.rb +0 -84
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http.rb +0 -2580
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/https.rb +0 -23
- package/lib/ruby/3.4.11/rubygems/vendor/net-protocol/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/net-protocol/lib/net/protocol.rb +0 -544
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optionparser.rb +0 -2
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/ac.rb +0 -70
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/date.rb +0 -18
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/kwargs.rb +0 -27
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/shellwords.rb +0 -7
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/time.rb +0 -11
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/uri.rb +0 -7
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/version.rb +0 -80
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse.rb +0 -2426
- package/lib/ruby/3.4.11/rubygems/vendor/resolv/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/resolv/lib/resolv.rb +0 -3455
- package/lib/ruby/3.4.11/rubygems/vendor/securerandom/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/securerandom/lib/securerandom.rb +0 -102
- package/lib/ruby/3.4.11/rubygems/vendor/timeout/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/timeout/lib/timeout.rb +0 -198
- package/lib/ruby/3.4.11/rubygems/vendor/tsort/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/tsort/lib/tsort.rb +0 -455
- package/lib/ruby/3.4.11/rubygems/vendor/uri/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/common.rb +0 -880
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/file.rb +0 -100
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ftp.rb +0 -267
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/generic.rb +0 -1592
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/http.rb +0 -125
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/https.rb +0 -23
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ldap.rb +0 -261
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ldaps.rb +0 -22
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/mailto.rb +0 -293
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/rfc2396_parser.rb +0 -546
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/rfc3986_parser.rb +0 -206
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/version.rb +0 -6
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ws.rb +0 -83
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/wss.rb +0 -23
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri.rb +0 -104
- package/lib/ruby/3.4.11/rubygems/vendored_molinillo.rb +0 -3
- package/lib/ruby/3.4.11/rubygems/vendored_net_http.rb +0 -5
- package/lib/ruby/3.4.11/rubygems/vendored_optparse.rb +0 -3
- package/lib/ruby/3.4.11/rubygems/vendored_securerandom.rb +0 -3
- package/lib/ruby/3.4.11/rubygems/vendored_timeout.rb +0 -5
- package/lib/ruby/3.4.11/rubygems/vendored_tsort.rb +0 -3
- package/lib/ruby/3.4.11/rubygems/version.rb +0 -441
- package/lib/ruby/3.4.11/rubygems/version_option.rb +0 -80
- package/lib/ruby/3.4.11/rubygems/yaml_serializer.rb +0 -98
- package/lib/ruby/3.4.11/rubygems.rb +0 -1417
- package/lib/ruby/3.4.11/securerandom.gemspec +0 -34
- package/lib/ruby/3.4.11/securerandom.rb +0 -102
- package/lib/ruby/3.4.11/set/set.gemspec +0 -30
- package/lib/ruby/3.4.11/set/sorted_set.rb +0 -6
- package/lib/ruby/3.4.11/set.rb +0 -855
- package/lib/ruby/3.4.11/shellwords.gemspec +0 -31
- package/lib/ruby/3.4.11/shellwords.rb +0 -254
- package/lib/ruby/3.4.11/singleton.gemspec +0 -30
- package/lib/ruby/3.4.11/singleton.rb +0 -239
- package/lib/ruby/3.4.11/syntax_suggest/api.rb +0 -233
- package/lib/ruby/3.4.11/syntax_suggest/around_block_scan.rb +0 -232
- package/lib/ruby/3.4.11/syntax_suggest/block_expand.rb +0 -165
- package/lib/ruby/3.4.11/syntax_suggest/capture/before_after_keyword_ends.rb +0 -85
- package/lib/ruby/3.4.11/syntax_suggest/capture/falling_indent_lines.rb +0 -71
- package/lib/ruby/3.4.11/syntax_suggest/capture_code_context.rb +0 -245
- package/lib/ruby/3.4.11/syntax_suggest/clean_document.rb +0 -306
- package/lib/ruby/3.4.11/syntax_suggest/cli.rb +0 -130
- package/lib/ruby/3.4.11/syntax_suggest/code_block.rb +0 -100
- package/lib/ruby/3.4.11/syntax_suggest/code_frontier.rb +0 -178
- package/lib/ruby/3.4.11/syntax_suggest/code_line.rb +0 -243
- package/lib/ruby/3.4.11/syntax_suggest/code_search.rb +0 -139
- package/lib/ruby/3.4.11/syntax_suggest/core_ext.rb +0 -96
- package/lib/ruby/3.4.11/syntax_suggest/display_code_with_line_numbers.rb +0 -70
- package/lib/ruby/3.4.11/syntax_suggest/display_invalid_blocks.rb +0 -83
- package/lib/ruby/3.4.11/syntax_suggest/explain_syntax.rb +0 -117
- package/lib/ruby/3.4.11/syntax_suggest/left_right_lex_count.rb +0 -168
- package/lib/ruby/3.4.11/syntax_suggest/lex_all.rb +0 -74
- package/lib/ruby/3.4.11/syntax_suggest/lex_value.rb +0 -70
- package/lib/ruby/3.4.11/syntax_suggest/mini_stringio.rb +0 -30
- package/lib/ruby/3.4.11/syntax_suggest/parse_blocks_from_indent_line.rb +0 -60
- package/lib/ruby/3.4.11/syntax_suggest/pathname_from_message.rb +0 -59
- package/lib/ruby/3.4.11/syntax_suggest/priority_engulf_queue.rb +0 -63
- package/lib/ruby/3.4.11/syntax_suggest/priority_queue.rb +0 -105
- package/lib/ruby/3.4.11/syntax_suggest/ripper_errors.rb +0 -39
- package/lib/ruby/3.4.11/syntax_suggest/scan_history.rb +0 -134
- package/lib/ruby/3.4.11/syntax_suggest/syntax_suggest.gemspec +0 -32
- package/lib/ruby/3.4.11/syntax_suggest/unvisited_lines.rb +0 -36
- package/lib/ruby/3.4.11/syntax_suggest/version.rb +0 -5
- package/lib/ruby/3.4.11/syntax_suggest.rb +0 -3
- package/lib/ruby/3.4.11/tempfile.gemspec +0 -33
- package/lib/ruby/3.4.11/tempfile.rb +0 -640
- package/lib/ruby/3.4.11/time.gemspec +0 -35
- package/lib/ruby/3.4.11/time.rb +0 -731
- package/lib/ruby/3.4.11/timeout.gemspec +0 -33
- package/lib/ruby/3.4.11/timeout.rb +0 -200
- package/lib/ruby/3.4.11/tmpdir.gemspec +0 -30
- package/lib/ruby/3.4.11/tmpdir.rb +0 -189
- package/lib/ruby/3.4.11/tsort.gemspec +0 -29
- package/lib/ruby/3.4.11/tsort.rb +0 -455
- package/lib/ruby/3.4.11/un.gemspec +0 -31
- package/lib/ruby/3.4.11/un.rb +0 -441
- package/lib/ruby/3.4.11/unicode_normalize/normalize.rb +0 -181
- package/lib/ruby/3.4.11/unicode_normalize/tables.rb +0 -9259
- package/lib/ruby/3.4.11/uri/common.rb +0 -880
- package/lib/ruby/3.4.11/uri/file.rb +0 -100
- package/lib/ruby/3.4.11/uri/ftp.rb +0 -267
- package/lib/ruby/3.4.11/uri/generic.rb +0 -1592
- package/lib/ruby/3.4.11/uri/http.rb +0 -125
- package/lib/ruby/3.4.11/uri/https.rb +0 -23
- package/lib/ruby/3.4.11/uri/ldap.rb +0 -261
- package/lib/ruby/3.4.11/uri/ldaps.rb +0 -22
- package/lib/ruby/3.4.11/uri/mailto.rb +0 -293
- package/lib/ruby/3.4.11/uri/rfc2396_parser.rb +0 -546
- package/lib/ruby/3.4.11/uri/rfc3986_parser.rb +0 -206
- package/lib/ruby/3.4.11/uri/uri.gemspec +0 -42
- package/lib/ruby/3.4.11/uri/version.rb +0 -6
- package/lib/ruby/3.4.11/uri/ws.rb +0 -83
- package/lib/ruby/3.4.11/uri/wss.rb +0 -23
- package/lib/ruby/3.4.11/uri.rb +0 -104
- package/lib/ruby/3.4.11/weakref.gemspec +0 -34
- package/lib/ruby/3.4.11/weakref.rb +0 -58
- package/lib/ruby/3.4.11/yaml/dbm.rb +0 -295
- package/lib/ruby/3.4.11/yaml/store.rb +0 -98
- package/lib/ruby/3.4.11/yaml/yaml.gemspec +0 -30
- package/lib/ruby/3.4.11/yaml.rb +0 -70
|
@@ -1,1092 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require 'prism'
|
|
4
|
-
require_relative 'ripper_state_lex'
|
|
5
|
-
|
|
6
|
-
# Unlike lib/rdoc/parser/ruby.rb, this file is not based on rtags and does not contain code from
|
|
7
|
-
# rtags.rb -
|
|
8
|
-
# ruby-lex.rb - ruby lexcal analyzer
|
|
9
|
-
# ruby-token.rb - ruby tokens
|
|
10
|
-
|
|
11
|
-
# Parse and collect document from Ruby source code.
|
|
12
|
-
# RDoc::Parser::PrismRuby is compatible with RDoc::Parser::Ruby and aims to replace it.
|
|
13
|
-
|
|
14
|
-
class RDoc::Parser::PrismRuby < RDoc::Parser
|
|
15
|
-
|
|
16
|
-
parse_files_matching(/\.rbw?$/) if ENV['RDOC_USE_PRISM_PARSER']
|
|
17
|
-
|
|
18
|
-
attr_accessor :visibility
|
|
19
|
-
attr_reader :container, :singleton
|
|
20
|
-
|
|
21
|
-
def initialize(top_level, content, options, stats)
|
|
22
|
-
super
|
|
23
|
-
|
|
24
|
-
content = handle_tab_width(content)
|
|
25
|
-
|
|
26
|
-
@size = 0
|
|
27
|
-
@token_listeners = nil
|
|
28
|
-
content = RDoc::Encoding.remove_magic_comment content
|
|
29
|
-
@content = content
|
|
30
|
-
@markup = @options.markup
|
|
31
|
-
@track_visibility = :nodoc != @options.visibility
|
|
32
|
-
@encoding = @options.encoding
|
|
33
|
-
|
|
34
|
-
@module_nesting = [[top_level, false]]
|
|
35
|
-
@container = top_level
|
|
36
|
-
@visibility = :public
|
|
37
|
-
@singleton = false
|
|
38
|
-
@in_proc_block = false
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
# Suppress `extend` and `include` within block
|
|
42
|
-
# because they might be a metaprogramming block
|
|
43
|
-
# example: `Module.new { include M }` `M.module_eval { include N }`
|
|
44
|
-
|
|
45
|
-
def with_in_proc_block
|
|
46
|
-
@in_proc_block = true
|
|
47
|
-
yield
|
|
48
|
-
@in_proc_block = false
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
# Dive into another container
|
|
52
|
-
|
|
53
|
-
def with_container(container, singleton: false)
|
|
54
|
-
old_container = @container
|
|
55
|
-
old_visibility = @visibility
|
|
56
|
-
old_singleton = @singleton
|
|
57
|
-
old_in_proc_block = @in_proc_block
|
|
58
|
-
@visibility = :public
|
|
59
|
-
@container = container
|
|
60
|
-
@singleton = singleton
|
|
61
|
-
@in_proc_block = false
|
|
62
|
-
unless singleton
|
|
63
|
-
# Need to update module parent chain to emulate Module.nesting.
|
|
64
|
-
# This mechanism is inaccurate and needs to be fixed.
|
|
65
|
-
container.parent = old_container
|
|
66
|
-
end
|
|
67
|
-
@module_nesting.push([container, singleton])
|
|
68
|
-
yield container
|
|
69
|
-
ensure
|
|
70
|
-
@container = old_container
|
|
71
|
-
@visibility = old_visibility
|
|
72
|
-
@singleton = old_singleton
|
|
73
|
-
@in_proc_block = old_in_proc_block
|
|
74
|
-
@module_nesting.pop
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
# Records the location of this +container+ in the file for this parser and
|
|
78
|
-
# adds it to the list of classes and modules in the file.
|
|
79
|
-
|
|
80
|
-
def record_location(container) # :nodoc:
|
|
81
|
-
case container
|
|
82
|
-
when RDoc::ClassModule then
|
|
83
|
-
@top_level.add_to_classes_or_modules container
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
container.record_location @top_level
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
# Scans this Ruby file for Ruby constructs
|
|
90
|
-
|
|
91
|
-
def scan
|
|
92
|
-
@tokens = RDoc::Parser::RipperStateLex.parse(@content)
|
|
93
|
-
@lines = @content.lines
|
|
94
|
-
result = Prism.parse(@content)
|
|
95
|
-
@program_node = result.value
|
|
96
|
-
@line_nodes = {}
|
|
97
|
-
prepare_line_nodes(@program_node)
|
|
98
|
-
prepare_comments(result.comments)
|
|
99
|
-
return if @top_level.done_documenting
|
|
100
|
-
|
|
101
|
-
@first_non_meta_comment = nil
|
|
102
|
-
if (_line_no, start_line, rdoc_comment = @unprocessed_comments.first)
|
|
103
|
-
@first_non_meta_comment = rdoc_comment if start_line < @program_node.location.start_line
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
@program_node.accept(RDocVisitor.new(self, @top_level, @store))
|
|
107
|
-
process_comments_until(@lines.size + 1)
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
def should_document?(code_object) # :nodoc:
|
|
111
|
-
return true unless @track_visibility
|
|
112
|
-
return false if code_object.parent&.document_children == false
|
|
113
|
-
code_object.document_self
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
# Assign AST node to a line.
|
|
117
|
-
# This is used to show meta-method source code in the documentation.
|
|
118
|
-
|
|
119
|
-
def prepare_line_nodes(node) # :nodoc:
|
|
120
|
-
case node
|
|
121
|
-
when Prism::CallNode, Prism::DefNode
|
|
122
|
-
@line_nodes[node.location.start_line] ||= node
|
|
123
|
-
end
|
|
124
|
-
node.compact_child_nodes.each do |child|
|
|
125
|
-
prepare_line_nodes(child)
|
|
126
|
-
end
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
# Prepares comments for processing. Comments are grouped into consecutive.
|
|
130
|
-
# Consecutive comment is linked to the next non-blank line.
|
|
131
|
-
#
|
|
132
|
-
# Example:
|
|
133
|
-
# 01| class A # modifier comment 1
|
|
134
|
-
# 02| def foo; end # modifier comment 2
|
|
135
|
-
# 03|
|
|
136
|
-
# 04| # consecutive comment 1 start_line: 4
|
|
137
|
-
# 05| # consecutive comment 1 linked to line: 7
|
|
138
|
-
# 06|
|
|
139
|
-
# 07| # consecutive comment 2 start_line: 7
|
|
140
|
-
# 08| # consecutive comment 2 linked to line: 10
|
|
141
|
-
# 09|
|
|
142
|
-
# 10| def bar; end # consecutive comment 2 linked to this line
|
|
143
|
-
# 11| end
|
|
144
|
-
|
|
145
|
-
def prepare_comments(comments)
|
|
146
|
-
current = []
|
|
147
|
-
consecutive_comments = [current]
|
|
148
|
-
@modifier_comments = {}
|
|
149
|
-
comments.each do |comment|
|
|
150
|
-
if comment.is_a? Prism::EmbDocComment
|
|
151
|
-
consecutive_comments << [comment] << (current = [])
|
|
152
|
-
elsif comment.location.start_line_slice.match?(/\S/)
|
|
153
|
-
@modifier_comments[comment.location.start_line] = RDoc::Comment.new(comment.slice, @top_level, :ruby)
|
|
154
|
-
elsif current.empty? || current.last.location.end_line + 1 == comment.location.start_line
|
|
155
|
-
current << comment
|
|
156
|
-
else
|
|
157
|
-
consecutive_comments << (current = [comment])
|
|
158
|
-
end
|
|
159
|
-
end
|
|
160
|
-
consecutive_comments.reject!(&:empty?)
|
|
161
|
-
|
|
162
|
-
# Example: line_no = 5, start_line = 2, comment_text = "# comment_start_line\n# comment\n"
|
|
163
|
-
# 1| class A
|
|
164
|
-
# 2| # comment_start_line
|
|
165
|
-
# 3| # comment
|
|
166
|
-
# 4|
|
|
167
|
-
# 5| def f; end # comment linked to this line
|
|
168
|
-
# 6| end
|
|
169
|
-
@unprocessed_comments = consecutive_comments.map! do |comments|
|
|
170
|
-
start_line = comments.first.location.start_line
|
|
171
|
-
line_no = comments.last.location.end_line + (comments.last.location.end_column == 0 ? 0 : 1)
|
|
172
|
-
texts = comments.map do |c|
|
|
173
|
-
c.is_a?(Prism::EmbDocComment) ? c.slice.lines[1...-1].join : c.slice
|
|
174
|
-
end
|
|
175
|
-
text = RDoc::Encoding.change_encoding(texts.join("\n"), @encoding) if @encoding
|
|
176
|
-
line_no += 1 while @lines[line_no - 1]&.match?(/\A\s*$/)
|
|
177
|
-
comment = RDoc::Comment.new(text, @top_level, :ruby)
|
|
178
|
-
comment.line = start_line
|
|
179
|
-
[line_no, start_line, comment]
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
# The first comment is special. It defines markup for the rest of the comments.
|
|
183
|
-
_, first_comment_start_line, first_comment_text = @unprocessed_comments.first
|
|
184
|
-
if first_comment_text && @lines[0...first_comment_start_line - 1].all? { |l| l.match?(/\A\s*$/) }
|
|
185
|
-
comment = RDoc::Comment.new(first_comment_text.text, @top_level, :ruby)
|
|
186
|
-
handle_consecutive_comment_directive(@container, comment)
|
|
187
|
-
@markup = comment.format
|
|
188
|
-
end
|
|
189
|
-
@unprocessed_comments.each do |_, _, comment|
|
|
190
|
-
comment.format = @markup
|
|
191
|
-
end
|
|
192
|
-
end
|
|
193
|
-
|
|
194
|
-
# Creates an RDoc::Method on +container+ from +comment+ if there is a
|
|
195
|
-
# Signature section in the comment
|
|
196
|
-
|
|
197
|
-
def parse_comment_tomdoc(container, comment, line_no, start_line)
|
|
198
|
-
return unless signature = RDoc::TomDoc.signature(comment)
|
|
199
|
-
|
|
200
|
-
name, = signature.split %r%[ \(]%, 2
|
|
201
|
-
|
|
202
|
-
meth = RDoc::GhostMethod.new comment.text, name
|
|
203
|
-
record_location(meth)
|
|
204
|
-
meth.line = start_line
|
|
205
|
-
meth.call_seq = signature
|
|
206
|
-
return unless meth.name
|
|
207
|
-
|
|
208
|
-
meth.start_collecting_tokens
|
|
209
|
-
node = @line_nodes[line_no]
|
|
210
|
-
tokens = node ? visible_tokens_from_location(node.location) : [file_line_comment_token(start_line)]
|
|
211
|
-
tokens.each { |token| meth.token_stream << token }
|
|
212
|
-
|
|
213
|
-
container.add_method meth
|
|
214
|
-
comment.remove_private
|
|
215
|
-
comment.normalize
|
|
216
|
-
meth.comment = comment
|
|
217
|
-
@stats.add_method meth
|
|
218
|
-
end
|
|
219
|
-
|
|
220
|
-
def has_modifier_nodoc?(line_no) # :nodoc:
|
|
221
|
-
@modifier_comments[line_no]&.text&.match?(/\A#\s*:nodoc:/)
|
|
222
|
-
end
|
|
223
|
-
|
|
224
|
-
def handle_modifier_directive(code_object, line_no) # :nodoc:
|
|
225
|
-
comment = @modifier_comments[line_no]
|
|
226
|
-
@preprocess.handle(comment.text, code_object) if comment
|
|
227
|
-
end
|
|
228
|
-
|
|
229
|
-
def handle_consecutive_comment_directive(code_object, comment) # :nodoc:
|
|
230
|
-
return unless comment
|
|
231
|
-
@preprocess.handle(comment, code_object) do |directive, param|
|
|
232
|
-
case directive
|
|
233
|
-
when 'method', 'singleton-method',
|
|
234
|
-
'attr', 'attr_accessor', 'attr_reader', 'attr_writer' then
|
|
235
|
-
# handled elsewhere
|
|
236
|
-
''
|
|
237
|
-
when 'section' then
|
|
238
|
-
@container.set_current_section(param, comment.dup)
|
|
239
|
-
comment.text = ''
|
|
240
|
-
break
|
|
241
|
-
end
|
|
242
|
-
end
|
|
243
|
-
comment.remove_private
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
def call_node_name_arguments(call_node) # :nodoc:
|
|
247
|
-
return [] unless call_node.arguments
|
|
248
|
-
call_node.arguments.arguments.map do |arg|
|
|
249
|
-
case arg
|
|
250
|
-
when Prism::SymbolNode
|
|
251
|
-
arg.value
|
|
252
|
-
when Prism::StringNode
|
|
253
|
-
arg.unescaped
|
|
254
|
-
end
|
|
255
|
-
end || []
|
|
256
|
-
end
|
|
257
|
-
|
|
258
|
-
# Handles meta method comments
|
|
259
|
-
|
|
260
|
-
def handle_meta_method_comment(comment, node)
|
|
261
|
-
is_call_node = node.is_a?(Prism::CallNode)
|
|
262
|
-
singleton_method = false
|
|
263
|
-
visibility = @visibility
|
|
264
|
-
attributes = rw = line_no = method_name = nil
|
|
265
|
-
|
|
266
|
-
processed_comment = comment.dup
|
|
267
|
-
@preprocess.handle(processed_comment, @container) do |directive, param, line|
|
|
268
|
-
case directive
|
|
269
|
-
when 'attr', 'attr_reader', 'attr_writer', 'attr_accessor'
|
|
270
|
-
attributes = [param] if param
|
|
271
|
-
attributes ||= call_node_name_arguments(node) if is_call_node
|
|
272
|
-
rw = directive == 'attr_writer' ? 'W' : directive == 'attr_accessor' ? 'RW' : 'R'
|
|
273
|
-
''
|
|
274
|
-
when 'method'
|
|
275
|
-
method_name = param
|
|
276
|
-
line_no = line
|
|
277
|
-
''
|
|
278
|
-
when 'singleton-method'
|
|
279
|
-
method_name = param
|
|
280
|
-
line_no = line
|
|
281
|
-
singleton_method = true
|
|
282
|
-
visibility = :public
|
|
283
|
-
''
|
|
284
|
-
when 'section' then
|
|
285
|
-
@container.set_current_section(param, comment.dup)
|
|
286
|
-
return # If the comment contains :section:, it is not a meta method comment
|
|
287
|
-
end
|
|
288
|
-
end
|
|
289
|
-
|
|
290
|
-
if attributes
|
|
291
|
-
attributes.each do |attr|
|
|
292
|
-
a = RDoc::Attr.new(@container, attr, rw, processed_comment, singleton: @singleton)
|
|
293
|
-
a.store = @store
|
|
294
|
-
a.line = line_no
|
|
295
|
-
record_location(a)
|
|
296
|
-
@container.add_attribute(a)
|
|
297
|
-
a.visibility = visibility
|
|
298
|
-
end
|
|
299
|
-
elsif line_no || node
|
|
300
|
-
method_name ||= call_node_name_arguments(node).first if is_call_node
|
|
301
|
-
meth = RDoc::AnyMethod.new(@container, method_name, singleton: @singleton || singleton_method)
|
|
302
|
-
handle_consecutive_comment_directive(meth, comment)
|
|
303
|
-
comment.normalize
|
|
304
|
-
meth.call_seq = comment.extract_call_seq
|
|
305
|
-
meth.comment = comment
|
|
306
|
-
if node
|
|
307
|
-
tokens = visible_tokens_from_location(node.location)
|
|
308
|
-
line_no = node.location.start_line
|
|
309
|
-
else
|
|
310
|
-
tokens = [file_line_comment_token(line_no)]
|
|
311
|
-
end
|
|
312
|
-
internal_add_method(
|
|
313
|
-
@container,
|
|
314
|
-
meth,
|
|
315
|
-
line_no: line_no,
|
|
316
|
-
visibility: visibility,
|
|
317
|
-
params: '()',
|
|
318
|
-
calls_super: false,
|
|
319
|
-
block_params: nil,
|
|
320
|
-
tokens: tokens
|
|
321
|
-
)
|
|
322
|
-
end
|
|
323
|
-
end
|
|
324
|
-
|
|
325
|
-
def normal_comment_treat_as_ghost_method_for_now?(comment_text, line_no) # :nodoc:
|
|
326
|
-
# Meta method comment should start with `##` but some comments does not follow this rule.
|
|
327
|
-
# For now, RDoc accepts them as a meta method comment if there is no node linked to it.
|
|
328
|
-
!@line_nodes[line_no] && comment_text.match?(/^#\s+:(method|singleton-method|attr|attr_reader|attr_writer|attr_accessor):/)
|
|
329
|
-
end
|
|
330
|
-
|
|
331
|
-
def handle_standalone_consecutive_comment_directive(comment, line_no, start_line) # :nodoc:
|
|
332
|
-
if @markup == 'tomdoc'
|
|
333
|
-
parse_comment_tomdoc(@container, comment, line_no, start_line)
|
|
334
|
-
return
|
|
335
|
-
end
|
|
336
|
-
|
|
337
|
-
if comment.text =~ /\A#\#$/ && comment != @first_non_meta_comment
|
|
338
|
-
node = @line_nodes[line_no]
|
|
339
|
-
handle_meta_method_comment(comment, node)
|
|
340
|
-
elsif normal_comment_treat_as_ghost_method_for_now?(comment.text, line_no) && comment != @first_non_meta_comment
|
|
341
|
-
handle_meta_method_comment(comment, nil)
|
|
342
|
-
else
|
|
343
|
-
handle_consecutive_comment_directive(@container, comment)
|
|
344
|
-
end
|
|
345
|
-
end
|
|
346
|
-
|
|
347
|
-
# Processes consecutive comments that were not linked to any documentable code until the given line number
|
|
348
|
-
|
|
349
|
-
def process_comments_until(line_no_until)
|
|
350
|
-
while !@unprocessed_comments.empty? && @unprocessed_comments.first[0] <= line_no_until
|
|
351
|
-
line_no, start_line, rdoc_comment = @unprocessed_comments.shift
|
|
352
|
-
handle_standalone_consecutive_comment_directive(rdoc_comment, line_no, start_line)
|
|
353
|
-
end
|
|
354
|
-
end
|
|
355
|
-
|
|
356
|
-
# Skips all undocumentable consecutive comments until the given line number.
|
|
357
|
-
# Undocumentable comments are comments written inside `def` or inside undocumentable class/module
|
|
358
|
-
|
|
359
|
-
def skip_comments_until(line_no_until)
|
|
360
|
-
while !@unprocessed_comments.empty? && @unprocessed_comments.first[0] <= line_no_until
|
|
361
|
-
@unprocessed_comments.shift
|
|
362
|
-
end
|
|
363
|
-
end
|
|
364
|
-
|
|
365
|
-
# Returns consecutive comment linked to the given line number
|
|
366
|
-
|
|
367
|
-
def consecutive_comment(line_no)
|
|
368
|
-
if @unprocessed_comments.first&.first == line_no
|
|
369
|
-
@unprocessed_comments.shift.last
|
|
370
|
-
end
|
|
371
|
-
end
|
|
372
|
-
|
|
373
|
-
def slice_tokens(start_pos, end_pos) # :nodoc:
|
|
374
|
-
start_index = @tokens.bsearch_index { |t| ([t.line_no, t.char_no] <=> start_pos) >= 0 }
|
|
375
|
-
end_index = @tokens.bsearch_index { |t| ([t.line_no, t.char_no] <=> end_pos) >= 0 }
|
|
376
|
-
tokens = @tokens[start_index...end_index]
|
|
377
|
-
tokens.pop if tokens.last&.kind == :on_nl
|
|
378
|
-
tokens
|
|
379
|
-
end
|
|
380
|
-
|
|
381
|
-
def file_line_comment_token(line_no) # :nodoc:
|
|
382
|
-
position_comment = RDoc::Parser::RipperStateLex::Token.new(line_no - 1, 0, :on_comment)
|
|
383
|
-
position_comment[:text] = "# File #{@top_level.relative_name}, line #{line_no}"
|
|
384
|
-
position_comment
|
|
385
|
-
end
|
|
386
|
-
|
|
387
|
-
# Returns tokens from the given location
|
|
388
|
-
|
|
389
|
-
def visible_tokens_from_location(location)
|
|
390
|
-
position_comment = file_line_comment_token(location.start_line)
|
|
391
|
-
newline_token = RDoc::Parser::RipperStateLex::Token.new(0, 0, :on_nl, "\n")
|
|
392
|
-
indent_token = RDoc::Parser::RipperStateLex::Token.new(location.start_line, 0, :on_sp, ' ' * location.start_character_column)
|
|
393
|
-
tokens = slice_tokens(
|
|
394
|
-
[location.start_line, location.start_character_column],
|
|
395
|
-
[location.end_line, location.end_character_column]
|
|
396
|
-
)
|
|
397
|
-
[position_comment, newline_token, indent_token, *tokens]
|
|
398
|
-
end
|
|
399
|
-
|
|
400
|
-
# Handles `public :foo, :bar` `private :foo, :bar` and `protected :foo, :bar`
|
|
401
|
-
|
|
402
|
-
def change_method_visibility(names, visibility, singleton: @singleton)
|
|
403
|
-
new_methods = []
|
|
404
|
-
@container.methods_matching(names, singleton) do |m|
|
|
405
|
-
if m.parent != @container
|
|
406
|
-
m = m.dup
|
|
407
|
-
record_location(m)
|
|
408
|
-
new_methods << m
|
|
409
|
-
else
|
|
410
|
-
m.visibility = visibility
|
|
411
|
-
end
|
|
412
|
-
end
|
|
413
|
-
new_methods.each do |method|
|
|
414
|
-
case method
|
|
415
|
-
when RDoc::AnyMethod then
|
|
416
|
-
@container.add_method(method)
|
|
417
|
-
when RDoc::Attr then
|
|
418
|
-
@container.add_attribute(method)
|
|
419
|
-
end
|
|
420
|
-
method.visibility = visibility
|
|
421
|
-
end
|
|
422
|
-
end
|
|
423
|
-
|
|
424
|
-
# Handles `module_function :foo, :bar`
|
|
425
|
-
|
|
426
|
-
def change_method_to_module_function(names)
|
|
427
|
-
@container.set_visibility_for(names, :private, false)
|
|
428
|
-
new_methods = []
|
|
429
|
-
@container.methods_matching(names) do |m|
|
|
430
|
-
s_m = m.dup
|
|
431
|
-
record_location(s_m)
|
|
432
|
-
s_m.singleton = true
|
|
433
|
-
new_methods << s_m
|
|
434
|
-
end
|
|
435
|
-
new_methods.each do |method|
|
|
436
|
-
case method
|
|
437
|
-
when RDoc::AnyMethod then
|
|
438
|
-
@container.add_method(method)
|
|
439
|
-
when RDoc::Attr then
|
|
440
|
-
@container.add_attribute(method)
|
|
441
|
-
end
|
|
442
|
-
method.visibility = :public
|
|
443
|
-
end
|
|
444
|
-
end
|
|
445
|
-
|
|
446
|
-
# Handles `alias foo bar` and `alias_method :foo, :bar`
|
|
447
|
-
|
|
448
|
-
def add_alias_method(old_name, new_name, line_no)
|
|
449
|
-
comment = consecutive_comment(line_no)
|
|
450
|
-
handle_consecutive_comment_directive(@container, comment)
|
|
451
|
-
visibility = @container.find_method(old_name, @singleton)&.visibility || :public
|
|
452
|
-
a = RDoc::Alias.new(nil, old_name, new_name, comment, singleton: @singleton)
|
|
453
|
-
handle_modifier_directive(a, line_no)
|
|
454
|
-
a.store = @store
|
|
455
|
-
a.line = line_no
|
|
456
|
-
record_location(a)
|
|
457
|
-
if should_document?(a)
|
|
458
|
-
@container.add_alias(a)
|
|
459
|
-
@container.find_method(new_name, @singleton)&.visibility = visibility
|
|
460
|
-
end
|
|
461
|
-
end
|
|
462
|
-
|
|
463
|
-
# Handles `attr :a, :b`, `attr_reader :a, :b`, `attr_writer :a, :b` and `attr_accessor :a, :b`
|
|
464
|
-
|
|
465
|
-
def add_attributes(names, rw, line_no)
|
|
466
|
-
comment = consecutive_comment(line_no)
|
|
467
|
-
handle_consecutive_comment_directive(@container, comment)
|
|
468
|
-
return unless @container.document_children
|
|
469
|
-
|
|
470
|
-
names.each do |symbol|
|
|
471
|
-
a = RDoc::Attr.new(nil, symbol.to_s, rw, comment, singleton: @singleton)
|
|
472
|
-
a.store = @store
|
|
473
|
-
a.line = line_no
|
|
474
|
-
record_location(a)
|
|
475
|
-
handle_modifier_directive(a, line_no)
|
|
476
|
-
@container.add_attribute(a) if should_document?(a)
|
|
477
|
-
a.visibility = visibility # should set after adding to container
|
|
478
|
-
end
|
|
479
|
-
end
|
|
480
|
-
|
|
481
|
-
def add_includes_extends(names, rdoc_class, line_no) # :nodoc:
|
|
482
|
-
return if @in_proc_block
|
|
483
|
-
comment = consecutive_comment(line_no)
|
|
484
|
-
handle_consecutive_comment_directive(@container, comment)
|
|
485
|
-
names.each do |name|
|
|
486
|
-
ie = @container.add(rdoc_class, name, '')
|
|
487
|
-
ie.store = @store
|
|
488
|
-
ie.line = line_no
|
|
489
|
-
ie.comment = comment
|
|
490
|
-
record_location(ie)
|
|
491
|
-
end
|
|
492
|
-
end
|
|
493
|
-
|
|
494
|
-
# Handle `include Foo, Bar`
|
|
495
|
-
|
|
496
|
-
def add_includes(names, line_no) # :nodoc:
|
|
497
|
-
add_includes_extends(names, RDoc::Include, line_no)
|
|
498
|
-
end
|
|
499
|
-
|
|
500
|
-
# Handle `extend Foo, Bar`
|
|
501
|
-
|
|
502
|
-
def add_extends(names, line_no) # :nodoc:
|
|
503
|
-
add_includes_extends(names, RDoc::Extend, line_no)
|
|
504
|
-
end
|
|
505
|
-
|
|
506
|
-
# Adds a method defined by `def` syntax
|
|
507
|
-
|
|
508
|
-
def add_method(name, receiver_name:, receiver_fallback_type:, visibility:, singleton:, params:, calls_super:, block_params:, tokens:, start_line:, args_end_line:, end_line:)
|
|
509
|
-
return if @in_proc_block
|
|
510
|
-
|
|
511
|
-
receiver = receiver_name ? find_or_create_module_path(receiver_name, receiver_fallback_type) : @container
|
|
512
|
-
meth = RDoc::AnyMethod.new(nil, name, singleton: singleton)
|
|
513
|
-
if (comment = consecutive_comment(start_line))
|
|
514
|
-
handle_consecutive_comment_directive(@container, comment)
|
|
515
|
-
handle_consecutive_comment_directive(meth, comment)
|
|
516
|
-
|
|
517
|
-
comment.normalize
|
|
518
|
-
meth.call_seq = comment.extract_call_seq
|
|
519
|
-
meth.comment = comment
|
|
520
|
-
end
|
|
521
|
-
handle_modifier_directive(meth, start_line)
|
|
522
|
-
handle_modifier_directive(meth, args_end_line)
|
|
523
|
-
handle_modifier_directive(meth, end_line)
|
|
524
|
-
return unless should_document?(meth)
|
|
525
|
-
|
|
526
|
-
internal_add_method(
|
|
527
|
-
receiver,
|
|
528
|
-
meth,
|
|
529
|
-
line_no: start_line,
|
|
530
|
-
visibility: visibility,
|
|
531
|
-
params: params,
|
|
532
|
-
calls_super: calls_super,
|
|
533
|
-
block_params: block_params,
|
|
534
|
-
tokens: tokens
|
|
535
|
-
)
|
|
536
|
-
|
|
537
|
-
# Rename after add_method to register duplicated 'new' and 'initialize'
|
|
538
|
-
# defined in c and ruby just like the old parser did.
|
|
539
|
-
if meth.name == 'initialize' && !singleton
|
|
540
|
-
if meth.dont_rename_initialize
|
|
541
|
-
meth.visibility = :protected
|
|
542
|
-
else
|
|
543
|
-
meth.name = 'new'
|
|
544
|
-
meth.singleton = true
|
|
545
|
-
meth.visibility = :public
|
|
546
|
-
end
|
|
547
|
-
end
|
|
548
|
-
end
|
|
549
|
-
|
|
550
|
-
private def internal_add_method(container, meth, line_no:, visibility:, params:, calls_super:, block_params:, tokens:) # :nodoc:
|
|
551
|
-
meth.name ||= meth.call_seq[/\A[^()\s]+/] if meth.call_seq
|
|
552
|
-
meth.name ||= 'unknown'
|
|
553
|
-
meth.store = @store
|
|
554
|
-
meth.line = line_no
|
|
555
|
-
container.add_method(meth) # should add after setting singleton and before setting visibility
|
|
556
|
-
meth.visibility = visibility
|
|
557
|
-
meth.params ||= params
|
|
558
|
-
meth.calls_super = calls_super
|
|
559
|
-
meth.block_params ||= block_params if block_params
|
|
560
|
-
record_location(meth)
|
|
561
|
-
meth.start_collecting_tokens
|
|
562
|
-
tokens.each do |token|
|
|
563
|
-
meth.token_stream << token
|
|
564
|
-
end
|
|
565
|
-
end
|
|
566
|
-
|
|
567
|
-
# Find or create module or class from a given module name.
|
|
568
|
-
# If module or class does not exist, creates a module or a class according to `create_mode` argument.
|
|
569
|
-
|
|
570
|
-
def find_or_create_module_path(module_name, create_mode)
|
|
571
|
-
root_name, *path, name = module_name.split('::')
|
|
572
|
-
add_module = ->(mod, name, mode) {
|
|
573
|
-
case mode
|
|
574
|
-
when :class
|
|
575
|
-
mod.add_class(RDoc::NormalClass, name, 'Object').tap { |m| m.store = @store }
|
|
576
|
-
when :module
|
|
577
|
-
mod.add_module(RDoc::NormalModule, name).tap { |m| m.store = @store }
|
|
578
|
-
end
|
|
579
|
-
}
|
|
580
|
-
if root_name.empty?
|
|
581
|
-
mod = @top_level
|
|
582
|
-
else
|
|
583
|
-
@module_nesting.reverse_each do |nesting, singleton|
|
|
584
|
-
next if singleton
|
|
585
|
-
mod = nesting.find_module_named(root_name)
|
|
586
|
-
break if mod
|
|
587
|
-
# If a constant is found and it is not a module or class, RDoc can't document about it.
|
|
588
|
-
# Return an anonymous module to avoid wrong document creation.
|
|
589
|
-
return RDoc::NormalModule.new(nil) if nesting.find_constant_named(root_name)
|
|
590
|
-
end
|
|
591
|
-
last_nesting, = @module_nesting.reverse_each.find { |_, singleton| !singleton }
|
|
592
|
-
return mod || add_module.call(last_nesting, root_name, create_mode) unless name
|
|
593
|
-
mod ||= add_module.call(last_nesting, root_name, :module)
|
|
594
|
-
end
|
|
595
|
-
path.each do |name|
|
|
596
|
-
mod = mod.find_module_named(name) || add_module.call(mod, name, :module)
|
|
597
|
-
end
|
|
598
|
-
mod.find_module_named(name) || add_module.call(mod, name, create_mode)
|
|
599
|
-
end
|
|
600
|
-
|
|
601
|
-
# Resolves constant path to a full path by searching module nesting
|
|
602
|
-
|
|
603
|
-
def resolve_constant_path(constant_path)
|
|
604
|
-
owner_name, path = constant_path.split('::', 2)
|
|
605
|
-
return constant_path if owner_name.empty? # ::Foo, ::Foo::Bar
|
|
606
|
-
mod = nil
|
|
607
|
-
@module_nesting.reverse_each do |nesting, singleton|
|
|
608
|
-
next if singleton
|
|
609
|
-
mod = nesting.find_module_named(owner_name)
|
|
610
|
-
break if mod
|
|
611
|
-
end
|
|
612
|
-
mod ||= @top_level.find_module_named(owner_name)
|
|
613
|
-
[mod.full_name, path].compact.join('::') if mod
|
|
614
|
-
end
|
|
615
|
-
|
|
616
|
-
# Returns a pair of owner module and constant name from a given constant path.
|
|
617
|
-
# Creates owner module if it does not exist.
|
|
618
|
-
|
|
619
|
-
def find_or_create_constant_owner_name(constant_path)
|
|
620
|
-
const_path, colon, name = constant_path.rpartition('::')
|
|
621
|
-
if colon.empty? # class Foo
|
|
622
|
-
# Within `class C` or `module C`, owner is C(== current container)
|
|
623
|
-
# Within `class <<C`, owner is C.singleton_class
|
|
624
|
-
# but RDoc don't track constants of a singleton class of module
|
|
625
|
-
[(@singleton ? nil : @container), name]
|
|
626
|
-
elsif const_path.empty? # class ::Foo
|
|
627
|
-
[@top_level, name]
|
|
628
|
-
else # `class Foo::Bar` or `class ::Foo::Bar`
|
|
629
|
-
[find_or_create_module_path(const_path, :module), name]
|
|
630
|
-
end
|
|
631
|
-
end
|
|
632
|
-
|
|
633
|
-
# Adds a constant
|
|
634
|
-
|
|
635
|
-
def add_constant(constant_name, rhs_name, start_line, end_line)
|
|
636
|
-
comment = consecutive_comment(start_line)
|
|
637
|
-
handle_consecutive_comment_directive(@container, comment)
|
|
638
|
-
owner, name = find_or_create_constant_owner_name(constant_name)
|
|
639
|
-
return unless owner
|
|
640
|
-
|
|
641
|
-
constant = RDoc::Constant.new(name, rhs_name, comment)
|
|
642
|
-
constant.store = @store
|
|
643
|
-
constant.line = start_line
|
|
644
|
-
record_location(constant)
|
|
645
|
-
handle_modifier_directive(constant, start_line)
|
|
646
|
-
handle_modifier_directive(constant, end_line)
|
|
647
|
-
owner.add_constant(constant)
|
|
648
|
-
mod =
|
|
649
|
-
if rhs_name =~ /^::/
|
|
650
|
-
@store.find_class_or_module(rhs_name)
|
|
651
|
-
else
|
|
652
|
-
@container.find_module_named(rhs_name)
|
|
653
|
-
end
|
|
654
|
-
if mod && constant.document_self
|
|
655
|
-
a = @container.add_module_alias(mod, rhs_name, constant, @top_level)
|
|
656
|
-
a.store = @store
|
|
657
|
-
a.line = start_line
|
|
658
|
-
record_location(a)
|
|
659
|
-
end
|
|
660
|
-
end
|
|
661
|
-
|
|
662
|
-
# Adds module or class
|
|
663
|
-
|
|
664
|
-
def add_module_or_class(module_name, start_line, end_line, is_class: false, superclass_name: nil, superclass_expr: nil)
|
|
665
|
-
comment = consecutive_comment(start_line)
|
|
666
|
-
handle_consecutive_comment_directive(@container, comment)
|
|
667
|
-
return unless @container.document_children
|
|
668
|
-
|
|
669
|
-
owner, name = find_or_create_constant_owner_name(module_name)
|
|
670
|
-
return unless owner
|
|
671
|
-
|
|
672
|
-
if is_class
|
|
673
|
-
# RDoc::NormalClass resolves superclass name despite of the lack of module nesting information.
|
|
674
|
-
# We need to fix it when RDoc::NormalClass resolved to a wrong constant name
|
|
675
|
-
if superclass_name
|
|
676
|
-
superclass_full_path = resolve_constant_path(superclass_name)
|
|
677
|
-
superclass = @store.find_class_or_module(superclass_full_path) if superclass_full_path
|
|
678
|
-
superclass_full_path ||= superclass_name
|
|
679
|
-
superclass_full_path = superclass_full_path.sub(/^::/, '')
|
|
680
|
-
end
|
|
681
|
-
# add_class should be done after resolving superclass
|
|
682
|
-
mod = owner.classes_hash[name] || owner.add_class(RDoc::NormalClass, name, superclass_name || superclass_expr || '::Object')
|
|
683
|
-
if superclass_name
|
|
684
|
-
if superclass
|
|
685
|
-
mod.superclass = superclass
|
|
686
|
-
elsif (mod.superclass.is_a?(String) || mod.superclass.name == 'Object') && mod.superclass != superclass_full_path
|
|
687
|
-
mod.superclass = superclass_full_path
|
|
688
|
-
end
|
|
689
|
-
end
|
|
690
|
-
else
|
|
691
|
-
mod = owner.modules_hash[name] || owner.add_module(RDoc::NormalModule, name)
|
|
692
|
-
end
|
|
693
|
-
|
|
694
|
-
mod.store = @store
|
|
695
|
-
mod.line = start_line
|
|
696
|
-
record_location(mod)
|
|
697
|
-
handle_modifier_directive(mod, start_line)
|
|
698
|
-
handle_modifier_directive(mod, end_line)
|
|
699
|
-
mod.add_comment(comment, @top_level) if comment
|
|
700
|
-
mod
|
|
701
|
-
end
|
|
702
|
-
|
|
703
|
-
class RDocVisitor < Prism::Visitor # :nodoc:
|
|
704
|
-
def initialize(scanner, top_level, store)
|
|
705
|
-
@scanner = scanner
|
|
706
|
-
@top_level = top_level
|
|
707
|
-
@store = store
|
|
708
|
-
end
|
|
709
|
-
|
|
710
|
-
def visit_if_node(node)
|
|
711
|
-
if node.end_keyword
|
|
712
|
-
super
|
|
713
|
-
else
|
|
714
|
-
# Visit with the order in text representation to handle this method comment
|
|
715
|
-
# # comment
|
|
716
|
-
# def f
|
|
717
|
-
# end if call_node
|
|
718
|
-
node.statements.accept(self)
|
|
719
|
-
node.predicate.accept(self)
|
|
720
|
-
end
|
|
721
|
-
end
|
|
722
|
-
alias visit_unless_node visit_if_node
|
|
723
|
-
|
|
724
|
-
def visit_call_node(node)
|
|
725
|
-
@scanner.process_comments_until(node.location.start_line - 1)
|
|
726
|
-
if node.receiver.nil?
|
|
727
|
-
case node.name
|
|
728
|
-
when :attr
|
|
729
|
-
_visit_call_attr_reader_writer_accessor(node, 'R')
|
|
730
|
-
when :attr_reader
|
|
731
|
-
_visit_call_attr_reader_writer_accessor(node, 'R')
|
|
732
|
-
when :attr_writer
|
|
733
|
-
_visit_call_attr_reader_writer_accessor(node, 'W')
|
|
734
|
-
when :attr_accessor
|
|
735
|
-
_visit_call_attr_reader_writer_accessor(node, 'RW')
|
|
736
|
-
when :include
|
|
737
|
-
_visit_call_include(node)
|
|
738
|
-
when :extend
|
|
739
|
-
_visit_call_extend(node)
|
|
740
|
-
when :public
|
|
741
|
-
_visit_call_public_private_protected(node, :public) { super }
|
|
742
|
-
when :private
|
|
743
|
-
_visit_call_public_private_protected(node, :private) { super }
|
|
744
|
-
when :protected
|
|
745
|
-
_visit_call_public_private_protected(node, :protected) { super }
|
|
746
|
-
when :private_constant
|
|
747
|
-
_visit_call_private_constant(node)
|
|
748
|
-
when :public_constant
|
|
749
|
-
_visit_call_public_constant(node)
|
|
750
|
-
when :require
|
|
751
|
-
_visit_call_require(node)
|
|
752
|
-
when :alias_method
|
|
753
|
-
_visit_call_alias_method(node)
|
|
754
|
-
when :module_function
|
|
755
|
-
_visit_call_module_function(node) { super }
|
|
756
|
-
when :public_class_method
|
|
757
|
-
_visit_call_public_private_class_method(node, :public) { super }
|
|
758
|
-
when :private_class_method
|
|
759
|
-
_visit_call_public_private_class_method(node, :private) { super }
|
|
760
|
-
else
|
|
761
|
-
node.arguments&.accept(self)
|
|
762
|
-
super
|
|
763
|
-
end
|
|
764
|
-
else
|
|
765
|
-
super
|
|
766
|
-
end
|
|
767
|
-
end
|
|
768
|
-
|
|
769
|
-
def visit_block_node(node)
|
|
770
|
-
@scanner.with_in_proc_block do
|
|
771
|
-
# include, extend and method definition inside block are not documentable
|
|
772
|
-
super
|
|
773
|
-
end
|
|
774
|
-
end
|
|
775
|
-
|
|
776
|
-
def visit_alias_method_node(node)
|
|
777
|
-
@scanner.process_comments_until(node.location.start_line - 1)
|
|
778
|
-
return unless node.old_name.is_a?(Prism::SymbolNode) && node.new_name.is_a?(Prism::SymbolNode)
|
|
779
|
-
@scanner.add_alias_method(node.old_name.value.to_s, node.new_name.value.to_s, node.location.start_line)
|
|
780
|
-
end
|
|
781
|
-
|
|
782
|
-
def visit_module_node(node)
|
|
783
|
-
node.constant_path.accept(self)
|
|
784
|
-
@scanner.process_comments_until(node.location.start_line - 1)
|
|
785
|
-
module_name = constant_path_string(node.constant_path)
|
|
786
|
-
mod = @scanner.add_module_or_class(module_name, node.location.start_line, node.location.end_line) if module_name
|
|
787
|
-
if mod
|
|
788
|
-
@scanner.with_container(mod) do
|
|
789
|
-
node.body&.accept(self)
|
|
790
|
-
@scanner.process_comments_until(node.location.end_line)
|
|
791
|
-
end
|
|
792
|
-
else
|
|
793
|
-
@scanner.skip_comments_until(node.location.end_line)
|
|
794
|
-
end
|
|
795
|
-
end
|
|
796
|
-
|
|
797
|
-
def visit_class_node(node)
|
|
798
|
-
node.constant_path.accept(self)
|
|
799
|
-
node.superclass&.accept(self)
|
|
800
|
-
@scanner.process_comments_until(node.location.start_line - 1)
|
|
801
|
-
superclass_name = constant_path_string(node.superclass) if node.superclass
|
|
802
|
-
superclass_expr = node.superclass.slice if node.superclass && !superclass_name
|
|
803
|
-
class_name = constant_path_string(node.constant_path)
|
|
804
|
-
klass = @scanner.add_module_or_class(class_name, node.location.start_line, node.location.end_line, is_class: true, superclass_name: superclass_name, superclass_expr: superclass_expr) if class_name
|
|
805
|
-
if klass
|
|
806
|
-
@scanner.with_container(klass) do
|
|
807
|
-
node.body&.accept(self)
|
|
808
|
-
@scanner.process_comments_until(node.location.end_line)
|
|
809
|
-
end
|
|
810
|
-
else
|
|
811
|
-
@scanner.skip_comments_until(node.location.end_line)
|
|
812
|
-
end
|
|
813
|
-
end
|
|
814
|
-
|
|
815
|
-
def visit_singleton_class_node(node)
|
|
816
|
-
@scanner.process_comments_until(node.location.start_line - 1)
|
|
817
|
-
|
|
818
|
-
if @scanner.has_modifier_nodoc?(node.location.start_line)
|
|
819
|
-
# Skip visiting inside the singleton class. Also skips creation of node.expression as a module
|
|
820
|
-
@scanner.skip_comments_until(node.location.end_line)
|
|
821
|
-
return
|
|
822
|
-
end
|
|
823
|
-
|
|
824
|
-
expression = node.expression
|
|
825
|
-
expression = expression.body.body.first if expression.is_a?(Prism::ParenthesesNode) && expression.body&.body&.size == 1
|
|
826
|
-
|
|
827
|
-
case expression
|
|
828
|
-
when Prism::ConstantWriteNode
|
|
829
|
-
# Accept `class << (NameErrorCheckers = Object.new)` as a module which is not actually a module
|
|
830
|
-
mod = @scanner.container.add_module(RDoc::NormalModule, expression.name.to_s)
|
|
831
|
-
when Prism::ConstantPathNode, Prism::ConstantReadNode
|
|
832
|
-
expression_name = constant_path_string(expression)
|
|
833
|
-
# If a constant_path does not exist, RDoc creates a module
|
|
834
|
-
mod = @scanner.find_or_create_module_path(expression_name, :module) if expression_name
|
|
835
|
-
when Prism::SelfNode
|
|
836
|
-
mod = @scanner.container if @scanner.container != @top_level
|
|
837
|
-
end
|
|
838
|
-
expression.accept(self)
|
|
839
|
-
if mod
|
|
840
|
-
@scanner.with_container(mod, singleton: true) do
|
|
841
|
-
node.body&.accept(self)
|
|
842
|
-
@scanner.process_comments_until(node.location.end_line)
|
|
843
|
-
end
|
|
844
|
-
else
|
|
845
|
-
@scanner.skip_comments_until(node.location.end_line)
|
|
846
|
-
end
|
|
847
|
-
end
|
|
848
|
-
|
|
849
|
-
def visit_def_node(node)
|
|
850
|
-
start_line = node.location.start_line
|
|
851
|
-
args_end_line = node.parameters&.location&.end_line || start_line
|
|
852
|
-
end_line = node.location.end_line
|
|
853
|
-
@scanner.process_comments_until(start_line - 1)
|
|
854
|
-
|
|
855
|
-
case node.receiver
|
|
856
|
-
when Prism::NilNode, Prism::TrueNode, Prism::FalseNode
|
|
857
|
-
visibility = :public
|
|
858
|
-
singleton = false
|
|
859
|
-
receiver_name =
|
|
860
|
-
case node.receiver
|
|
861
|
-
when Prism::NilNode
|
|
862
|
-
'NilClass'
|
|
863
|
-
when Prism::TrueNode
|
|
864
|
-
'TrueClass'
|
|
865
|
-
when Prism::FalseNode
|
|
866
|
-
'FalseClass'
|
|
867
|
-
end
|
|
868
|
-
receiver_fallback_type = :class
|
|
869
|
-
when Prism::SelfNode
|
|
870
|
-
# singleton method of a singleton class is not documentable
|
|
871
|
-
return if @scanner.singleton
|
|
872
|
-
visibility = :public
|
|
873
|
-
singleton = true
|
|
874
|
-
when Prism::ConstantReadNode, Prism::ConstantPathNode
|
|
875
|
-
visibility = :public
|
|
876
|
-
singleton = true
|
|
877
|
-
receiver_name = constant_path_string(node.receiver)
|
|
878
|
-
receiver_fallback_type = :module
|
|
879
|
-
return unless receiver_name
|
|
880
|
-
when nil
|
|
881
|
-
visibility = @scanner.visibility
|
|
882
|
-
singleton = @scanner.singleton
|
|
883
|
-
else
|
|
884
|
-
# `def (unknown expression).method_name` is not documentable
|
|
885
|
-
return
|
|
886
|
-
end
|
|
887
|
-
name = node.name.to_s
|
|
888
|
-
params, block_params, calls_super = MethodSignatureVisitor.scan_signature(node)
|
|
889
|
-
tokens = @scanner.visible_tokens_from_location(node.location)
|
|
890
|
-
|
|
891
|
-
@scanner.add_method(
|
|
892
|
-
name,
|
|
893
|
-
receiver_name: receiver_name,
|
|
894
|
-
receiver_fallback_type: receiver_fallback_type,
|
|
895
|
-
visibility: visibility,
|
|
896
|
-
singleton: singleton,
|
|
897
|
-
params: params,
|
|
898
|
-
block_params: block_params,
|
|
899
|
-
calls_super: calls_super,
|
|
900
|
-
tokens: tokens,
|
|
901
|
-
start_line: start_line,
|
|
902
|
-
args_end_line: args_end_line,
|
|
903
|
-
end_line: end_line
|
|
904
|
-
)
|
|
905
|
-
ensure
|
|
906
|
-
@scanner.skip_comments_until(end_line)
|
|
907
|
-
end
|
|
908
|
-
|
|
909
|
-
def visit_constant_path_write_node(node)
|
|
910
|
-
@scanner.process_comments_until(node.location.start_line - 1)
|
|
911
|
-
path = constant_path_string(node.target)
|
|
912
|
-
return unless path
|
|
913
|
-
|
|
914
|
-
@scanner.add_constant(
|
|
915
|
-
path,
|
|
916
|
-
constant_path_string(node.value) || node.value.slice,
|
|
917
|
-
node.location.start_line,
|
|
918
|
-
node.location.end_line
|
|
919
|
-
)
|
|
920
|
-
@scanner.skip_comments_until(node.location.end_line)
|
|
921
|
-
# Do not traverse rhs not to document `A::B = Struct.new{def undocumentable_method; end}`
|
|
922
|
-
end
|
|
923
|
-
|
|
924
|
-
def visit_constant_write_node(node)
|
|
925
|
-
@scanner.process_comments_until(node.location.start_line - 1)
|
|
926
|
-
@scanner.add_constant(
|
|
927
|
-
node.name.to_s,
|
|
928
|
-
constant_path_string(node.value) || node.value.slice,
|
|
929
|
-
node.location.start_line,
|
|
930
|
-
node.location.end_line
|
|
931
|
-
)
|
|
932
|
-
@scanner.skip_comments_until(node.location.end_line)
|
|
933
|
-
# Do not traverse rhs not to document `A = Struct.new{def undocumentable_method; end}`
|
|
934
|
-
end
|
|
935
|
-
|
|
936
|
-
private
|
|
937
|
-
|
|
938
|
-
def constant_arguments_names(call_node)
|
|
939
|
-
return unless call_node.arguments
|
|
940
|
-
names = call_node.arguments.arguments.map { |arg| constant_path_string(arg) }
|
|
941
|
-
names.all? ? names : nil
|
|
942
|
-
end
|
|
943
|
-
|
|
944
|
-
def symbol_arguments(call_node)
|
|
945
|
-
arguments_node = call_node.arguments
|
|
946
|
-
return unless arguments_node && arguments_node.arguments.all? { |arg| arg.is_a?(Prism::SymbolNode)}
|
|
947
|
-
arguments_node.arguments.map { |arg| arg.value.to_sym }
|
|
948
|
-
end
|
|
949
|
-
|
|
950
|
-
def visibility_method_arguments(call_node, singleton:)
|
|
951
|
-
arguments_node = call_node.arguments
|
|
952
|
-
return unless arguments_node
|
|
953
|
-
symbols = symbol_arguments(call_node)
|
|
954
|
-
if symbols
|
|
955
|
-
# module_function :foo, :bar
|
|
956
|
-
return symbols.map(&:to_s)
|
|
957
|
-
else
|
|
958
|
-
return unless arguments_node.arguments.size == 1
|
|
959
|
-
arg = arguments_node.arguments.first
|
|
960
|
-
return unless arg.is_a?(Prism::DefNode)
|
|
961
|
-
|
|
962
|
-
if singleton
|
|
963
|
-
# `private_class_method def foo; end` `private_class_method def not_self.foo; end` should be ignored
|
|
964
|
-
return unless arg.receiver.is_a?(Prism::SelfNode)
|
|
965
|
-
else
|
|
966
|
-
# `module_function def something.foo` should be ignored
|
|
967
|
-
return if arg.receiver
|
|
968
|
-
end
|
|
969
|
-
# `module_function def foo; end` or `private_class_method def self.foo; end`
|
|
970
|
-
[arg.name.to_s]
|
|
971
|
-
end
|
|
972
|
-
end
|
|
973
|
-
|
|
974
|
-
def constant_path_string(node)
|
|
975
|
-
case node
|
|
976
|
-
when Prism::ConstantReadNode
|
|
977
|
-
node.name.to_s
|
|
978
|
-
when Prism::ConstantPathNode
|
|
979
|
-
parent_name = node.parent ? constant_path_string(node.parent) : ''
|
|
980
|
-
"#{parent_name}::#{node.name}" if parent_name
|
|
981
|
-
end
|
|
982
|
-
end
|
|
983
|
-
|
|
984
|
-
def _visit_call_require(call_node)
|
|
985
|
-
return unless call_node.arguments&.arguments&.size == 1
|
|
986
|
-
arg = call_node.arguments.arguments.first
|
|
987
|
-
return unless arg.is_a?(Prism::StringNode)
|
|
988
|
-
@scanner.container.add_require(RDoc::Require.new(arg.unescaped, nil))
|
|
989
|
-
end
|
|
990
|
-
|
|
991
|
-
def _visit_call_module_function(call_node)
|
|
992
|
-
yield
|
|
993
|
-
return if @scanner.singleton
|
|
994
|
-
names = visibility_method_arguments(call_node, singleton: false)&.map(&:to_s)
|
|
995
|
-
@scanner.change_method_to_module_function(names) if names
|
|
996
|
-
end
|
|
997
|
-
|
|
998
|
-
def _visit_call_public_private_class_method(call_node, visibility)
|
|
999
|
-
yield
|
|
1000
|
-
return if @scanner.singleton
|
|
1001
|
-
names = visibility_method_arguments(call_node, singleton: true)
|
|
1002
|
-
@scanner.change_method_visibility(names, visibility, singleton: true) if names
|
|
1003
|
-
end
|
|
1004
|
-
|
|
1005
|
-
def _visit_call_public_private_protected(call_node, visibility)
|
|
1006
|
-
arguments_node = call_node.arguments
|
|
1007
|
-
if arguments_node.nil? # `public` `private`
|
|
1008
|
-
@scanner.visibility = visibility
|
|
1009
|
-
else # `public :foo, :bar`, `private def foo; end`
|
|
1010
|
-
yield
|
|
1011
|
-
names = visibility_method_arguments(call_node, singleton: false)
|
|
1012
|
-
@scanner.change_method_visibility(names, visibility) if names
|
|
1013
|
-
end
|
|
1014
|
-
end
|
|
1015
|
-
|
|
1016
|
-
def _visit_call_alias_method(call_node)
|
|
1017
|
-
new_name, old_name, *rest = symbol_arguments(call_node)
|
|
1018
|
-
return unless old_name && new_name && rest.empty?
|
|
1019
|
-
@scanner.add_alias_method(old_name.to_s, new_name.to_s, call_node.location.start_line)
|
|
1020
|
-
end
|
|
1021
|
-
|
|
1022
|
-
def _visit_call_include(call_node)
|
|
1023
|
-
names = constant_arguments_names(call_node)
|
|
1024
|
-
line_no = call_node.location.start_line
|
|
1025
|
-
return unless names
|
|
1026
|
-
|
|
1027
|
-
if @scanner.singleton
|
|
1028
|
-
@scanner.add_extends(names, line_no)
|
|
1029
|
-
else
|
|
1030
|
-
@scanner.add_includes(names, line_no)
|
|
1031
|
-
end
|
|
1032
|
-
end
|
|
1033
|
-
|
|
1034
|
-
def _visit_call_extend(call_node)
|
|
1035
|
-
names = constant_arguments_names(call_node)
|
|
1036
|
-
@scanner.add_extends(names, call_node.location.start_line) if names && !@scanner.singleton
|
|
1037
|
-
end
|
|
1038
|
-
|
|
1039
|
-
def _visit_call_public_constant(call_node)
|
|
1040
|
-
return if @scanner.singleton
|
|
1041
|
-
names = symbol_arguments(call_node)
|
|
1042
|
-
@scanner.container.set_constant_visibility_for(names.map(&:to_s), :public) if names
|
|
1043
|
-
end
|
|
1044
|
-
|
|
1045
|
-
def _visit_call_private_constant(call_node)
|
|
1046
|
-
return if @scanner.singleton
|
|
1047
|
-
names = symbol_arguments(call_node)
|
|
1048
|
-
@scanner.container.set_constant_visibility_for(names.map(&:to_s), :private) if names
|
|
1049
|
-
end
|
|
1050
|
-
|
|
1051
|
-
def _visit_call_attr_reader_writer_accessor(call_node, rw)
|
|
1052
|
-
names = symbol_arguments(call_node)
|
|
1053
|
-
@scanner.add_attributes(names.map(&:to_s), rw, call_node.location.start_line) if names
|
|
1054
|
-
end
|
|
1055
|
-
class MethodSignatureVisitor < Prism::Visitor # :nodoc:
|
|
1056
|
-
class << self
|
|
1057
|
-
def scan_signature(def_node)
|
|
1058
|
-
visitor = new
|
|
1059
|
-
def_node.body&.accept(visitor)
|
|
1060
|
-
params = "(#{def_node.parameters&.slice})"
|
|
1061
|
-
block_params = visitor.yields.first
|
|
1062
|
-
[params, block_params, visitor.calls_super]
|
|
1063
|
-
end
|
|
1064
|
-
end
|
|
1065
|
-
|
|
1066
|
-
attr_reader :params, :yields, :calls_super
|
|
1067
|
-
|
|
1068
|
-
def initialize
|
|
1069
|
-
@params = nil
|
|
1070
|
-
@calls_super = false
|
|
1071
|
-
@yields = []
|
|
1072
|
-
end
|
|
1073
|
-
|
|
1074
|
-
def visit_def_node(node)
|
|
1075
|
-
# stop traverse inside nested def
|
|
1076
|
-
end
|
|
1077
|
-
|
|
1078
|
-
def visit_yield_node(node)
|
|
1079
|
-
@yields << (node.arguments&.slice || '')
|
|
1080
|
-
end
|
|
1081
|
-
|
|
1082
|
-
def visit_super_node(node)
|
|
1083
|
-
@calls_super = true
|
|
1084
|
-
super
|
|
1085
|
-
end
|
|
1086
|
-
|
|
1087
|
-
def visit_forwarding_super_node(node)
|
|
1088
|
-
@calls_super = true
|
|
1089
|
-
end
|
|
1090
|
-
end
|
|
1091
|
-
end
|
|
1092
|
-
end
|