@ai-ecoverse/wasix-ruby 3.4.11-3 → 3.4.11-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/PRESTAGE.md +22 -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/expect.rb +71 -0
- package/lib/ruby/3.4.0/wasm32-wasi/rbconfig.rb +1 -1
- package/package.json +8 -6
- 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,928 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
# :markup: markdown
|
|
3
|
-
|
|
4
|
-
require "delegate"
|
|
5
|
-
require "ripper"
|
|
6
|
-
|
|
7
|
-
module Prism
|
|
8
|
-
# This class is responsible for lexing the source using prism and then
|
|
9
|
-
# converting those tokens to be compatible with Ripper. In the vast majority
|
|
10
|
-
# of cases, this is a one-to-one mapping of the token type. Everything else
|
|
11
|
-
# generally lines up. However, there are a few cases that require special
|
|
12
|
-
# handling.
|
|
13
|
-
class LexCompat # :nodoc:
|
|
14
|
-
# A result class specialized for holding tokens produced by the lexer.
|
|
15
|
-
class Result < Prism::Result
|
|
16
|
-
# The list of tokens that were produced by the lexer.
|
|
17
|
-
attr_reader :value
|
|
18
|
-
|
|
19
|
-
# Create a new lex compat result object with the given values.
|
|
20
|
-
def initialize(value, comments, magic_comments, data_loc, errors, warnings, source)
|
|
21
|
-
@value = value
|
|
22
|
-
super(comments, magic_comments, data_loc, errors, warnings, source)
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
# Implement the hash pattern matching interface for Result.
|
|
26
|
-
def deconstruct_keys(keys)
|
|
27
|
-
super.merge!(value: value)
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
# This is a mapping of prism token types to Ripper token types. This is a
|
|
32
|
-
# many-to-one mapping because we split up our token types, whereas Ripper
|
|
33
|
-
# tends to group them.
|
|
34
|
-
RIPPER = {
|
|
35
|
-
AMPERSAND: :on_op,
|
|
36
|
-
AMPERSAND_AMPERSAND: :on_op,
|
|
37
|
-
AMPERSAND_AMPERSAND_EQUAL: :on_op,
|
|
38
|
-
AMPERSAND_DOT: :on_op,
|
|
39
|
-
AMPERSAND_EQUAL: :on_op,
|
|
40
|
-
BACK_REFERENCE: :on_backref,
|
|
41
|
-
BACKTICK: :on_backtick,
|
|
42
|
-
BANG: :on_op,
|
|
43
|
-
BANG_EQUAL: :on_op,
|
|
44
|
-
BANG_TILDE: :on_op,
|
|
45
|
-
BRACE_LEFT: :on_lbrace,
|
|
46
|
-
BRACE_RIGHT: :on_rbrace,
|
|
47
|
-
BRACKET_LEFT: :on_lbracket,
|
|
48
|
-
BRACKET_LEFT_ARRAY: :on_lbracket,
|
|
49
|
-
BRACKET_LEFT_RIGHT: :on_op,
|
|
50
|
-
BRACKET_LEFT_RIGHT_EQUAL: :on_op,
|
|
51
|
-
BRACKET_RIGHT: :on_rbracket,
|
|
52
|
-
CARET: :on_op,
|
|
53
|
-
CARET_EQUAL: :on_op,
|
|
54
|
-
CHARACTER_LITERAL: :on_CHAR,
|
|
55
|
-
CLASS_VARIABLE: :on_cvar,
|
|
56
|
-
COLON: :on_op,
|
|
57
|
-
COLON_COLON: :on_op,
|
|
58
|
-
COMMA: :on_comma,
|
|
59
|
-
COMMENT: :on_comment,
|
|
60
|
-
CONSTANT: :on_const,
|
|
61
|
-
DOT: :on_period,
|
|
62
|
-
DOT_DOT: :on_op,
|
|
63
|
-
DOT_DOT_DOT: :on_op,
|
|
64
|
-
EMBDOC_BEGIN: :on_embdoc_beg,
|
|
65
|
-
EMBDOC_END: :on_embdoc_end,
|
|
66
|
-
EMBDOC_LINE: :on_embdoc,
|
|
67
|
-
EMBEXPR_BEGIN: :on_embexpr_beg,
|
|
68
|
-
EMBEXPR_END: :on_embexpr_end,
|
|
69
|
-
EMBVAR: :on_embvar,
|
|
70
|
-
EOF: :on_eof,
|
|
71
|
-
EQUAL: :on_op,
|
|
72
|
-
EQUAL_EQUAL: :on_op,
|
|
73
|
-
EQUAL_EQUAL_EQUAL: :on_op,
|
|
74
|
-
EQUAL_GREATER: :on_op,
|
|
75
|
-
EQUAL_TILDE: :on_op,
|
|
76
|
-
FLOAT: :on_float,
|
|
77
|
-
FLOAT_IMAGINARY: :on_imaginary,
|
|
78
|
-
FLOAT_RATIONAL: :on_rational,
|
|
79
|
-
FLOAT_RATIONAL_IMAGINARY: :on_imaginary,
|
|
80
|
-
GREATER: :on_op,
|
|
81
|
-
GREATER_EQUAL: :on_op,
|
|
82
|
-
GREATER_GREATER: :on_op,
|
|
83
|
-
GREATER_GREATER_EQUAL: :on_op,
|
|
84
|
-
GLOBAL_VARIABLE: :on_gvar,
|
|
85
|
-
HEREDOC_END: :on_heredoc_end,
|
|
86
|
-
HEREDOC_START: :on_heredoc_beg,
|
|
87
|
-
IDENTIFIER: :on_ident,
|
|
88
|
-
IGNORED_NEWLINE: :on_ignored_nl,
|
|
89
|
-
INTEGER: :on_int,
|
|
90
|
-
INTEGER_IMAGINARY: :on_imaginary,
|
|
91
|
-
INTEGER_RATIONAL: :on_rational,
|
|
92
|
-
INTEGER_RATIONAL_IMAGINARY: :on_imaginary,
|
|
93
|
-
INSTANCE_VARIABLE: :on_ivar,
|
|
94
|
-
INVALID: :INVALID,
|
|
95
|
-
KEYWORD___ENCODING__: :on_kw,
|
|
96
|
-
KEYWORD___LINE__: :on_kw,
|
|
97
|
-
KEYWORD___FILE__: :on_kw,
|
|
98
|
-
KEYWORD_ALIAS: :on_kw,
|
|
99
|
-
KEYWORD_AND: :on_kw,
|
|
100
|
-
KEYWORD_BEGIN: :on_kw,
|
|
101
|
-
KEYWORD_BEGIN_UPCASE: :on_kw,
|
|
102
|
-
KEYWORD_BREAK: :on_kw,
|
|
103
|
-
KEYWORD_CASE: :on_kw,
|
|
104
|
-
KEYWORD_CLASS: :on_kw,
|
|
105
|
-
KEYWORD_DEF: :on_kw,
|
|
106
|
-
KEYWORD_DEFINED: :on_kw,
|
|
107
|
-
KEYWORD_DO: :on_kw,
|
|
108
|
-
KEYWORD_DO_LOOP: :on_kw,
|
|
109
|
-
KEYWORD_ELSE: :on_kw,
|
|
110
|
-
KEYWORD_ELSIF: :on_kw,
|
|
111
|
-
KEYWORD_END: :on_kw,
|
|
112
|
-
KEYWORD_END_UPCASE: :on_kw,
|
|
113
|
-
KEYWORD_ENSURE: :on_kw,
|
|
114
|
-
KEYWORD_FALSE: :on_kw,
|
|
115
|
-
KEYWORD_FOR: :on_kw,
|
|
116
|
-
KEYWORD_IF: :on_kw,
|
|
117
|
-
KEYWORD_IF_MODIFIER: :on_kw,
|
|
118
|
-
KEYWORD_IN: :on_kw,
|
|
119
|
-
KEYWORD_MODULE: :on_kw,
|
|
120
|
-
KEYWORD_NEXT: :on_kw,
|
|
121
|
-
KEYWORD_NIL: :on_kw,
|
|
122
|
-
KEYWORD_NOT: :on_kw,
|
|
123
|
-
KEYWORD_OR: :on_kw,
|
|
124
|
-
KEYWORD_REDO: :on_kw,
|
|
125
|
-
KEYWORD_RESCUE: :on_kw,
|
|
126
|
-
KEYWORD_RESCUE_MODIFIER: :on_kw,
|
|
127
|
-
KEYWORD_RETRY: :on_kw,
|
|
128
|
-
KEYWORD_RETURN: :on_kw,
|
|
129
|
-
KEYWORD_SELF: :on_kw,
|
|
130
|
-
KEYWORD_SUPER: :on_kw,
|
|
131
|
-
KEYWORD_THEN: :on_kw,
|
|
132
|
-
KEYWORD_TRUE: :on_kw,
|
|
133
|
-
KEYWORD_UNDEF: :on_kw,
|
|
134
|
-
KEYWORD_UNLESS: :on_kw,
|
|
135
|
-
KEYWORD_UNLESS_MODIFIER: :on_kw,
|
|
136
|
-
KEYWORD_UNTIL: :on_kw,
|
|
137
|
-
KEYWORD_UNTIL_MODIFIER: :on_kw,
|
|
138
|
-
KEYWORD_WHEN: :on_kw,
|
|
139
|
-
KEYWORD_WHILE: :on_kw,
|
|
140
|
-
KEYWORD_WHILE_MODIFIER: :on_kw,
|
|
141
|
-
KEYWORD_YIELD: :on_kw,
|
|
142
|
-
LABEL: :on_label,
|
|
143
|
-
LABEL_END: :on_label_end,
|
|
144
|
-
LAMBDA_BEGIN: :on_tlambeg,
|
|
145
|
-
LESS: :on_op,
|
|
146
|
-
LESS_EQUAL: :on_op,
|
|
147
|
-
LESS_EQUAL_GREATER: :on_op,
|
|
148
|
-
LESS_LESS: :on_op,
|
|
149
|
-
LESS_LESS_EQUAL: :on_op,
|
|
150
|
-
METHOD_NAME: :on_ident,
|
|
151
|
-
MINUS: :on_op,
|
|
152
|
-
MINUS_EQUAL: :on_op,
|
|
153
|
-
MINUS_GREATER: :on_tlambda,
|
|
154
|
-
NEWLINE: :on_nl,
|
|
155
|
-
NUMBERED_REFERENCE: :on_backref,
|
|
156
|
-
PARENTHESIS_LEFT: :on_lparen,
|
|
157
|
-
PARENTHESIS_LEFT_PARENTHESES: :on_lparen,
|
|
158
|
-
PARENTHESIS_RIGHT: :on_rparen,
|
|
159
|
-
PERCENT: :on_op,
|
|
160
|
-
PERCENT_EQUAL: :on_op,
|
|
161
|
-
PERCENT_LOWER_I: :on_qsymbols_beg,
|
|
162
|
-
PERCENT_LOWER_W: :on_qwords_beg,
|
|
163
|
-
PERCENT_LOWER_X: :on_backtick,
|
|
164
|
-
PERCENT_UPPER_I: :on_symbols_beg,
|
|
165
|
-
PERCENT_UPPER_W: :on_words_beg,
|
|
166
|
-
PIPE: :on_op,
|
|
167
|
-
PIPE_EQUAL: :on_op,
|
|
168
|
-
PIPE_PIPE: :on_op,
|
|
169
|
-
PIPE_PIPE_EQUAL: :on_op,
|
|
170
|
-
PLUS: :on_op,
|
|
171
|
-
PLUS_EQUAL: :on_op,
|
|
172
|
-
QUESTION_MARK: :on_op,
|
|
173
|
-
RATIONAL_FLOAT: :on_rational,
|
|
174
|
-
RATIONAL_INTEGER: :on_rational,
|
|
175
|
-
REGEXP_BEGIN: :on_regexp_beg,
|
|
176
|
-
REGEXP_END: :on_regexp_end,
|
|
177
|
-
SEMICOLON: :on_semicolon,
|
|
178
|
-
SLASH: :on_op,
|
|
179
|
-
SLASH_EQUAL: :on_op,
|
|
180
|
-
STAR: :on_op,
|
|
181
|
-
STAR_EQUAL: :on_op,
|
|
182
|
-
STAR_STAR: :on_op,
|
|
183
|
-
STAR_STAR_EQUAL: :on_op,
|
|
184
|
-
STRING_BEGIN: :on_tstring_beg,
|
|
185
|
-
STRING_CONTENT: :on_tstring_content,
|
|
186
|
-
STRING_END: :on_tstring_end,
|
|
187
|
-
SYMBOL_BEGIN: :on_symbeg,
|
|
188
|
-
TILDE: :on_op,
|
|
189
|
-
UAMPERSAND: :on_op,
|
|
190
|
-
UCOLON_COLON: :on_op,
|
|
191
|
-
UDOT_DOT: :on_op,
|
|
192
|
-
UDOT_DOT_DOT: :on_op,
|
|
193
|
-
UMINUS: :on_op,
|
|
194
|
-
UMINUS_NUM: :on_op,
|
|
195
|
-
UPLUS: :on_op,
|
|
196
|
-
USTAR: :on_op,
|
|
197
|
-
USTAR_STAR: :on_op,
|
|
198
|
-
WORDS_SEP: :on_words_sep,
|
|
199
|
-
"__END__": :on___end__
|
|
200
|
-
}.freeze
|
|
201
|
-
|
|
202
|
-
# When we produce tokens, we produce the same arrays that Ripper does.
|
|
203
|
-
# However, we add a couple of convenience methods onto them to make them a
|
|
204
|
-
# little easier to work with. We delegate all other methods to the array.
|
|
205
|
-
class Token < SimpleDelegator
|
|
206
|
-
# @dynamic initialize, each, []
|
|
207
|
-
|
|
208
|
-
# The location of the token in the source.
|
|
209
|
-
def location
|
|
210
|
-
self[0]
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
# The type of the token.
|
|
214
|
-
def event
|
|
215
|
-
self[1]
|
|
216
|
-
end
|
|
217
|
-
|
|
218
|
-
# The slice of the source that this token represents.
|
|
219
|
-
def value
|
|
220
|
-
self[2]
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
# The state of the lexer when this token was produced.
|
|
224
|
-
def state
|
|
225
|
-
self[3]
|
|
226
|
-
end
|
|
227
|
-
end
|
|
228
|
-
|
|
229
|
-
# Ripper doesn't include the rest of the token in the event, so we need to
|
|
230
|
-
# trim it down to just the content on the first line when comparing.
|
|
231
|
-
class EndContentToken < Token
|
|
232
|
-
def ==(other) # :nodoc:
|
|
233
|
-
[self[0], self[1], self[2][0..self[2].index("\n")], self[3]] == other
|
|
234
|
-
end
|
|
235
|
-
end
|
|
236
|
-
|
|
237
|
-
# Tokens where state should be ignored
|
|
238
|
-
# used for :on_comment, :on_heredoc_end, :on_embexpr_end
|
|
239
|
-
class IgnoreStateToken < Token
|
|
240
|
-
def ==(other) # :nodoc:
|
|
241
|
-
self[0...-1] == other[0...-1]
|
|
242
|
-
end
|
|
243
|
-
end
|
|
244
|
-
|
|
245
|
-
# Ident tokens for the most part are exactly the same, except sometimes we
|
|
246
|
-
# know an ident is a local when ripper doesn't (when they are introduced
|
|
247
|
-
# through named captures in regular expressions). In that case we don't
|
|
248
|
-
# compare the state.
|
|
249
|
-
class IdentToken < Token
|
|
250
|
-
def ==(other) # :nodoc:
|
|
251
|
-
(self[0...-1] == other[0...-1]) && (
|
|
252
|
-
(other[3] == Ripper::EXPR_LABEL | Ripper::EXPR_END) ||
|
|
253
|
-
(other[3] & Ripper::EXPR_ARG_ANY != 0)
|
|
254
|
-
)
|
|
255
|
-
end
|
|
256
|
-
end
|
|
257
|
-
|
|
258
|
-
# Ignored newlines can occasionally have a LABEL state attached to them, so
|
|
259
|
-
# we compare the state differently here.
|
|
260
|
-
class IgnoredNewlineToken < Token
|
|
261
|
-
def ==(other) # :nodoc:
|
|
262
|
-
return false unless self[0...-1] == other[0...-1]
|
|
263
|
-
|
|
264
|
-
if self[3] == Ripper::EXPR_ARG | Ripper::EXPR_LABELED
|
|
265
|
-
other[3] & Ripper::EXPR_ARG | Ripper::EXPR_LABELED != 0
|
|
266
|
-
else
|
|
267
|
-
self[3] == other[3]
|
|
268
|
-
end
|
|
269
|
-
end
|
|
270
|
-
end
|
|
271
|
-
|
|
272
|
-
# If we have an identifier that follows a method name like:
|
|
273
|
-
#
|
|
274
|
-
# def foo bar
|
|
275
|
-
#
|
|
276
|
-
# then Ripper will mark bar as END|LABEL if there is a local in a parent
|
|
277
|
-
# scope named bar because it hasn't pushed the local table yet. We do this
|
|
278
|
-
# more accurately, so we need to allow comparing against both END and
|
|
279
|
-
# END|LABEL.
|
|
280
|
-
class ParamToken < Token
|
|
281
|
-
def ==(other) # :nodoc:
|
|
282
|
-
(self[0...-1] == other[0...-1]) && (
|
|
283
|
-
(other[3] == Ripper::EXPR_END) ||
|
|
284
|
-
(other[3] == Ripper::EXPR_END | Ripper::EXPR_LABEL)
|
|
285
|
-
)
|
|
286
|
-
end
|
|
287
|
-
end
|
|
288
|
-
|
|
289
|
-
# A heredoc in this case is a list of tokens that belong to the body of the
|
|
290
|
-
# heredoc that should be appended onto the list of tokens when the heredoc
|
|
291
|
-
# closes.
|
|
292
|
-
module Heredoc # :nodoc:
|
|
293
|
-
# Heredocs that are no dash or tilde heredocs are just a list of tokens.
|
|
294
|
-
# We need to keep them around so that we can insert them in the correct
|
|
295
|
-
# order back into the token stream and set the state of the last token to
|
|
296
|
-
# the state that the heredoc was opened in.
|
|
297
|
-
class PlainHeredoc # :nodoc:
|
|
298
|
-
attr_reader :tokens
|
|
299
|
-
|
|
300
|
-
def initialize
|
|
301
|
-
@tokens = []
|
|
302
|
-
end
|
|
303
|
-
|
|
304
|
-
def <<(token)
|
|
305
|
-
tokens << token
|
|
306
|
-
end
|
|
307
|
-
|
|
308
|
-
def to_a
|
|
309
|
-
tokens
|
|
310
|
-
end
|
|
311
|
-
end
|
|
312
|
-
|
|
313
|
-
# Dash heredocs are a little more complicated. They are a list of tokens
|
|
314
|
-
# that need to be split on "\\\n" to mimic Ripper's behavior. We also need
|
|
315
|
-
# to keep track of the state that the heredoc was opened in.
|
|
316
|
-
class DashHeredoc # :nodoc:
|
|
317
|
-
attr_reader :split, :tokens
|
|
318
|
-
|
|
319
|
-
def initialize(split)
|
|
320
|
-
@split = split
|
|
321
|
-
@tokens = []
|
|
322
|
-
end
|
|
323
|
-
|
|
324
|
-
def <<(token)
|
|
325
|
-
tokens << token
|
|
326
|
-
end
|
|
327
|
-
|
|
328
|
-
def to_a
|
|
329
|
-
embexpr_balance = 0
|
|
330
|
-
|
|
331
|
-
tokens.each_with_object([]) do |token, results| #$ Array[Token]
|
|
332
|
-
case token.event
|
|
333
|
-
when :on_embexpr_beg
|
|
334
|
-
embexpr_balance += 1
|
|
335
|
-
results << token
|
|
336
|
-
when :on_embexpr_end
|
|
337
|
-
embexpr_balance -= 1
|
|
338
|
-
results << token
|
|
339
|
-
when :on_tstring_content
|
|
340
|
-
if embexpr_balance == 0
|
|
341
|
-
lineno = token[0][0]
|
|
342
|
-
column = token[0][1]
|
|
343
|
-
|
|
344
|
-
if split
|
|
345
|
-
# Split on "\\\n" to mimic Ripper's behavior. Use a lookbehind
|
|
346
|
-
# to keep the delimiter in the result.
|
|
347
|
-
token.value.split(/(?<=[^\\]\\\n)|(?<=[^\\]\\\r\n)/).each_with_index do |value, index|
|
|
348
|
-
column = 0 if index > 0
|
|
349
|
-
results << Token.new([[lineno, column], :on_tstring_content, value, token.state])
|
|
350
|
-
lineno += value.count("\n")
|
|
351
|
-
end
|
|
352
|
-
else
|
|
353
|
-
results << token
|
|
354
|
-
end
|
|
355
|
-
else
|
|
356
|
-
results << token
|
|
357
|
-
end
|
|
358
|
-
else
|
|
359
|
-
results << token
|
|
360
|
-
end
|
|
361
|
-
end
|
|
362
|
-
end
|
|
363
|
-
end
|
|
364
|
-
|
|
365
|
-
# Heredocs that are dedenting heredocs are a little more complicated.
|
|
366
|
-
# Ripper outputs on_ignored_sp tokens for the whitespace that is being
|
|
367
|
-
# removed from the output. prism only modifies the node itself and keeps
|
|
368
|
-
# the token the same. This simplifies prism, but makes comparing against
|
|
369
|
-
# Ripper much harder because there is a length mismatch.
|
|
370
|
-
#
|
|
371
|
-
# Fortunately, we already have to pull out the heredoc tokens in order to
|
|
372
|
-
# insert them into the stream in the correct order. As such, we can do
|
|
373
|
-
# some extra manipulation on the tokens to make them match Ripper's
|
|
374
|
-
# output by mirroring the dedent logic that Ripper uses.
|
|
375
|
-
class DedentingHeredoc # :nodoc:
|
|
376
|
-
TAB_WIDTH = 8
|
|
377
|
-
|
|
378
|
-
attr_reader :tokens, :dedent_next, :dedent, :embexpr_balance
|
|
379
|
-
|
|
380
|
-
def initialize
|
|
381
|
-
@tokens = []
|
|
382
|
-
@dedent_next = true
|
|
383
|
-
@dedent = nil
|
|
384
|
-
@embexpr_balance = 0
|
|
385
|
-
@ended_on_newline = false
|
|
386
|
-
end
|
|
387
|
-
|
|
388
|
-
# As tokens are coming in, we track the minimum amount of common leading
|
|
389
|
-
# whitespace on plain string content tokens. This allows us to later
|
|
390
|
-
# remove that amount of whitespace from the beginning of each line.
|
|
391
|
-
def <<(token)
|
|
392
|
-
case token.event
|
|
393
|
-
when :on_embexpr_beg, :on_heredoc_beg
|
|
394
|
-
@embexpr_balance += 1
|
|
395
|
-
@dedent = 0 if @dedent_next && @ended_on_newline
|
|
396
|
-
when :on_embexpr_end, :on_heredoc_end
|
|
397
|
-
@embexpr_balance -= 1
|
|
398
|
-
when :on_tstring_content
|
|
399
|
-
if embexpr_balance == 0
|
|
400
|
-
line = token.value
|
|
401
|
-
|
|
402
|
-
if dedent_next && !(line.strip.empty? && line.end_with?("\n"))
|
|
403
|
-
leading = line[/\A(\s*)\n?/, 1]
|
|
404
|
-
next_dedent = 0
|
|
405
|
-
|
|
406
|
-
leading.each_char do |char|
|
|
407
|
-
if char == "\t"
|
|
408
|
-
next_dedent = next_dedent - (next_dedent % TAB_WIDTH) + TAB_WIDTH
|
|
409
|
-
else
|
|
410
|
-
next_dedent += 1
|
|
411
|
-
end
|
|
412
|
-
end
|
|
413
|
-
|
|
414
|
-
@dedent = [dedent, next_dedent].compact.min
|
|
415
|
-
@dedent_next = true
|
|
416
|
-
@ended_on_newline = line.end_with?("\n")
|
|
417
|
-
tokens << token
|
|
418
|
-
return
|
|
419
|
-
end
|
|
420
|
-
end
|
|
421
|
-
end
|
|
422
|
-
|
|
423
|
-
@dedent_next = token.event == :on_tstring_content && embexpr_balance == 0
|
|
424
|
-
@ended_on_newline = false
|
|
425
|
-
tokens << token
|
|
426
|
-
end
|
|
427
|
-
|
|
428
|
-
def to_a
|
|
429
|
-
# If every line in the heredoc is blank, we still need to split up the
|
|
430
|
-
# string content token into multiple tokens.
|
|
431
|
-
if dedent.nil?
|
|
432
|
-
results = [] #: Array[Token]
|
|
433
|
-
embexpr_balance = 0
|
|
434
|
-
|
|
435
|
-
tokens.each do |token|
|
|
436
|
-
case token.event
|
|
437
|
-
when :on_embexpr_beg, :on_heredoc_beg
|
|
438
|
-
embexpr_balance += 1
|
|
439
|
-
results << token
|
|
440
|
-
when :on_embexpr_end, :on_heredoc_end
|
|
441
|
-
embexpr_balance -= 1
|
|
442
|
-
results << token
|
|
443
|
-
when :on_tstring_content
|
|
444
|
-
if embexpr_balance == 0
|
|
445
|
-
lineno = token[0][0]
|
|
446
|
-
column = token[0][1]
|
|
447
|
-
|
|
448
|
-
token.value.split(/(?<=\n)/).each_with_index do |value, index|
|
|
449
|
-
column = 0 if index > 0
|
|
450
|
-
results << Token.new([[lineno, column], :on_tstring_content, value, token.state])
|
|
451
|
-
lineno += 1
|
|
452
|
-
end
|
|
453
|
-
else
|
|
454
|
-
results << token
|
|
455
|
-
end
|
|
456
|
-
else
|
|
457
|
-
results << token
|
|
458
|
-
end
|
|
459
|
-
end
|
|
460
|
-
|
|
461
|
-
return results
|
|
462
|
-
end
|
|
463
|
-
|
|
464
|
-
# If the minimum common whitespace is 0, then we need to concatenate
|
|
465
|
-
# string nodes together that are immediately adjacent.
|
|
466
|
-
if dedent == 0
|
|
467
|
-
results = [] #: Array[Token]
|
|
468
|
-
embexpr_balance = 0
|
|
469
|
-
|
|
470
|
-
index = 0
|
|
471
|
-
max_index = tokens.length
|
|
472
|
-
|
|
473
|
-
while index < max_index
|
|
474
|
-
token = tokens[index]
|
|
475
|
-
results << token
|
|
476
|
-
index += 1
|
|
477
|
-
|
|
478
|
-
case token.event
|
|
479
|
-
when :on_embexpr_beg, :on_heredoc_beg
|
|
480
|
-
embexpr_balance += 1
|
|
481
|
-
when :on_embexpr_end, :on_heredoc_end
|
|
482
|
-
embexpr_balance -= 1
|
|
483
|
-
when :on_tstring_content
|
|
484
|
-
if embexpr_balance == 0
|
|
485
|
-
while index < max_index && tokens[index].event == :on_tstring_content && !token.value.match?(/\\\r?\n\z/)
|
|
486
|
-
token.value << tokens[index].value
|
|
487
|
-
index += 1
|
|
488
|
-
end
|
|
489
|
-
end
|
|
490
|
-
end
|
|
491
|
-
end
|
|
492
|
-
|
|
493
|
-
return results
|
|
494
|
-
end
|
|
495
|
-
|
|
496
|
-
# Otherwise, we're going to run through each token in the list and
|
|
497
|
-
# insert on_ignored_sp tokens for the amount of dedent that we need to
|
|
498
|
-
# perform. We also need to remove the dedent from the beginning of
|
|
499
|
-
# each line of plain string content tokens.
|
|
500
|
-
results = [] #: Array[Token]
|
|
501
|
-
dedent_next = true
|
|
502
|
-
embexpr_balance = 0
|
|
503
|
-
|
|
504
|
-
tokens.each do |token|
|
|
505
|
-
# Notice that the structure of this conditional largely matches the
|
|
506
|
-
# whitespace calculation we performed above. This is because
|
|
507
|
-
# checking if the subsequent token needs to be dedented is common to
|
|
508
|
-
# both the dedent calculation and the ignored_sp insertion.
|
|
509
|
-
case token.event
|
|
510
|
-
when :on_embexpr_beg
|
|
511
|
-
embexpr_balance += 1
|
|
512
|
-
results << token
|
|
513
|
-
when :on_embexpr_end
|
|
514
|
-
embexpr_balance -= 1
|
|
515
|
-
results << token
|
|
516
|
-
when :on_tstring_content
|
|
517
|
-
if embexpr_balance == 0
|
|
518
|
-
# Here we're going to split the string on newlines, but maintain
|
|
519
|
-
# the newlines in the resulting array. We'll do that with a look
|
|
520
|
-
# behind assertion.
|
|
521
|
-
splits = token.value.split(/(?<=\n)/)
|
|
522
|
-
index = 0
|
|
523
|
-
|
|
524
|
-
while index < splits.length
|
|
525
|
-
line = splits[index]
|
|
526
|
-
lineno = token[0][0] + index
|
|
527
|
-
column = token[0][1]
|
|
528
|
-
|
|
529
|
-
# Blank lines do not count toward common leading whitespace
|
|
530
|
-
# calculation and do not need to be dedented.
|
|
531
|
-
if dedent_next || index > 0
|
|
532
|
-
column = 0
|
|
533
|
-
end
|
|
534
|
-
|
|
535
|
-
# If the dedent is 0 and we're not supposed to dedent the next
|
|
536
|
-
# line or this line doesn't start with whitespace, then we
|
|
537
|
-
# should concatenate the rest of the string to match ripper.
|
|
538
|
-
if dedent == 0 && (!dedent_next || !line.start_with?(/\s/))
|
|
539
|
-
line = splits[index..].join
|
|
540
|
-
index = splits.length
|
|
541
|
-
end
|
|
542
|
-
|
|
543
|
-
# If we are supposed to dedent this line or if this is not the
|
|
544
|
-
# first line of the string and this line isn't entirely blank,
|
|
545
|
-
# then we need to insert an on_ignored_sp token and remove the
|
|
546
|
-
# dedent from the beginning of the line.
|
|
547
|
-
if (dedent > 0) && (dedent_next || index > 0)
|
|
548
|
-
deleting = 0
|
|
549
|
-
deleted_chars = [] #: Array[String]
|
|
550
|
-
|
|
551
|
-
# Gather up all of the characters that we're going to
|
|
552
|
-
# delete, stopping when you hit a character that would put
|
|
553
|
-
# you over the dedent amount.
|
|
554
|
-
line.each_char.with_index do |char, i|
|
|
555
|
-
case char
|
|
556
|
-
when "\r"
|
|
557
|
-
if line[i + 1] == "\n"
|
|
558
|
-
break
|
|
559
|
-
end
|
|
560
|
-
when "\n"
|
|
561
|
-
break
|
|
562
|
-
when "\t"
|
|
563
|
-
deleting = deleting - (deleting % TAB_WIDTH) + TAB_WIDTH
|
|
564
|
-
else
|
|
565
|
-
deleting += 1
|
|
566
|
-
end
|
|
567
|
-
|
|
568
|
-
break if deleting > dedent
|
|
569
|
-
deleted_chars << char
|
|
570
|
-
end
|
|
571
|
-
|
|
572
|
-
# If we have something to delete, then delete it from the
|
|
573
|
-
# string and insert an on_ignored_sp token.
|
|
574
|
-
if deleted_chars.any?
|
|
575
|
-
ignored = deleted_chars.join
|
|
576
|
-
line.delete_prefix!(ignored)
|
|
577
|
-
|
|
578
|
-
results << Token.new([[lineno, 0], :on_ignored_sp, ignored, token[3]])
|
|
579
|
-
column = ignored.length
|
|
580
|
-
end
|
|
581
|
-
end
|
|
582
|
-
|
|
583
|
-
results << Token.new([[lineno, column], token[1], line, token[3]]) unless line.empty?
|
|
584
|
-
index += 1
|
|
585
|
-
end
|
|
586
|
-
else
|
|
587
|
-
results << token
|
|
588
|
-
end
|
|
589
|
-
else
|
|
590
|
-
results << token
|
|
591
|
-
end
|
|
592
|
-
|
|
593
|
-
dedent_next =
|
|
594
|
-
((token.event == :on_tstring_content) || (token.event == :on_heredoc_end)) &&
|
|
595
|
-
embexpr_balance == 0
|
|
596
|
-
end
|
|
597
|
-
|
|
598
|
-
results
|
|
599
|
-
end
|
|
600
|
-
end
|
|
601
|
-
|
|
602
|
-
# Here we will split between the two types of heredocs and return the
|
|
603
|
-
# object that will store their tokens.
|
|
604
|
-
def self.build(opening)
|
|
605
|
-
case opening.value[2]
|
|
606
|
-
when "~"
|
|
607
|
-
DedentingHeredoc.new
|
|
608
|
-
when "-"
|
|
609
|
-
DashHeredoc.new(opening.value[3] != "'")
|
|
610
|
-
else
|
|
611
|
-
PlainHeredoc.new
|
|
612
|
-
end
|
|
613
|
-
end
|
|
614
|
-
end
|
|
615
|
-
|
|
616
|
-
private_constant :Heredoc
|
|
617
|
-
|
|
618
|
-
attr_reader :source, :options
|
|
619
|
-
|
|
620
|
-
def initialize(source, **options)
|
|
621
|
-
@source = source
|
|
622
|
-
@options = options
|
|
623
|
-
end
|
|
624
|
-
|
|
625
|
-
def result
|
|
626
|
-
tokens = [] #: Array[LexCompat::Token]
|
|
627
|
-
|
|
628
|
-
state = :default
|
|
629
|
-
heredoc_stack = [[]] #: Array[Array[Heredoc::PlainHeredoc | Heredoc::DashHeredoc | Heredoc::DedentingHeredoc]]
|
|
630
|
-
|
|
631
|
-
result = Prism.lex(source, **options)
|
|
632
|
-
result_value = result.value
|
|
633
|
-
previous_state = nil #: Ripper::Lexer::State?
|
|
634
|
-
last_heredoc_end = nil #: Integer?
|
|
635
|
-
|
|
636
|
-
# In previous versions of Ruby, Ripper wouldn't flush the bom before the
|
|
637
|
-
# first token, so we had to have a hack in place to account for that. This
|
|
638
|
-
# checks for that behavior.
|
|
639
|
-
bom_flushed = Ripper.lex("\xEF\xBB\xBF# test")[0][0][1] == 0
|
|
640
|
-
bom = source.byteslice(0..2) == "\xEF\xBB\xBF"
|
|
641
|
-
|
|
642
|
-
result_value.each_with_index do |(token, lex_state), index|
|
|
643
|
-
lineno = token.location.start_line
|
|
644
|
-
column = token.location.start_column
|
|
645
|
-
|
|
646
|
-
# If there's a UTF-8 byte-order mark as the start of the file, then for
|
|
647
|
-
# certain tokens ripper sets the first token back by 3 bytes. It also
|
|
648
|
-
# keeps the byte order mark in the first token's value. This is weird,
|
|
649
|
-
# and I don't want to mirror that in our parser. So instead, we'll match
|
|
650
|
-
# up the columns and values here.
|
|
651
|
-
if bom && lineno == 1
|
|
652
|
-
column -= 3
|
|
653
|
-
|
|
654
|
-
if index == 0 && column == 0 && !bom_flushed
|
|
655
|
-
flushed =
|
|
656
|
-
case token.type
|
|
657
|
-
when :BACK_REFERENCE, :INSTANCE_VARIABLE, :CLASS_VARIABLE,
|
|
658
|
-
:GLOBAL_VARIABLE, :NUMBERED_REFERENCE, :PERCENT_LOWER_I,
|
|
659
|
-
:PERCENT_LOWER_X, :PERCENT_LOWER_W, :PERCENT_UPPER_I,
|
|
660
|
-
:PERCENT_UPPER_W, :STRING_BEGIN
|
|
661
|
-
true
|
|
662
|
-
when :REGEXP_BEGIN, :SYMBOL_BEGIN
|
|
663
|
-
token.value.start_with?("%")
|
|
664
|
-
else
|
|
665
|
-
false
|
|
666
|
-
end
|
|
667
|
-
|
|
668
|
-
unless flushed
|
|
669
|
-
column -= 3
|
|
670
|
-
value = token.value
|
|
671
|
-
value.prepend(String.new("\xEF\xBB\xBF", encoding: value.encoding))
|
|
672
|
-
end
|
|
673
|
-
end
|
|
674
|
-
end
|
|
675
|
-
|
|
676
|
-
event = RIPPER.fetch(token.type)
|
|
677
|
-
value = token.value
|
|
678
|
-
lex_state = Ripper::Lexer::State.new(lex_state)
|
|
679
|
-
|
|
680
|
-
token =
|
|
681
|
-
case event
|
|
682
|
-
when :on___end__
|
|
683
|
-
EndContentToken.new([[lineno, column], event, value, lex_state])
|
|
684
|
-
when :on_comment
|
|
685
|
-
IgnoreStateToken.new([[lineno, column], event, value, lex_state])
|
|
686
|
-
when :on_heredoc_end
|
|
687
|
-
# Heredoc end tokens can be emitted in an odd order, so we don't
|
|
688
|
-
# want to bother comparing the state on them.
|
|
689
|
-
last_heredoc_end = token.location.end_offset
|
|
690
|
-
IgnoreStateToken.new([[lineno, column], event, value, lex_state])
|
|
691
|
-
when :on_ident
|
|
692
|
-
if lex_state == Ripper::EXPR_END
|
|
693
|
-
# If we have an identifier that follows a method name like:
|
|
694
|
-
#
|
|
695
|
-
# def foo bar
|
|
696
|
-
#
|
|
697
|
-
# then Ripper will mark bar as END|LABEL if there is a local in a
|
|
698
|
-
# parent scope named bar because it hasn't pushed the local table
|
|
699
|
-
# yet. We do this more accurately, so we need to allow comparing
|
|
700
|
-
# against both END and END|LABEL.
|
|
701
|
-
ParamToken.new([[lineno, column], event, value, lex_state])
|
|
702
|
-
elsif lex_state == Ripper::EXPR_END | Ripper::EXPR_LABEL
|
|
703
|
-
# In the event that we're comparing identifiers, we're going to
|
|
704
|
-
# allow a little divergence. Ripper doesn't account for local
|
|
705
|
-
# variables introduced through named captures in regexes, and we
|
|
706
|
-
# do, which accounts for this difference.
|
|
707
|
-
IdentToken.new([[lineno, column], event, value, lex_state])
|
|
708
|
-
else
|
|
709
|
-
Token.new([[lineno, column], event, value, lex_state])
|
|
710
|
-
end
|
|
711
|
-
when :on_embexpr_end
|
|
712
|
-
IgnoreStateToken.new([[lineno, column], event, value, lex_state])
|
|
713
|
-
when :on_ignored_nl
|
|
714
|
-
# Ignored newlines can occasionally have a LABEL state attached to
|
|
715
|
-
# them which doesn't actually impact anything. We don't mirror that
|
|
716
|
-
# state so we ignored it.
|
|
717
|
-
IgnoredNewlineToken.new([[lineno, column], event, value, lex_state])
|
|
718
|
-
when :on_regexp_end
|
|
719
|
-
# On regex end, Ripper scans and then sets end state, so the ripper
|
|
720
|
-
# lexed output is begin, when it should be end. prism sets lex state
|
|
721
|
-
# correctly to end state, but we want to be able to compare against
|
|
722
|
-
# Ripper's lexed state. So here, if it's a regexp end token, we
|
|
723
|
-
# output the state as the previous state, solely for the sake of
|
|
724
|
-
# comparison.
|
|
725
|
-
previous_token = result_value[index - 1][0]
|
|
726
|
-
lex_state =
|
|
727
|
-
if RIPPER.fetch(previous_token.type) == :on_embexpr_end
|
|
728
|
-
# If the previous token is embexpr_end, then we have to do even
|
|
729
|
-
# more processing. The end of an embedded expression sets the
|
|
730
|
-
# state to the state that it had at the beginning of the
|
|
731
|
-
# embedded expression. So we have to go and find that state and
|
|
732
|
-
# set it here.
|
|
733
|
-
counter = 1
|
|
734
|
-
current_index = index - 1
|
|
735
|
-
|
|
736
|
-
until counter == 0
|
|
737
|
-
current_index -= 1
|
|
738
|
-
current_event = RIPPER.fetch(result_value[current_index][0].type)
|
|
739
|
-
counter += { on_embexpr_beg: -1, on_embexpr_end: 1 }[current_event] || 0
|
|
740
|
-
end
|
|
741
|
-
|
|
742
|
-
Ripper::Lexer::State.new(result_value[current_index][1])
|
|
743
|
-
else
|
|
744
|
-
previous_state
|
|
745
|
-
end
|
|
746
|
-
|
|
747
|
-
Token.new([[lineno, column], event, value, lex_state])
|
|
748
|
-
when :on_eof
|
|
749
|
-
previous_token = result_value[index - 1][0]
|
|
750
|
-
|
|
751
|
-
# If we're at the end of the file and the previous token was a
|
|
752
|
-
# comment and there is still whitespace after the comment, then
|
|
753
|
-
# Ripper will append a on_nl token (even though there isn't
|
|
754
|
-
# necessarily a newline). We mirror that here.
|
|
755
|
-
if previous_token.type == :COMMENT
|
|
756
|
-
# If the comment is at the start of a heredoc: <<HEREDOC # comment
|
|
757
|
-
# then the comment's end_offset is up near the heredoc_beg.
|
|
758
|
-
# This is not the correct offset to use for figuring out if
|
|
759
|
-
# there is trailing whitespace after the last token.
|
|
760
|
-
# Use the greater offset of the two to determine the start of
|
|
761
|
-
# the trailing whitespace.
|
|
762
|
-
start_offset = [previous_token.location.end_offset, last_heredoc_end].compact.max
|
|
763
|
-
end_offset = token.location.start_offset
|
|
764
|
-
|
|
765
|
-
if start_offset < end_offset
|
|
766
|
-
if bom
|
|
767
|
-
start_offset += 3
|
|
768
|
-
end_offset += 3
|
|
769
|
-
end
|
|
770
|
-
|
|
771
|
-
tokens << Token.new([[lineno, 0], :on_nl, source.byteslice(start_offset...end_offset), lex_state])
|
|
772
|
-
end
|
|
773
|
-
end
|
|
774
|
-
|
|
775
|
-
Token.new([[lineno, column], event, value, lex_state])
|
|
776
|
-
else
|
|
777
|
-
Token.new([[lineno, column], event, value, lex_state])
|
|
778
|
-
end
|
|
779
|
-
|
|
780
|
-
previous_state = lex_state
|
|
781
|
-
|
|
782
|
-
# The order in which tokens appear in our lexer is different from the
|
|
783
|
-
# order that they appear in Ripper. When we hit the declaration of a
|
|
784
|
-
# heredoc in prism, we skip forward and lex the rest of the content of
|
|
785
|
-
# the heredoc before going back and lexing at the end of the heredoc
|
|
786
|
-
# identifier.
|
|
787
|
-
#
|
|
788
|
-
# To match up to ripper, we keep a small state variable around here to
|
|
789
|
-
# track whether we're in the middle of a heredoc or not. In this way we
|
|
790
|
-
# can shuffle around the token to match Ripper's output.
|
|
791
|
-
case state
|
|
792
|
-
when :default
|
|
793
|
-
# The default state is when there are no heredocs at all. In this
|
|
794
|
-
# state we can append the token to the list of tokens and move on.
|
|
795
|
-
tokens << token
|
|
796
|
-
|
|
797
|
-
# If we get the declaration of a heredoc, then we open a new heredoc
|
|
798
|
-
# and move into the heredoc_opened state.
|
|
799
|
-
if event == :on_heredoc_beg
|
|
800
|
-
state = :heredoc_opened
|
|
801
|
-
heredoc_stack.last << Heredoc.build(token)
|
|
802
|
-
end
|
|
803
|
-
when :heredoc_opened
|
|
804
|
-
# The heredoc_opened state is when we've seen the declaration of a
|
|
805
|
-
# heredoc and are now lexing the body of the heredoc. In this state we
|
|
806
|
-
# push tokens onto the most recently created heredoc.
|
|
807
|
-
heredoc_stack.last.last << token
|
|
808
|
-
|
|
809
|
-
case event
|
|
810
|
-
when :on_heredoc_beg
|
|
811
|
-
# If we receive a heredoc declaration while lexing the body of a
|
|
812
|
-
# heredoc, this means we have nested heredocs. In this case we'll
|
|
813
|
-
# push a new heredoc onto the stack and stay in the heredoc_opened
|
|
814
|
-
# state since we're now lexing the body of the new heredoc.
|
|
815
|
-
heredoc_stack << [Heredoc.build(token)]
|
|
816
|
-
when :on_heredoc_end
|
|
817
|
-
# If we receive the end of a heredoc, then we're done lexing the
|
|
818
|
-
# body of the heredoc. In this case we now have a completed heredoc
|
|
819
|
-
# but need to wait for the next newline to push it into the token
|
|
820
|
-
# stream.
|
|
821
|
-
state = :heredoc_closed
|
|
822
|
-
end
|
|
823
|
-
when :heredoc_closed
|
|
824
|
-
if %i[on_nl on_ignored_nl on_comment].include?(event) || (event == :on_tstring_content && value.end_with?("\n"))
|
|
825
|
-
if heredoc_stack.size > 1
|
|
826
|
-
flushing = heredoc_stack.pop
|
|
827
|
-
heredoc_stack.last.last << token
|
|
828
|
-
|
|
829
|
-
flushing.each do |heredoc|
|
|
830
|
-
heredoc.to_a.each do |flushed_token|
|
|
831
|
-
heredoc_stack.last.last << flushed_token
|
|
832
|
-
end
|
|
833
|
-
end
|
|
834
|
-
|
|
835
|
-
state = :heredoc_opened
|
|
836
|
-
next
|
|
837
|
-
end
|
|
838
|
-
elsif event == :on_heredoc_beg
|
|
839
|
-
tokens << token
|
|
840
|
-
state = :heredoc_opened
|
|
841
|
-
heredoc_stack.last << Heredoc.build(token)
|
|
842
|
-
next
|
|
843
|
-
elsif heredoc_stack.size > 1
|
|
844
|
-
heredoc_stack[-2].last << token
|
|
845
|
-
next
|
|
846
|
-
end
|
|
847
|
-
|
|
848
|
-
heredoc_stack.last.each do |heredoc|
|
|
849
|
-
tokens.concat(heredoc.to_a)
|
|
850
|
-
end
|
|
851
|
-
|
|
852
|
-
heredoc_stack.last.clear
|
|
853
|
-
state = :default
|
|
854
|
-
|
|
855
|
-
tokens << token
|
|
856
|
-
end
|
|
857
|
-
end
|
|
858
|
-
|
|
859
|
-
# Drop the EOF token from the list
|
|
860
|
-
tokens = tokens[0...-1]
|
|
861
|
-
|
|
862
|
-
# We sort by location to compare against Ripper's output
|
|
863
|
-
tokens.sort_by!(&:location)
|
|
864
|
-
|
|
865
|
-
Result.new(tokens, result.comments, result.magic_comments, result.data_loc, result.errors, result.warnings, Source.for(source))
|
|
866
|
-
end
|
|
867
|
-
end
|
|
868
|
-
|
|
869
|
-
private_constant :LexCompat
|
|
870
|
-
|
|
871
|
-
# This is a class that wraps the Ripper lexer to produce almost exactly the
|
|
872
|
-
# same tokens.
|
|
873
|
-
class LexRipper # :nodoc:
|
|
874
|
-
attr_reader :source
|
|
875
|
-
|
|
876
|
-
def initialize(source)
|
|
877
|
-
@source = source
|
|
878
|
-
end
|
|
879
|
-
|
|
880
|
-
def result
|
|
881
|
-
previous = [] #: [[Integer, Integer], Symbol, String, untyped] | []
|
|
882
|
-
results = [] #: Array[[[Integer, Integer], Symbol, String, untyped]]
|
|
883
|
-
|
|
884
|
-
lex(source).each do |token|
|
|
885
|
-
case token[1]
|
|
886
|
-
when :on_sp
|
|
887
|
-
# skip
|
|
888
|
-
when :on_tstring_content
|
|
889
|
-
if previous[1] == :on_tstring_content && (token[2].start_with?("\#$") || token[2].start_with?("\#@"))
|
|
890
|
-
previous[2] << token[2]
|
|
891
|
-
else
|
|
892
|
-
results << token
|
|
893
|
-
previous = token
|
|
894
|
-
end
|
|
895
|
-
when :on_words_sep
|
|
896
|
-
if previous[1] == :on_words_sep
|
|
897
|
-
previous[2] << token[2]
|
|
898
|
-
else
|
|
899
|
-
results << token
|
|
900
|
-
previous = token
|
|
901
|
-
end
|
|
902
|
-
else
|
|
903
|
-
results << token
|
|
904
|
-
previous = token
|
|
905
|
-
end
|
|
906
|
-
end
|
|
907
|
-
|
|
908
|
-
results
|
|
909
|
-
end
|
|
910
|
-
|
|
911
|
-
private
|
|
912
|
-
|
|
913
|
-
if Ripper.method(:lex).parameters.assoc(:keyrest)
|
|
914
|
-
def lex(source)
|
|
915
|
-
Ripper.lex(source, raise_errors: true)
|
|
916
|
-
end
|
|
917
|
-
else
|
|
918
|
-
def lex(source)
|
|
919
|
-
ripper = Ripper::Lexer.new(source)
|
|
920
|
-
ripper.lex.tap do |result|
|
|
921
|
-
raise SyntaxError, ripper.errors.map(&:message).join(' ;') if ripper.errors.any?
|
|
922
|
-
end
|
|
923
|
-
end
|
|
924
|
-
end
|
|
925
|
-
end
|
|
926
|
-
|
|
927
|
-
private_constant :LexRipper
|
|
928
|
-
end
|