@ai-ecoverse/wasix-ruby 3.4.11-2 → 3.4.11-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/PRESTAGE.md +38 -6
- package/bin/ruby +1 -0
- package/bin/ruby.wasm +0 -0
- package/lib/ruby/3.4.0/socket.rb +1790 -0
- package/lib/ruby/3.4.0/wasm32-wasi/rbconfig.rb +5 -5
- package/lib/ruby/3.4.11/English.gemspec +22 -0
- package/lib/ruby/3.4.11/English.rb +164 -0
- package/lib/ruby/3.4.11/benchmark.gemspec +32 -0
- package/lib/ruby/3.4.11/benchmark.rb +594 -0
- package/lib/ruby/3.4.11/bundled_gems.rb +248 -0
- package/lib/ruby/3.4.11/bundler/.document +1 -0
- package/lib/ruby/3.4.11/bundler/build_metadata.rb +43 -0
- package/lib/ruby/3.4.11/bundler/bundler.gemspec +45 -0
- package/lib/ruby/3.4.11/bundler/capistrano.rb +22 -0
- package/lib/ruby/3.4.11/bundler/checksum.rb +264 -0
- package/lib/ruby/3.4.11/bundler/ci_detector.rb +75 -0
- package/lib/ruby/3.4.11/bundler/cli/add.rb +49 -0
- package/lib/ruby/3.4.11/bundler/cli/binstubs.rb +57 -0
- package/lib/ruby/3.4.11/bundler/cli/cache.rb +43 -0
- package/lib/ruby/3.4.11/bundler/cli/check.rb +40 -0
- package/lib/ruby/3.4.11/bundler/cli/clean.rb +25 -0
- package/lib/ruby/3.4.11/bundler/cli/common.rb +138 -0
- package/lib/ruby/3.4.11/bundler/cli/config.rb +204 -0
- package/lib/ruby/3.4.11/bundler/cli/console.rb +42 -0
- package/lib/ruby/3.4.11/bundler/cli/doctor/diagnose.rb +167 -0
- package/lib/ruby/3.4.11/bundler/cli/doctor/ssl.rb +249 -0
- package/lib/ruby/3.4.11/bundler/cli/doctor.rb +33 -0
- package/lib/ruby/3.4.11/bundler/cli/exec.rb +89 -0
- package/lib/ruby/3.4.11/bundler/cli/fund.rb +36 -0
- package/lib/ruby/3.4.11/bundler/cli/gem.rb +467 -0
- package/lib/ruby/3.4.11/bundler/cli/info.rb +83 -0
- package/lib/ruby/3.4.11/bundler/cli/init.rb +51 -0
- package/lib/ruby/3.4.11/bundler/cli/inject.rb +60 -0
- package/lib/ruby/3.4.11/bundler/cli/install.rb +199 -0
- package/lib/ruby/3.4.11/bundler/cli/issue.rb +41 -0
- package/lib/ruby/3.4.11/bundler/cli/list.rb +66 -0
- package/lib/ruby/3.4.11/bundler/cli/lock.rb +94 -0
- package/lib/ruby/3.4.11/bundler/cli/open.rb +29 -0
- package/lib/ruby/3.4.11/bundler/cli/outdated.rb +297 -0
- package/lib/ruby/3.4.11/bundler/cli/platform.rb +48 -0
- package/lib/ruby/3.4.11/bundler/cli/plugin.rb +35 -0
- package/lib/ruby/3.4.11/bundler/cli/pristine.rb +60 -0
- package/lib/ruby/3.4.11/bundler/cli/remove.rb +17 -0
- package/lib/ruby/3.4.11/bundler/cli/show.rb +75 -0
- package/lib/ruby/3.4.11/bundler/cli/update.rb +123 -0
- package/lib/ruby/3.4.11/bundler/cli/viz.rb +31 -0
- package/lib/ruby/3.4.11/bundler/cli.rb +790 -0
- package/lib/ruby/3.4.11/bundler/compact_index_client/cache.rb +96 -0
- package/lib/ruby/3.4.11/bundler/compact_index_client/cache_file.rb +148 -0
- package/lib/ruby/3.4.11/bundler/compact_index_client/parser.rb +84 -0
- package/lib/ruby/3.4.11/bundler/compact_index_client/updater.rb +105 -0
- package/lib/ruby/3.4.11/bundler/compact_index_client.rb +97 -0
- package/lib/ruby/3.4.11/bundler/constants.rb +14 -0
- package/lib/ruby/3.4.11/bundler/current_ruby.rb +82 -0
- package/lib/ruby/3.4.11/bundler/definition.rb +1187 -0
- package/lib/ruby/3.4.11/bundler/dependency.rb +151 -0
- package/lib/ruby/3.4.11/bundler/deployment.rb +69 -0
- package/lib/ruby/3.4.11/bundler/deprecate.rb +44 -0
- package/lib/ruby/3.4.11/bundler/digest.rb +71 -0
- package/lib/ruby/3.4.11/bundler/dsl.rb +638 -0
- package/lib/ruby/3.4.11/bundler/endpoint_specification.rb +174 -0
- package/lib/ruby/3.4.11/bundler/env.rb +148 -0
- package/lib/ruby/3.4.11/bundler/environment_preserver.rb +68 -0
- package/lib/ruby/3.4.11/bundler/errors.rb +281 -0
- package/lib/ruby/3.4.11/bundler/feature_flag.rb +50 -0
- package/lib/ruby/3.4.11/bundler/fetcher/base.rb +52 -0
- package/lib/ruby/3.4.11/bundler/fetcher/compact_index.rb +120 -0
- package/lib/ruby/3.4.11/bundler/fetcher/dependency.rb +78 -0
- package/lib/ruby/3.4.11/bundler/fetcher/downloader.rb +91 -0
- package/lib/ruby/3.4.11/bundler/fetcher/gem_remote_fetcher.rb +16 -0
- package/lib/ruby/3.4.11/bundler/fetcher/index.rb +25 -0
- package/lib/ruby/3.4.11/bundler/fetcher.rb +331 -0
- package/lib/ruby/3.4.11/bundler/force_platform.rb +16 -0
- package/lib/ruby/3.4.11/bundler/friendly_errors.rb +126 -0
- package/lib/ruby/3.4.11/bundler/gem_helper.rb +237 -0
- package/lib/ruby/3.4.11/bundler/gem_helpers.rb +144 -0
- package/lib/ruby/3.4.11/bundler/gem_tasks.rb +7 -0
- package/lib/ruby/3.4.11/bundler/gem_version_promoter.rb +147 -0
- package/lib/ruby/3.4.11/bundler/graph.rb +152 -0
- package/lib/ruby/3.4.11/bundler/index.rb +205 -0
- package/lib/ruby/3.4.11/bundler/injector.rb +285 -0
- package/lib/ruby/3.4.11/bundler/inline.rb +98 -0
- package/lib/ruby/3.4.11/bundler/installer/gem_installer.rb +85 -0
- package/lib/ruby/3.4.11/bundler/installer/parallel_installer.rb +203 -0
- package/lib/ruby/3.4.11/bundler/installer/standalone.rb +113 -0
- package/lib/ruby/3.4.11/bundler/installer.rb +243 -0
- package/lib/ruby/3.4.11/bundler/lazy_specification.rb +243 -0
- package/lib/ruby/3.4.11/bundler/lockfile_generator.rb +104 -0
- package/lib/ruby/3.4.11/bundler/lockfile_parser.rb +300 -0
- package/lib/ruby/3.4.11/bundler/man/.document +1 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-add.1 +76 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-add.1.ronn +87 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-binstubs.1 +33 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-binstubs.1.ronn +44 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-cache.1 +68 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-cache.1.ronn +108 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-check.1 +24 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-check.1.ronn +31 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-clean.1 +17 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-clean.1.ronn +18 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-config.1 +317 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-config.1.ronn +408 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-console.1 +33 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-console.1.ronn +39 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-doctor.1 +30 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-doctor.1.ronn +33 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-env.1 +9 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-env.1.ronn +10 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-exec.1 +107 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-exec.1.ronn +154 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-fund.1 +22 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-fund.1.ronn +25 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-gem.1 +87 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-gem.1.ronn +149 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-help.1 +9 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-help.1.ronn +12 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-info.1 +17 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-info.1.ronn +21 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-init.1 +20 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-init.1.ronn +32 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-inject.1 +31 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-inject.1.ronn +32 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-install.1 +218 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-install.1.ronn +387 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-issue.1 +45 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-issue.1.ronn +37 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-licenses.1 +9 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-licenses.1.ronn +10 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-list.1 +35 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-list.1.ronn +36 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-lock.1 +75 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-lock.1.ronn +115 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-open.1 +32 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-open.1.ronn +28 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-outdated.1 +103 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-outdated.1.ronn +110 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-platform.1 +49 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-platform.1.ronn +49 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-plugin.1 +58 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-plugin.1.ronn +63 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-pristine.1 +23 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-pristine.1.ronn +34 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-remove.1 +21 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-remove.1.ronn +23 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-show.1 +19 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-show.1.ronn +25 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-update.1 +281 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-update.1.ronn +359 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-version.1 +22 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-version.1.ronn +24 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-viz.1 +30 -0
- package/lib/ruby/3.4.11/bundler/man/bundle-viz.1.ronn +36 -0
- package/lib/ruby/3.4.11/bundler/man/bundle.1 +102 -0
- package/lib/ruby/3.4.11/bundler/man/bundle.1.ronn +116 -0
- package/lib/ruby/3.4.11/bundler/man/gemfile.5 +472 -0
- package/lib/ruby/3.4.11/bundler/man/gemfile.5.ronn +558 -0
- package/lib/ruby/3.4.11/bundler/man/index.txt +33 -0
- package/lib/ruby/3.4.11/bundler/match_metadata.rb +30 -0
- package/lib/ruby/3.4.11/bundler/match_platform.rb +23 -0
- package/lib/ruby/3.4.11/bundler/match_remote_metadata.rb +29 -0
- package/lib/ruby/3.4.11/bundler/materialization.rb +59 -0
- package/lib/ruby/3.4.11/bundler/mirror.rb +221 -0
- package/lib/ruby/3.4.11/bundler/plugin/api/source.rb +322 -0
- package/lib/ruby/3.4.11/bundler/plugin/api.rb +81 -0
- package/lib/ruby/3.4.11/bundler/plugin/dsl.rb +53 -0
- package/lib/ruby/3.4.11/bundler/plugin/events.rb +85 -0
- package/lib/ruby/3.4.11/bundler/plugin/index.rb +197 -0
- package/lib/ruby/3.4.11/bundler/plugin/installer/git.rb +34 -0
- package/lib/ruby/3.4.11/bundler/plugin/installer/path.rb +26 -0
- package/lib/ruby/3.4.11/bundler/plugin/installer/rubygems.rb +19 -0
- package/lib/ruby/3.4.11/bundler/plugin/installer.rb +132 -0
- package/lib/ruby/3.4.11/bundler/plugin/source_list.rb +31 -0
- package/lib/ruby/3.4.11/bundler/plugin.rb +378 -0
- package/lib/ruby/3.4.11/bundler/process_lock.rb +20 -0
- package/lib/ruby/3.4.11/bundler/remote_specification.rb +126 -0
- package/lib/ruby/3.4.11/bundler/resolver/base.rb +118 -0
- package/lib/ruby/3.4.11/bundler/resolver/candidate.rb +85 -0
- package/lib/ruby/3.4.11/bundler/resolver/incompatibility.rb +15 -0
- package/lib/ruby/3.4.11/bundler/resolver/package.rb +94 -0
- package/lib/ruby/3.4.11/bundler/resolver/root.rb +25 -0
- package/lib/ruby/3.4.11/bundler/resolver/spec_group.rb +74 -0
- package/lib/ruby/3.4.11/bundler/resolver/strategy.rb +40 -0
- package/lib/ruby/3.4.11/bundler/resolver.rb +526 -0
- package/lib/ruby/3.4.11/bundler/retry.rb +66 -0
- package/lib/ruby/3.4.11/bundler/ruby_dsl.rb +62 -0
- package/lib/ruby/3.4.11/bundler/ruby_version.rb +137 -0
- package/lib/ruby/3.4.11/bundler/rubygems_ext.rb +485 -0
- package/lib/ruby/3.4.11/bundler/rubygems_gem_installer.rb +172 -0
- package/lib/ruby/3.4.11/bundler/rubygems_integration.rb +455 -0
- package/lib/ruby/3.4.11/bundler/runtime.rb +320 -0
- package/lib/ruby/3.4.11/bundler/safe_marshal.rb +31 -0
- package/lib/ruby/3.4.11/bundler/self_manager.rb +206 -0
- package/lib/ruby/3.4.11/bundler/settings/validator.rb +102 -0
- package/lib/ruby/3.4.11/bundler/settings.rb +599 -0
- package/lib/ruby/3.4.11/bundler/setup.rb +39 -0
- package/lib/ruby/3.4.11/bundler/shared_helpers.rb +398 -0
- package/lib/ruby/3.4.11/bundler/similarity_detector.rb +63 -0
- package/lib/ruby/3.4.11/bundler/source/gemspec.rb +15 -0
- package/lib/ruby/3.4.11/bundler/source/git/git_proxy.rb +472 -0
- package/lib/ruby/3.4.11/bundler/source/git.rb +452 -0
- package/lib/ruby/3.4.11/bundler/source/metadata.rb +63 -0
- package/lib/ruby/3.4.11/bundler/source/path/installer.rb +53 -0
- package/lib/ruby/3.4.11/bundler/source/path.rb +250 -0
- package/lib/ruby/3.4.11/bundler/source/rubygems/remote.rb +76 -0
- package/lib/ruby/3.4.11/bundler/source/rubygems.rb +522 -0
- package/lib/ruby/3.4.11/bundler/source/rubygems_aggregate.rb +68 -0
- package/lib/ruby/3.4.11/bundler/source.rb +118 -0
- package/lib/ruby/3.4.11/bundler/source_list.rb +273 -0
- package/lib/ruby/3.4.11/bundler/source_map.rb +71 -0
- package/lib/ruby/3.4.11/bundler/spec_set.rb +395 -0
- package/lib/ruby/3.4.11/bundler/stub_specification.rb +146 -0
- package/lib/ruby/3.4.11/bundler/templates/.document +1 -0
- package/lib/ruby/3.4.11/bundler/templates/Executable +27 -0
- package/lib/ruby/3.4.11/bundler/templates/Executable.bundler +109 -0
- package/lib/ruby/3.4.11/bundler/templates/Executable.standalone +14 -0
- package/lib/ruby/3.4.11/bundler/templates/Gemfile +5 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/CHANGELOG.md.tt +5 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +132 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/Cargo.toml.tt +7 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/Gemfile.tt +24 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/LICENSE.txt.tt +21 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/README.md.tt +49 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/Rakefile.tt +67 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/bin/console.tt +11 -0
- package/lib/ruby/{gems/3.4.0/gems/nkf-0.2.0/bin/setup → 3.4.11/bundler/templates/newgem/bin/setup.tt} +0 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/circleci/config.yml.tt +25 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/exe/newgem.tt +3 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/Cargo.toml.tt +15 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/extconf-c.rb.tt +10 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/extconf-rust.rb.tt +6 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/newgem.c.tt +9 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/newgem.h.tt +6 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/src/lib.rs.tt +12 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/github/workflows/main.yml.tt +37 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/gitignore.tt +23 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/gitlab-ci.yml.tt +18 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/lib/newgem/version.rb.tt +9 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/lib/newgem.rb.tt +15 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/newgem.gemspec.tt +52 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/rspec.tt +3 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/rubocop.yml.tt +8 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/sig/newgem.rbs.tt +8 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/spec/newgem_spec.rb.tt +11 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/spec/spec_helper.rb.tt +15 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/standard.yml.tt +3 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/test/minitest/test_helper.rb.tt +6 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/test/minitest/test_newgem.rb.tt +13 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/test/test-unit/newgem_test.rb.tt +15 -0
- package/lib/ruby/3.4.11/bundler/templates/newgem/test/test-unit/test_helper.rb.tt +6 -0
- package/lib/ruby/3.4.11/bundler/ui/rg_proxy.rb +19 -0
- package/lib/ruby/3.4.11/bundler/ui/shell.rb +187 -0
- package/lib/ruby/3.4.11/bundler/ui/silent.rb +96 -0
- package/lib/ruby/3.4.11/bundler/ui.rb +9 -0
- package/lib/ruby/3.4.11/bundler/uri_credentials_filter.rb +43 -0
- package/lib/ruby/3.4.11/bundler/uri_normalizer.rb +23 -0
- package/lib/ruby/3.4.11/bundler/vendor/.document +1 -0
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/.document +1 -0
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb +224 -0
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool/version.rb +3 -0
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb +56 -0
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool.rb +186 -0
- package/lib/ruby/3.4.11/bundler/vendor/fileutils/.document +1 -0
- package/lib/ruby/3.4.11/bundler/vendor/fileutils/lib/fileutils.rb +2696 -0
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/.document +1 -0
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent/connection.rb +41 -0
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent/pool.rb +65 -0
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent/timed_stack_multi.rb +79 -0
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +1111 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/.document +1 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb +20 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/basic_package_source.rb +169 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/failure_writer.rb +182 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/incompatibility.rb +150 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/package.rb +43 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/partial_solution.rb +121 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/rubygems.rb +45 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/solve_failure.rb +19 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb +61 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/strategy.rb +42 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/term.rb +105 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version.rb +3 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_constraint.rb +129 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb +423 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_solver.rb +236 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_union.rb +178 -0
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub.rb +31 -0
- package/lib/ruby/3.4.11/bundler/vendor/securerandom/.document +1 -0
- package/lib/ruby/3.4.11/bundler/vendor/securerandom/lib/securerandom.rb +102 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/.document +1 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/create_file.rb +105 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/create_link.rb +61 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/directory.rb +108 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +143 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +371 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +130 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions.rb +340 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/base.rb +825 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/command.rb +151 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +107 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/error.rb +106 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/group.rb +292 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/invocation.rb +178 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/line_editor/basic.rb +37 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/line_editor/readline.rb +88 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/line_editor.rb +17 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/nested_context.rb +29 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/argument.rb +86 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/arguments.rb +195 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/option.rb +178 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/options.rb +294 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser.rb +4 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/rake_compat.rb +72 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/runner.rb +335 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/basic.rb +388 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/color.rb +112 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/column_printer.rb +29 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/html.rb +81 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/table_printer.rb +118 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/terminal.rb +42 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/wrapped_printer.rb +38 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell.rb +81 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/util.rb +285 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/version.rb +3 -0
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor.rb +674 -0
- package/lib/ruby/3.4.11/bundler/vendor/tsort/.document +1 -0
- package/lib/ruby/3.4.11/bundler/vendor/tsort/lib/tsort.rb +455 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/.document +1 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/common.rb +880 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/file.rb +100 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ftp.rb +267 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/generic.rb +1592 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/http.rb +125 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/https.rb +23 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ldap.rb +261 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ldaps.rb +22 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/mailto.rb +293 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/rfc2396_parser.rb +546 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/rfc3986_parser.rb +206 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/version.rb +6 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ws.rb +83 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/wss.rb +23 -0
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri.rb +104 -0
- package/lib/ruby/3.4.11/bundler/vendored_fileutils.rb +4 -0
- package/lib/ruby/3.4.11/bundler/vendored_net_http.rb +23 -0
- package/lib/ruby/3.4.11/bundler/vendored_persistent.rb +11 -0
- package/lib/ruby/3.4.11/bundler/vendored_pub_grub.rb +4 -0
- package/lib/ruby/3.4.11/bundler/vendored_securerandom.rb +12 -0
- package/lib/ruby/3.4.11/bundler/vendored_thor.rb +8 -0
- package/lib/ruby/3.4.11/bundler/vendored_timeout.rb +12 -0
- package/lib/ruby/3.4.11/bundler/vendored_tsort.rb +4 -0
- package/lib/ruby/3.4.11/bundler/vendored_uri.rb +21 -0
- package/lib/ruby/3.4.11/bundler/version.rb +13 -0
- package/lib/ruby/3.4.11/bundler/vlad.rb +17 -0
- package/lib/ruby/3.4.11/bundler/worker.rb +117 -0
- package/lib/ruby/3.4.11/bundler/yaml_serializer.rb +98 -0
- package/lib/ruby/3.4.11/bundler.rb +701 -0
- package/lib/ruby/3.4.11/cgi/cgi.gemspec +43 -0
- package/lib/ruby/3.4.11/cgi/cookie.rb +210 -0
- package/lib/ruby/3.4.11/cgi/core.rb +900 -0
- package/lib/ruby/3.4.11/cgi/html.rb +1035 -0
- package/lib/ruby/3.4.11/cgi/session/pstore.rb +91 -0
- package/lib/ruby/3.4.11/cgi/session.rb +562 -0
- package/lib/ruby/3.4.11/cgi/util.rb +258 -0
- package/lib/ruby/3.4.11/cgi.rb +297 -0
- package/lib/ruby/3.4.11/delegate.gemspec +29 -0
- package/lib/ruby/3.4.11/delegate.rb +444 -0
- package/lib/ruby/3.4.11/did_you_mean/core_ext/name_error.rb +57 -0
- package/lib/ruby/3.4.11/did_you_mean/did_you_mean.gemspec +25 -0
- package/lib/ruby/3.4.11/did_you_mean/experimental.rb +2 -0
- package/lib/ruby/3.4.11/did_you_mean/formatter.rb +44 -0
- package/lib/ruby/3.4.11/did_you_mean/formatters/plain_formatter.rb +4 -0
- package/lib/ruby/3.4.11/did_you_mean/formatters/verbose_formatter.rb +10 -0
- package/lib/ruby/3.4.11/did_you_mean/jaro_winkler.rb +84 -0
- package/lib/ruby/3.4.11/did_you_mean/levenshtein.rb +57 -0
- package/lib/ruby/3.4.11/did_you_mean/spell_checker.rb +46 -0
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/key_error_checker.rb +28 -0
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/method_name_checker.rb +79 -0
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb +49 -0
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb +85 -0
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/name_error_checkers.rb +20 -0
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/null_checker.rb +6 -0
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/pattern_key_name_checker.rb +28 -0
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/require_path_checker.rb +39 -0
- package/lib/ruby/3.4.11/did_you_mean/tree_spell_checker.rb +109 -0
- package/lib/ruby/3.4.11/did_you_mean/verbose.rb +2 -0
- package/lib/ruby/3.4.11/did_you_mean/version.rb +3 -0
- package/lib/ruby/3.4.11/did_you_mean.rb +131 -0
- package/lib/ruby/3.4.11/erb/compiler.rb +472 -0
- package/lib/ruby/3.4.11/erb/def_method.rb +47 -0
- package/lib/ruby/3.4.11/erb/util.rb +63 -0
- package/lib/ruby/3.4.11/erb/version.rb +5 -0
- package/lib/ruby/3.4.11/erb.gemspec +38 -0
- package/lib/ruby/3.4.11/erb.rb +509 -0
- package/lib/ruby/3.4.11/error_highlight/base.rb +830 -0
- package/lib/ruby/3.4.11/error_highlight/core_ext.rb +47 -0
- package/lib/ruby/3.4.11/error_highlight/error_highlight.gemspec +27 -0
- package/lib/ruby/3.4.11/error_highlight/formatter.rb +74 -0
- package/lib/ruby/3.4.11/error_highlight/version.rb +3 -0
- package/lib/ruby/3.4.11/error_highlight.rb +2 -0
- package/lib/ruby/3.4.11/fileutils.gemspec +31 -0
- package/lib/ruby/3.4.11/fileutils.rb +2696 -0
- package/lib/ruby/3.4.11/find.gemspec +29 -0
- package/lib/ruby/3.4.11/find.rb +90 -0
- package/lib/ruby/3.4.11/forwardable/forwardable.gemspec +26 -0
- package/lib/ruby/3.4.11/forwardable/impl.rb +17 -0
- package/lib/ruby/3.4.11/forwardable.rb +321 -0
- package/lib/ruby/3.4.11/ipaddr.gemspec +36 -0
- package/lib/ruby/3.4.11/ipaddr.rb +841 -0
- package/lib/ruby/3.4.11/irb/cmd/nop.rb +4 -0
- package/lib/ruby/3.4.11/irb/color.rb +262 -0
- package/lib/ruby/3.4.11/irb/color_printer.rb +55 -0
- package/lib/ruby/3.4.11/irb/command/backtrace.rb +17 -0
- package/lib/ruby/3.4.11/irb/command/base.rb +60 -0
- package/lib/ruby/3.4.11/irb/command/break.rb +17 -0
- package/lib/ruby/3.4.11/irb/command/catch.rb +17 -0
- package/lib/ruby/3.4.11/irb/command/cd.rb +51 -0
- package/lib/ruby/3.4.11/irb/command/chws.rb +40 -0
- package/lib/ruby/3.4.11/irb/command/context.rb +16 -0
- package/lib/ruby/3.4.11/irb/command/continue.rb +17 -0
- package/lib/ruby/3.4.11/irb/command/debug.rb +73 -0
- package/lib/ruby/3.4.11/irb/command/delete.rb +17 -0
- package/lib/ruby/3.4.11/irb/command/disable_irb.rb +19 -0
- package/lib/ruby/3.4.11/irb/command/edit.rb +63 -0
- package/lib/ruby/3.4.11/irb/command/exit.rb +18 -0
- package/lib/ruby/3.4.11/irb/command/finish.rb +17 -0
- package/lib/ruby/3.4.11/irb/command/force_exit.rb +18 -0
- package/lib/ruby/3.4.11/irb/command/help.rb +83 -0
- package/lib/ruby/3.4.11/irb/command/history.rb +45 -0
- package/lib/ruby/3.4.11/irb/command/info.rb +17 -0
- package/lib/ruby/3.4.11/irb/command/internal_helpers.rb +27 -0
- package/lib/ruby/3.4.11/irb/command/irb_info.rb +33 -0
- package/lib/ruby/3.4.11/irb/command/load.rb +91 -0
- package/lib/ruby/3.4.11/irb/command/ls.rb +167 -0
- package/lib/ruby/3.4.11/irb/command/measure.rb +49 -0
- package/lib/ruby/3.4.11/irb/command/next.rb +17 -0
- package/lib/ruby/3.4.11/irb/command/pushws.rb +65 -0
- package/lib/ruby/3.4.11/irb/command/show_doc.rb +51 -0
- package/lib/ruby/3.4.11/irb/command/show_source.rb +74 -0
- package/lib/ruby/3.4.11/irb/command/step.rb +17 -0
- package/lib/ruby/3.4.11/irb/command/subirb.rb +123 -0
- package/lib/ruby/3.4.11/irb/command/whereami.rb +23 -0
- package/lib/ruby/3.4.11/irb/command.rb +23 -0
- package/lib/ruby/3.4.11/irb/completion.rb +504 -0
- package/lib/ruby/3.4.11/irb/context.rb +716 -0
- package/lib/ruby/3.4.11/irb/debug/ui.rb +101 -0
- package/lib/ruby/3.4.11/irb/debug.rb +127 -0
- package/lib/ruby/3.4.11/irb/default_commands.rb +276 -0
- package/lib/ruby/3.4.11/irb/easter-egg.rb +152 -0
- package/lib/ruby/3.4.11/irb/ext/change-ws.rb +37 -0
- package/lib/ruby/3.4.11/irb/ext/eval_history.rb +149 -0
- package/lib/ruby/3.4.11/irb/ext/loader.rb +127 -0
- package/lib/ruby/3.4.11/irb/ext/multi-irb.rb +258 -0
- package/lib/ruby/3.4.11/irb/ext/tracer.rb +39 -0
- package/lib/ruby/3.4.11/irb/ext/use-loader.rb +67 -0
- package/lib/ruby/3.4.11/irb/ext/workspaces.rb +36 -0
- package/lib/ruby/3.4.11/irb/frame.rb +80 -0
- package/lib/ruby/3.4.11/irb/help.rb +28 -0
- package/lib/ruby/3.4.11/irb/helper_method/base.rb +16 -0
- package/lib/ruby/3.4.11/irb/helper_method/conf.rb +11 -0
- package/lib/ruby/3.4.11/irb/helper_method.rb +29 -0
- package/lib/ruby/3.4.11/irb/history.rb +112 -0
- package/lib/ruby/3.4.11/irb/init.rb +538 -0
- package/lib/ruby/3.4.11/irb/input-method.rb +515 -0
- package/lib/ruby/3.4.11/irb/inspector.rb +131 -0
- package/lib/ruby/3.4.11/irb/irb.gemspec +46 -0
- package/lib/ruby/3.4.11/irb/lc/error.rb +52 -0
- package/lib/ruby/3.4.11/irb/lc/help-message +55 -0
- package/lib/ruby/3.4.11/irb/lc/ja/error.rb +53 -0
- package/lib/ruby/3.4.11/irb/lc/ja/help-message +58 -0
- package/lib/ruby/3.4.11/irb/locale.rb +153 -0
- package/lib/ruby/3.4.11/irb/nesting_parser.rb +239 -0
- package/lib/ruby/3.4.11/irb/notifier.rb +230 -0
- package/lib/ruby/3.4.11/irb/output-method.rb +80 -0
- package/lib/ruby/3.4.11/irb/pager.rb +100 -0
- package/lib/ruby/3.4.11/irb/ruby-lex.rb +476 -0
- package/lib/ruby/3.4.11/irb/ruby_logo.aa +118 -0
- package/lib/ruby/3.4.11/irb/source_finder.rb +138 -0
- package/lib/ruby/3.4.11/irb/statement.rb +80 -0
- package/lib/ruby/3.4.11/irb/version.rb +11 -0
- package/lib/ruby/3.4.11/irb/workspace.rb +171 -0
- package/lib/ruby/3.4.11/irb/ws-for-case-2.rb +9 -0
- package/lib/ruby/3.4.11/irb/xmp.rb +164 -0
- package/lib/ruby/3.4.11/irb.rb +1593 -0
- package/lib/ruby/3.4.11/logger/errors.rb +9 -0
- package/lib/ruby/3.4.11/logger/formatter.rb +36 -0
- package/lib/ruby/3.4.11/logger/log_device.rb +236 -0
- package/lib/ruby/3.4.11/logger/logger.gemspec +22 -0
- package/lib/ruby/3.4.11/logger/period.rb +47 -0
- package/lib/ruby/3.4.11/logger/severity.rb +38 -0
- package/lib/ruby/3.4.11/logger/version.rb +5 -0
- package/lib/ruby/3.4.11/logger.rb +761 -0
- package/lib/ruby/3.4.11/mkmf.rb +3045 -0
- package/lib/ruby/3.4.11/net/http/exceptions.rb +34 -0
- package/lib/ruby/3.4.11/net/http/generic_request.rb +414 -0
- package/lib/ruby/3.4.11/net/http/header.rb +981 -0
- package/lib/ruby/3.4.11/net/http/net-http.gemspec +39 -0
- package/lib/ruby/3.4.11/net/http/proxy_delta.rb +17 -0
- package/lib/ruby/3.4.11/net/http/request.rb +88 -0
- package/lib/ruby/3.4.11/net/http/requests.rb +430 -0
- package/lib/ruby/3.4.11/net/http/response.rb +738 -0
- package/lib/ruby/3.4.11/net/http/responses.rb +1174 -0
- package/lib/ruby/3.4.11/net/http/status.rb +84 -0
- package/lib/ruby/3.4.11/net/http.rb +2574 -0
- package/lib/ruby/3.4.11/net/https.rb +23 -0
- package/lib/ruby/3.4.11/net/net-protocol.gemspec +34 -0
- package/lib/ruby/3.4.11/net/protocol.rb +544 -0
- package/lib/ruby/3.4.11/open-uri.gemspec +32 -0
- package/lib/ruby/3.4.11/open-uri.rb +895 -0
- package/lib/ruby/3.4.11/open3/open3.gemspec +33 -0
- package/lib/ruby/3.4.11/open3/version.rb +3 -0
- package/lib/ruby/3.4.11/open3.rb +1410 -0
- package/lib/ruby/3.4.11/optionparser.rb +2 -0
- package/lib/ruby/3.4.11/optparse/ac.rb +70 -0
- package/lib/ruby/3.4.11/optparse/date.rb +18 -0
- package/lib/ruby/3.4.11/optparse/kwargs.rb +27 -0
- package/lib/ruby/3.4.11/optparse/optparse.gemspec +31 -0
- package/lib/ruby/3.4.11/optparse/shellwords.rb +7 -0
- package/lib/ruby/3.4.11/optparse/time.rb +11 -0
- package/lib/ruby/3.4.11/optparse/uri.rb +7 -0
- package/lib/ruby/3.4.11/optparse/version.rb +80 -0
- package/lib/ruby/3.4.11/optparse.rb +2429 -0
- package/lib/ruby/3.4.11/ostruct.gemspec +24 -0
- package/lib/ruby/3.4.11/ostruct.rb +489 -0
- package/lib/ruby/3.4.11/pp.gemspec +35 -0
- package/lib/ruby/3.4.11/pp.rb +699 -0
- package/lib/ruby/3.4.11/prettyprint.gemspec +29 -0
- package/lib/ruby/3.4.11/prettyprint.rb +558 -0
- package/lib/ruby/3.4.11/prism/compiler.rb +801 -0
- package/lib/ruby/3.4.11/prism/desugar_compiler.rb +392 -0
- package/lib/ruby/3.4.11/prism/dispatcher.rb +2210 -0
- package/lib/ruby/3.4.11/prism/dsl.rb +1003 -0
- package/lib/ruby/3.4.11/prism/ffi.rb +570 -0
- package/lib/ruby/3.4.11/prism/inspect_visitor.rb +2392 -0
- package/lib/ruby/3.4.11/prism/lex_compat.rb +928 -0
- package/lib/ruby/3.4.11/prism/mutation_compiler.rb +772 -0
- package/lib/ruby/3.4.11/prism/node.rb +18816 -0
- package/lib/ruby/3.4.11/prism/node_ext.rb +511 -0
- package/lib/ruby/3.4.11/prism/pack.rb +230 -0
- package/lib/ruby/3.4.11/prism/parse_result/comments.rb +188 -0
- package/lib/ruby/3.4.11/prism/parse_result/errors.rb +66 -0
- package/lib/ruby/3.4.11/prism/parse_result/newlines.rb +155 -0
- package/lib/ruby/3.4.11/prism/parse_result.rb +911 -0
- package/lib/ruby/3.4.11/prism/pattern.rb +269 -0
- package/lib/ruby/3.4.11/prism/polyfill/append_as_bytes.rb +15 -0
- package/lib/ruby/3.4.11/prism/polyfill/byteindex.rb +13 -0
- package/lib/ruby/3.4.11/prism/polyfill/scan_byte.rb +14 -0
- package/lib/ruby/3.4.11/prism/polyfill/unpack1.rb +14 -0
- package/lib/ruby/3.4.11/prism/polyfill/warn.rb +36 -0
- package/lib/ruby/3.4.11/prism/prism.gemspec +174 -0
- package/lib/ruby/3.4.11/prism/reflection.rb +416 -0
- package/lib/ruby/3.4.11/prism/relocation.rb +505 -0
- package/lib/ruby/3.4.11/prism/serialize.rb +2400 -0
- package/lib/ruby/3.4.11/prism/string_query.rb +31 -0
- package/lib/ruby/3.4.11/prism/translation/parser/builder.rb +62 -0
- package/lib/ruby/3.4.11/prism/translation/parser/compiler.rb +2234 -0
- package/lib/ruby/3.4.11/prism/translation/parser/lexer.rb +820 -0
- package/lib/ruby/3.4.11/prism/translation/parser.rb +374 -0
- package/lib/ruby/3.4.11/prism/translation/parser33.rb +13 -0
- package/lib/ruby/3.4.11/prism/translation/parser34.rb +13 -0
- package/lib/ruby/3.4.11/prism/translation/parser35.rb +13 -0
- package/lib/ruby/3.4.11/prism/translation/parser_current.rb +24 -0
- package/lib/ruby/3.4.11/prism/translation/ripper/sexp.rb +126 -0
- package/lib/ruby/3.4.11/prism/translation/ripper/shim.rb +5 -0
- package/lib/ruby/3.4.11/prism/translation/ripper.rb +3474 -0
- package/lib/ruby/3.4.11/prism/translation/ruby_parser.rb +1929 -0
- package/lib/ruby/3.4.11/prism/translation.rb +16 -0
- package/lib/ruby/3.4.11/prism/visitor.rb +813 -0
- package/lib/ruby/3.4.11/prism.rb +91 -0
- package/lib/ruby/3.4.11/pstore.gemspec +32 -0
- package/lib/ruby/3.4.11/pstore.rb +736 -0
- package/lib/ruby/3.4.11/random/formatter.rb +372 -0
- package/lib/ruby/3.4.11/rdoc/.document +2 -0
- package/lib/ruby/3.4.11/rdoc/code_object/alias.rb +104 -0
- package/lib/ruby/3.4.11/rdoc/code_object/anon_class.rb +10 -0
- package/lib/ruby/3.4.11/rdoc/code_object/any_method.rb +374 -0
- package/lib/ruby/3.4.11/rdoc/code_object/attr.rb +172 -0
- package/lib/ruby/3.4.11/rdoc/code_object/class_module.rb +888 -0
- package/lib/ruby/3.4.11/rdoc/code_object/constant.rb +186 -0
- package/lib/ruby/3.4.11/rdoc/code_object/context/section.rb +175 -0
- package/lib/ruby/3.4.11/rdoc/code_object/context.rb +1222 -0
- package/lib/ruby/3.4.11/rdoc/code_object/extend.rb +9 -0
- package/lib/ruby/3.4.11/rdoc/code_object/ghost_method.rb +6 -0
- package/lib/ruby/3.4.11/rdoc/code_object/include.rb +9 -0
- package/lib/ruby/3.4.11/rdoc/code_object/meta_method.rb +6 -0
- package/lib/ruby/3.4.11/rdoc/code_object/method_attr.rb +410 -0
- package/lib/ruby/3.4.11/rdoc/code_object/mixin.rb +120 -0
- package/lib/ruby/3.4.11/rdoc/code_object/normal_class.rb +92 -0
- package/lib/ruby/3.4.11/rdoc/code_object/normal_module.rb +73 -0
- package/lib/ruby/3.4.11/rdoc/code_object/require.rb +51 -0
- package/lib/ruby/3.4.11/rdoc/code_object/single_class.rb +30 -0
- package/lib/ruby/3.4.11/rdoc/code_object/top_level.rb +273 -0
- package/lib/ruby/3.4.11/rdoc/code_object.rb +395 -0
- package/lib/ruby/3.4.11/rdoc/code_objects.rb +5 -0
- package/lib/ruby/3.4.11/rdoc/comment.rb +236 -0
- package/lib/ruby/3.4.11/rdoc/cross_reference.rb +228 -0
- package/lib/ruby/3.4.11/rdoc/encoding.rb +120 -0
- package/lib/ruby/3.4.11/rdoc/erb_partial.rb +18 -0
- package/lib/ruby/3.4.11/rdoc/erbio.rb +37 -0
- package/lib/ruby/3.4.11/rdoc/generator/darkfish.rb +812 -0
- package/lib/ruby/3.4.11/rdoc/generator/json_index.rb +284 -0
- package/lib/ruby/3.4.11/rdoc/generator/markup.rb +171 -0
- package/lib/ruby/3.4.11/rdoc/generator/pot/message_extractor.rb +68 -0
- package/lib/ruby/3.4.11/rdoc/generator/pot/po.rb +84 -0
- package/lib/ruby/3.4.11/rdoc/generator/pot/po_entry.rb +141 -0
- package/lib/ruby/3.4.11/rdoc/generator/pot.rb +94 -0
- package/lib/ruby/3.4.11/rdoc/generator/ri.rb +30 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/.document +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_footer.rhtml +5 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_head.rhtml +48 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +5 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +15 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +15 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +15 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +21 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +11 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +32 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +6 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_search.rhtml +14 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +11 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +39 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_toggle.rhtml +3 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/class.rhtml +221 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/css/fonts.css +167 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/css/rdoc.css +683 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/add.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/arrow_up.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/brick.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/brick_link.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/bug.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/bullet_black.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/date.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/delete.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/find.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/loadingAnimation.gif +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/macFFBgHack.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/package.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/page_green.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/page_white_text.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/page_white_width.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/plugin.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/ruby.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/tag_blue.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/tag_green.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/transparent.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/wrench.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/wrench_orange.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/zoom.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/index.rhtml +23 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/js/darkfish.js +120 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/js/search.js +110 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/page.rhtml +18 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/servlet_not_found.rhtml +20 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/servlet_root.rhtml +65 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/table_of_contents.rhtml +70 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/json_index/.document +1 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/json_index/js/navigation.js +105 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/json_index/js/searcher.js +229 -0
- package/lib/ruby/3.4.11/rdoc/generator.rb +51 -0
- package/lib/ruby/3.4.11/rdoc/i18n/locale.rb +102 -0
- package/lib/ruby/3.4.11/rdoc/i18n/text.rb +126 -0
- package/lib/ruby/3.4.11/rdoc/i18n.rb +10 -0
- package/lib/ruby/3.4.11/rdoc/known_classes.rb +74 -0
- package/lib/ruby/3.4.11/rdoc/markdown/.document +1 -0
- package/lib/ruby/3.4.11/rdoc/markdown/entities.rb +2131 -0
- package/lib/ruby/3.4.11/rdoc/markdown/literals.rb +454 -0
- package/lib/ruby/3.4.11/rdoc/markdown.rb +16806 -0
- package/lib/ruby/3.4.11/rdoc/markup/attr_changer.rb +22 -0
- package/lib/ruby/3.4.11/rdoc/markup/attr_span.rb +35 -0
- package/lib/ruby/3.4.11/rdoc/markup/attribute_manager.rb +405 -0
- package/lib/ruby/3.4.11/rdoc/markup/attributes.rb +70 -0
- package/lib/ruby/3.4.11/rdoc/markup/blank_line.rb +27 -0
- package/lib/ruby/3.4.11/rdoc/markup/block_quote.rb +14 -0
- package/lib/ruby/3.4.11/rdoc/markup/document.rb +164 -0
- package/lib/ruby/3.4.11/rdoc/markup/formatter.rb +272 -0
- package/lib/ruby/3.4.11/rdoc/markup/hard_break.rb +31 -0
- package/lib/ruby/3.4.11/rdoc/markup/heading.rb +84 -0
- package/lib/ruby/3.4.11/rdoc/markup/include.rb +42 -0
- package/lib/ruby/3.4.11/rdoc/markup/indented_paragraph.rb +47 -0
- package/lib/ruby/3.4.11/rdoc/markup/list.rb +101 -0
- package/lib/ruby/3.4.11/rdoc/markup/list_item.rb +99 -0
- package/lib/ruby/3.4.11/rdoc/markup/paragraph.rb +28 -0
- package/lib/ruby/3.4.11/rdoc/markup/parser.rb +585 -0
- package/lib/ruby/3.4.11/rdoc/markup/pre_process.rb +318 -0
- package/lib/ruby/3.4.11/rdoc/markup/raw.rb +69 -0
- package/lib/ruby/3.4.11/rdoc/markup/regexp_handling.rb +40 -0
- package/lib/ruby/3.4.11/rdoc/markup/rule.rb +20 -0
- package/lib/ruby/3.4.11/rdoc/markup/table.rb +56 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_ansi.rb +93 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_bs.rb +102 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_html.rb +462 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_html_crossref.rb +226 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_html_snippet.rb +287 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_joined_paragraph.rb +46 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_label.rb +74 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_markdown.rb +191 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_rdoc.rb +353 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_table_of_contents.rb +88 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_test.rb +69 -0
- package/lib/ruby/3.4.11/rdoc/markup/to_tt_only.rb +120 -0
- package/lib/ruby/3.4.11/rdoc/markup/verbatim.rb +83 -0
- package/lib/ruby/3.4.11/rdoc/markup.rb +240 -0
- package/lib/ruby/3.4.11/rdoc/options.rb +1416 -0
- package/lib/ruby/3.4.11/rdoc/parser/c.rb +1257 -0
- package/lib/ruby/3.4.11/rdoc/parser/changelog.rb +350 -0
- package/lib/ruby/3.4.11/rdoc/parser/markdown.rb +22 -0
- package/lib/ruby/3.4.11/rdoc/parser/prism_ruby.rb +1092 -0
- package/lib/ruby/3.4.11/rdoc/parser/rd.rb +22 -0
- package/lib/ruby/3.4.11/rdoc/parser/ripper_state_lex.rb +302 -0
- package/lib/ruby/3.4.11/rdoc/parser/ruby.rb +2378 -0
- package/lib/ruby/3.4.11/rdoc/parser/ruby_tools.rb +165 -0
- package/lib/ruby/3.4.11/rdoc/parser/simple.rb +61 -0
- package/lib/ruby/3.4.11/rdoc/parser/text.rb +11 -0
- package/lib/ruby/3.4.11/rdoc/parser.rb +297 -0
- package/lib/ruby/3.4.11/rdoc/rd/.document +1 -0
- package/lib/ruby/3.4.11/rdoc/rd/block_parser.rb +1706 -0
- package/lib/ruby/3.4.11/rdoc/rd/inline.rb +71 -0
- package/lib/ruby/3.4.11/rdoc/rd/inline_parser.rb +1854 -0
- package/lib/ruby/3.4.11/rdoc/rd.rb +99 -0
- package/lib/ruby/3.4.11/rdoc/rdoc.gemspec +68 -0
- package/lib/ruby/3.4.11/rdoc/rdoc.rb +551 -0
- package/lib/ruby/3.4.11/rdoc/ri/driver.rb +1566 -0
- package/lib/ruby/3.4.11/rdoc/ri/formatter.rb +6 -0
- package/lib/ruby/3.4.11/rdoc/ri/paths.rb +171 -0
- package/lib/ruby/3.4.11/rdoc/ri/store.rb +6 -0
- package/lib/ruby/3.4.11/rdoc/ri/task.rb +71 -0
- package/lib/ruby/3.4.11/rdoc/ri.rb +20 -0
- package/lib/ruby/3.4.11/rdoc/rubygems_hook.rb +327 -0
- package/lib/ruby/3.4.11/rdoc/servlet.rb +452 -0
- package/lib/ruby/3.4.11/rdoc/stats/normal.rb +58 -0
- package/lib/ruby/3.4.11/rdoc/stats/quiet.rb +59 -0
- package/lib/ruby/3.4.11/rdoc/stats/verbose.rb +44 -0
- package/lib/ruby/3.4.11/rdoc/stats.rb +461 -0
- package/lib/ruby/3.4.11/rdoc/store.rb +997 -0
- package/lib/ruby/3.4.11/rdoc/task.rb +354 -0
- package/lib/ruby/3.4.11/rdoc/text.rb +322 -0
- package/lib/ruby/3.4.11/rdoc/token_stream.rb +118 -0
- package/lib/ruby/3.4.11/rdoc/tom_doc.rb +257 -0
- package/lib/ruby/3.4.11/rdoc/version.rb +10 -0
- package/lib/ruby/3.4.11/rdoc.rb +211 -0
- package/lib/ruby/3.4.11/readline.gemspec +33 -0
- package/lib/ruby/3.4.11/readline.rb +7 -0
- package/lib/ruby/3.4.11/reline/config.rb +373 -0
- package/lib/ruby/3.4.11/reline/face.rb +199 -0
- package/lib/ruby/3.4.11/reline/history.rb +76 -0
- package/lib/ruby/3.4.11/reline/io/ansi.rb +325 -0
- package/lib/ruby/3.4.11/reline/io/dumb.rb +120 -0
- package/lib/ruby/3.4.11/reline/io/windows.rb +530 -0
- package/lib/ruby/3.4.11/reline/io.rb +55 -0
- package/lib/ruby/3.4.11/reline/key_actor/base.rb +37 -0
- package/lib/ruby/3.4.11/reline/key_actor/composite.rb +17 -0
- package/lib/ruby/3.4.11/reline/key_actor/emacs.rb +517 -0
- package/lib/ruby/3.4.11/reline/key_actor/vi_command.rb +518 -0
- package/lib/ruby/3.4.11/reline/key_actor/vi_insert.rb +517 -0
- package/lib/ruby/3.4.11/reline/key_actor.rb +8 -0
- package/lib/ruby/3.4.11/reline/key_stroke.rb +119 -0
- package/lib/ruby/3.4.11/reline/kill_ring.rb +125 -0
- package/lib/ruby/3.4.11/reline/line_editor.rb +2382 -0
- package/lib/ruby/3.4.11/reline/reline.gemspec +30 -0
- package/lib/ruby/3.4.11/reline/unicode/east_asian_width.rb +1267 -0
- package/lib/ruby/3.4.11/reline/unicode.rb +415 -0
- package/lib/ruby/3.4.11/reline/version.rb +3 -0
- package/lib/ruby/3.4.11/reline.rb +519 -0
- package/lib/ruby/3.4.11/resolv.gemspec +30 -0
- package/lib/ruby/3.4.11/resolv.rb +3587 -0
- package/lib/ruby/3.4.11/ruby2_keywords.gemspec +23 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/.document +1 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/assembler.rb +1160 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/block.rb +11 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/branch_stub.rb +24 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/c_pointer.rb +394 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/c_type.rb +99 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/code_block.rb +91 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/compiler.rb +518 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/context.rb +377 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/entry_stub.rb +7 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/exit_compiler.rb +164 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/hooks.rb +36 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/insn_compiler.rb +6046 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/instruction.rb +1326 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/invariants.rb +155 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/jit_state.rb +65 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/stats.rb +191 -0
- package/lib/ruby/3.4.11/ruby_vm/rjit/type.rb +221 -0
- package/lib/ruby/3.4.11/rubygems/available_set.rb +165 -0
- package/lib/ruby/3.4.11/rubygems/basic_specification.rb +383 -0
- package/lib/ruby/3.4.11/rubygems/bundler_version_finder.rb +77 -0
- package/lib/ruby/3.4.11/rubygems/ci_detector.rb +75 -0
- package/lib/ruby/3.4.11/rubygems/command.rb +664 -0
- package/lib/ruby/3.4.11/rubygems/command_manager.rb +255 -0
- package/lib/ruby/3.4.11/rubygems/commands/build_command.rb +127 -0
- package/lib/ruby/3.4.11/rubygems/commands/cert_command.rb +325 -0
- package/lib/ruby/3.4.11/rubygems/commands/check_command.rb +97 -0
- package/lib/ruby/3.4.11/rubygems/commands/cleanup_command.rb +178 -0
- package/lib/ruby/3.4.11/rubygems/commands/contents_command.rb +196 -0
- package/lib/ruby/3.4.11/rubygems/commands/dependency_command.rb +206 -0
- package/lib/ruby/3.4.11/rubygems/commands/environment_command.rb +181 -0
- package/lib/ruby/3.4.11/rubygems/commands/exec_command.rb +256 -0
- package/lib/ruby/3.4.11/rubygems/commands/fetch_command.rb +109 -0
- package/lib/ruby/3.4.11/rubygems/commands/generate_index_command.rb +51 -0
- package/lib/ruby/3.4.11/rubygems/commands/help_command.rb +375 -0
- package/lib/ruby/3.4.11/rubygems/commands/info_command.rb +38 -0
- package/lib/ruby/3.4.11/rubygems/commands/install_command.rb +269 -0
- package/lib/ruby/3.4.11/rubygems/commands/list_command.rb +42 -0
- package/lib/ruby/3.4.11/rubygems/commands/lock_command.rb +109 -0
- package/lib/ruby/3.4.11/rubygems/commands/mirror_command.rb +26 -0
- package/lib/ruby/3.4.11/rubygems/commands/open_command.rb +83 -0
- package/lib/ruby/3.4.11/rubygems/commands/outdated_command.rb +33 -0
- package/lib/ruby/3.4.11/rubygems/commands/owner_command.rb +124 -0
- package/lib/ruby/3.4.11/rubygems/commands/pristine_command.rb +217 -0
- package/lib/ruby/3.4.11/rubygems/commands/push_command.rb +135 -0
- package/lib/ruby/3.4.11/rubygems/commands/query_command.rb +43 -0
- package/lib/ruby/3.4.11/rubygems/commands/rdoc_command.rb +90 -0
- package/lib/ruby/3.4.11/rubygems/commands/rebuild_command.rb +262 -0
- package/lib/ruby/3.4.11/rubygems/commands/search_command.rb +41 -0
- package/lib/ruby/3.4.11/rubygems/commands/server_command.rb +26 -0
- package/lib/ruby/3.4.11/rubygems/commands/setup_command.rb +663 -0
- package/lib/ruby/3.4.11/rubygems/commands/signin_command.rb +34 -0
- package/lib/ruby/3.4.11/rubygems/commands/signout_command.rb +32 -0
- package/lib/ruby/3.4.11/rubygems/commands/sources_command.rb +227 -0
- package/lib/ruby/3.4.11/rubygems/commands/specification_command.rb +156 -0
- package/lib/ruby/3.4.11/rubygems/commands/stale_command.rb +40 -0
- package/lib/ruby/3.4.11/rubygems/commands/uninstall_command.rb +204 -0
- package/lib/ruby/3.4.11/rubygems/commands/unpack_command.rb +168 -0
- package/lib/ruby/3.4.11/rubygems/commands/update_command.rb +326 -0
- package/lib/ruby/3.4.11/rubygems/commands/which_command.rb +88 -0
- package/lib/ruby/3.4.11/rubygems/commands/yank_command.rb +99 -0
- package/lib/ruby/3.4.11/rubygems/compatibility.rb +41 -0
- package/lib/ruby/3.4.11/rubygems/config_file.rb +618 -0
- package/lib/ruby/3.4.11/rubygems/core_ext/kernel_gem.rb +68 -0
- package/lib/ruby/3.4.11/rubygems/core_ext/kernel_require.rb +149 -0
- package/lib/ruby/3.4.11/rubygems/core_ext/kernel_warn.rb +45 -0
- package/lib/ruby/3.4.11/rubygems/core_ext/tcpsocket_init.rb +54 -0
- package/lib/ruby/3.4.11/rubygems/defaults.rb +308 -0
- package/lib/ruby/3.4.11/rubygems/dependency.rb +348 -0
- package/lib/ruby/3.4.11/rubygems/dependency_installer.rb +335 -0
- package/lib/ruby/3.4.11/rubygems/dependency_list.rb +243 -0
- package/lib/ruby/3.4.11/rubygems/deprecate.rb +169 -0
- package/lib/ruby/3.4.11/rubygems/doctor.rb +132 -0
- package/lib/ruby/3.4.11/rubygems/errors.rb +177 -0
- package/lib/ruby/3.4.11/rubygems/exceptions.rb +293 -0
- package/lib/ruby/3.4.11/rubygems/ext/build_error.rb +9 -0
- package/lib/ruby/3.4.11/rubygems/ext/builder.rb +260 -0
- package/lib/ruby/3.4.11/rubygems/ext/cargo_builder/link_flag_converter.rb +27 -0
- package/lib/ruby/3.4.11/rubygems/ext/cargo_builder.rb +346 -0
- package/lib/ruby/3.4.11/rubygems/ext/cmake_builder.rb +21 -0
- package/lib/ruby/3.4.11/rubygems/ext/configure_builder.rb +26 -0
- package/lib/ruby/3.4.11/rubygems/ext/ext_conf_builder.rb +77 -0
- package/lib/ruby/3.4.11/rubygems/ext/rake_builder.rb +37 -0
- package/lib/ruby/3.4.11/rubygems/ext.rb +20 -0
- package/lib/ruby/3.4.11/rubygems/gem_runner.rb +89 -0
- package/lib/ruby/3.4.11/rubygems/gemcutter_utilities/webauthn_listener/response.rb +163 -0
- package/lib/ruby/3.4.11/rubygems/gemcutter_utilities/webauthn_listener.rb +105 -0
- package/lib/ruby/3.4.11/rubygems/gemcutter_utilities/webauthn_poller.rb +80 -0
- package/lib/ruby/3.4.11/rubygems/gemcutter_utilities.rb +397 -0
- package/lib/ruby/3.4.11/rubygems/gemspec_helpers.rb +19 -0
- package/lib/ruby/3.4.11/rubygems/install_default_message.rb +13 -0
- package/lib/ruby/3.4.11/rubygems/install_message.rb +13 -0
- package/lib/ruby/3.4.11/rubygems/install_update_options.rb +204 -0
- package/lib/ruby/3.4.11/rubygems/installer.rb +1031 -0
- package/lib/ruby/3.4.11/rubygems/installer_uninstaller_utils.rb +27 -0
- package/lib/ruby/3.4.11/rubygems/local_remote_options.rb +146 -0
- package/lib/ruby/3.4.11/rubygems/name_tuple.rb +119 -0
- package/lib/ruby/3.4.11/rubygems/openssl.rb +7 -0
- package/lib/ruby/3.4.11/rubygems/package/digest_io.rb +63 -0
- package/lib/ruby/3.4.11/rubygems/package/file_source.rb +32 -0
- package/lib/ruby/3.4.11/rubygems/package/io_source.rb +48 -0
- package/lib/ruby/3.4.11/rubygems/package/old.rb +169 -0
- package/lib/ruby/3.4.11/rubygems/package/source.rb +4 -0
- package/lib/ruby/3.4.11/rubygems/package/tar_header.rb +277 -0
- package/lib/ruby/3.4.11/rubygems/package/tar_reader/entry.rb +244 -0
- package/lib/ruby/3.4.11/rubygems/package/tar_reader.rb +101 -0
- package/lib/ruby/3.4.11/rubygems/package/tar_writer.rb +332 -0
- package/lib/ruby/3.4.11/rubygems/package.rb +742 -0
- package/lib/ruby/3.4.11/rubygems/package_task.rb +123 -0
- package/lib/ruby/3.4.11/rubygems/path_support.rb +85 -0
- package/lib/ruby/3.4.11/rubygems/platform.rb +269 -0
- package/lib/ruby/3.4.11/rubygems/psych_tree.rb +37 -0
- package/lib/ruby/3.4.11/rubygems/query_utils.rb +349 -0
- package/lib/ruby/3.4.11/rubygems/rdoc.rb +26 -0
- package/lib/ruby/3.4.11/rubygems/remote_fetcher.rb +341 -0
- package/lib/ruby/3.4.11/rubygems/request/connection_pools.rb +95 -0
- package/lib/ruby/3.4.11/rubygems/request/http_pool.rb +47 -0
- package/lib/ruby/3.4.11/rubygems/request/https_pool.rb +10 -0
- package/lib/ruby/3.4.11/rubygems/request.rb +298 -0
- package/lib/ruby/3.4.11/rubygems/request_set/gem_dependency_api.rb +841 -0
- package/lib/ruby/3.4.11/rubygems/request_set/lockfile/parser.rb +344 -0
- package/lib/ruby/3.4.11/rubygems/request_set/lockfile/tokenizer.rb +122 -0
- package/lib/ruby/3.4.11/rubygems/request_set/lockfile.rb +235 -0
- package/lib/ruby/3.4.11/rubygems/request_set.rb +468 -0
- package/lib/ruby/3.4.11/rubygems/requirement.rb +298 -0
- package/lib/ruby/3.4.11/rubygems/resolver/activation_request.rb +159 -0
- package/lib/ruby/3.4.11/rubygems/resolver/api_set/gem_parser.rb +21 -0
- package/lib/ruby/3.4.11/rubygems/resolver/api_set.rb +139 -0
- package/lib/ruby/3.4.11/rubygems/resolver/api_specification.rb +105 -0
- package/lib/ruby/3.4.11/rubygems/resolver/best_set.rb +49 -0
- package/lib/ruby/3.4.11/rubygems/resolver/composed_set.rb +65 -0
- package/lib/ruby/3.4.11/rubygems/resolver/conflict.rb +146 -0
- package/lib/ruby/3.4.11/rubygems/resolver/current_set.rb +12 -0
- package/lib/ruby/3.4.11/rubygems/resolver/dependency_request.rb +119 -0
- package/lib/ruby/3.4.11/rubygems/resolver/git_set.rb +120 -0
- package/lib/ruby/3.4.11/rubygems/resolver/git_specification.rb +57 -0
- package/lib/ruby/3.4.11/rubygems/resolver/index_set.rb +79 -0
- package/lib/ruby/3.4.11/rubygems/resolver/index_specification.rb +101 -0
- package/lib/ruby/3.4.11/rubygems/resolver/installed_specification.rb +57 -0
- package/lib/ruby/3.4.11/rubygems/resolver/installer_set.rb +271 -0
- package/lib/ruby/3.4.11/rubygems/resolver/local_specification.rb +40 -0
- package/lib/ruby/3.4.11/rubygems/resolver/lock_set.rb +81 -0
- package/lib/ruby/3.4.11/rubygems/resolver/lock_specification.rb +86 -0
- package/lib/ruby/3.4.11/rubygems/resolver/requirement_list.rb +82 -0
- package/lib/ruby/3.4.11/rubygems/resolver/set.rb +55 -0
- package/lib/ruby/3.4.11/rubygems/resolver/source_set.rb +47 -0
- package/lib/ruby/3.4.11/rubygems/resolver/spec_specification.rb +76 -0
- package/lib/ruby/3.4.11/rubygems/resolver/specification.rb +126 -0
- package/lib/ruby/3.4.11/rubygems/resolver/stats.rb +46 -0
- package/lib/ruby/3.4.11/rubygems/resolver/vendor_set.rb +86 -0
- package/lib/ruby/3.4.11/rubygems/resolver/vendor_specification.rb +23 -0
- package/lib/ruby/3.4.11/rubygems/resolver.rb +341 -0
- package/lib/ruby/3.4.11/rubygems/s3_uri_signer.rb +177 -0
- package/lib/ruby/3.4.11/rubygems/safe_marshal/elements.rb +146 -0
- package/lib/ruby/3.4.11/rubygems/safe_marshal/reader.rb +325 -0
- package/lib/ruby/3.4.11/rubygems/safe_marshal/visitors/stream_printer.rb +31 -0
- package/lib/ruby/3.4.11/rubygems/safe_marshal/visitors/to_ruby.rb +428 -0
- package/lib/ruby/3.4.11/rubygems/safe_marshal/visitors/visitor.rb +74 -0
- package/lib/ruby/3.4.11/rubygems/safe_marshal.rb +74 -0
- package/lib/ruby/3.4.11/rubygems/safe_yaml.rb +45 -0
- package/lib/ruby/3.4.11/rubygems/security/policies.rb +114 -0
- package/lib/ruby/3.4.11/rubygems/security/policy.rb +288 -0
- package/lib/ruby/3.4.11/rubygems/security/signer.rb +212 -0
- package/lib/ruby/3.4.11/rubygems/security/trust_dir.rb +117 -0
- package/lib/ruby/3.4.11/rubygems/security.rb +615 -0
- package/lib/ruby/3.4.11/rubygems/security_option.rb +43 -0
- package/lib/ruby/3.4.11/rubygems/source/git.rb +244 -0
- package/lib/ruby/3.4.11/rubygems/source/installed.rb +39 -0
- package/lib/ruby/3.4.11/rubygems/source/local.rb +131 -0
- package/lib/ruby/3.4.11/rubygems/source/lock.rb +49 -0
- package/lib/ruby/3.4.11/rubygems/source/specific_file.rb +73 -0
- package/lib/ruby/3.4.11/rubygems/source/vendor.rb +24 -0
- package/lib/ruby/3.4.11/rubygems/source.rb +247 -0
- package/lib/ruby/3.4.11/rubygems/source_list.rb +146 -0
- package/lib/ruby/3.4.11/rubygems/spec_fetcher.rb +290 -0
- package/lib/ruby/3.4.11/rubygems/specification.rb +2666 -0
- package/lib/ruby/3.4.11/rubygems/specification_policy.rb +558 -0
- package/lib/ruby/3.4.11/rubygems/specification_record.rb +212 -0
- package/lib/ruby/3.4.11/rubygems/ssl_certs/.document +1 -0
- package/lib/ruby/3.4.11/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA.pem +21 -0
- package/lib/ruby/3.4.11/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA_R3.pem +21 -0
- package/lib/ruby/3.4.11/rubygems/stub_specification.rb +235 -0
- package/lib/ruby/3.4.11/rubygems/target_rbconfig.rb +50 -0
- package/lib/ruby/3.4.11/rubygems/text.rb +85 -0
- package/lib/ruby/3.4.11/rubygems/uninstaller.rb +429 -0
- package/lib/ruby/3.4.11/rubygems/unknown_command_spell_checker.rb +21 -0
- package/lib/ruby/3.4.11/rubygems/update_suggestion.rb +56 -0
- package/lib/ruby/3.4.11/rubygems/uri.rb +126 -0
- package/lib/ruby/3.4.11/rubygems/uri_formatter.rb +47 -0
- package/lib/ruby/3.4.11/rubygems/user_interaction.rb +650 -0
- package/lib/ruby/3.4.11/rubygems/util/licenses.rb +834 -0
- package/lib/ruby/3.4.11/rubygems/util/list.rb +40 -0
- package/lib/ruby/3.4.11/rubygems/util.rb +118 -0
- package/lib/ruby/3.4.11/rubygems/validator.rb +144 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/.document +1 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +57 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +88 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +36 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +66 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +62 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +63 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +61 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +126 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +46 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +36 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +164 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph.rb +255 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/errors.rb +149 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/gem_metadata.rb +6 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +112 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/modules/ui.rb +67 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/resolution.rb +839 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/resolver.rb +46 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/state.rb +58 -0
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo.rb +11 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/.document +1 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/exceptions.rb +34 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/generic_request.rb +414 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/header.rb +981 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/proxy_delta.rb +17 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/request.rb +88 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/requests.rb +430 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/response.rb +738 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/responses.rb +1174 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/status.rb +84 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http.rb +2580 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/https.rb +23 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-protocol/.document +1 -0
- package/lib/ruby/3.4.11/rubygems/vendor/net-protocol/lib/net/protocol.rb +544 -0
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/.document +1 -0
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optionparser.rb +2 -0
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/ac.rb +70 -0
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/date.rb +18 -0
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/kwargs.rb +27 -0
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/shellwords.rb +7 -0
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/time.rb +11 -0
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/uri.rb +7 -0
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/version.rb +80 -0
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse.rb +2426 -0
- package/lib/ruby/3.4.11/rubygems/vendor/resolv/.document +1 -0
- package/lib/ruby/3.4.11/rubygems/vendor/resolv/lib/resolv.rb +3455 -0
- package/lib/ruby/3.4.11/rubygems/vendor/securerandom/.document +1 -0
- package/lib/ruby/3.4.11/rubygems/vendor/securerandom/lib/securerandom.rb +102 -0
- package/lib/ruby/3.4.11/rubygems/vendor/timeout/.document +1 -0
- package/lib/ruby/3.4.11/rubygems/vendor/timeout/lib/timeout.rb +198 -0
- package/lib/ruby/3.4.11/rubygems/vendor/tsort/.document +1 -0
- package/lib/ruby/3.4.11/rubygems/vendor/tsort/lib/tsort.rb +455 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/.document +1 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/common.rb +880 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/file.rb +100 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ftp.rb +267 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/generic.rb +1592 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/http.rb +125 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/https.rb +23 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ldap.rb +261 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ldaps.rb +22 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/mailto.rb +293 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/rfc2396_parser.rb +546 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/rfc3986_parser.rb +206 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/version.rb +6 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ws.rb +83 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/wss.rb +23 -0
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri.rb +104 -0
- package/lib/ruby/3.4.11/rubygems/vendored_molinillo.rb +3 -0
- package/lib/ruby/3.4.11/rubygems/vendored_net_http.rb +5 -0
- package/lib/ruby/3.4.11/rubygems/vendored_optparse.rb +3 -0
- package/lib/ruby/3.4.11/rubygems/vendored_securerandom.rb +3 -0
- package/lib/ruby/3.4.11/rubygems/vendored_timeout.rb +5 -0
- package/lib/ruby/3.4.11/rubygems/vendored_tsort.rb +3 -0
- package/lib/ruby/3.4.11/rubygems/version.rb +441 -0
- package/lib/ruby/3.4.11/rubygems/version_option.rb +80 -0
- package/lib/ruby/3.4.11/rubygems/yaml_serializer.rb +98 -0
- package/lib/ruby/3.4.11/rubygems.rb +1417 -0
- package/lib/ruby/3.4.11/securerandom.gemspec +34 -0
- package/lib/ruby/3.4.11/securerandom.rb +102 -0
- package/lib/ruby/3.4.11/set/set.gemspec +30 -0
- package/lib/ruby/3.4.11/set/sorted_set.rb +6 -0
- package/lib/ruby/3.4.11/set.rb +855 -0
- package/lib/ruby/3.4.11/shellwords.gemspec +31 -0
- package/lib/ruby/3.4.11/shellwords.rb +254 -0
- package/lib/ruby/3.4.11/singleton.gemspec +30 -0
- package/lib/ruby/3.4.11/singleton.rb +239 -0
- package/lib/ruby/3.4.11/syntax_suggest/api.rb +233 -0
- package/lib/ruby/3.4.11/syntax_suggest/around_block_scan.rb +232 -0
- package/lib/ruby/3.4.11/syntax_suggest/block_expand.rb +165 -0
- package/lib/ruby/3.4.11/syntax_suggest/capture/before_after_keyword_ends.rb +85 -0
- package/lib/ruby/3.4.11/syntax_suggest/capture/falling_indent_lines.rb +71 -0
- package/lib/ruby/3.4.11/syntax_suggest/capture_code_context.rb +245 -0
- package/lib/ruby/3.4.11/syntax_suggest/clean_document.rb +306 -0
- package/lib/ruby/3.4.11/syntax_suggest/cli.rb +130 -0
- package/lib/ruby/3.4.11/syntax_suggest/code_block.rb +100 -0
- package/lib/ruby/3.4.11/syntax_suggest/code_frontier.rb +178 -0
- package/lib/ruby/3.4.11/syntax_suggest/code_line.rb +243 -0
- package/lib/ruby/3.4.11/syntax_suggest/code_search.rb +139 -0
- package/lib/ruby/3.4.11/syntax_suggest/core_ext.rb +96 -0
- package/lib/ruby/3.4.11/syntax_suggest/display_code_with_line_numbers.rb +70 -0
- package/lib/ruby/3.4.11/syntax_suggest/display_invalid_blocks.rb +83 -0
- package/lib/ruby/3.4.11/syntax_suggest/explain_syntax.rb +117 -0
- package/lib/ruby/3.4.11/syntax_suggest/left_right_lex_count.rb +168 -0
- package/lib/ruby/3.4.11/syntax_suggest/lex_all.rb +74 -0
- package/lib/ruby/3.4.11/syntax_suggest/lex_value.rb +70 -0
- package/lib/ruby/3.4.11/syntax_suggest/mini_stringio.rb +30 -0
- package/lib/ruby/3.4.11/syntax_suggest/parse_blocks_from_indent_line.rb +60 -0
- package/lib/ruby/3.4.11/syntax_suggest/pathname_from_message.rb +59 -0
- package/lib/ruby/3.4.11/syntax_suggest/priority_engulf_queue.rb +63 -0
- package/lib/ruby/3.4.11/syntax_suggest/priority_queue.rb +105 -0
- package/lib/ruby/3.4.11/syntax_suggest/ripper_errors.rb +39 -0
- package/lib/ruby/3.4.11/syntax_suggest/scan_history.rb +134 -0
- package/lib/ruby/3.4.11/syntax_suggest/syntax_suggest.gemspec +32 -0
- package/lib/ruby/3.4.11/syntax_suggest/unvisited_lines.rb +36 -0
- package/lib/ruby/3.4.11/syntax_suggest/version.rb +5 -0
- package/lib/ruby/3.4.11/syntax_suggest.rb +3 -0
- package/lib/ruby/3.4.11/tempfile.gemspec +33 -0
- package/lib/ruby/3.4.11/tempfile.rb +640 -0
- package/lib/ruby/3.4.11/time.gemspec +35 -0
- package/lib/ruby/3.4.11/time.rb +731 -0
- package/lib/ruby/3.4.11/timeout.gemspec +33 -0
- package/lib/ruby/3.4.11/timeout.rb +200 -0
- package/lib/ruby/3.4.11/tmpdir.gemspec +30 -0
- package/lib/ruby/3.4.11/tmpdir.rb +189 -0
- package/lib/ruby/3.4.11/tsort.gemspec +29 -0
- package/lib/ruby/3.4.11/tsort.rb +455 -0
- package/lib/ruby/3.4.11/un.gemspec +31 -0
- package/lib/ruby/3.4.11/un.rb +441 -0
- package/lib/ruby/3.4.11/unicode_normalize/normalize.rb +181 -0
- package/lib/ruby/3.4.11/unicode_normalize/tables.rb +9259 -0
- package/lib/ruby/3.4.11/uri/common.rb +880 -0
- package/lib/ruby/3.4.11/uri/file.rb +100 -0
- package/lib/ruby/3.4.11/uri/ftp.rb +267 -0
- package/lib/ruby/3.4.11/uri/generic.rb +1592 -0
- package/lib/ruby/3.4.11/uri/http.rb +125 -0
- package/lib/ruby/3.4.11/uri/https.rb +23 -0
- package/lib/ruby/3.4.11/uri/ldap.rb +261 -0
- package/lib/ruby/3.4.11/uri/ldaps.rb +22 -0
- package/lib/ruby/3.4.11/uri/mailto.rb +293 -0
- package/lib/ruby/3.4.11/uri/rfc2396_parser.rb +546 -0
- package/lib/ruby/3.4.11/uri/rfc3986_parser.rb +206 -0
- package/lib/ruby/3.4.11/uri/uri.gemspec +42 -0
- package/lib/ruby/3.4.11/uri/version.rb +6 -0
- package/lib/ruby/3.4.11/uri/ws.rb +83 -0
- package/lib/ruby/3.4.11/uri/wss.rb +23 -0
- package/lib/ruby/3.4.11/uri.rb +104 -0
- package/lib/ruby/3.4.11/weakref.gemspec +34 -0
- package/lib/ruby/3.4.11/weakref.rb +58 -0
- package/lib/ruby/3.4.11/yaml/dbm.rb +295 -0
- package/lib/ruby/3.4.11/yaml/store.rb +98 -0
- package/lib/ruby/3.4.11/yaml/yaml.gemspec +30 -0
- package/lib/ruby/3.4.11/yaml.rb +70 -0
- package/lib/ruby/gems/3.4.0/cache/abbrev-0.1.2.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/base64-0.2.0.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/csv-3.3.2.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/drb-2.2.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/getoptlong-0.2.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/matrix-0.4.2.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/minitest-5.25.4.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/mutex_m-0.3.0.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/net-ftp-0.3.8.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/net-imap-0.5.15.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/net-pop-0.1.2.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/net-smtp-0.5.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/observer-0.1.2.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/power_assert-2.0.5.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/prime-0.1.3.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/rake-13.2.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/repl_type_completor-0.1.9.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/resolv-replace-0.1.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/rexml-3.4.4.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/rinda-0.2.0.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/rss-0.3.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/test-unit-3.6.7.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/typeprof-0.30.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/bin/console +0 -0
- package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/bin/setup +0 -0
- package/lib/ruby/gems/3.4.0/gems/bundler-2.6.9/exe/bundle +29 -0
- package/lib/ruby/gems/3.4.0/gems/bundler-2.6.9/exe/bundler +4 -0
- package/lib/ruby/gems/3.4.0/gems/erb-4.0.4.1/libexec/erb +164 -0
- package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/bin/console +0 -0
- package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/bin/setup +0 -0
- package/lib/ruby/gems/3.4.0/gems/irb-1.14.3/exe/irb +9 -0
- package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/bin/console +0 -0
- package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/bin/setup +0 -0
- package/lib/ruby/gems/3.4.0/gems/rdoc-6.14.0/exe/rdoc +43 -0
- package/lib/ruby/gems/3.4.0/gems/rdoc-6.14.0/exe/ri +12 -0
- package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/bin/console +0 -0
- package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/bin/setup +0 -0
- package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/bin/console +0 -0
- package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/bin/setup +0 -0
- package/lib/ruby/gems/3.4.0/gems/syntax_suggest-2.0.3/exe/syntax_suggest +7 -0
- package/lib/ruby/gems/3.4.0/specifications/abbrev-0.1.2.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/base64-0.2.0.gemspec +4 -3
- package/lib/ruby/gems/3.4.0/specifications/csv-3.3.2.gemspec +5 -3
- package/lib/ruby/gems/3.4.0/specifications/default/benchmark-0.4.0.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/bundler-2.6.9.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/cgi-0.4.2.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/date-3.4.1.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/delegate-0.4.0.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/did_you_mean-2.0.0.gemspec +20 -0
- package/lib/ruby/gems/3.4.0/specifications/default/digest-3.2.0.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/english-0.8.0.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/erb-4.0.4.1.gemspec +29 -0
- package/lib/ruby/gems/3.4.0/specifications/default/error_highlight-0.7.0.gemspec +20 -0
- package/lib/ruby/gems/3.4.0/specifications/default/etc-1.4.6.gemspec +25 -0
- package/lib/ruby/gems/3.4.0/specifications/default/fcntl-1.2.0.gemspec +24 -0
- package/lib/ruby/gems/3.4.0/specifications/default/fileutils-1.7.3.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/find-0.2.0.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/forwardable-1.3.3.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/io-console-0.8.1.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/io-nonblock-0.3.2.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/io-wait-0.3.2.gemspec +24 -0
- package/lib/ruby/gems/3.4.0/specifications/default/ipaddr-1.2.7.gemspec +20 -0
- package/lib/ruby/gems/3.4.0/specifications/default/irb-1.14.3.gemspec +28 -0
- package/lib/ruby/gems/3.4.0/specifications/default/json-2.9.1.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/logger-1.6.4.gemspec +20 -0
- package/lib/ruby/gems/3.4.0/specifications/default/net-http-0.6.0.gemspec +26 -0
- package/lib/ruby/gems/3.4.0/specifications/default/net-protocol-0.2.2.gemspec +25 -0
- package/lib/ruby/gems/3.4.0/specifications/default/open-uri-0.5.0.gemspec +27 -0
- package/lib/ruby/gems/3.4.0/specifications/default/open3-0.2.1.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/openssl-3.3.3.gemspec +24 -0
- package/lib/ruby/gems/3.4.0/specifications/default/optparse-0.6.0.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/ostruct-0.6.1.gemspec +20 -0
- package/lib/ruby/gems/3.4.0/specifications/default/pathname-0.4.0.gemspec +24 -0
- package/lib/ruby/gems/3.4.0/specifications/default/pp-0.6.2.gemspec +26 -0
- package/lib/ruby/gems/3.4.0/specifications/default/prettyprint-0.2.0.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/prism-1.5.3.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/pstore-0.2.1.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/psych-5.2.2.gemspec +30 -0
- package/lib/ruby/gems/3.4.0/specifications/default/rdoc-6.14.0.gemspec +30 -0
- package/lib/ruby/gems/3.4.0/specifications/default/readline-0.0.4.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/reline-0.6.0.gemspec +25 -0
- package/lib/ruby/gems/3.4.0/specifications/default/resolv-0.7.2.gemspec +24 -0
- package/lib/ruby/gems/3.4.0/specifications/default/ruby2_keywords-0.0.5.gemspec +20 -0
- package/lib/ruby/gems/3.4.0/specifications/default/securerandom-0.4.1.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/set-1.1.1.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/shellwords-0.2.2.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/singleton-0.3.0.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/stringio-3.1.2.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/strscan-3.1.2.gemspec +24 -0
- package/lib/ruby/gems/3.4.0/specifications/default/syntax_suggest-2.0.3.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/default/tempfile-0.3.1.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/time-0.4.1.gemspec +26 -0
- package/lib/ruby/gems/3.4.0/specifications/default/timeout-0.4.3.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/tmpdir-0.3.1.gemspec +26 -0
- package/lib/ruby/gems/3.4.0/specifications/default/tsort-0.2.0.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/un-0.3.0.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/uri-1.0.4.gemspec +22 -0
- package/lib/ruby/gems/3.4.0/specifications/default/weakref-0.1.3.gemspec +25 -0
- package/lib/ruby/gems/3.4.0/specifications/default/yaml-0.4.0.gemspec +21 -0
- package/lib/ruby/gems/3.4.0/specifications/default/zlib-3.2.3.gemspec +23 -0
- package/lib/ruby/gems/3.4.0/specifications/drb-2.2.1.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/getoptlong-0.2.1.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/matrix-0.4.2.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/minitest-5.25.4.gemspec +7 -5
- package/lib/ruby/gems/3.4.0/specifications/mutex_m-0.3.0.gemspec +4 -3
- package/lib/ruby/gems/3.4.0/specifications/net-ftp-0.3.8.gemspec +10 -4
- package/lib/ruby/gems/3.4.0/specifications/net-imap-0.5.15.gemspec +7 -5
- package/lib/ruby/gems/3.4.0/specifications/net-pop-0.1.2.gemspec +9 -4
- package/lib/ruby/gems/3.4.0/specifications/net-smtp-0.5.1.gemspec +9 -4
- package/lib/ruby/gems/3.4.0/specifications/observer-0.1.2.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/power_assert-2.0.5.gemspec +6 -4
- package/lib/ruby/gems/3.4.0/specifications/prime-0.1.3.gemspec +10 -4
- package/lib/ruby/gems/3.4.0/specifications/rake-13.2.1.gemspec +6 -4
- package/lib/ruby/gems/3.4.0/specifications/repl_type_completor-0.1.9.gemspec +6 -5
- package/lib/ruby/gems/3.4.0/specifications/resolv-replace-0.1.1.gemspec +6 -5
- package/lib/ruby/gems/3.4.0/specifications/rexml-3.4.4.gemspec +5 -3
- package/lib/ruby/gems/3.4.0/specifications/rinda-0.2.0.gemspec +8 -5
- package/lib/ruby/gems/3.4.0/specifications/rss-0.3.1.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/test-unit-3.6.7.gemspec +5 -4
- package/lib/ruby/gems/3.4.0/specifications/typeprof-0.30.1.gemspec +7 -5
- package/package.json +17 -13
- package/lib/ruby/3.4.0/expect.rb +0 -71
- package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/abbrev.gemspec +0 -29
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/.bundled.bigdecimal-3.1.8.gemspec +0 -23
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/LICENSE +0 -56
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/bigdecimal-3.1.8.gemspec +0 -23
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/bigdecimal.gemspec +0 -50
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/jacobian.rb +0 -90
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/ludcmp.rb +0 -89
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/math.rb +0 -232
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/newton.rb +0 -80
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/util.rb +0 -185
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal.rb +0 -5
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/linear.rb +0 -74
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/nlsolve.rb +0 -40
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/pi.rb +0 -21
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/.bundled.debug-1.11.0.gemspec +0 -25
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/CONTRIBUTING.md +0 -573
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/Gemfile +0 -10
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/LICENSE.txt +0 -22
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/README.md +0 -996
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/Rakefile +0 -57
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/TODO.md +0 -23
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/debug-1.11.0.gemspec +0 -30
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/debug.gemspec +0 -33
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/exe/rdbg +0 -53
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/abbrev_command.rb +0 -77
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/breakpoint.rb +0 -556
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/client.rb +0 -263
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/color.rb +0 -123
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/config.rb +0 -592
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/console.rb +0 -224
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/dap_custom/traceInspector.rb +0 -336
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/frame_info.rb +0 -190
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/irb_integration.rb +0 -37
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/local.rb +0 -115
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/open.rb +0 -13
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/open_nonstop.rb +0 -15
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/prelude.rb +0 -50
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server.rb +0 -534
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server_cdp.rb +0 -1348
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server_dap.rb +0 -1108
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/session.rb +0 -2667
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/source_repository.rb +0 -150
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/start.rb +0 -5
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/thread_client.rb +0 -1457
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/tracer.rb +0 -241
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/version.rb +0 -5
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug.rb +0 -9
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/misc/README.md.erb +0 -660
- package/lib/ruby/gems/3.4.0/gems/drb-2.2.1/drb.gemspec +0 -41
- package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/getoptlong.gemspec +0 -30
- package/lib/ruby/gems/3.4.0/gems/matrix-0.4.2/matrix.gemspec +0 -26
- package/lib/ruby/gems/3.4.0/gems/minitest-5.25.4/.autotest +0 -34
- package/lib/ruby/gems/3.4.0/gems/net-ftp-0.3.8/net-ftp.gemspec +0 -34
- package/lib/ruby/gems/3.4.0/gems/net-imap-0.5.15/net-imap.gemspec +0 -38
- package/lib/ruby/gems/3.4.0/gems/net-pop-0.1.2/net-pop.gemspec +0 -32
- package/lib/ruby/gems/3.4.0/gems/net-smtp-0.5.1/net-smtp.gemspec +0 -31
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/.bundled.nkf-0.2.0.gemspec +0 -24
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/Gemfile +0 -5
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/LICENSE.txt +0 -22
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/README.md +0 -38
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/Rakefile +0 -24
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/bin/console +0 -14
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/lib/kconv.rb +0 -283
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/lib/nkf.rb +0 -6
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/nkf-0.2.0.gemspec +0 -24
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/nkf.gemspec +0 -43
- package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/observer.gemspec +0 -32
- package/lib/ruby/gems/3.4.0/gems/power_assert-2.0.5/power_assert.gemspec +0 -24
- package/lib/ruby/gems/3.4.0/gems/prime-0.1.3/prime.gemspec +0 -28
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/.bundled.racc-1.8.1.gemspec +0 -26
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/BSDL +0 -22
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/COPYING +0 -56
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/ChangeLog +0 -846
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/README.ja.rdoc +0 -58
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/README.rdoc +0 -60
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/TODO +0 -5
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/bin/racc +0 -320
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/en/grammar.en.rdoc +0 -218
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/en/grammar2.en.rdoc +0 -219
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/command.ja.html +0 -99
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/debug.ja.rdoc +0 -36
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/grammar.ja.rdoc +0 -348
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/index.ja.html +0 -10
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/parser.ja.rdoc +0 -125
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/usage.ja.html +0 -414
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/compat.rb +0 -33
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/debugflags.rb +0 -60
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/exception.rb +0 -16
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/grammar.rb +0 -1191
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/grammarfileparser.rb +0 -667
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/info.rb +0 -18
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/iset.rb +0 -92
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/logfilegenerator.rb +0 -212
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parser-text.rb +0 -644
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parser.rb +0 -630
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parserfilegenerator.rb +0 -473
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/sourcetext.rb +0 -35
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/state.rb +0 -976
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/statetransitiontable.rb +0 -311
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/static.rb +0 -5
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc.rb +0 -6
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/racc-1.8.1.gemspec +0 -26
- package/lib/ruby/gems/3.4.0/gems/rake-13.2.1/rake.gemspec +0 -101
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/.bundled.rbs-3.8.0.gemspec +0 -25
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/.rubocop.yml +0 -53
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/BSDL +0 -22
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/CHANGELOG.md +0 -1854
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/COPYING +0 -56
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/README.md +0 -203
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/Rakefile +0 -415
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/Steepfile +0 -44
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/config.yml +0 -311
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/array.rbs +0 -4062
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/basic_object.rbs +0 -375
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/binding.rbs +0 -150
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/builtin.rbs +0 -277
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/class.rbs +0 -220
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/comparable.rbs +0 -171
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/complex.rbs +0 -786
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/constants.rbs +0 -96
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/data.rbs +0 -415
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/dir.rbs +0 -981
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/encoding.rbs +0 -1371
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerable.rbs +0 -2405
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerator/product.rbs +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerator.rbs +0 -630
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/env.rbs +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/errno.rbs +0 -673
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/errors.rbs +0 -760
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/exception.rbs +0 -376
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/false_class.rbs +0 -82
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/fiber.rbs +0 -550
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/fiber_error.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/file.rbs +0 -2936
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/file_test.rbs +0 -331
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/float.rbs +0 -1151
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/gc.rbs +0 -644
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/global_variables.rbs +0 -184
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/hash.rbs +0 -1861
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/integer.rbs +0 -1413
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io/buffer.rbs +0 -984
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io/wait.rbs +0 -70
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io.rbs +0 -3402
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/kernel.rbs +0 -3054
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/marshal.rbs +0 -207
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/match_data.rbs +0 -635
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/math.rbs +0 -729
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/method.rbs +0 -386
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/module.rbs +0 -1704
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/nil_class.rbs +0 -209
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/numeric.rbs +0 -818
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object.rbs +0 -110
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object_space/weak_key_map.rbs +0 -166
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object_space.rbs +0 -190
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/proc.rbs +0 -868
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/process.rbs +0 -2296
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/ractor.rbs +0 -1065
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/random.rbs +0 -237
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/range.rbs +0 -1107
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rational.rbs +0 -531
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rb_config.rbs +0 -88
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/argf.rbs +0 -1229
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/env_class.rbs +0 -1209
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/random.rbs +0 -293
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/refinement.rbs +0 -59
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/regexp.rbs +0 -1928
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/ruby_vm.rbs +0 -765
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/basic_specification.rbs +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/config_file.rbs +0 -38
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/dependency_installer.rbs +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/errors.rbs +0 -176
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/installer.rbs +0 -15
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/path_support.rbs +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/platform.rbs +0 -7
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/request_set.rbs +0 -49
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/requirement.rbs +0 -148
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/rubygems.rbs +0 -1171
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/source_list.rbs +0 -15
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/specification.rbs +0 -23
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/stream_ui.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/uninstaller.rbs +0 -10
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/version.rbs +0 -294
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/set.rbs +0 -621
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/signal.rbs +0 -100
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/string.rbs +0 -3583
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/struct.rbs +0 -667
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/symbol.rbs +0 -475
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/thread.rbs +0 -1765
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/thread_group.rbs +0 -79
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/time.rbs +0 -1762
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/trace_point.rbs +0 -477
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/true_class.rbs +0 -98
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/unbound_method.rbs +0 -329
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/warning.rbs +0 -87
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/CONTRIBUTING.md +0 -106
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/architecture.md +0 -110
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/collection.md +0 -192
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/data_and_struct.md +0 -86
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/gem.md +0 -57
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/rbs_by_example.md +0 -309
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/repo.md +0 -125
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/sigs.md +0 -167
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/stdlib.md +0 -147
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/syntax.md +0 -905
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/tools.md +0 -17
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/exe/rbs +0 -7
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/goodcheck.yml +0 -91
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs/constants.h +0 -82
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs/ruby_objs.h +0 -72
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs.h +0 -7
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ancestor_graph.rb +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/annotations.rb +0 -199
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/formatter.rb +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/rdoc_annotator.rb +0 -400
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/rdoc_source.rb +0 -131
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate.rb +0 -8
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/annotation.rb +0 -29
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/comment.rb +0 -29
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/declarations.rb +0 -467
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/directives.rb +0 -39
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/members.rb +0 -449
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/type_param.rb +0 -225
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/visitor.rb +0 -137
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/buffer.rb +0 -67
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/builtin_names.rb +0 -58
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/colored_io.rb +0 -48
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/diff.rb +0 -83
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/validate.rb +0 -356
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli.rb +0 -1223
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/cleaner.rb +0 -38
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config/lockfile.rb +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config/lockfile_generator.rb +0 -223
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config.rb +0 -81
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/installer.rb +0 -32
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/base.rb +0 -14
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/git.rb +0 -258
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/local.rb +0 -81
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/rubygems.rb +0 -48
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/stdlib.rb +0 -50
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources.rb +0 -38
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection.rb +0 -16
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/constant.rb +0 -28
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition.rb +0 -395
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder/ancestor_builder.rb +0 -620
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder/method_builder.rb +0 -254
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder.rb +0 -841
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/diff.rb +0 -125
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment/use_map.rb +0 -77
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment.rb +0 -818
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment_loader.rb +0 -173
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment_walker.rb +0 -155
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/errors.rb +0 -600
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/factory.rb +0 -18
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/file_finder.rb +0 -28
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/location_aux.rb +0 -138
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/locator.rb +0 -241
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/method_type.rb +0 -141
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/namespace.rb +0 -125
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser/lex_result.rb +0 -15
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser/token.rb +0 -23
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser_aux.rb +0 -77
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/helpers.rb +0 -140
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/node_usage.rb +0 -99
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/rb.rb +0 -840
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/rbi.rb +0 -641
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/helpers.rb +0 -59
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/reflection.rb +0 -19
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/value_object_generator.rb +0 -279
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime.rb +0 -667
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/repository.rb +0 -127
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/resolver/constant_resolver.rb +0 -219
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/resolver/type_name_resolver.rb +0 -91
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/sorter.rb +0 -198
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/substitution.rb +0 -83
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/subtractor.rb +0 -201
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/errors.rb +0 -80
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/guaranteed.rb +0 -30
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/hook.rb +0 -212
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/observer.rb +0 -19
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/setup.rb +0 -84
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/setup_helper.rb +0 -50
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/tester.rb +0 -167
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/type_check.rb +0 -433
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test.rb +0 -112
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_alias_dependency.rb +0 -100
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_alias_regularity.rb +0 -126
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_name.rb +0 -109
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/types.rb +0 -1557
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/convertibles.rb +0 -176
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/spy.rb +0 -136
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/type_assertions.rb +0 -341
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/with_aliases.rb +0 -143
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test.rb +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/validator.rb +0 -182
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/variance_calculator.rb +0 -189
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/vendorer.rb +0 -71
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/version.rb +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/writer.rb +0 -419
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs.rb +0 -93
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rdoc/discover.rb +0 -20
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rdoc_plugin/parser.rb +0 -163
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/rbs-3.8.0.gemspec +0 -29
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/rbs.gemspec +0 -49
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/annotation.json +0 -14
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/comment.json +0 -26
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/decls.json +0 -326
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/function.json +0 -87
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/location.json +0 -56
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/members.json +0 -266
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/methodType.json +0 -50
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/typeParam.json +0 -36
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/types.json +0 -317
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/ancestor_builder.rbs +0 -163
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/ancestor_graph.rbs +0 -60
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/annotations.rbs +0 -102
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/formatter.rbs +0 -24
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/rdoc_annotater.rbs +0 -82
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/rdoc_source.rbs +0 -30
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotation.rbs +0 -27
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/buffer.rbs +0 -32
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/builtin_names.rbs +0 -44
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/colored_io.rbs +0 -15
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/diff.rbs +0 -21
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/validate.rbs +0 -43
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli.rbs +0 -87
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/cleaner.rbs +0 -13
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config/lockfile.rbs +0 -74
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config/lockfile_generator.rbs +0 -66
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config.rbs +0 -46
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/installer.rbs +0 -17
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/sources.rbs +0 -214
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection.rbs +0 -4
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/comment.rbs +0 -26
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/constant.rbs +0 -21
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/declarations.rbs +0 -267
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/definition.rbs +0 -173
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/definition_builder.rbs +0 -165
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/diff.rbs +0 -28
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/directives.rbs +0 -61
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment.rbs +0 -277
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment_loader.rbs +0 -111
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment_walker.rbs +0 -65
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/errors.rbs +0 -383
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/factory.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/file_finder.rbs +0 -28
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/location.rbs +0 -110
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/locator.rbs +0 -58
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/manifest.yaml +0 -7
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/members.rbs +0 -258
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/method_builder.rbs +0 -84
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/method_types.rbs +0 -58
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/namespace.rbs +0 -146
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/parser.rbs +0 -96
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/helpers.rbs +0 -27
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/node_usage.rbs +0 -20
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/rb.rbs +0 -96
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/rbi.rbs +0 -75
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/runtime.rbs +0 -182
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/rbs.rbs +0 -21
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/rdoc/rbs.rbs +0 -67
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/repository.rbs +0 -85
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/constant_resolver.rbs +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/context.rbs +0 -34
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/type_name_resolver.rbs +0 -35
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/bundler.rbs +0 -38
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/enumerable.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/rubygems.rbs +0 -19
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/sorter.rbs +0 -41
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/substitution.rbs +0 -48
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/subtractor.rbs +0 -37
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/errors.rbs +0 -52
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/guranteed.rbs +0 -9
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/type_check.rbs +0 -19
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test.rbs +0 -82
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_alias_dependency.rbs +0 -53
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_alias_regularity.rbs +0 -98
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_param.rbs +0 -110
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/typename.rbs +0 -79
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/types.rbs +0 -576
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/convertibles.rbs +0 -154
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/spy.rbs +0 -28
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/type_assertions.rbs +0 -194
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/with_aliases.rbs +0 -136
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/use_map.rbs +0 -35
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/util.rbs +0 -9
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/validator.rbs +0 -59
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/variance_calculator.rbs +0 -87
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/vendorer.rbs +0 -51
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/version.rbs +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/visitor.rbs +0 -47
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/writer.rbs +0 -127
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/src/constants.c +0 -153
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/src/ruby_objs.c +0 -793
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/abbrev/0/abbrev.rbs +0 -66
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/abbrev/0/array.rbs +0 -26
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/base64/0/base64.rbs +0 -355
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/benchmark/0/benchmark.rbs +0 -452
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal/0/big_decimal.rbs +0 -1629
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal-math/0/big_math.rbs +0 -119
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal-math/0/manifest.yaml +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/cgi/0/core.rbs +0 -1285
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/cgi/0/manifest.yaml +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/coverage/0/coverage.rbs +0 -263
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/csv/0/csv.rbs +0 -3776
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/csv/0/manifest.yaml +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/date.rbs +0 -1585
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/date_time.rbs +0 -616
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/time.rbs +0 -26
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/dbm/0/dbm.rbs +0 -421
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/delegator.rbs +0 -184
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/kernel.rbs +0 -47
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/simple_delegator.rbs +0 -96
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/did_you_mean/0/did_you_mean.rbs +0 -343
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/digest/0/digest.rbs +0 -577
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/erb/0/erb.rbs +0 -532
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/etc/0/etc.rbs +0 -865
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/fileutils/0/fileutils.rbs +0 -1734
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/find/0/find.rbs +0 -49
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/forwardable/0/forwardable.rbs +0 -268
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/io-console/0/io-console.rbs +0 -414
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/ipaddr/0/ipaddr.rbs +0 -428
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/json/0/json.rbs +0 -1914
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/kconv/0/kconv.rbs +0 -166
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/formatter.rbs +0 -45
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/log_device.rbs +0 -100
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/logger.rbs +0 -796
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/manifest.yaml +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/period.rbs +0 -17
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/severity.rbs +0 -34
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/kernel.rbs +0 -42
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/abstract_reporter.rbs +0 -52
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/assertion.rbs +0 -17
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/assertions.rbs +0 -590
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/backtrace_filter.rbs +0 -23
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/bench_spec.rbs +0 -102
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/benchmark.rbs +0 -259
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/composite_reporter.rbs +0 -25
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/compress.rbs +0 -13
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/error_on_warning.rbs +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/expectation.rbs +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/expectations.rbs +0 -21
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/guard.rbs +0 -64
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/mock.rbs +0 -64
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/executor.rbs +0 -46
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/test/class_methods.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/test.rbs +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel.rbs +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/pride_io.rbs +0 -62
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/pride_lol.rbs +0 -19
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/progress_reporter.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/reportable.rbs +0 -53
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/reporter.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/result.rbs +0 -28
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/runnable.rbs +0 -163
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/skip.rbs +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec/dsl/instance_methods.rbs +0 -48
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec/dsl.rbs +0 -129
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/statistics_reporter.rbs +0 -81
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/summary_reporter.rbs +0 -18
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/test/lifecycle_hooks.rbs +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/test.rbs +0 -69
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unexpected_error.rbs +0 -12
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unexpected_warning.rbs +0 -6
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unit/test_case.rbs +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unit.rbs +0 -4
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest.rbs +0 -115
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/monitor/0/monitor.rbs +0 -354
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/mutex_m/0/mutex_m.rbs +0 -104
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-http/0/manifest.yaml +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-http/0/net-http.rbs +0 -5552
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-protocol/0/manifest.yaml +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-protocol/0/net-protocol.rbs +0 -56
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-smtp/0/manifest.yaml +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-smtp/0/net-smtp.rbs +0 -55
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/nkf/0/nkf.rbs +0 -402
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/objspace/0/objspace.rbs +0 -487
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/observable/0/observable.rbs +0 -217
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open-uri/0/manifest.yaml +0 -4
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open-uri/0/open-uri.rbs +0 -393
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open3/0/open3.rbs +0 -147
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/openssl/0/manifest.yaml +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/openssl/0/openssl.rbs +0 -12113
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/optparse/0/optparse.rbs +0 -1725
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pathname/0/pathname.rbs +0 -1406
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pp/0/manifest.yaml +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pp/0/pp.rbs +0 -300
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/prettyprint/0/prettyprint.rbs +0 -383
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pstore/0/pstore.rbs +0 -603
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/core_ext.rbs +0 -12
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/dbm.rbs +0 -237
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/manifest.yaml +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/psych.rbs +0 -402
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/store.rbs +0 -59
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pty/0/pty.rbs +0 -237
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/code_object.rbs +0 -51
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/comment.rbs +0 -59
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/context.rbs +0 -153
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/markup.rbs +0 -117
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/parser.rbs +0 -56
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/rdoc.rbs +0 -391
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/ri.rbs +0 -17
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/store.rbs +0 -48
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/top_level.rbs +0 -97
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/resolv/0/manifest.yaml +0 -3
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/resolv/0/resolv.rbs +0 -1830
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/ripper/0/ripper.rbs +0 -1648
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/securerandom/0/securerandom.rbs +0 -62
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/shellwords/0/shellwords.rbs +0 -229
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/singleton/0/singleton.rbs +0 -131
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/addrinfo.rbs +0 -666
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/basic_socket.rbs +0 -590
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/constants.rbs +0 -2295
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/ip_socket.rbs +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/socket.rbs +0 -4157
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/socket_error.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/tcp_server.rbs +0 -192
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/tcp_socket.rbs +0 -79
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/udp_socket.rbs +0 -133
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/unix_server.rbs +0 -169
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/unix_socket.rbs +0 -170
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/stringio/0/stringio.rbs +0 -567
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/strscan/0/string_scanner.rbs +0 -1627
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tempfile/0/tempfile.rbs +0 -479
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/time/0/time.rbs +0 -432
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/timeout/0/timeout.rbs +0 -81
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tmpdir/0/tmpdir.rbs +0 -69
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/cyclic.rbs +0 -5
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/interfaces.rbs +0 -20
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/tsort.rbs +0 -409
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/common.rbs +0 -582
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/file.rbs +0 -118
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ftp.rbs +0 -13
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/generic.rbs +0 -1108
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/http.rbs +0 -104
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/https.rbs +0 -14
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ldap.rbs +0 -230
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ldaps.rbs +0 -14
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/mailto.rbs +0 -92
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/rfc2396_parser.rbs +0 -189
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/rfc3986_parser.rbs +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ws.rbs +0 -13
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/wss.rbs +0 -9
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/yaml/0/manifest.yaml +0 -2
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/yaml/0/yaml.rbs +0 -1
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/buf_error.rbs +0 -10
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/data_error.rbs +0 -10
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/deflate.rbs +0 -210
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/error.rbs +0 -20
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/crc_error.rbs +0 -12
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/error.rbs +0 -23
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/length_error.rbs +0 -12
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/no_footer.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file.rbs +0 -156
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_reader.rbs +0 -293
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_writer.rbs +0 -166
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/inflate.rbs +0 -180
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/mem_error.rbs +0 -10
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/need_dict.rbs +0 -13
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/stream_end.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/stream_error.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/version_error.rbs +0 -11
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/zlib.rbs +0 -449
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/zstream.rbs +0 -200
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/include/rbs/constants.h.erb +0 -20
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/include/rbs/ruby_objs.h.erb +0 -10
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/src/constants.c.erb +0 -36
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/src/ruby_objs.c.erb +0 -27
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/template.rb +0 -122
- package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/resolv-replace.gemspec +0 -22
- package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/rinda.gemspec +0 -35
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/.bundled.syslog-0.2.0.gemspec +0 -23
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/Gemfile +0 -5
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/LICENSE.txt +0 -22
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/README.md +0 -41
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/Rakefile +0 -20
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/bin/console +0 -14
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/bin/setup +0 -8
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/lib/syslog/logger.rb +0 -209
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/lib/syslog.rb +0 -10
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/syslog-0.2.0.gemspec +0 -23
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/syslog.gemspec +0 -26
- package/lib/ruby/gems/3.4.0/gems/typeprof-0.30.1/typeprof.gemspec +0 -32
- package/lib/ruby/gems/3.4.0/specifications/bigdecimal-3.1.8.gemspec +0 -50
- package/lib/ruby/gems/3.4.0/specifications/debug-1.11.0.gemspec +0 -33
- package/lib/ruby/gems/3.4.0/specifications/nkf-0.2.0.gemspec +0 -43
- package/lib/ruby/gems/3.4.0/specifications/racc-1.8.1.gemspec +0 -26
- package/lib/ruby/gems/3.4.0/specifications/rbs-3.8.0.gemspec +0 -49
- package/lib/ruby/gems/3.4.0/specifications/syslog-0.2.0.gemspec +0 -26
|
@@ -0,0 +1,2382 @@
|
|
|
1
|
+
require 'reline/kill_ring'
|
|
2
|
+
require 'reline/unicode'
|
|
3
|
+
|
|
4
|
+
require 'tempfile'
|
|
5
|
+
|
|
6
|
+
class Reline::LineEditor
|
|
7
|
+
# TODO: Use "private alias_method" idiom after drop Ruby 2.5.
|
|
8
|
+
attr_reader :byte_pointer
|
|
9
|
+
attr_accessor :confirm_multiline_termination_proc
|
|
10
|
+
attr_accessor :completion_proc
|
|
11
|
+
attr_accessor :completion_append_character
|
|
12
|
+
attr_accessor :output_modifier_proc
|
|
13
|
+
attr_accessor :prompt_proc
|
|
14
|
+
attr_accessor :auto_indent_proc
|
|
15
|
+
attr_accessor :dig_perfect_match_proc
|
|
16
|
+
|
|
17
|
+
VI_MOTIONS = %i{
|
|
18
|
+
ed_prev_char
|
|
19
|
+
ed_next_char
|
|
20
|
+
vi_zero
|
|
21
|
+
ed_move_to_beg
|
|
22
|
+
ed_move_to_end
|
|
23
|
+
vi_to_column
|
|
24
|
+
vi_next_char
|
|
25
|
+
vi_prev_char
|
|
26
|
+
vi_next_word
|
|
27
|
+
vi_prev_word
|
|
28
|
+
vi_to_next_char
|
|
29
|
+
vi_to_prev_char
|
|
30
|
+
vi_end_word
|
|
31
|
+
vi_next_big_word
|
|
32
|
+
vi_prev_big_word
|
|
33
|
+
vi_end_big_word
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
module CompletionState
|
|
37
|
+
NORMAL = :normal
|
|
38
|
+
MENU = :menu
|
|
39
|
+
MENU_WITH_PERFECT_MATCH = :menu_with_perfect_match
|
|
40
|
+
PERFECT_MATCH = :perfect_match
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
RenderedScreen = Struct.new(:base_y, :lines, :cursor_y, keyword_init: true)
|
|
44
|
+
|
|
45
|
+
CompletionJourneyState = Struct.new(:line_index, :pre, :target, :post, :list, :pointer)
|
|
46
|
+
NullActionState = [nil, nil].freeze
|
|
47
|
+
|
|
48
|
+
class MenuInfo
|
|
49
|
+
attr_reader :list
|
|
50
|
+
|
|
51
|
+
def initialize(list)
|
|
52
|
+
@list = list
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
def lines(screen_width)
|
|
56
|
+
return [] if @list.empty?
|
|
57
|
+
|
|
58
|
+
list = @list.sort
|
|
59
|
+
sizes = list.map { |item| Reline::Unicode.calculate_width(item) }
|
|
60
|
+
item_width = sizes.max + 2
|
|
61
|
+
num_cols = [screen_width / item_width, 1].max
|
|
62
|
+
num_rows = list.size.fdiv(num_cols).ceil
|
|
63
|
+
list_with_padding = list.zip(sizes).map { |item, size| item + ' ' * (item_width - size) }
|
|
64
|
+
aligned = (list_with_padding + [nil] * (num_rows * num_cols - list_with_padding.size)).each_slice(num_rows).to_a.transpose
|
|
65
|
+
aligned.map do |row|
|
|
66
|
+
row.join.rstrip
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
MINIMUM_SCROLLBAR_HEIGHT = 1
|
|
72
|
+
|
|
73
|
+
def initialize(config)
|
|
74
|
+
@config = config
|
|
75
|
+
@completion_append_character = ''
|
|
76
|
+
@screen_size = [0, 0] # Should be initialized with actual winsize in LineEditor#reset
|
|
77
|
+
reset_variables
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def io_gate
|
|
81
|
+
Reline::IOGate
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
def encoding
|
|
85
|
+
io_gate.encoding
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
def set_pasting_state(in_pasting)
|
|
89
|
+
# While pasting, text to be inserted is stored to @continuous_insertion_buffer.
|
|
90
|
+
# After pasting, this buffer should be force inserted.
|
|
91
|
+
process_insert(force: true) if @in_pasting && !in_pasting
|
|
92
|
+
@in_pasting = in_pasting
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
private def check_mode_string
|
|
96
|
+
if @config.show_mode_in_prompt
|
|
97
|
+
if @config.editing_mode_is?(:vi_command)
|
|
98
|
+
@config.vi_cmd_mode_string
|
|
99
|
+
elsif @config.editing_mode_is?(:vi_insert)
|
|
100
|
+
@config.vi_ins_mode_string
|
|
101
|
+
elsif @config.editing_mode_is?(:emacs)
|
|
102
|
+
@config.emacs_mode_string
|
|
103
|
+
else
|
|
104
|
+
'?'
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
private def check_multiline_prompt(buffer, mode_string)
|
|
110
|
+
if @vi_arg
|
|
111
|
+
prompt = "(arg: #{@vi_arg}) "
|
|
112
|
+
elsif @searching_prompt
|
|
113
|
+
prompt = @searching_prompt
|
|
114
|
+
else
|
|
115
|
+
prompt = @prompt
|
|
116
|
+
end
|
|
117
|
+
if !@is_multiline
|
|
118
|
+
mode_string = check_mode_string
|
|
119
|
+
prompt = mode_string + prompt if mode_string
|
|
120
|
+
[prompt] + [''] * (buffer.size - 1)
|
|
121
|
+
elsif @prompt_proc
|
|
122
|
+
prompt_list = @prompt_proc.(buffer).map { |pr| pr.gsub("\n", "\\n") }
|
|
123
|
+
prompt_list.map!{ prompt } if @vi_arg or @searching_prompt
|
|
124
|
+
prompt_list = [prompt] if prompt_list.empty?
|
|
125
|
+
prompt_list = prompt_list.map{ |pr| mode_string + pr } if mode_string
|
|
126
|
+
prompt = prompt_list[@line_index]
|
|
127
|
+
prompt = prompt_list[0] if prompt.nil?
|
|
128
|
+
prompt = prompt_list.last if prompt.nil?
|
|
129
|
+
if buffer.size > prompt_list.size
|
|
130
|
+
(buffer.size - prompt_list.size).times do
|
|
131
|
+
prompt_list << prompt_list.last
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
prompt_list
|
|
135
|
+
else
|
|
136
|
+
prompt = mode_string + prompt if mode_string
|
|
137
|
+
[prompt] * buffer.size
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
def reset(prompt = '')
|
|
142
|
+
@screen_size = Reline::IOGate.get_screen_size
|
|
143
|
+
reset_variables(prompt)
|
|
144
|
+
@rendered_screen.base_y = Reline::IOGate.cursor_pos.y
|
|
145
|
+
if ENV.key?('RELINE_ALT_SCROLLBAR')
|
|
146
|
+
@full_block = '::'
|
|
147
|
+
@upper_half_block = "''"
|
|
148
|
+
@lower_half_block = '..'
|
|
149
|
+
@block_elem_width = 2
|
|
150
|
+
elsif Reline::IOGate.win?
|
|
151
|
+
@full_block = '█'
|
|
152
|
+
@upper_half_block = '▀'
|
|
153
|
+
@lower_half_block = '▄'
|
|
154
|
+
@block_elem_width = 1
|
|
155
|
+
elsif encoding == Encoding::UTF_8
|
|
156
|
+
@full_block = '█'
|
|
157
|
+
@upper_half_block = '▀'
|
|
158
|
+
@lower_half_block = '▄'
|
|
159
|
+
@block_elem_width = Reline::Unicode.calculate_width('█')
|
|
160
|
+
else
|
|
161
|
+
@full_block = '::'
|
|
162
|
+
@upper_half_block = "''"
|
|
163
|
+
@lower_half_block = '..'
|
|
164
|
+
@block_elem_width = 2
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
def handle_signal
|
|
169
|
+
handle_interrupted
|
|
170
|
+
handle_resized
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
private def handle_resized
|
|
174
|
+
return unless @resized
|
|
175
|
+
|
|
176
|
+
@screen_size = Reline::IOGate.get_screen_size
|
|
177
|
+
@resized = false
|
|
178
|
+
scroll_into_view
|
|
179
|
+
Reline::IOGate.move_cursor_up @rendered_screen.cursor_y
|
|
180
|
+
@rendered_screen.base_y = Reline::IOGate.cursor_pos.y
|
|
181
|
+
clear_rendered_screen_cache
|
|
182
|
+
render
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
private def handle_interrupted
|
|
186
|
+
return unless @interrupted
|
|
187
|
+
|
|
188
|
+
@interrupted = false
|
|
189
|
+
clear_dialogs
|
|
190
|
+
render
|
|
191
|
+
cursor_to_bottom_offset = @rendered_screen.lines.size - @rendered_screen.cursor_y
|
|
192
|
+
Reline::IOGate.scroll_down cursor_to_bottom_offset
|
|
193
|
+
Reline::IOGate.move_cursor_column 0
|
|
194
|
+
clear_rendered_screen_cache
|
|
195
|
+
case @old_trap
|
|
196
|
+
when 'DEFAULT', 'SYSTEM_DEFAULT'
|
|
197
|
+
raise Interrupt
|
|
198
|
+
when 'IGNORE'
|
|
199
|
+
# Do nothing
|
|
200
|
+
when 'EXIT'
|
|
201
|
+
exit
|
|
202
|
+
else
|
|
203
|
+
@old_trap.call if @old_trap.respond_to?(:call)
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
def set_signal_handlers
|
|
208
|
+
Reline::IOGate.set_winch_handler do
|
|
209
|
+
@resized = true
|
|
210
|
+
end
|
|
211
|
+
@old_trap = Signal.trap('INT') do
|
|
212
|
+
@interrupted = true
|
|
213
|
+
end
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
def finalize
|
|
217
|
+
Signal.trap('INT', @old_trap)
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
def eof?
|
|
221
|
+
@eof
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
def reset_variables(prompt = '')
|
|
225
|
+
@prompt = prompt.gsub("\n", "\\n")
|
|
226
|
+
@mark_pointer = nil
|
|
227
|
+
@is_multiline = false
|
|
228
|
+
@finished = false
|
|
229
|
+
@history_pointer = nil
|
|
230
|
+
@kill_ring ||= Reline::KillRing.new
|
|
231
|
+
@vi_clipboard = ''
|
|
232
|
+
@vi_arg = nil
|
|
233
|
+
@waiting_proc = nil
|
|
234
|
+
@vi_waiting_operator = nil
|
|
235
|
+
@vi_waiting_operator_arg = nil
|
|
236
|
+
@completion_journey_state = nil
|
|
237
|
+
@completion_state = CompletionState::NORMAL
|
|
238
|
+
@perfect_matched = nil
|
|
239
|
+
@menu_info = nil
|
|
240
|
+
@searching_prompt = nil
|
|
241
|
+
@just_cursor_moving = false
|
|
242
|
+
@eof = false
|
|
243
|
+
@continuous_insertion_buffer = String.new(encoding: encoding)
|
|
244
|
+
@scroll_partial_screen = 0
|
|
245
|
+
@drop_terminate_spaces = false
|
|
246
|
+
@in_pasting = false
|
|
247
|
+
@auto_indent_proc = nil
|
|
248
|
+
@dialogs = []
|
|
249
|
+
@interrupted = false
|
|
250
|
+
@resized = false
|
|
251
|
+
@cache = {}
|
|
252
|
+
@rendered_screen = RenderedScreen.new(base_y: 0, lines: [], cursor_y: 0)
|
|
253
|
+
@input_lines = [[[""], 0, 0]]
|
|
254
|
+
@input_lines_position = 0
|
|
255
|
+
@restoring = false
|
|
256
|
+
@prev_action_state = NullActionState
|
|
257
|
+
@next_action_state = NullActionState
|
|
258
|
+
reset_line
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
def reset_line
|
|
262
|
+
@byte_pointer = 0
|
|
263
|
+
@buffer_of_lines = [String.new(encoding: encoding)]
|
|
264
|
+
@line_index = 0
|
|
265
|
+
@cache.clear
|
|
266
|
+
@line_backup_in_history = nil
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
def multiline_on
|
|
270
|
+
@is_multiline = true
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
def multiline_off
|
|
274
|
+
@is_multiline = false
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
private def insert_new_line(cursor_line, next_line)
|
|
278
|
+
@buffer_of_lines.insert(@line_index + 1, String.new(next_line, encoding: encoding))
|
|
279
|
+
@buffer_of_lines[@line_index] = cursor_line
|
|
280
|
+
@line_index += 1
|
|
281
|
+
@byte_pointer = 0
|
|
282
|
+
if @auto_indent_proc && !@in_pasting
|
|
283
|
+
if next_line.empty?
|
|
284
|
+
(
|
|
285
|
+
# For compatibility, use this calculation instead of just `process_auto_indent @line_index - 1, cursor_dependent: false`
|
|
286
|
+
indent1 = @auto_indent_proc.(@buffer_of_lines.take(@line_index - 1).push(''), @line_index - 1, 0, true)
|
|
287
|
+
indent2 = @auto_indent_proc.(@buffer_of_lines.take(@line_index), @line_index - 1, @buffer_of_lines[@line_index - 1].bytesize, false)
|
|
288
|
+
indent = indent2 || indent1
|
|
289
|
+
@buffer_of_lines[@line_index - 1] = ' ' * indent + @buffer_of_lines[@line_index - 1].gsub(/\A\s*/, '')
|
|
290
|
+
)
|
|
291
|
+
process_auto_indent @line_index, add_newline: true
|
|
292
|
+
else
|
|
293
|
+
process_auto_indent @line_index - 1, cursor_dependent: false
|
|
294
|
+
process_auto_indent @line_index, add_newline: true # Need for compatibility
|
|
295
|
+
process_auto_indent @line_index, cursor_dependent: false
|
|
296
|
+
end
|
|
297
|
+
end
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
private def split_line_by_width(str, max_width, offset: 0)
|
|
301
|
+
Reline::Unicode.split_line_by_width(str, max_width, encoding, offset: offset)
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
def current_byte_pointer_cursor
|
|
305
|
+
calculate_width(current_line.byteslice(0, @byte_pointer))
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
private def calculate_nearest_cursor(cursor)
|
|
309
|
+
line_to_calc = current_line
|
|
310
|
+
new_cursor_max = calculate_width(line_to_calc)
|
|
311
|
+
new_cursor = 0
|
|
312
|
+
new_byte_pointer = 0
|
|
313
|
+
height = 1
|
|
314
|
+
max_width = screen_width
|
|
315
|
+
if @config.editing_mode_is?(:vi_command)
|
|
316
|
+
last_byte_size = Reline::Unicode.get_prev_mbchar_size(line_to_calc, line_to_calc.bytesize)
|
|
317
|
+
if last_byte_size > 0
|
|
318
|
+
last_mbchar = line_to_calc.byteslice(line_to_calc.bytesize - last_byte_size, last_byte_size)
|
|
319
|
+
last_width = Reline::Unicode.get_mbchar_width(last_mbchar)
|
|
320
|
+
end_of_line_cursor = new_cursor_max - last_width
|
|
321
|
+
else
|
|
322
|
+
end_of_line_cursor = new_cursor_max
|
|
323
|
+
end
|
|
324
|
+
else
|
|
325
|
+
end_of_line_cursor = new_cursor_max
|
|
326
|
+
end
|
|
327
|
+
line_to_calc.grapheme_clusters.each do |gc|
|
|
328
|
+
mbchar = gc.encode(Encoding::UTF_8)
|
|
329
|
+
mbchar_width = Reline::Unicode.get_mbchar_width(mbchar)
|
|
330
|
+
now = new_cursor + mbchar_width
|
|
331
|
+
if now > end_of_line_cursor or now > cursor
|
|
332
|
+
break
|
|
333
|
+
end
|
|
334
|
+
new_cursor += mbchar_width
|
|
335
|
+
if new_cursor > max_width * height
|
|
336
|
+
height += 1
|
|
337
|
+
end
|
|
338
|
+
new_byte_pointer += gc.bytesize
|
|
339
|
+
end
|
|
340
|
+
@byte_pointer = new_byte_pointer
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
def with_cache(key, *deps)
|
|
344
|
+
cached_deps, value = @cache[key]
|
|
345
|
+
if cached_deps != deps
|
|
346
|
+
@cache[key] = [deps, value = yield(*deps, cached_deps, value)]
|
|
347
|
+
end
|
|
348
|
+
value
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
def modified_lines
|
|
352
|
+
with_cache(__method__, whole_lines, finished?) do |whole, complete|
|
|
353
|
+
modify_lines(whole, complete)
|
|
354
|
+
end
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
def prompt_list
|
|
358
|
+
with_cache(__method__, whole_lines, check_mode_string, @vi_arg, @searching_prompt) do |lines, mode_string|
|
|
359
|
+
check_multiline_prompt(lines, mode_string)
|
|
360
|
+
end
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
def screen_height
|
|
364
|
+
@screen_size.first
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
def screen_width
|
|
368
|
+
@screen_size.last
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
def screen_scroll_top
|
|
372
|
+
@scroll_partial_screen
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
def wrapped_prompt_and_input_lines
|
|
376
|
+
with_cache(__method__, @buffer_of_lines.size, modified_lines, prompt_list, screen_width) do |n, lines, prompts, width, prev_cache_key, cached_value|
|
|
377
|
+
prev_n, prev_lines, prev_prompts, prev_width = prev_cache_key
|
|
378
|
+
cached_wraps = {}
|
|
379
|
+
if prev_width == width
|
|
380
|
+
prev_n.times do |i|
|
|
381
|
+
cached_wraps[[prev_prompts[i], prev_lines[i]]] = cached_value[i]
|
|
382
|
+
end
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
n.times.map do |i|
|
|
386
|
+
prompt = prompts[i] || ''
|
|
387
|
+
line = lines[i] || ''
|
|
388
|
+
if (cached = cached_wraps[[prompt, line]])
|
|
389
|
+
next cached
|
|
390
|
+
end
|
|
391
|
+
*wrapped_prompts, code_line_prompt = split_line_by_width(prompt, width)
|
|
392
|
+
wrapped_lines = split_line_by_width(line, width, offset: calculate_width(code_line_prompt, true))
|
|
393
|
+
wrapped_prompts.map { |p| [p, ''] } + [[code_line_prompt, wrapped_lines.first]] + wrapped_lines.drop(1).map { |c| ['', c] }
|
|
394
|
+
end
|
|
395
|
+
end
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
def calculate_overlay_levels(overlay_levels)
|
|
399
|
+
levels = []
|
|
400
|
+
overlay_levels.each do |x, w, l|
|
|
401
|
+
levels.fill(l, x, w)
|
|
402
|
+
end
|
|
403
|
+
levels
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
def render_line_differential(old_items, new_items)
|
|
407
|
+
old_levels = calculate_overlay_levels(old_items.zip(new_items).each_with_index.map {|((x, w, c), (nx, _nw, nc)), i| [x, w, c == nc && x == nx ? i : -1] if x }.compact)
|
|
408
|
+
new_levels = calculate_overlay_levels(new_items.each_with_index.map { |(x, w), i| [x, w, i] if x }.compact).take(screen_width)
|
|
409
|
+
base_x = 0
|
|
410
|
+
new_levels.zip(old_levels).chunk { |n, o| n == o ? :skip : n || :blank }.each do |level, chunk|
|
|
411
|
+
width = chunk.size
|
|
412
|
+
if level == :skip
|
|
413
|
+
# do nothing
|
|
414
|
+
elsif level == :blank
|
|
415
|
+
Reline::IOGate.move_cursor_column base_x
|
|
416
|
+
Reline::IOGate.write "#{Reline::IOGate.reset_color_sequence}#{' ' * width}"
|
|
417
|
+
else
|
|
418
|
+
x, w, content = new_items[level]
|
|
419
|
+
cover_begin = base_x != 0 && new_levels[base_x - 1] == level
|
|
420
|
+
cover_end = new_levels[base_x + width] == level
|
|
421
|
+
pos = 0
|
|
422
|
+
unless x == base_x && w == width
|
|
423
|
+
content, pos = Reline::Unicode.take_mbchar_range(content, base_x - x, width, cover_begin: cover_begin, cover_end: cover_end, padding: true)
|
|
424
|
+
end
|
|
425
|
+
Reline::IOGate.move_cursor_column x + pos
|
|
426
|
+
Reline::IOGate.write "#{Reline::IOGate.reset_color_sequence}#{content}#{Reline::IOGate.reset_color_sequence}"
|
|
427
|
+
end
|
|
428
|
+
base_x += width
|
|
429
|
+
end
|
|
430
|
+
if old_levels.size > new_levels.size
|
|
431
|
+
Reline::IOGate.move_cursor_column new_levels.size
|
|
432
|
+
Reline::IOGate.erase_after_cursor
|
|
433
|
+
end
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
# Calculate cursor position in word wrapped content.
|
|
437
|
+
def wrapped_cursor_position
|
|
438
|
+
prompt_width = calculate_width(prompt_list[@line_index], true)
|
|
439
|
+
line_before_cursor = Reline::Unicode.escape_for_print(whole_lines[@line_index].byteslice(0, @byte_pointer))
|
|
440
|
+
wrapped_line_before_cursor = split_line_by_width(' ' * prompt_width + line_before_cursor, screen_width)
|
|
441
|
+
wrapped_cursor_y = wrapped_prompt_and_input_lines[0...@line_index].sum(&:size) + wrapped_line_before_cursor.size - 1
|
|
442
|
+
wrapped_cursor_x = calculate_width(wrapped_line_before_cursor.last)
|
|
443
|
+
[wrapped_cursor_x, wrapped_cursor_y]
|
|
444
|
+
end
|
|
445
|
+
|
|
446
|
+
def clear_dialogs
|
|
447
|
+
@dialogs.each do |dialog|
|
|
448
|
+
dialog.contents = nil
|
|
449
|
+
dialog.trap_key = nil
|
|
450
|
+
end
|
|
451
|
+
end
|
|
452
|
+
|
|
453
|
+
def update_dialogs(key = nil)
|
|
454
|
+
wrapped_cursor_x, wrapped_cursor_y = wrapped_cursor_position
|
|
455
|
+
@dialogs.each do |dialog|
|
|
456
|
+
dialog.trap_key = nil
|
|
457
|
+
update_each_dialog(dialog, wrapped_cursor_x, wrapped_cursor_y - screen_scroll_top, key)
|
|
458
|
+
end
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
def render_finished
|
|
462
|
+
Reline::IOGate.buffered_output do
|
|
463
|
+
render_differential([], 0, 0)
|
|
464
|
+
lines = @buffer_of_lines.size.times.map do |i|
|
|
465
|
+
line = Reline::Unicode.strip_non_printing_start_end(prompt_list[i]) + modified_lines[i]
|
|
466
|
+
wrapped_lines = split_line_by_width(line, screen_width)
|
|
467
|
+
wrapped_lines.last.empty? ? "#{line} " : line
|
|
468
|
+
end
|
|
469
|
+
Reline::IOGate.write lines.map { |l| "#{l}\r\n" }.join
|
|
470
|
+
end
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
def print_nomultiline_prompt
|
|
474
|
+
Reline::IOGate.disable_auto_linewrap(true) if Reline::IOGate.win?
|
|
475
|
+
# Readline's test `TestRelineAsReadline#test_readline` requires first output to be prompt, not cursor reset escape sequence.
|
|
476
|
+
Reline::IOGate.write Reline::Unicode.strip_non_printing_start_end(@prompt) if @prompt && !@is_multiline
|
|
477
|
+
ensure
|
|
478
|
+
Reline::IOGate.disable_auto_linewrap(false) if Reline::IOGate.win?
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
def render
|
|
482
|
+
wrapped_cursor_x, wrapped_cursor_y = wrapped_cursor_position
|
|
483
|
+
new_lines = wrapped_prompt_and_input_lines.flatten(1)[screen_scroll_top, screen_height].map do |prompt, line|
|
|
484
|
+
prompt_width = Reline::Unicode.calculate_width(prompt, true)
|
|
485
|
+
[[0, prompt_width, prompt], [prompt_width, Reline::Unicode.calculate_width(line, true), line]]
|
|
486
|
+
end
|
|
487
|
+
if @menu_info
|
|
488
|
+
@menu_info.lines(screen_width).each do |item|
|
|
489
|
+
new_lines << [[0, Reline::Unicode.calculate_width(item), item]]
|
|
490
|
+
end
|
|
491
|
+
@menu_info = nil # TODO: do not change state here
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
@dialogs.each_with_index do |dialog, index|
|
|
495
|
+
next unless dialog.contents
|
|
496
|
+
|
|
497
|
+
x_range, y_range = dialog_range dialog, wrapped_cursor_y - screen_scroll_top
|
|
498
|
+
y_range.each do |row|
|
|
499
|
+
next if row < 0 || row >= screen_height
|
|
500
|
+
|
|
501
|
+
dialog_rows = new_lines[row] ||= []
|
|
502
|
+
# index 0 is for prompt, index 1 is for line, index 2.. is for dialog
|
|
503
|
+
dialog_rows[index + 2] = [x_range.begin, dialog.width, dialog.contents[row - y_range.begin]]
|
|
504
|
+
end
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
Reline::IOGate.buffered_output do
|
|
508
|
+
render_differential new_lines, wrapped_cursor_x, wrapped_cursor_y - screen_scroll_top
|
|
509
|
+
end
|
|
510
|
+
end
|
|
511
|
+
|
|
512
|
+
# Reflects lines to be rendered and new cursor position to the screen
|
|
513
|
+
# by calculating the difference from the previous render.
|
|
514
|
+
|
|
515
|
+
private def render_differential(new_lines, new_cursor_x, new_cursor_y)
|
|
516
|
+
Reline::IOGate.disable_auto_linewrap(true) if Reline::IOGate.win?
|
|
517
|
+
rendered_lines = @rendered_screen.lines
|
|
518
|
+
cursor_y = @rendered_screen.cursor_y
|
|
519
|
+
if new_lines != rendered_lines
|
|
520
|
+
# Hide cursor while rendering to avoid cursor flickering.
|
|
521
|
+
Reline::IOGate.hide_cursor
|
|
522
|
+
num_lines = [[new_lines.size, rendered_lines.size].max, screen_height].min
|
|
523
|
+
if @rendered_screen.base_y + num_lines > screen_height
|
|
524
|
+
Reline::IOGate.scroll_down(num_lines - cursor_y - 1)
|
|
525
|
+
@rendered_screen.base_y = screen_height - num_lines
|
|
526
|
+
cursor_y = num_lines - 1
|
|
527
|
+
end
|
|
528
|
+
num_lines.times do |i|
|
|
529
|
+
rendered_line = rendered_lines[i] || []
|
|
530
|
+
line_to_render = new_lines[i] || []
|
|
531
|
+
next if rendered_line == line_to_render
|
|
532
|
+
|
|
533
|
+
Reline::IOGate.move_cursor_down i - cursor_y
|
|
534
|
+
cursor_y = i
|
|
535
|
+
unless rendered_lines[i]
|
|
536
|
+
Reline::IOGate.move_cursor_column 0
|
|
537
|
+
Reline::IOGate.erase_after_cursor
|
|
538
|
+
end
|
|
539
|
+
render_line_differential(rendered_line, line_to_render)
|
|
540
|
+
end
|
|
541
|
+
@rendered_screen.lines = new_lines
|
|
542
|
+
Reline::IOGate.show_cursor
|
|
543
|
+
end
|
|
544
|
+
Reline::IOGate.move_cursor_column new_cursor_x
|
|
545
|
+
Reline::IOGate.move_cursor_down new_cursor_y - cursor_y
|
|
546
|
+
@rendered_screen.cursor_y = new_cursor_y
|
|
547
|
+
ensure
|
|
548
|
+
Reline::IOGate.disable_auto_linewrap(false) if Reline::IOGate.win?
|
|
549
|
+
end
|
|
550
|
+
|
|
551
|
+
private def clear_rendered_screen_cache
|
|
552
|
+
@rendered_screen.lines = []
|
|
553
|
+
@rendered_screen.cursor_y = 0
|
|
554
|
+
end
|
|
555
|
+
|
|
556
|
+
def upper_space_height(wrapped_cursor_y)
|
|
557
|
+
wrapped_cursor_y - screen_scroll_top
|
|
558
|
+
end
|
|
559
|
+
|
|
560
|
+
def rest_height(wrapped_cursor_y)
|
|
561
|
+
screen_height - wrapped_cursor_y + screen_scroll_top - @rendered_screen.base_y - 1
|
|
562
|
+
end
|
|
563
|
+
|
|
564
|
+
def rerender
|
|
565
|
+
render unless @in_pasting
|
|
566
|
+
end
|
|
567
|
+
|
|
568
|
+
class DialogProcScope
|
|
569
|
+
CompletionJourneyData = Struct.new(:preposing, :postposing, :list, :pointer)
|
|
570
|
+
|
|
571
|
+
def initialize(line_editor, config, proc_to_exec, context)
|
|
572
|
+
@line_editor = line_editor
|
|
573
|
+
@config = config
|
|
574
|
+
@proc_to_exec = proc_to_exec
|
|
575
|
+
@context = context
|
|
576
|
+
@cursor_pos = Reline::CursorPos.new
|
|
577
|
+
end
|
|
578
|
+
|
|
579
|
+
def context
|
|
580
|
+
@context
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
def retrieve_completion_block(_unused = false)
|
|
584
|
+
preposing, target, postposing, _quote = @line_editor.retrieve_completion_block
|
|
585
|
+
[preposing, target, postposing]
|
|
586
|
+
end
|
|
587
|
+
|
|
588
|
+
def call_completion_proc_with_checking_args(pre, target, post)
|
|
589
|
+
@line_editor.call_completion_proc_with_checking_args(pre, target, post)
|
|
590
|
+
end
|
|
591
|
+
|
|
592
|
+
def set_dialog(dialog)
|
|
593
|
+
@dialog = dialog
|
|
594
|
+
end
|
|
595
|
+
|
|
596
|
+
def dialog
|
|
597
|
+
@dialog
|
|
598
|
+
end
|
|
599
|
+
|
|
600
|
+
def set_cursor_pos(col, row)
|
|
601
|
+
@cursor_pos.x = col
|
|
602
|
+
@cursor_pos.y = row
|
|
603
|
+
end
|
|
604
|
+
|
|
605
|
+
def set_key(key)
|
|
606
|
+
@key = key
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
def key
|
|
610
|
+
@key
|
|
611
|
+
end
|
|
612
|
+
|
|
613
|
+
def cursor_pos
|
|
614
|
+
@cursor_pos
|
|
615
|
+
end
|
|
616
|
+
|
|
617
|
+
def just_cursor_moving
|
|
618
|
+
@line_editor.instance_variable_get(:@just_cursor_moving)
|
|
619
|
+
end
|
|
620
|
+
|
|
621
|
+
def screen_width
|
|
622
|
+
@line_editor.screen_width
|
|
623
|
+
end
|
|
624
|
+
|
|
625
|
+
def screen_height
|
|
626
|
+
@line_editor.screen_height
|
|
627
|
+
end
|
|
628
|
+
|
|
629
|
+
def preferred_dialog_height
|
|
630
|
+
_wrapped_cursor_x, wrapped_cursor_y = @line_editor.wrapped_cursor_position
|
|
631
|
+
[@line_editor.upper_space_height(wrapped_cursor_y), @line_editor.rest_height(wrapped_cursor_y), (screen_height + 6) / 5].max
|
|
632
|
+
end
|
|
633
|
+
|
|
634
|
+
def completion_journey_data
|
|
635
|
+
@line_editor.dialog_proc_scope_completion_journey_data
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
def config
|
|
639
|
+
@config
|
|
640
|
+
end
|
|
641
|
+
|
|
642
|
+
def call
|
|
643
|
+
instance_exec(&@proc_to_exec)
|
|
644
|
+
end
|
|
645
|
+
end
|
|
646
|
+
|
|
647
|
+
class Dialog
|
|
648
|
+
attr_reader :name, :contents, :width
|
|
649
|
+
attr_accessor :scroll_top, :pointer, :column, :vertical_offset, :trap_key
|
|
650
|
+
|
|
651
|
+
def initialize(name, config, proc_scope)
|
|
652
|
+
@name = name
|
|
653
|
+
@config = config
|
|
654
|
+
@proc_scope = proc_scope
|
|
655
|
+
@width = nil
|
|
656
|
+
@scroll_top = 0
|
|
657
|
+
@trap_key = nil
|
|
658
|
+
end
|
|
659
|
+
|
|
660
|
+
def set_cursor_pos(col, row)
|
|
661
|
+
@proc_scope.set_cursor_pos(col, row)
|
|
662
|
+
end
|
|
663
|
+
|
|
664
|
+
def width=(v)
|
|
665
|
+
@width = v
|
|
666
|
+
end
|
|
667
|
+
|
|
668
|
+
def contents=(contents)
|
|
669
|
+
@contents = contents
|
|
670
|
+
if contents and @width.nil?
|
|
671
|
+
@width = contents.map{ |line| Reline::Unicode.calculate_width(line, true) }.max
|
|
672
|
+
end
|
|
673
|
+
end
|
|
674
|
+
|
|
675
|
+
def call(key)
|
|
676
|
+
@proc_scope.set_dialog(self)
|
|
677
|
+
@proc_scope.set_key(key)
|
|
678
|
+
dialog_render_info = @proc_scope.call
|
|
679
|
+
if @trap_key
|
|
680
|
+
if @trap_key.any?{ |i| i.is_a?(Array) } # multiple trap
|
|
681
|
+
@trap_key.each do |t|
|
|
682
|
+
@config.add_oneshot_key_binding(t, @name)
|
|
683
|
+
end
|
|
684
|
+
else
|
|
685
|
+
@config.add_oneshot_key_binding(@trap_key, @name)
|
|
686
|
+
end
|
|
687
|
+
end
|
|
688
|
+
dialog_render_info
|
|
689
|
+
end
|
|
690
|
+
end
|
|
691
|
+
|
|
692
|
+
def add_dialog_proc(name, p, context = nil)
|
|
693
|
+
dialog = Dialog.new(name, @config, DialogProcScope.new(self, @config, p, context))
|
|
694
|
+
if index = @dialogs.find_index { |d| d.name == name }
|
|
695
|
+
@dialogs[index] = dialog
|
|
696
|
+
else
|
|
697
|
+
@dialogs << dialog
|
|
698
|
+
end
|
|
699
|
+
end
|
|
700
|
+
|
|
701
|
+
DIALOG_DEFAULT_HEIGHT = 20
|
|
702
|
+
|
|
703
|
+
private def dialog_range(dialog, dialog_y)
|
|
704
|
+
x_range = dialog.column...dialog.column + dialog.width
|
|
705
|
+
y_range = dialog_y + dialog.vertical_offset...dialog_y + dialog.vertical_offset + dialog.contents.size
|
|
706
|
+
[x_range, y_range]
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
private def update_each_dialog(dialog, cursor_column, cursor_row, key = nil)
|
|
710
|
+
dialog.set_cursor_pos(cursor_column, cursor_row)
|
|
711
|
+
dialog_render_info = dialog.call(key)
|
|
712
|
+
if dialog_render_info.nil? or dialog_render_info.contents.nil? or dialog_render_info.contents.empty?
|
|
713
|
+
dialog.contents = nil
|
|
714
|
+
dialog.trap_key = nil
|
|
715
|
+
return
|
|
716
|
+
end
|
|
717
|
+
contents = dialog_render_info.contents
|
|
718
|
+
pointer = dialog.pointer
|
|
719
|
+
if dialog_render_info.width
|
|
720
|
+
dialog.width = dialog_render_info.width
|
|
721
|
+
else
|
|
722
|
+
dialog.width = contents.map { |l| calculate_width(l, true) }.max
|
|
723
|
+
end
|
|
724
|
+
height = dialog_render_info.height || DIALOG_DEFAULT_HEIGHT
|
|
725
|
+
height = contents.size if contents.size < height
|
|
726
|
+
if contents.size > height
|
|
727
|
+
if dialog.pointer
|
|
728
|
+
if dialog.pointer < 0
|
|
729
|
+
dialog.scroll_top = 0
|
|
730
|
+
elsif (dialog.pointer - dialog.scroll_top) >= (height - 1)
|
|
731
|
+
dialog.scroll_top = dialog.pointer - (height - 1)
|
|
732
|
+
elsif (dialog.pointer - dialog.scroll_top) < 0
|
|
733
|
+
dialog.scroll_top = dialog.pointer
|
|
734
|
+
end
|
|
735
|
+
pointer = dialog.pointer - dialog.scroll_top
|
|
736
|
+
else
|
|
737
|
+
dialog.scroll_top = 0
|
|
738
|
+
end
|
|
739
|
+
contents = contents[dialog.scroll_top, height]
|
|
740
|
+
end
|
|
741
|
+
if dialog_render_info.scrollbar and dialog_render_info.contents.size > height
|
|
742
|
+
bar_max_height = height * 2
|
|
743
|
+
moving_distance = (dialog_render_info.contents.size - height) * 2
|
|
744
|
+
position_ratio = dialog.scroll_top.zero? ? 0.0 : ((dialog.scroll_top * 2).to_f / moving_distance)
|
|
745
|
+
bar_height = (bar_max_height * ((contents.size * 2).to_f / (dialog_render_info.contents.size * 2))).floor.to_i
|
|
746
|
+
bar_height = MINIMUM_SCROLLBAR_HEIGHT if bar_height < MINIMUM_SCROLLBAR_HEIGHT
|
|
747
|
+
scrollbar_pos = ((bar_max_height - bar_height) * position_ratio).floor.to_i
|
|
748
|
+
else
|
|
749
|
+
scrollbar_pos = nil
|
|
750
|
+
end
|
|
751
|
+
dialog.column = dialog_render_info.pos.x
|
|
752
|
+
dialog.width += @block_elem_width if scrollbar_pos
|
|
753
|
+
diff = (dialog.column + dialog.width) - screen_width
|
|
754
|
+
if diff > 0
|
|
755
|
+
dialog.column -= diff
|
|
756
|
+
end
|
|
757
|
+
if rest_height(screen_scroll_top + cursor_row) - dialog_render_info.pos.y >= height
|
|
758
|
+
dialog.vertical_offset = dialog_render_info.pos.y + 1
|
|
759
|
+
elsif cursor_row >= height
|
|
760
|
+
dialog.vertical_offset = dialog_render_info.pos.y - height
|
|
761
|
+
else
|
|
762
|
+
dialog.vertical_offset = dialog_render_info.pos.y + 1
|
|
763
|
+
end
|
|
764
|
+
if dialog.column < 0
|
|
765
|
+
dialog.column = 0
|
|
766
|
+
dialog.width = screen_width
|
|
767
|
+
end
|
|
768
|
+
face = Reline::Face[dialog_render_info.face || :default]
|
|
769
|
+
scrollbar_sgr = face[:scrollbar]
|
|
770
|
+
default_sgr = face[:default]
|
|
771
|
+
enhanced_sgr = face[:enhanced]
|
|
772
|
+
dialog.contents = contents.map.with_index do |item, i|
|
|
773
|
+
line_sgr = i == pointer ? enhanced_sgr : default_sgr
|
|
774
|
+
str_width = dialog.width - (scrollbar_pos.nil? ? 0 : @block_elem_width)
|
|
775
|
+
str, = Reline::Unicode.take_mbchar_range(item, 0, str_width, padding: true)
|
|
776
|
+
colored_content = "#{line_sgr}#{str}"
|
|
777
|
+
if scrollbar_pos
|
|
778
|
+
if scrollbar_pos <= (i * 2) and (i * 2 + 1) < (scrollbar_pos + bar_height)
|
|
779
|
+
colored_content + scrollbar_sgr + @full_block
|
|
780
|
+
elsif scrollbar_pos <= (i * 2) and (i * 2) < (scrollbar_pos + bar_height)
|
|
781
|
+
colored_content + scrollbar_sgr + @upper_half_block
|
|
782
|
+
elsif scrollbar_pos <= (i * 2 + 1) and (i * 2) < (scrollbar_pos + bar_height)
|
|
783
|
+
colored_content + scrollbar_sgr + @lower_half_block
|
|
784
|
+
else
|
|
785
|
+
colored_content + scrollbar_sgr + ' ' * @block_elem_width
|
|
786
|
+
end
|
|
787
|
+
else
|
|
788
|
+
colored_content
|
|
789
|
+
end
|
|
790
|
+
end
|
|
791
|
+
end
|
|
792
|
+
|
|
793
|
+
private def modify_lines(before, complete)
|
|
794
|
+
if after = @output_modifier_proc&.call("#{before.join("\n")}\n", complete: complete)
|
|
795
|
+
after.lines("\n").map { |l| l.chomp('') }
|
|
796
|
+
else
|
|
797
|
+
before.map { |l| Reline::Unicode.escape_for_print(l) }
|
|
798
|
+
end
|
|
799
|
+
end
|
|
800
|
+
|
|
801
|
+
def editing_mode
|
|
802
|
+
@config.editing_mode
|
|
803
|
+
end
|
|
804
|
+
|
|
805
|
+
private def menu(list)
|
|
806
|
+
@menu_info = MenuInfo.new(list)
|
|
807
|
+
end
|
|
808
|
+
|
|
809
|
+
private def filter_normalize_candidates(target, list)
|
|
810
|
+
target = target.downcase if @config.completion_ignore_case
|
|
811
|
+
list.select do |item|
|
|
812
|
+
next unless item
|
|
813
|
+
unless Encoding.compatible?(target.encoding, item.encoding)
|
|
814
|
+
# Workaround for Readline test
|
|
815
|
+
if defined?(::Readline) && ::Readline == ::Reline
|
|
816
|
+
raise Encoding::CompatibilityError, "incompatible character encodings: #{target.encoding} and #{item.encoding}"
|
|
817
|
+
end
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
if @config.completion_ignore_case
|
|
821
|
+
item.downcase.start_with?(target)
|
|
822
|
+
else
|
|
823
|
+
item.start_with?(target)
|
|
824
|
+
end
|
|
825
|
+
end.map do |item|
|
|
826
|
+
item.unicode_normalize
|
|
827
|
+
rescue Encoding::CompatibilityError
|
|
828
|
+
item
|
|
829
|
+
end.uniq
|
|
830
|
+
end
|
|
831
|
+
|
|
832
|
+
private def perform_completion(preposing, target, postposing, quote, list)
|
|
833
|
+
candidates = filter_normalize_candidates(target, list)
|
|
834
|
+
|
|
835
|
+
case @completion_state
|
|
836
|
+
when CompletionState::PERFECT_MATCH
|
|
837
|
+
if @dig_perfect_match_proc
|
|
838
|
+
@dig_perfect_match_proc.call(@perfect_matched)
|
|
839
|
+
return
|
|
840
|
+
end
|
|
841
|
+
when CompletionState::MENU
|
|
842
|
+
menu(candidates)
|
|
843
|
+
return
|
|
844
|
+
when CompletionState::MENU_WITH_PERFECT_MATCH
|
|
845
|
+
menu(candidates)
|
|
846
|
+
@completion_state = CompletionState::PERFECT_MATCH
|
|
847
|
+
return
|
|
848
|
+
end
|
|
849
|
+
|
|
850
|
+
completed = Reline::Unicode.common_prefix(candidates, ignore_case: @config.completion_ignore_case)
|
|
851
|
+
return if completed.empty?
|
|
852
|
+
|
|
853
|
+
append_character = ''
|
|
854
|
+
if candidates.include?(completed)
|
|
855
|
+
if candidates.one?
|
|
856
|
+
append_character = quote || completion_append_character.to_s
|
|
857
|
+
@completion_state = CompletionState::PERFECT_MATCH
|
|
858
|
+
elsif @config.show_all_if_ambiguous
|
|
859
|
+
menu(candidates)
|
|
860
|
+
@completion_state = CompletionState::PERFECT_MATCH
|
|
861
|
+
else
|
|
862
|
+
@completion_state = CompletionState::MENU_WITH_PERFECT_MATCH
|
|
863
|
+
end
|
|
864
|
+
@perfect_matched = completed
|
|
865
|
+
else
|
|
866
|
+
@completion_state = CompletionState::MENU
|
|
867
|
+
menu(candidates) if @config.show_all_if_ambiguous
|
|
868
|
+
end
|
|
869
|
+
@buffer_of_lines[@line_index] = (preposing + completed + append_character + postposing).split("\n")[@line_index] || String.new(encoding: encoding)
|
|
870
|
+
line_to_pointer = (preposing + completed + append_character).split("\n")[@line_index] || String.new(encoding: encoding)
|
|
871
|
+
@byte_pointer = line_to_pointer.bytesize
|
|
872
|
+
end
|
|
873
|
+
|
|
874
|
+
def dialog_proc_scope_completion_journey_data
|
|
875
|
+
return nil unless @completion_journey_state
|
|
876
|
+
line_index = @completion_journey_state.line_index
|
|
877
|
+
pre_lines = @buffer_of_lines[0...line_index].map { |line| line + "\n" }
|
|
878
|
+
post_lines = @buffer_of_lines[(line_index + 1)..-1].map { |line| line + "\n" }
|
|
879
|
+
DialogProcScope::CompletionJourneyData.new(
|
|
880
|
+
pre_lines.join + @completion_journey_state.pre,
|
|
881
|
+
@completion_journey_state.post + post_lines.join,
|
|
882
|
+
@completion_journey_state.list,
|
|
883
|
+
@completion_journey_state.pointer
|
|
884
|
+
)
|
|
885
|
+
end
|
|
886
|
+
|
|
887
|
+
private def move_completed_list(direction)
|
|
888
|
+
@completion_journey_state ||= retrieve_completion_journey_state
|
|
889
|
+
return false unless @completion_journey_state
|
|
890
|
+
|
|
891
|
+
if (delta = { up: -1, down: +1 }[direction])
|
|
892
|
+
@completion_journey_state.pointer = (@completion_journey_state.pointer + delta) % @completion_journey_state.list.size
|
|
893
|
+
end
|
|
894
|
+
completed = @completion_journey_state.list[@completion_journey_state.pointer]
|
|
895
|
+
set_current_line(@completion_journey_state.pre + completed + @completion_journey_state.post, @completion_journey_state.pre.bytesize + completed.bytesize)
|
|
896
|
+
true
|
|
897
|
+
end
|
|
898
|
+
|
|
899
|
+
private def retrieve_completion_journey_state
|
|
900
|
+
preposing, target, postposing, quote = retrieve_completion_block
|
|
901
|
+
list = call_completion_proc(preposing, target, postposing, quote)
|
|
902
|
+
return unless list.is_a?(Array)
|
|
903
|
+
|
|
904
|
+
candidates = list.select{ |item| item.start_with?(target) }
|
|
905
|
+
return if candidates.empty?
|
|
906
|
+
|
|
907
|
+
pre = preposing.split("\n", -1).last || ''
|
|
908
|
+
post = postposing.split("\n", -1).first || ''
|
|
909
|
+
CompletionJourneyState.new(
|
|
910
|
+
@line_index, pre, target, post, [target] + candidates, 0
|
|
911
|
+
)
|
|
912
|
+
end
|
|
913
|
+
|
|
914
|
+
private def run_for_operators(key, method_symbol, &block)
|
|
915
|
+
if @vi_waiting_operator
|
|
916
|
+
if VI_MOTIONS.include?(method_symbol)
|
|
917
|
+
old_byte_pointer = @byte_pointer
|
|
918
|
+
@vi_arg = (@vi_arg || 1) * @vi_waiting_operator_arg
|
|
919
|
+
block.(true)
|
|
920
|
+
unless @waiting_proc
|
|
921
|
+
byte_pointer_diff = @byte_pointer - old_byte_pointer
|
|
922
|
+
@byte_pointer = old_byte_pointer
|
|
923
|
+
method_obj = method(@vi_waiting_operator)
|
|
924
|
+
wrap_method_call(@vi_waiting_operator, method_obj, byte_pointer_diff)
|
|
925
|
+
cleanup_waiting
|
|
926
|
+
end
|
|
927
|
+
else
|
|
928
|
+
# Ignores operator when not motion is given.
|
|
929
|
+
block.(false)
|
|
930
|
+
cleanup_waiting
|
|
931
|
+
end
|
|
932
|
+
@vi_arg = nil
|
|
933
|
+
else
|
|
934
|
+
block.(false)
|
|
935
|
+
end
|
|
936
|
+
end
|
|
937
|
+
|
|
938
|
+
private def argumentable?(method_obj)
|
|
939
|
+
method_obj and method_obj.parameters.any? { |param| param[0] == :key and param[1] == :arg }
|
|
940
|
+
end
|
|
941
|
+
|
|
942
|
+
private def inclusive?(method_obj)
|
|
943
|
+
# If a motion method with the keyword argument "inclusive" follows the
|
|
944
|
+
# operator, it must contain the character at the cursor position.
|
|
945
|
+
method_obj and method_obj.parameters.any? { |param| param[0] == :key and param[1] == :inclusive }
|
|
946
|
+
end
|
|
947
|
+
|
|
948
|
+
def wrap_method_call(method_symbol, method_obj, key, with_operator = false)
|
|
949
|
+
if @config.editing_mode_is?(:emacs, :vi_insert) and @vi_waiting_operator.nil?
|
|
950
|
+
not_insertion = method_symbol != :ed_insert
|
|
951
|
+
process_insert(force: not_insertion)
|
|
952
|
+
end
|
|
953
|
+
if @vi_arg and argumentable?(method_obj)
|
|
954
|
+
if with_operator and inclusive?(method_obj)
|
|
955
|
+
method_obj.(key, arg: @vi_arg, inclusive: true)
|
|
956
|
+
else
|
|
957
|
+
method_obj.(key, arg: @vi_arg)
|
|
958
|
+
end
|
|
959
|
+
else
|
|
960
|
+
if with_operator and inclusive?(method_obj)
|
|
961
|
+
method_obj.(key, inclusive: true)
|
|
962
|
+
else
|
|
963
|
+
method_obj.(key)
|
|
964
|
+
end
|
|
965
|
+
end
|
|
966
|
+
end
|
|
967
|
+
|
|
968
|
+
private def cleanup_waiting
|
|
969
|
+
@waiting_proc = nil
|
|
970
|
+
@vi_waiting_operator = nil
|
|
971
|
+
@vi_waiting_operator_arg = nil
|
|
972
|
+
@searching_prompt = nil
|
|
973
|
+
@drop_terminate_spaces = false
|
|
974
|
+
end
|
|
975
|
+
|
|
976
|
+
ARGUMENT_DIGIT_METHODS = %i[ed_digit vi_zero ed_argument_digit]
|
|
977
|
+
VI_WAITING_ACCEPT_METHODS = %i[vi_change_meta vi_delete_meta vi_yank ed_insert ed_argument_digit]
|
|
978
|
+
|
|
979
|
+
private def process_key(key, method_symbol)
|
|
980
|
+
if @waiting_proc
|
|
981
|
+
cleanup_waiting unless key.size == 1
|
|
982
|
+
end
|
|
983
|
+
if @vi_waiting_operator
|
|
984
|
+
cleanup_waiting unless VI_WAITING_ACCEPT_METHODS.include?(method_symbol) || VI_MOTIONS.include?(method_symbol)
|
|
985
|
+
end
|
|
986
|
+
|
|
987
|
+
if @waiting_proc
|
|
988
|
+
old_byte_pointer = @byte_pointer
|
|
989
|
+
@waiting_proc.call(key)
|
|
990
|
+
if @vi_waiting_operator
|
|
991
|
+
byte_pointer_diff = @byte_pointer - old_byte_pointer
|
|
992
|
+
@byte_pointer = old_byte_pointer
|
|
993
|
+
method_obj = method(@vi_waiting_operator)
|
|
994
|
+
wrap_method_call(@vi_waiting_operator, method_obj, byte_pointer_diff)
|
|
995
|
+
cleanup_waiting
|
|
996
|
+
end
|
|
997
|
+
@kill_ring.process
|
|
998
|
+
return
|
|
999
|
+
end
|
|
1000
|
+
|
|
1001
|
+
# Reject multibyte input (converted to ed_insert) in vi_command mode
|
|
1002
|
+
return if method_symbol == :ed_insert && @config.editing_mode_is?(:vi_command)
|
|
1003
|
+
|
|
1004
|
+
if method_symbol and respond_to?(method_symbol, true)
|
|
1005
|
+
method_obj = method(method_symbol)
|
|
1006
|
+
end
|
|
1007
|
+
if @vi_arg
|
|
1008
|
+
if ARGUMENT_DIGIT_METHODS.include?(method_symbol)
|
|
1009
|
+
ed_argument_digit(key)
|
|
1010
|
+
else
|
|
1011
|
+
if argumentable?(method_obj)
|
|
1012
|
+
run_for_operators(key, method_symbol) do |with_operator|
|
|
1013
|
+
wrap_method_call(method_symbol, method_obj, key, with_operator)
|
|
1014
|
+
end
|
|
1015
|
+
elsif method_obj
|
|
1016
|
+
wrap_method_call(method_symbol, method_obj, key)
|
|
1017
|
+
end
|
|
1018
|
+
@kill_ring.process
|
|
1019
|
+
@vi_arg = nil
|
|
1020
|
+
end
|
|
1021
|
+
elsif method_obj
|
|
1022
|
+
if method_symbol == :ed_argument_digit
|
|
1023
|
+
wrap_method_call(method_symbol, method_obj, key)
|
|
1024
|
+
else
|
|
1025
|
+
run_for_operators(key, method_symbol) do |with_operator|
|
|
1026
|
+
wrap_method_call(method_symbol, method_obj, key, with_operator)
|
|
1027
|
+
end
|
|
1028
|
+
end
|
|
1029
|
+
@kill_ring.process
|
|
1030
|
+
end
|
|
1031
|
+
end
|
|
1032
|
+
|
|
1033
|
+
def update(key)
|
|
1034
|
+
modified = input_key(key)
|
|
1035
|
+
unless @in_pasting
|
|
1036
|
+
scroll_into_view
|
|
1037
|
+
@just_cursor_moving = !modified
|
|
1038
|
+
update_dialogs(key)
|
|
1039
|
+
@just_cursor_moving = false
|
|
1040
|
+
end
|
|
1041
|
+
end
|
|
1042
|
+
|
|
1043
|
+
def input_key(key)
|
|
1044
|
+
save_old_buffer
|
|
1045
|
+
@config.reset_oneshot_key_bindings
|
|
1046
|
+
if key.char.nil?
|
|
1047
|
+
process_insert(force: true)
|
|
1048
|
+
@eof = buffer_empty?
|
|
1049
|
+
finish
|
|
1050
|
+
return
|
|
1051
|
+
end
|
|
1052
|
+
@dialogs.each do |dialog|
|
|
1053
|
+
if key.method_symbol == dialog.name
|
|
1054
|
+
return
|
|
1055
|
+
end
|
|
1056
|
+
end
|
|
1057
|
+
@completion_occurs = false
|
|
1058
|
+
|
|
1059
|
+
process_key(key.char, key.method_symbol)
|
|
1060
|
+
if @config.editing_mode_is?(:vi_command) and @byte_pointer > 0 and @byte_pointer == current_line.bytesize
|
|
1061
|
+
byte_size = Reline::Unicode.get_prev_mbchar_size(@buffer_of_lines[@line_index], @byte_pointer)
|
|
1062
|
+
@byte_pointer -= byte_size
|
|
1063
|
+
end
|
|
1064
|
+
|
|
1065
|
+
@prev_action_state, @next_action_state = @next_action_state, NullActionState
|
|
1066
|
+
|
|
1067
|
+
unless @completion_occurs
|
|
1068
|
+
@completion_state = CompletionState::NORMAL
|
|
1069
|
+
@completion_journey_state = nil
|
|
1070
|
+
end
|
|
1071
|
+
|
|
1072
|
+
push_input_lines unless @restoring
|
|
1073
|
+
@restoring = false
|
|
1074
|
+
|
|
1075
|
+
if @in_pasting
|
|
1076
|
+
clear_dialogs
|
|
1077
|
+
return
|
|
1078
|
+
end
|
|
1079
|
+
|
|
1080
|
+
modified = @old_buffer_of_lines != @buffer_of_lines
|
|
1081
|
+
if !@completion_occurs && modified && !@config.disable_completion && @config.autocompletion
|
|
1082
|
+
# Auto complete starts only when edited
|
|
1083
|
+
process_insert(force: true)
|
|
1084
|
+
@completion_journey_state = retrieve_completion_journey_state
|
|
1085
|
+
end
|
|
1086
|
+
modified
|
|
1087
|
+
end
|
|
1088
|
+
|
|
1089
|
+
def save_old_buffer
|
|
1090
|
+
@old_buffer_of_lines = @buffer_of_lines.dup
|
|
1091
|
+
end
|
|
1092
|
+
|
|
1093
|
+
def push_input_lines
|
|
1094
|
+
if @old_buffer_of_lines == @buffer_of_lines
|
|
1095
|
+
@input_lines[@input_lines_position] = [@buffer_of_lines.dup, @byte_pointer, @line_index]
|
|
1096
|
+
else
|
|
1097
|
+
@input_lines = @input_lines[0..@input_lines_position]
|
|
1098
|
+
@input_lines_position += 1
|
|
1099
|
+
@input_lines.push([@buffer_of_lines.dup, @byte_pointer, @line_index])
|
|
1100
|
+
end
|
|
1101
|
+
trim_input_lines
|
|
1102
|
+
end
|
|
1103
|
+
|
|
1104
|
+
MAX_INPUT_LINES = 100
|
|
1105
|
+
def trim_input_lines
|
|
1106
|
+
if @input_lines.size > MAX_INPUT_LINES
|
|
1107
|
+
@input_lines.shift
|
|
1108
|
+
@input_lines_position -= 1
|
|
1109
|
+
end
|
|
1110
|
+
end
|
|
1111
|
+
|
|
1112
|
+
def scroll_into_view
|
|
1113
|
+
_wrapped_cursor_x, wrapped_cursor_y = wrapped_cursor_position
|
|
1114
|
+
if wrapped_cursor_y < screen_scroll_top
|
|
1115
|
+
@scroll_partial_screen = wrapped_cursor_y
|
|
1116
|
+
end
|
|
1117
|
+
if wrapped_cursor_y >= screen_scroll_top + screen_height
|
|
1118
|
+
@scroll_partial_screen = wrapped_cursor_y - screen_height + 1
|
|
1119
|
+
end
|
|
1120
|
+
end
|
|
1121
|
+
|
|
1122
|
+
def call_completion_proc(pre, target, post, quote)
|
|
1123
|
+
Reline.core.instance_variable_set(:@completion_quote_character, quote)
|
|
1124
|
+
result = call_completion_proc_with_checking_args(pre, target, post)
|
|
1125
|
+
Reline.core.instance_variable_set(:@completion_quote_character, nil)
|
|
1126
|
+
result
|
|
1127
|
+
end
|
|
1128
|
+
|
|
1129
|
+
def call_completion_proc_with_checking_args(pre, target, post)
|
|
1130
|
+
if @completion_proc and target
|
|
1131
|
+
argnum = @completion_proc.parameters.inject(0) { |result, item|
|
|
1132
|
+
case item.first
|
|
1133
|
+
when :req, :opt
|
|
1134
|
+
result + 1
|
|
1135
|
+
when :rest
|
|
1136
|
+
break 3
|
|
1137
|
+
end
|
|
1138
|
+
}
|
|
1139
|
+
case argnum
|
|
1140
|
+
when 1
|
|
1141
|
+
result = @completion_proc.(target)
|
|
1142
|
+
when 2
|
|
1143
|
+
result = @completion_proc.(target, pre)
|
|
1144
|
+
when 3..Float::INFINITY
|
|
1145
|
+
result = @completion_proc.(target, pre, post)
|
|
1146
|
+
end
|
|
1147
|
+
end
|
|
1148
|
+
result
|
|
1149
|
+
end
|
|
1150
|
+
|
|
1151
|
+
private def process_auto_indent(line_index = @line_index, cursor_dependent: true, add_newline: false)
|
|
1152
|
+
return if @in_pasting
|
|
1153
|
+
return unless @auto_indent_proc
|
|
1154
|
+
|
|
1155
|
+
line = @buffer_of_lines[line_index]
|
|
1156
|
+
byte_pointer = cursor_dependent && @line_index == line_index ? @byte_pointer : line.bytesize
|
|
1157
|
+
new_indent = @auto_indent_proc.(@buffer_of_lines.take(line_index + 1).push(''), line_index, byte_pointer, add_newline)
|
|
1158
|
+
return unless new_indent
|
|
1159
|
+
|
|
1160
|
+
new_line = ' ' * new_indent + line.lstrip
|
|
1161
|
+
@buffer_of_lines[line_index] = new_line
|
|
1162
|
+
if @line_index == line_index
|
|
1163
|
+
indent_diff = new_line.bytesize - line.bytesize
|
|
1164
|
+
@byte_pointer = [@byte_pointer + indent_diff, 0].max
|
|
1165
|
+
end
|
|
1166
|
+
end
|
|
1167
|
+
|
|
1168
|
+
def line()
|
|
1169
|
+
@buffer_of_lines.join("\n") unless eof?
|
|
1170
|
+
end
|
|
1171
|
+
|
|
1172
|
+
def current_line
|
|
1173
|
+
@buffer_of_lines[@line_index]
|
|
1174
|
+
end
|
|
1175
|
+
|
|
1176
|
+
def set_current_line(line, byte_pointer = nil)
|
|
1177
|
+
cursor = current_byte_pointer_cursor
|
|
1178
|
+
@buffer_of_lines[@line_index] = line
|
|
1179
|
+
if byte_pointer
|
|
1180
|
+
@byte_pointer = byte_pointer
|
|
1181
|
+
else
|
|
1182
|
+
calculate_nearest_cursor(cursor)
|
|
1183
|
+
end
|
|
1184
|
+
process_auto_indent
|
|
1185
|
+
end
|
|
1186
|
+
|
|
1187
|
+
def retrieve_completion_block
|
|
1188
|
+
quote_characters = Reline.completer_quote_characters
|
|
1189
|
+
before = current_line.byteslice(0, @byte_pointer).grapheme_clusters
|
|
1190
|
+
quote = nil
|
|
1191
|
+
# Calcualte closing quote when cursor is at the end of the line
|
|
1192
|
+
if current_line.bytesize == @byte_pointer && !quote_characters.empty?
|
|
1193
|
+
escaped = false
|
|
1194
|
+
before.each do |c|
|
|
1195
|
+
if escaped
|
|
1196
|
+
escaped = false
|
|
1197
|
+
next
|
|
1198
|
+
elsif c == '\\'
|
|
1199
|
+
escaped = true
|
|
1200
|
+
elsif quote
|
|
1201
|
+
quote = nil if c == quote
|
|
1202
|
+
elsif quote_characters.include?(c)
|
|
1203
|
+
quote = c
|
|
1204
|
+
end
|
|
1205
|
+
end
|
|
1206
|
+
end
|
|
1207
|
+
|
|
1208
|
+
word_break_characters = quote_characters + Reline.completer_word_break_characters
|
|
1209
|
+
break_index = before.rindex { |c| word_break_characters.include?(c) || quote_characters.include?(c) } || -1
|
|
1210
|
+
preposing = before.take(break_index + 1).join
|
|
1211
|
+
target = before.drop(break_index + 1).join
|
|
1212
|
+
postposing = current_line.byteslice(@byte_pointer, current_line.bytesize - @byte_pointer)
|
|
1213
|
+
lines = whole_lines
|
|
1214
|
+
if @line_index > 0
|
|
1215
|
+
preposing = lines[0..(@line_index - 1)].join("\n") + "\n" + preposing
|
|
1216
|
+
end
|
|
1217
|
+
if (lines.size - 1) > @line_index
|
|
1218
|
+
postposing = postposing + "\n" + lines[(@line_index + 1)..-1].join("\n")
|
|
1219
|
+
end
|
|
1220
|
+
[preposing.encode(encoding), target.encode(encoding), postposing.encode(encoding), quote&.encode(encoding)]
|
|
1221
|
+
end
|
|
1222
|
+
|
|
1223
|
+
def confirm_multiline_termination
|
|
1224
|
+
temp_buffer = @buffer_of_lines.dup
|
|
1225
|
+
@confirm_multiline_termination_proc.(temp_buffer.join("\n") + "\n")
|
|
1226
|
+
end
|
|
1227
|
+
|
|
1228
|
+
def insert_multiline_text(text)
|
|
1229
|
+
pre = @buffer_of_lines[@line_index].byteslice(0, @byte_pointer)
|
|
1230
|
+
post = @buffer_of_lines[@line_index].byteslice(@byte_pointer..)
|
|
1231
|
+
lines = (pre + Reline::Unicode.safe_encode(text, encoding).gsub(/\r\n?/, "\n") + post).split("\n", -1)
|
|
1232
|
+
lines << '' if lines.empty?
|
|
1233
|
+
@buffer_of_lines[@line_index, 1] = lines
|
|
1234
|
+
@line_index += lines.size - 1
|
|
1235
|
+
@byte_pointer = @buffer_of_lines[@line_index].bytesize - post.bytesize
|
|
1236
|
+
end
|
|
1237
|
+
|
|
1238
|
+
def insert_text(text)
|
|
1239
|
+
if @buffer_of_lines[@line_index].bytesize == @byte_pointer
|
|
1240
|
+
@buffer_of_lines[@line_index] += text
|
|
1241
|
+
else
|
|
1242
|
+
@buffer_of_lines[@line_index] = byteinsert(@buffer_of_lines[@line_index], @byte_pointer, text)
|
|
1243
|
+
end
|
|
1244
|
+
@byte_pointer += text.bytesize
|
|
1245
|
+
process_auto_indent
|
|
1246
|
+
end
|
|
1247
|
+
|
|
1248
|
+
def delete_text(start = nil, length = nil)
|
|
1249
|
+
if start.nil? and length.nil?
|
|
1250
|
+
if @buffer_of_lines.size == 1
|
|
1251
|
+
@buffer_of_lines[@line_index] = ''
|
|
1252
|
+
@byte_pointer = 0
|
|
1253
|
+
elsif @line_index == (@buffer_of_lines.size - 1) and @line_index > 0
|
|
1254
|
+
@buffer_of_lines.pop
|
|
1255
|
+
@line_index -= 1
|
|
1256
|
+
@byte_pointer = 0
|
|
1257
|
+
elsif @line_index < (@buffer_of_lines.size - 1)
|
|
1258
|
+
@buffer_of_lines.delete_at(@line_index)
|
|
1259
|
+
@byte_pointer = 0
|
|
1260
|
+
end
|
|
1261
|
+
elsif not start.nil? and not length.nil?
|
|
1262
|
+
if current_line
|
|
1263
|
+
before = current_line.byteslice(0, start)
|
|
1264
|
+
after = current_line.byteslice(start + length, current_line.bytesize)
|
|
1265
|
+
set_current_line(before + after)
|
|
1266
|
+
end
|
|
1267
|
+
elsif start.is_a?(Range)
|
|
1268
|
+
range = start
|
|
1269
|
+
first = range.first
|
|
1270
|
+
last = range.last
|
|
1271
|
+
last = current_line.bytesize - 1 if last > current_line.bytesize
|
|
1272
|
+
last += current_line.bytesize if last < 0
|
|
1273
|
+
first += current_line.bytesize if first < 0
|
|
1274
|
+
range = range.exclude_end? ? first...last : first..last
|
|
1275
|
+
line = current_line.bytes.reject.with_index{ |c, i| range.include?(i) }.map{ |c| c.chr(Encoding::ASCII_8BIT) }.join.force_encoding(encoding)
|
|
1276
|
+
set_current_line(line)
|
|
1277
|
+
else
|
|
1278
|
+
set_current_line(current_line.byteslice(0, start))
|
|
1279
|
+
end
|
|
1280
|
+
end
|
|
1281
|
+
|
|
1282
|
+
def byte_pointer=(val)
|
|
1283
|
+
@byte_pointer = val
|
|
1284
|
+
end
|
|
1285
|
+
|
|
1286
|
+
def whole_lines
|
|
1287
|
+
@buffer_of_lines.dup
|
|
1288
|
+
end
|
|
1289
|
+
|
|
1290
|
+
def whole_buffer
|
|
1291
|
+
whole_lines.join("\n")
|
|
1292
|
+
end
|
|
1293
|
+
|
|
1294
|
+
private def buffer_empty?
|
|
1295
|
+
current_line.empty? and @buffer_of_lines.size == 1
|
|
1296
|
+
end
|
|
1297
|
+
|
|
1298
|
+
def finished?
|
|
1299
|
+
@finished
|
|
1300
|
+
end
|
|
1301
|
+
|
|
1302
|
+
def finish
|
|
1303
|
+
@finished = true
|
|
1304
|
+
@config.reset
|
|
1305
|
+
end
|
|
1306
|
+
|
|
1307
|
+
private def byteslice!(str, byte_pointer, size)
|
|
1308
|
+
new_str = str.byteslice(0, byte_pointer)
|
|
1309
|
+
new_str << str.byteslice(byte_pointer + size, str.bytesize)
|
|
1310
|
+
[new_str, str.byteslice(byte_pointer, size)]
|
|
1311
|
+
end
|
|
1312
|
+
|
|
1313
|
+
private def byteinsert(str, byte_pointer, other)
|
|
1314
|
+
new_str = str.byteslice(0, byte_pointer)
|
|
1315
|
+
new_str << other
|
|
1316
|
+
new_str << str.byteslice(byte_pointer, str.bytesize)
|
|
1317
|
+
new_str
|
|
1318
|
+
end
|
|
1319
|
+
|
|
1320
|
+
private def calculate_width(str, allow_escape_code = false)
|
|
1321
|
+
Reline::Unicode.calculate_width(str, allow_escape_code)
|
|
1322
|
+
end
|
|
1323
|
+
|
|
1324
|
+
private def key_delete(key)
|
|
1325
|
+
if @config.editing_mode_is?(:vi_insert)
|
|
1326
|
+
ed_delete_next_char(key)
|
|
1327
|
+
elsif @config.editing_mode_is?(:emacs)
|
|
1328
|
+
em_delete(key)
|
|
1329
|
+
end
|
|
1330
|
+
end
|
|
1331
|
+
|
|
1332
|
+
private def key_newline(key)
|
|
1333
|
+
if @is_multiline
|
|
1334
|
+
next_line = current_line.byteslice(@byte_pointer, current_line.bytesize - @byte_pointer)
|
|
1335
|
+
cursor_line = current_line.byteslice(0, @byte_pointer)
|
|
1336
|
+
insert_new_line(cursor_line, next_line)
|
|
1337
|
+
end
|
|
1338
|
+
end
|
|
1339
|
+
|
|
1340
|
+
private def complete(_key)
|
|
1341
|
+
return if @config.disable_completion
|
|
1342
|
+
|
|
1343
|
+
process_insert(force: true)
|
|
1344
|
+
if @config.autocompletion
|
|
1345
|
+
@completion_state = CompletionState::NORMAL
|
|
1346
|
+
@completion_occurs = move_completed_list(:down)
|
|
1347
|
+
else
|
|
1348
|
+
@completion_journey_state = nil
|
|
1349
|
+
pre, target, post, quote = retrieve_completion_block
|
|
1350
|
+
result = call_completion_proc(pre, target, post, quote)
|
|
1351
|
+
if result.is_a?(Array)
|
|
1352
|
+
@completion_occurs = true
|
|
1353
|
+
perform_completion(pre, target, post, quote, result)
|
|
1354
|
+
end
|
|
1355
|
+
end
|
|
1356
|
+
end
|
|
1357
|
+
|
|
1358
|
+
private def completion_journey_move(direction)
|
|
1359
|
+
return if @config.disable_completion
|
|
1360
|
+
|
|
1361
|
+
process_insert(force: true)
|
|
1362
|
+
@completion_state = CompletionState::NORMAL
|
|
1363
|
+
@completion_occurs = move_completed_list(direction)
|
|
1364
|
+
end
|
|
1365
|
+
|
|
1366
|
+
private def menu_complete(_key)
|
|
1367
|
+
completion_journey_move(:down)
|
|
1368
|
+
end
|
|
1369
|
+
|
|
1370
|
+
private def menu_complete_backward(_key)
|
|
1371
|
+
completion_journey_move(:up)
|
|
1372
|
+
end
|
|
1373
|
+
|
|
1374
|
+
private def completion_journey_up(_key)
|
|
1375
|
+
completion_journey_move(:up) if @config.autocompletion
|
|
1376
|
+
end
|
|
1377
|
+
|
|
1378
|
+
# Editline:: +ed-unassigned+ This editor command always results in an error.
|
|
1379
|
+
# GNU Readline:: There is no corresponding macro.
|
|
1380
|
+
private def ed_unassigned(key) end # do nothing
|
|
1381
|
+
|
|
1382
|
+
private def process_insert(force: false)
|
|
1383
|
+
return if @continuous_insertion_buffer.empty? or (@in_pasting and not force)
|
|
1384
|
+
insert_text(@continuous_insertion_buffer)
|
|
1385
|
+
@continuous_insertion_buffer.clear
|
|
1386
|
+
end
|
|
1387
|
+
|
|
1388
|
+
# Editline:: +ed-insert+ (vi input: almost all; emacs: printable characters)
|
|
1389
|
+
# In insert mode, insert the input character left of the cursor
|
|
1390
|
+
# position. In replace mode, overwrite the character at the
|
|
1391
|
+
# cursor and move the cursor to the right by one character
|
|
1392
|
+
# position. Accept an argument to do this repeatedly. It is an
|
|
1393
|
+
# error if the input character is the NUL character (+Ctrl-@+).
|
|
1394
|
+
# Failure to enlarge the edit buffer also results in an error.
|
|
1395
|
+
# Editline:: +ed-digit+ (emacs: 0 to 9) If in argument input mode, append
|
|
1396
|
+
# the input digit to the argument being read. Otherwise, call
|
|
1397
|
+
# +ed-insert+. It is an error if the input character is not a
|
|
1398
|
+
# digit or if the existing argument is already greater than a
|
|
1399
|
+
# million.
|
|
1400
|
+
# GNU Readline:: +self-insert+ (a, b, A, 1, !, …) Insert yourself.
|
|
1401
|
+
private def ed_insert(str)
|
|
1402
|
+
begin
|
|
1403
|
+
str.encode(Encoding::UTF_8)
|
|
1404
|
+
rescue Encoding::UndefinedConversionError
|
|
1405
|
+
return
|
|
1406
|
+
end
|
|
1407
|
+
if @in_pasting
|
|
1408
|
+
@continuous_insertion_buffer << str
|
|
1409
|
+
return
|
|
1410
|
+
elsif not @continuous_insertion_buffer.empty?
|
|
1411
|
+
process_insert
|
|
1412
|
+
end
|
|
1413
|
+
|
|
1414
|
+
insert_text(str)
|
|
1415
|
+
end
|
|
1416
|
+
alias_method :ed_digit, :ed_insert
|
|
1417
|
+
alias_method :self_insert, :ed_insert
|
|
1418
|
+
|
|
1419
|
+
private def insert_raw_char(str, arg: 1)
|
|
1420
|
+
arg.times do
|
|
1421
|
+
if str == "\C-j" or str == "\C-m"
|
|
1422
|
+
key_newline(str)
|
|
1423
|
+
elsif str != "\0"
|
|
1424
|
+
# Ignore NUL.
|
|
1425
|
+
ed_insert(str)
|
|
1426
|
+
end
|
|
1427
|
+
end
|
|
1428
|
+
end
|
|
1429
|
+
|
|
1430
|
+
private def ed_next_char(key, arg: 1)
|
|
1431
|
+
byte_size = Reline::Unicode.get_next_mbchar_size(current_line, @byte_pointer)
|
|
1432
|
+
if (@byte_pointer < current_line.bytesize)
|
|
1433
|
+
@byte_pointer += byte_size
|
|
1434
|
+
elsif @config.editing_mode_is?(:emacs) and @byte_pointer == current_line.bytesize and @line_index < @buffer_of_lines.size - 1
|
|
1435
|
+
@byte_pointer = 0
|
|
1436
|
+
@line_index += 1
|
|
1437
|
+
end
|
|
1438
|
+
arg -= 1
|
|
1439
|
+
ed_next_char(key, arg: arg) if arg > 0
|
|
1440
|
+
end
|
|
1441
|
+
alias_method :forward_char, :ed_next_char
|
|
1442
|
+
|
|
1443
|
+
private def ed_prev_char(key, arg: 1)
|
|
1444
|
+
if @byte_pointer > 0
|
|
1445
|
+
byte_size = Reline::Unicode.get_prev_mbchar_size(current_line, @byte_pointer)
|
|
1446
|
+
@byte_pointer -= byte_size
|
|
1447
|
+
elsif @config.editing_mode_is?(:emacs) and @byte_pointer == 0 and @line_index > 0
|
|
1448
|
+
@line_index -= 1
|
|
1449
|
+
@byte_pointer = current_line.bytesize
|
|
1450
|
+
end
|
|
1451
|
+
arg -= 1
|
|
1452
|
+
ed_prev_char(key, arg: arg) if arg > 0
|
|
1453
|
+
end
|
|
1454
|
+
alias_method :backward_char, :ed_prev_char
|
|
1455
|
+
|
|
1456
|
+
private def vi_first_print(key)
|
|
1457
|
+
@byte_pointer = Reline::Unicode.vi_first_print(current_line)
|
|
1458
|
+
end
|
|
1459
|
+
|
|
1460
|
+
private def ed_move_to_beg(key)
|
|
1461
|
+
@byte_pointer = 0
|
|
1462
|
+
end
|
|
1463
|
+
alias_method :beginning_of_line, :ed_move_to_beg
|
|
1464
|
+
alias_method :vi_zero, :ed_move_to_beg
|
|
1465
|
+
|
|
1466
|
+
private def ed_move_to_end(key)
|
|
1467
|
+
@byte_pointer = current_line.bytesize
|
|
1468
|
+
end
|
|
1469
|
+
alias_method :end_of_line, :ed_move_to_end
|
|
1470
|
+
|
|
1471
|
+
private def generate_searcher(search_key)
|
|
1472
|
+
search_word = String.new(encoding: encoding)
|
|
1473
|
+
hit_pointer = nil
|
|
1474
|
+
lambda do |key|
|
|
1475
|
+
search_again = false
|
|
1476
|
+
case key
|
|
1477
|
+
when "\C-h", "\C-?"
|
|
1478
|
+
grapheme_clusters = search_word.grapheme_clusters
|
|
1479
|
+
if grapheme_clusters.size > 0
|
|
1480
|
+
grapheme_clusters.pop
|
|
1481
|
+
search_word = grapheme_clusters.join
|
|
1482
|
+
end
|
|
1483
|
+
when "\C-r", "\C-s"
|
|
1484
|
+
search_again = true if search_key == key
|
|
1485
|
+
search_key = key
|
|
1486
|
+
else
|
|
1487
|
+
search_word << key
|
|
1488
|
+
end
|
|
1489
|
+
hit = nil
|
|
1490
|
+
if not search_word.empty? and @line_backup_in_history&.include?(search_word)
|
|
1491
|
+
hit_pointer = Reline::HISTORY.size
|
|
1492
|
+
hit = @line_backup_in_history
|
|
1493
|
+
else
|
|
1494
|
+
if search_again
|
|
1495
|
+
if search_word.empty? and Reline.last_incremental_search
|
|
1496
|
+
search_word = Reline.last_incremental_search
|
|
1497
|
+
end
|
|
1498
|
+
if @history_pointer
|
|
1499
|
+
case search_key
|
|
1500
|
+
when "\C-r"
|
|
1501
|
+
history_pointer_base = 0
|
|
1502
|
+
history = Reline::HISTORY[0..(@history_pointer - 1)]
|
|
1503
|
+
when "\C-s"
|
|
1504
|
+
history_pointer_base = @history_pointer + 1
|
|
1505
|
+
history = Reline::HISTORY[(@history_pointer + 1)..-1]
|
|
1506
|
+
end
|
|
1507
|
+
else
|
|
1508
|
+
history_pointer_base = 0
|
|
1509
|
+
history = Reline::HISTORY
|
|
1510
|
+
end
|
|
1511
|
+
elsif @history_pointer
|
|
1512
|
+
case search_key
|
|
1513
|
+
when "\C-r"
|
|
1514
|
+
history_pointer_base = 0
|
|
1515
|
+
history = Reline::HISTORY[0..@history_pointer]
|
|
1516
|
+
when "\C-s"
|
|
1517
|
+
history_pointer_base = @history_pointer
|
|
1518
|
+
history = Reline::HISTORY[@history_pointer..-1]
|
|
1519
|
+
end
|
|
1520
|
+
else
|
|
1521
|
+
history_pointer_base = 0
|
|
1522
|
+
history = Reline::HISTORY
|
|
1523
|
+
end
|
|
1524
|
+
case search_key
|
|
1525
|
+
when "\C-r"
|
|
1526
|
+
hit_index = history.rindex { |item|
|
|
1527
|
+
item.include?(search_word)
|
|
1528
|
+
}
|
|
1529
|
+
when "\C-s"
|
|
1530
|
+
hit_index = history.index { |item|
|
|
1531
|
+
item.include?(search_word)
|
|
1532
|
+
}
|
|
1533
|
+
end
|
|
1534
|
+
if hit_index
|
|
1535
|
+
hit_pointer = history_pointer_base + hit_index
|
|
1536
|
+
hit = Reline::HISTORY[hit_pointer]
|
|
1537
|
+
end
|
|
1538
|
+
end
|
|
1539
|
+
case search_key
|
|
1540
|
+
when "\C-r"
|
|
1541
|
+
prompt_name = 'reverse-i-search'
|
|
1542
|
+
when "\C-s"
|
|
1543
|
+
prompt_name = 'i-search'
|
|
1544
|
+
end
|
|
1545
|
+
prompt_name = "failed #{prompt_name}" unless hit
|
|
1546
|
+
[search_word, prompt_name, hit_pointer]
|
|
1547
|
+
end
|
|
1548
|
+
end
|
|
1549
|
+
|
|
1550
|
+
private def incremental_search_history(key)
|
|
1551
|
+
backup = @buffer_of_lines.dup, @line_index, @byte_pointer, @history_pointer, @line_backup_in_history
|
|
1552
|
+
searcher = generate_searcher(key)
|
|
1553
|
+
@searching_prompt = "(reverse-i-search)`': "
|
|
1554
|
+
termination_keys = ["\C-j"]
|
|
1555
|
+
termination_keys.concat(@config.isearch_terminators.chars) if @config.isearch_terminators
|
|
1556
|
+
@waiting_proc = ->(k) {
|
|
1557
|
+
if k == "\C-g"
|
|
1558
|
+
# cancel search and restore buffer
|
|
1559
|
+
@buffer_of_lines, @line_index, @byte_pointer, @history_pointer, @line_backup_in_history = backup
|
|
1560
|
+
@searching_prompt = nil
|
|
1561
|
+
@waiting_proc = nil
|
|
1562
|
+
elsif !termination_keys.include?(k) && (k.match?(/[[:print:]]/) || k == "\C-h" || k == "\C-?" || k == "\C-r" || k == "\C-s")
|
|
1563
|
+
search_word, prompt_name, hit_pointer = searcher.call(k)
|
|
1564
|
+
Reline.last_incremental_search = search_word
|
|
1565
|
+
@searching_prompt = "(%s)`%s'" % [prompt_name, search_word]
|
|
1566
|
+
@searching_prompt += ': ' unless @is_multiline
|
|
1567
|
+
move_history(hit_pointer, line: :end, cursor: :end) if hit_pointer
|
|
1568
|
+
else
|
|
1569
|
+
# terminaton_keys and other keys will terminalte
|
|
1570
|
+
move_history(@history_pointer, line: :end, cursor: :start)
|
|
1571
|
+
@searching_prompt = nil
|
|
1572
|
+
@waiting_proc = nil
|
|
1573
|
+
end
|
|
1574
|
+
}
|
|
1575
|
+
end
|
|
1576
|
+
|
|
1577
|
+
private def vi_search_prev(key)
|
|
1578
|
+
incremental_search_history(key)
|
|
1579
|
+
end
|
|
1580
|
+
alias_method :reverse_search_history, :vi_search_prev
|
|
1581
|
+
|
|
1582
|
+
private def vi_search_next(key)
|
|
1583
|
+
incremental_search_history(key)
|
|
1584
|
+
end
|
|
1585
|
+
alias_method :forward_search_history, :vi_search_next
|
|
1586
|
+
|
|
1587
|
+
private def search_history(prefix, pointer_range)
|
|
1588
|
+
pointer_range.each do |pointer|
|
|
1589
|
+
lines = Reline::HISTORY[pointer].split("\n")
|
|
1590
|
+
lines.each_with_index do |line, index|
|
|
1591
|
+
return [pointer, index] if line.start_with?(prefix)
|
|
1592
|
+
end
|
|
1593
|
+
end
|
|
1594
|
+
nil
|
|
1595
|
+
end
|
|
1596
|
+
|
|
1597
|
+
private def ed_search_prev_history(key, arg: 1)
|
|
1598
|
+
substr = prev_action_state_value(:search_history) == :empty ? '' : current_line.byteslice(0, @byte_pointer)
|
|
1599
|
+
return if @history_pointer == 0
|
|
1600
|
+
return if @history_pointer.nil? && substr.empty? && !current_line.empty?
|
|
1601
|
+
|
|
1602
|
+
history_range = 0...(@history_pointer || Reline::HISTORY.size)
|
|
1603
|
+
h_pointer, line_index = search_history(substr, history_range.reverse_each)
|
|
1604
|
+
return unless h_pointer
|
|
1605
|
+
move_history(h_pointer, line: line_index || :start, cursor: substr.empty? ? :end : @byte_pointer)
|
|
1606
|
+
arg -= 1
|
|
1607
|
+
set_next_action_state(:search_history, :empty) if substr.empty?
|
|
1608
|
+
ed_search_prev_history(key, arg: arg) if arg > 0
|
|
1609
|
+
end
|
|
1610
|
+
alias_method :history_search_backward, :ed_search_prev_history
|
|
1611
|
+
|
|
1612
|
+
private def ed_search_next_history(key, arg: 1)
|
|
1613
|
+
substr = prev_action_state_value(:search_history) == :empty ? '' : current_line.byteslice(0, @byte_pointer)
|
|
1614
|
+
return if @history_pointer.nil?
|
|
1615
|
+
|
|
1616
|
+
history_range = @history_pointer + 1...Reline::HISTORY.size
|
|
1617
|
+
h_pointer, line_index = search_history(substr, history_range)
|
|
1618
|
+
return if h_pointer.nil? and not substr.empty?
|
|
1619
|
+
|
|
1620
|
+
move_history(h_pointer, line: line_index || :start, cursor: substr.empty? ? :end : @byte_pointer)
|
|
1621
|
+
arg -= 1
|
|
1622
|
+
set_next_action_state(:search_history, :empty) if substr.empty?
|
|
1623
|
+
ed_search_next_history(key, arg: arg) if arg > 0
|
|
1624
|
+
end
|
|
1625
|
+
alias_method :history_search_forward, :ed_search_next_history
|
|
1626
|
+
|
|
1627
|
+
private def move_history(history_pointer, line:, cursor:)
|
|
1628
|
+
history_pointer ||= Reline::HISTORY.size
|
|
1629
|
+
return if history_pointer < 0 || history_pointer > Reline::HISTORY.size
|
|
1630
|
+
old_history_pointer = @history_pointer || Reline::HISTORY.size
|
|
1631
|
+
if old_history_pointer == Reline::HISTORY.size
|
|
1632
|
+
@line_backup_in_history = whole_buffer
|
|
1633
|
+
else
|
|
1634
|
+
Reline::HISTORY[old_history_pointer] = whole_buffer
|
|
1635
|
+
end
|
|
1636
|
+
if history_pointer == Reline::HISTORY.size
|
|
1637
|
+
buf = @line_backup_in_history
|
|
1638
|
+
@history_pointer = @line_backup_in_history = nil
|
|
1639
|
+
else
|
|
1640
|
+
buf = Reline::HISTORY[history_pointer]
|
|
1641
|
+
@history_pointer = history_pointer
|
|
1642
|
+
end
|
|
1643
|
+
@buffer_of_lines = buf.split("\n")
|
|
1644
|
+
@buffer_of_lines = [String.new(encoding: encoding)] if @buffer_of_lines.empty?
|
|
1645
|
+
@line_index = line == :start ? 0 : line == :end ? @buffer_of_lines.size - 1 : line
|
|
1646
|
+
@byte_pointer = cursor == :start ? 0 : cursor == :end ? current_line.bytesize : cursor
|
|
1647
|
+
end
|
|
1648
|
+
|
|
1649
|
+
private def ed_prev_history(key, arg: 1)
|
|
1650
|
+
if @line_index > 0
|
|
1651
|
+
cursor = current_byte_pointer_cursor
|
|
1652
|
+
@line_index -= 1
|
|
1653
|
+
calculate_nearest_cursor(cursor)
|
|
1654
|
+
return
|
|
1655
|
+
end
|
|
1656
|
+
move_history(
|
|
1657
|
+
(@history_pointer || Reline::HISTORY.size) - 1,
|
|
1658
|
+
line: :end,
|
|
1659
|
+
cursor: @config.editing_mode_is?(:vi_command) ? :start : :end,
|
|
1660
|
+
)
|
|
1661
|
+
arg -= 1
|
|
1662
|
+
ed_prev_history(key, arg: arg) if arg > 0
|
|
1663
|
+
end
|
|
1664
|
+
alias_method :previous_history, :ed_prev_history
|
|
1665
|
+
|
|
1666
|
+
private def ed_next_history(key, arg: 1)
|
|
1667
|
+
if @line_index < (@buffer_of_lines.size - 1)
|
|
1668
|
+
cursor = current_byte_pointer_cursor
|
|
1669
|
+
@line_index += 1
|
|
1670
|
+
calculate_nearest_cursor(cursor)
|
|
1671
|
+
return
|
|
1672
|
+
end
|
|
1673
|
+
move_history(
|
|
1674
|
+
(@history_pointer || Reline::HISTORY.size) + 1,
|
|
1675
|
+
line: :start,
|
|
1676
|
+
cursor: @config.editing_mode_is?(:vi_command) ? :start : :end,
|
|
1677
|
+
)
|
|
1678
|
+
arg -= 1
|
|
1679
|
+
ed_next_history(key, arg: arg) if arg > 0
|
|
1680
|
+
end
|
|
1681
|
+
alias_method :next_history, :ed_next_history
|
|
1682
|
+
|
|
1683
|
+
private def ed_newline(key)
|
|
1684
|
+
process_insert(force: true)
|
|
1685
|
+
if @is_multiline
|
|
1686
|
+
if @config.editing_mode_is?(:vi_command)
|
|
1687
|
+
if @line_index < (@buffer_of_lines.size - 1)
|
|
1688
|
+
ed_next_history(key) # means cursor down
|
|
1689
|
+
else
|
|
1690
|
+
# should check confirm_multiline_termination to finish?
|
|
1691
|
+
finish
|
|
1692
|
+
end
|
|
1693
|
+
else
|
|
1694
|
+
if @line_index == (@buffer_of_lines.size - 1)
|
|
1695
|
+
if confirm_multiline_termination
|
|
1696
|
+
finish
|
|
1697
|
+
else
|
|
1698
|
+
key_newline(key)
|
|
1699
|
+
end
|
|
1700
|
+
else
|
|
1701
|
+
# should check confirm_multiline_termination to finish?
|
|
1702
|
+
@line_index = @buffer_of_lines.size - 1
|
|
1703
|
+
@byte_pointer = current_line.bytesize
|
|
1704
|
+
finish
|
|
1705
|
+
end
|
|
1706
|
+
end
|
|
1707
|
+
else
|
|
1708
|
+
finish
|
|
1709
|
+
end
|
|
1710
|
+
end
|
|
1711
|
+
|
|
1712
|
+
private def em_delete_prev_char(key, arg: 1)
|
|
1713
|
+
arg.times do
|
|
1714
|
+
if @byte_pointer == 0 and @line_index > 0
|
|
1715
|
+
@byte_pointer = @buffer_of_lines[@line_index - 1].bytesize
|
|
1716
|
+
@buffer_of_lines[@line_index - 1] += @buffer_of_lines.delete_at(@line_index)
|
|
1717
|
+
@line_index -= 1
|
|
1718
|
+
elsif @byte_pointer > 0
|
|
1719
|
+
byte_size = Reline::Unicode.get_prev_mbchar_size(current_line, @byte_pointer)
|
|
1720
|
+
line, = byteslice!(current_line, @byte_pointer - byte_size, byte_size)
|
|
1721
|
+
set_current_line(line, @byte_pointer - byte_size)
|
|
1722
|
+
end
|
|
1723
|
+
end
|
|
1724
|
+
process_auto_indent
|
|
1725
|
+
end
|
|
1726
|
+
alias_method :backward_delete_char, :em_delete_prev_char
|
|
1727
|
+
|
|
1728
|
+
# Editline:: +ed-kill-line+ (vi command: +D+, +Ctrl-K+; emacs: +Ctrl-K+,
|
|
1729
|
+
# +Ctrl-U+) + Kill from the cursor to the end of the line.
|
|
1730
|
+
# GNU Readline:: +kill-line+ (+C-k+) Kill the text from point to the end of
|
|
1731
|
+
# the line. With a negative numeric argument, kill backward
|
|
1732
|
+
# from the cursor to the beginning of the current line.
|
|
1733
|
+
private def ed_kill_line(key)
|
|
1734
|
+
if current_line.bytesize > @byte_pointer
|
|
1735
|
+
line, deleted = byteslice!(current_line, @byte_pointer, current_line.bytesize - @byte_pointer)
|
|
1736
|
+
set_current_line(line, line.bytesize)
|
|
1737
|
+
@kill_ring.append(deleted)
|
|
1738
|
+
elsif @byte_pointer == current_line.bytesize and @buffer_of_lines.size > @line_index + 1
|
|
1739
|
+
set_current_line(current_line + @buffer_of_lines.delete_at(@line_index + 1), current_line.bytesize)
|
|
1740
|
+
end
|
|
1741
|
+
end
|
|
1742
|
+
alias_method :kill_line, :ed_kill_line
|
|
1743
|
+
|
|
1744
|
+
# Editline:: +vi_change_to_eol+ (vi command: +C+) + Kill and change from the cursor to the end of the line.
|
|
1745
|
+
private def vi_change_to_eol(key)
|
|
1746
|
+
ed_kill_line(key)
|
|
1747
|
+
|
|
1748
|
+
@config.editing_mode = :vi_insert
|
|
1749
|
+
end
|
|
1750
|
+
|
|
1751
|
+
# Editline:: +vi-kill-line-prev+ (vi: +Ctrl-U+) Delete the string from the
|
|
1752
|
+
# beginning of the edit buffer to the cursor and save it to the
|
|
1753
|
+
# cut buffer.
|
|
1754
|
+
# GNU Readline:: +unix-line-discard+ (+C-u+) Kill backward from the cursor
|
|
1755
|
+
# to the beginning of the current line.
|
|
1756
|
+
private def vi_kill_line_prev(key)
|
|
1757
|
+
if @byte_pointer > 0
|
|
1758
|
+
line, deleted = byteslice!(current_line, 0, @byte_pointer)
|
|
1759
|
+
set_current_line(line, 0)
|
|
1760
|
+
@kill_ring.append(deleted, true)
|
|
1761
|
+
end
|
|
1762
|
+
end
|
|
1763
|
+
alias_method :unix_line_discard, :vi_kill_line_prev
|
|
1764
|
+
|
|
1765
|
+
# Editline:: +em-kill-line+ (not bound) Delete the entire contents of the
|
|
1766
|
+
# edit buffer and save it to the cut buffer. +vi-kill-line-prev+
|
|
1767
|
+
# GNU Readline:: +kill-whole-line+ (not bound) Kill all characters on the
|
|
1768
|
+
# current line, no matter where point is.
|
|
1769
|
+
private def em_kill_line(key)
|
|
1770
|
+
if current_line.size > 0
|
|
1771
|
+
@kill_ring.append(current_line.dup, true)
|
|
1772
|
+
set_current_line('', 0)
|
|
1773
|
+
end
|
|
1774
|
+
end
|
|
1775
|
+
alias_method :kill_whole_line, :em_kill_line
|
|
1776
|
+
|
|
1777
|
+
private def em_delete(key)
|
|
1778
|
+
if buffer_empty? and key == "\C-d"
|
|
1779
|
+
@eof = true
|
|
1780
|
+
finish
|
|
1781
|
+
elsif @byte_pointer < current_line.bytesize
|
|
1782
|
+
splitted_last = current_line.byteslice(@byte_pointer, current_line.bytesize)
|
|
1783
|
+
mbchar = splitted_last.grapheme_clusters.first
|
|
1784
|
+
line, = byteslice!(current_line, @byte_pointer, mbchar.bytesize)
|
|
1785
|
+
set_current_line(line)
|
|
1786
|
+
elsif @byte_pointer == current_line.bytesize and @buffer_of_lines.size > @line_index + 1
|
|
1787
|
+
set_current_line(current_line + @buffer_of_lines.delete_at(@line_index + 1), current_line.bytesize)
|
|
1788
|
+
end
|
|
1789
|
+
end
|
|
1790
|
+
alias_method :delete_char, :em_delete
|
|
1791
|
+
|
|
1792
|
+
private def em_delete_or_list(key)
|
|
1793
|
+
if current_line.empty? or @byte_pointer < current_line.bytesize
|
|
1794
|
+
em_delete(key)
|
|
1795
|
+
elsif !@config.autocompletion # show completed list
|
|
1796
|
+
pre, target, post, quote = retrieve_completion_block
|
|
1797
|
+
result = call_completion_proc(pre, target, post, quote)
|
|
1798
|
+
if result.is_a?(Array)
|
|
1799
|
+
candidates = filter_normalize_candidates(target, result)
|
|
1800
|
+
menu(candidates)
|
|
1801
|
+
end
|
|
1802
|
+
end
|
|
1803
|
+
end
|
|
1804
|
+
alias_method :delete_char_or_list, :em_delete_or_list
|
|
1805
|
+
|
|
1806
|
+
private def em_yank(key)
|
|
1807
|
+
yanked = @kill_ring.yank
|
|
1808
|
+
insert_text(yanked) if yanked
|
|
1809
|
+
end
|
|
1810
|
+
alias_method :yank, :em_yank
|
|
1811
|
+
|
|
1812
|
+
private def em_yank_pop(key)
|
|
1813
|
+
yanked, prev_yank = @kill_ring.yank_pop
|
|
1814
|
+
if yanked
|
|
1815
|
+
line, = byteslice!(current_line, @byte_pointer - prev_yank.bytesize, prev_yank.bytesize)
|
|
1816
|
+
set_current_line(line, @byte_pointer - prev_yank.bytesize)
|
|
1817
|
+
insert_text(yanked)
|
|
1818
|
+
end
|
|
1819
|
+
end
|
|
1820
|
+
alias_method :yank_pop, :em_yank_pop
|
|
1821
|
+
|
|
1822
|
+
private def ed_clear_screen(key)
|
|
1823
|
+
Reline::IOGate.clear_screen
|
|
1824
|
+
@screen_size = Reline::IOGate.get_screen_size
|
|
1825
|
+
@rendered_screen.base_y = 0
|
|
1826
|
+
clear_rendered_screen_cache
|
|
1827
|
+
end
|
|
1828
|
+
alias_method :clear_screen, :ed_clear_screen
|
|
1829
|
+
|
|
1830
|
+
private def em_next_word(key)
|
|
1831
|
+
if current_line.bytesize > @byte_pointer
|
|
1832
|
+
byte_size = Reline::Unicode.em_forward_word(current_line, @byte_pointer)
|
|
1833
|
+
@byte_pointer += byte_size
|
|
1834
|
+
end
|
|
1835
|
+
end
|
|
1836
|
+
alias_method :forward_word, :em_next_word
|
|
1837
|
+
|
|
1838
|
+
private def ed_prev_word(key)
|
|
1839
|
+
if @byte_pointer > 0
|
|
1840
|
+
byte_size = Reline::Unicode.em_backward_word(current_line, @byte_pointer)
|
|
1841
|
+
@byte_pointer -= byte_size
|
|
1842
|
+
end
|
|
1843
|
+
end
|
|
1844
|
+
alias_method :backward_word, :ed_prev_word
|
|
1845
|
+
|
|
1846
|
+
private def em_delete_next_word(key)
|
|
1847
|
+
if current_line.bytesize > @byte_pointer
|
|
1848
|
+
byte_size = Reline::Unicode.em_forward_word(current_line, @byte_pointer)
|
|
1849
|
+
line, word = byteslice!(current_line, @byte_pointer, byte_size)
|
|
1850
|
+
set_current_line(line)
|
|
1851
|
+
@kill_ring.append(word)
|
|
1852
|
+
end
|
|
1853
|
+
end
|
|
1854
|
+
alias_method :kill_word, :em_delete_next_word
|
|
1855
|
+
|
|
1856
|
+
private def ed_delete_prev_word(key)
|
|
1857
|
+
if @byte_pointer > 0
|
|
1858
|
+
byte_size = Reline::Unicode.em_backward_word(current_line, @byte_pointer)
|
|
1859
|
+
line, word = byteslice!(current_line, @byte_pointer - byte_size, byte_size)
|
|
1860
|
+
set_current_line(line, @byte_pointer - byte_size)
|
|
1861
|
+
@kill_ring.append(word, true)
|
|
1862
|
+
end
|
|
1863
|
+
end
|
|
1864
|
+
alias_method :backward_kill_word, :ed_delete_prev_word
|
|
1865
|
+
|
|
1866
|
+
private def ed_transpose_chars(key)
|
|
1867
|
+
if @byte_pointer > 0
|
|
1868
|
+
if @byte_pointer < current_line.bytesize
|
|
1869
|
+
byte_size = Reline::Unicode.get_next_mbchar_size(current_line, @byte_pointer)
|
|
1870
|
+
@byte_pointer += byte_size
|
|
1871
|
+
end
|
|
1872
|
+
back1_byte_size = Reline::Unicode.get_prev_mbchar_size(current_line, @byte_pointer)
|
|
1873
|
+
if (@byte_pointer - back1_byte_size) > 0
|
|
1874
|
+
back2_byte_size = Reline::Unicode.get_prev_mbchar_size(current_line, @byte_pointer - back1_byte_size)
|
|
1875
|
+
back2_pointer = @byte_pointer - back1_byte_size - back2_byte_size
|
|
1876
|
+
line, back2_mbchar = byteslice!(current_line, back2_pointer, back2_byte_size)
|
|
1877
|
+
set_current_line(byteinsert(line, @byte_pointer - back2_byte_size, back2_mbchar))
|
|
1878
|
+
end
|
|
1879
|
+
end
|
|
1880
|
+
end
|
|
1881
|
+
alias_method :transpose_chars, :ed_transpose_chars
|
|
1882
|
+
|
|
1883
|
+
private def ed_transpose_words(key)
|
|
1884
|
+
left_word_start, middle_start, right_word_start, after_start = Reline::Unicode.ed_transpose_words(current_line, @byte_pointer)
|
|
1885
|
+
before = current_line.byteslice(0, left_word_start)
|
|
1886
|
+
left_word = current_line.byteslice(left_word_start, middle_start - left_word_start)
|
|
1887
|
+
middle = current_line.byteslice(middle_start, right_word_start - middle_start)
|
|
1888
|
+
right_word = current_line.byteslice(right_word_start, after_start - right_word_start)
|
|
1889
|
+
after = current_line.byteslice(after_start, current_line.bytesize - after_start)
|
|
1890
|
+
return if left_word.empty? or right_word.empty?
|
|
1891
|
+
from_head_to_left_word = before + right_word + middle + left_word
|
|
1892
|
+
set_current_line(from_head_to_left_word + after, from_head_to_left_word.bytesize)
|
|
1893
|
+
end
|
|
1894
|
+
alias_method :transpose_words, :ed_transpose_words
|
|
1895
|
+
|
|
1896
|
+
private def em_capitol_case(key)
|
|
1897
|
+
if current_line.bytesize > @byte_pointer
|
|
1898
|
+
byte_size, new_str = Reline::Unicode.em_forward_word_with_capitalization(current_line, @byte_pointer)
|
|
1899
|
+
before = current_line.byteslice(0, @byte_pointer)
|
|
1900
|
+
after = current_line.byteslice((@byte_pointer + byte_size)..-1)
|
|
1901
|
+
set_current_line(before + new_str + after, @byte_pointer + new_str.bytesize)
|
|
1902
|
+
end
|
|
1903
|
+
end
|
|
1904
|
+
alias_method :capitalize_word, :em_capitol_case
|
|
1905
|
+
|
|
1906
|
+
private def em_lower_case(key)
|
|
1907
|
+
if current_line.bytesize > @byte_pointer
|
|
1908
|
+
byte_size = Reline::Unicode.em_forward_word(current_line, @byte_pointer)
|
|
1909
|
+
part = current_line.byteslice(@byte_pointer, byte_size).grapheme_clusters.map { |mbchar|
|
|
1910
|
+
mbchar =~ /[A-Z]/ ? mbchar.downcase : mbchar
|
|
1911
|
+
}.join
|
|
1912
|
+
rest = current_line.byteslice((@byte_pointer + byte_size)..-1)
|
|
1913
|
+
line = current_line.byteslice(0, @byte_pointer) + part
|
|
1914
|
+
set_current_line(line + rest, line.bytesize)
|
|
1915
|
+
end
|
|
1916
|
+
end
|
|
1917
|
+
alias_method :downcase_word, :em_lower_case
|
|
1918
|
+
|
|
1919
|
+
private def em_upper_case(key)
|
|
1920
|
+
if current_line.bytesize > @byte_pointer
|
|
1921
|
+
byte_size = Reline::Unicode.em_forward_word(current_line, @byte_pointer)
|
|
1922
|
+
part = current_line.byteslice(@byte_pointer, byte_size).grapheme_clusters.map { |mbchar|
|
|
1923
|
+
mbchar =~ /[a-z]/ ? mbchar.upcase : mbchar
|
|
1924
|
+
}.join
|
|
1925
|
+
rest = current_line.byteslice((@byte_pointer + byte_size)..-1)
|
|
1926
|
+
line = current_line.byteslice(0, @byte_pointer) + part
|
|
1927
|
+
set_current_line(line + rest, line.bytesize)
|
|
1928
|
+
end
|
|
1929
|
+
end
|
|
1930
|
+
alias_method :upcase_word, :em_upper_case
|
|
1931
|
+
|
|
1932
|
+
private def em_kill_region(key)
|
|
1933
|
+
if @byte_pointer > 0
|
|
1934
|
+
byte_size = Reline::Unicode.em_big_backward_word(current_line, @byte_pointer)
|
|
1935
|
+
line, deleted = byteslice!(current_line, @byte_pointer - byte_size, byte_size)
|
|
1936
|
+
set_current_line(line, @byte_pointer - byte_size)
|
|
1937
|
+
@kill_ring.append(deleted, true)
|
|
1938
|
+
end
|
|
1939
|
+
end
|
|
1940
|
+
alias_method :unix_word_rubout, :em_kill_region
|
|
1941
|
+
|
|
1942
|
+
private def copy_for_vi(text)
|
|
1943
|
+
if @config.editing_mode_is?(:vi_insert) or @config.editing_mode_is?(:vi_command)
|
|
1944
|
+
@vi_clipboard = text
|
|
1945
|
+
end
|
|
1946
|
+
end
|
|
1947
|
+
|
|
1948
|
+
private def vi_insert(key)
|
|
1949
|
+
@config.editing_mode = :vi_insert
|
|
1950
|
+
end
|
|
1951
|
+
|
|
1952
|
+
private def vi_add(key)
|
|
1953
|
+
@config.editing_mode = :vi_insert
|
|
1954
|
+
ed_next_char(key)
|
|
1955
|
+
end
|
|
1956
|
+
|
|
1957
|
+
private def vi_command_mode(key)
|
|
1958
|
+
ed_prev_char(key)
|
|
1959
|
+
@config.editing_mode = :vi_command
|
|
1960
|
+
end
|
|
1961
|
+
alias_method :vi_movement_mode, :vi_command_mode
|
|
1962
|
+
|
|
1963
|
+
private def vi_next_word(key, arg: 1)
|
|
1964
|
+
if current_line.bytesize > @byte_pointer
|
|
1965
|
+
byte_size = Reline::Unicode.vi_forward_word(current_line, @byte_pointer, @drop_terminate_spaces)
|
|
1966
|
+
@byte_pointer += byte_size
|
|
1967
|
+
end
|
|
1968
|
+
arg -= 1
|
|
1969
|
+
vi_next_word(key, arg: arg) if arg > 0
|
|
1970
|
+
end
|
|
1971
|
+
|
|
1972
|
+
private def vi_prev_word(key, arg: 1)
|
|
1973
|
+
if @byte_pointer > 0
|
|
1974
|
+
byte_size = Reline::Unicode.vi_backward_word(current_line, @byte_pointer)
|
|
1975
|
+
@byte_pointer -= byte_size
|
|
1976
|
+
end
|
|
1977
|
+
arg -= 1
|
|
1978
|
+
vi_prev_word(key, arg: arg) if arg > 0
|
|
1979
|
+
end
|
|
1980
|
+
|
|
1981
|
+
private def vi_end_word(key, arg: 1, inclusive: false)
|
|
1982
|
+
if current_line.bytesize > @byte_pointer
|
|
1983
|
+
byte_size = Reline::Unicode.vi_forward_end_word(current_line, @byte_pointer)
|
|
1984
|
+
@byte_pointer += byte_size
|
|
1985
|
+
end
|
|
1986
|
+
arg -= 1
|
|
1987
|
+
if inclusive and arg.zero?
|
|
1988
|
+
byte_size = Reline::Unicode.get_next_mbchar_size(current_line, @byte_pointer)
|
|
1989
|
+
if byte_size > 0
|
|
1990
|
+
@byte_pointer += byte_size
|
|
1991
|
+
end
|
|
1992
|
+
end
|
|
1993
|
+
vi_end_word(key, arg: arg) if arg > 0
|
|
1994
|
+
end
|
|
1995
|
+
|
|
1996
|
+
private def vi_next_big_word(key, arg: 1)
|
|
1997
|
+
if current_line.bytesize > @byte_pointer
|
|
1998
|
+
byte_size = Reline::Unicode.vi_big_forward_word(current_line, @byte_pointer)
|
|
1999
|
+
@byte_pointer += byte_size
|
|
2000
|
+
end
|
|
2001
|
+
arg -= 1
|
|
2002
|
+
vi_next_big_word(key, arg: arg) if arg > 0
|
|
2003
|
+
end
|
|
2004
|
+
|
|
2005
|
+
private def vi_prev_big_word(key, arg: 1)
|
|
2006
|
+
if @byte_pointer > 0
|
|
2007
|
+
byte_size = Reline::Unicode.vi_big_backward_word(current_line, @byte_pointer)
|
|
2008
|
+
@byte_pointer -= byte_size
|
|
2009
|
+
end
|
|
2010
|
+
arg -= 1
|
|
2011
|
+
vi_prev_big_word(key, arg: arg) if arg > 0
|
|
2012
|
+
end
|
|
2013
|
+
|
|
2014
|
+
private def vi_end_big_word(key, arg: 1, inclusive: false)
|
|
2015
|
+
if current_line.bytesize > @byte_pointer
|
|
2016
|
+
byte_size = Reline::Unicode.vi_big_forward_end_word(current_line, @byte_pointer)
|
|
2017
|
+
@byte_pointer += byte_size
|
|
2018
|
+
end
|
|
2019
|
+
arg -= 1
|
|
2020
|
+
if inclusive and arg.zero?
|
|
2021
|
+
byte_size = Reline::Unicode.get_next_mbchar_size(current_line, @byte_pointer)
|
|
2022
|
+
if byte_size > 0
|
|
2023
|
+
@byte_pointer += byte_size
|
|
2024
|
+
end
|
|
2025
|
+
end
|
|
2026
|
+
vi_end_big_word(key, arg: arg) if arg > 0
|
|
2027
|
+
end
|
|
2028
|
+
|
|
2029
|
+
private def vi_delete_prev_char(key)
|
|
2030
|
+
if @byte_pointer == 0 and @line_index > 0
|
|
2031
|
+
@byte_pointer = @buffer_of_lines[@line_index - 1].bytesize
|
|
2032
|
+
@buffer_of_lines[@line_index - 1] += @buffer_of_lines.delete_at(@line_index)
|
|
2033
|
+
@line_index -= 1
|
|
2034
|
+
process_auto_indent cursor_dependent: false
|
|
2035
|
+
elsif @byte_pointer > 0
|
|
2036
|
+
byte_size = Reline::Unicode.get_prev_mbchar_size(current_line, @byte_pointer)
|
|
2037
|
+
@byte_pointer -= byte_size
|
|
2038
|
+
line, _ = byteslice!(current_line, @byte_pointer, byte_size)
|
|
2039
|
+
set_current_line(line)
|
|
2040
|
+
end
|
|
2041
|
+
end
|
|
2042
|
+
|
|
2043
|
+
private def vi_insert_at_bol(key)
|
|
2044
|
+
ed_move_to_beg(key)
|
|
2045
|
+
@config.editing_mode = :vi_insert
|
|
2046
|
+
end
|
|
2047
|
+
|
|
2048
|
+
private def vi_add_at_eol(key)
|
|
2049
|
+
ed_move_to_end(key)
|
|
2050
|
+
@config.editing_mode = :vi_insert
|
|
2051
|
+
end
|
|
2052
|
+
|
|
2053
|
+
private def ed_delete_prev_char(key, arg: 1)
|
|
2054
|
+
deleted = +''
|
|
2055
|
+
arg.times do
|
|
2056
|
+
if @byte_pointer > 0
|
|
2057
|
+
byte_size = Reline::Unicode.get_prev_mbchar_size(current_line, @byte_pointer)
|
|
2058
|
+
@byte_pointer -= byte_size
|
|
2059
|
+
line, mbchar = byteslice!(current_line, @byte_pointer, byte_size)
|
|
2060
|
+
set_current_line(line)
|
|
2061
|
+
deleted.prepend(mbchar)
|
|
2062
|
+
end
|
|
2063
|
+
end
|
|
2064
|
+
copy_for_vi(deleted)
|
|
2065
|
+
end
|
|
2066
|
+
|
|
2067
|
+
private def vi_change_meta(key, arg: nil)
|
|
2068
|
+
if @vi_waiting_operator
|
|
2069
|
+
set_current_line('', 0) if @vi_waiting_operator == :vi_change_meta_confirm && arg.nil?
|
|
2070
|
+
@vi_waiting_operator = nil
|
|
2071
|
+
@vi_waiting_operator_arg = nil
|
|
2072
|
+
else
|
|
2073
|
+
@drop_terminate_spaces = true
|
|
2074
|
+
@vi_waiting_operator = :vi_change_meta_confirm
|
|
2075
|
+
@vi_waiting_operator_arg = arg || 1
|
|
2076
|
+
end
|
|
2077
|
+
end
|
|
2078
|
+
|
|
2079
|
+
private def vi_change_meta_confirm(byte_pointer_diff)
|
|
2080
|
+
vi_delete_meta_confirm(byte_pointer_diff)
|
|
2081
|
+
@config.editing_mode = :vi_insert
|
|
2082
|
+
@drop_terminate_spaces = false
|
|
2083
|
+
end
|
|
2084
|
+
|
|
2085
|
+
private def vi_delete_meta(key, arg: nil)
|
|
2086
|
+
if @vi_waiting_operator
|
|
2087
|
+
set_current_line('', 0) if @vi_waiting_operator == :vi_delete_meta_confirm && arg.nil?
|
|
2088
|
+
@vi_waiting_operator = nil
|
|
2089
|
+
@vi_waiting_operator_arg = nil
|
|
2090
|
+
else
|
|
2091
|
+
@vi_waiting_operator = :vi_delete_meta_confirm
|
|
2092
|
+
@vi_waiting_operator_arg = arg || 1
|
|
2093
|
+
end
|
|
2094
|
+
end
|
|
2095
|
+
|
|
2096
|
+
private def vi_delete_meta_confirm(byte_pointer_diff)
|
|
2097
|
+
if byte_pointer_diff > 0
|
|
2098
|
+
line, cut = byteslice!(current_line, @byte_pointer, byte_pointer_diff)
|
|
2099
|
+
elsif byte_pointer_diff < 0
|
|
2100
|
+
line, cut = byteslice!(current_line, @byte_pointer + byte_pointer_diff, -byte_pointer_diff)
|
|
2101
|
+
else
|
|
2102
|
+
return
|
|
2103
|
+
end
|
|
2104
|
+
copy_for_vi(cut)
|
|
2105
|
+
set_current_line(line, @byte_pointer + (byte_pointer_diff < 0 ? byte_pointer_diff : 0))
|
|
2106
|
+
end
|
|
2107
|
+
|
|
2108
|
+
private def vi_yank(key, arg: nil)
|
|
2109
|
+
if @vi_waiting_operator
|
|
2110
|
+
copy_for_vi(current_line) if @vi_waiting_operator == :vi_yank_confirm && arg.nil?
|
|
2111
|
+
@vi_waiting_operator = nil
|
|
2112
|
+
@vi_waiting_operator_arg = nil
|
|
2113
|
+
else
|
|
2114
|
+
@vi_waiting_operator = :vi_yank_confirm
|
|
2115
|
+
@vi_waiting_operator_arg = arg || 1
|
|
2116
|
+
end
|
|
2117
|
+
end
|
|
2118
|
+
|
|
2119
|
+
private def vi_yank_confirm(byte_pointer_diff)
|
|
2120
|
+
if byte_pointer_diff > 0
|
|
2121
|
+
cut = current_line.byteslice(@byte_pointer, byte_pointer_diff)
|
|
2122
|
+
elsif byte_pointer_diff < 0
|
|
2123
|
+
cut = current_line.byteslice(@byte_pointer + byte_pointer_diff, -byte_pointer_diff)
|
|
2124
|
+
else
|
|
2125
|
+
return
|
|
2126
|
+
end
|
|
2127
|
+
copy_for_vi(cut)
|
|
2128
|
+
end
|
|
2129
|
+
|
|
2130
|
+
private def vi_list_or_eof(key)
|
|
2131
|
+
if buffer_empty?
|
|
2132
|
+
@eof = true
|
|
2133
|
+
finish
|
|
2134
|
+
else
|
|
2135
|
+
ed_newline(key)
|
|
2136
|
+
end
|
|
2137
|
+
end
|
|
2138
|
+
alias_method :vi_end_of_transmission, :vi_list_or_eof
|
|
2139
|
+
alias_method :vi_eof_maybe, :vi_list_or_eof
|
|
2140
|
+
|
|
2141
|
+
private def ed_delete_next_char(key, arg: 1)
|
|
2142
|
+
byte_size = Reline::Unicode.get_next_mbchar_size(current_line, @byte_pointer)
|
|
2143
|
+
unless current_line.empty? || byte_size == 0
|
|
2144
|
+
line, mbchar = byteslice!(current_line, @byte_pointer, byte_size)
|
|
2145
|
+
copy_for_vi(mbchar)
|
|
2146
|
+
if @byte_pointer > 0 && current_line.bytesize == @byte_pointer + byte_size
|
|
2147
|
+
byte_size = Reline::Unicode.get_prev_mbchar_size(line, @byte_pointer)
|
|
2148
|
+
set_current_line(line, @byte_pointer - byte_size)
|
|
2149
|
+
else
|
|
2150
|
+
set_current_line(line, @byte_pointer)
|
|
2151
|
+
end
|
|
2152
|
+
end
|
|
2153
|
+
arg -= 1
|
|
2154
|
+
ed_delete_next_char(key, arg: arg) if arg > 0
|
|
2155
|
+
end
|
|
2156
|
+
|
|
2157
|
+
private def vi_to_history_line(key)
|
|
2158
|
+
if Reline::HISTORY.empty?
|
|
2159
|
+
return
|
|
2160
|
+
end
|
|
2161
|
+
move_history(0, line: :start, cursor: :start)
|
|
2162
|
+
end
|
|
2163
|
+
|
|
2164
|
+
private def vi_histedit(key)
|
|
2165
|
+
path = Tempfile.open { |fp|
|
|
2166
|
+
fp.write whole_lines.join("\n")
|
|
2167
|
+
fp.path
|
|
2168
|
+
}
|
|
2169
|
+
system("#{ENV['EDITOR']} #{path}")
|
|
2170
|
+
@buffer_of_lines = File.read(path).split("\n")
|
|
2171
|
+
@buffer_of_lines = [String.new(encoding: encoding)] if @buffer_of_lines.empty?
|
|
2172
|
+
@line_index = 0
|
|
2173
|
+
finish
|
|
2174
|
+
end
|
|
2175
|
+
|
|
2176
|
+
private def vi_paste_prev(key, arg: 1)
|
|
2177
|
+
if @vi_clipboard.size > 0
|
|
2178
|
+
cursor_point = @vi_clipboard.grapheme_clusters[0..-2].join
|
|
2179
|
+
set_current_line(byteinsert(current_line, @byte_pointer, @vi_clipboard), @byte_pointer + cursor_point.bytesize)
|
|
2180
|
+
end
|
|
2181
|
+
arg -= 1
|
|
2182
|
+
vi_paste_prev(key, arg: arg) if arg > 0
|
|
2183
|
+
end
|
|
2184
|
+
|
|
2185
|
+
private def vi_paste_next(key, arg: 1)
|
|
2186
|
+
if @vi_clipboard.size > 0
|
|
2187
|
+
byte_size = Reline::Unicode.get_next_mbchar_size(current_line, @byte_pointer)
|
|
2188
|
+
line = byteinsert(current_line, @byte_pointer + byte_size, @vi_clipboard)
|
|
2189
|
+
set_current_line(line, @byte_pointer + @vi_clipboard.bytesize)
|
|
2190
|
+
end
|
|
2191
|
+
arg -= 1
|
|
2192
|
+
vi_paste_next(key, arg: arg) if arg > 0
|
|
2193
|
+
end
|
|
2194
|
+
|
|
2195
|
+
private def ed_argument_digit(key)
|
|
2196
|
+
# key is expected to be `ESC digit` or `digit`
|
|
2197
|
+
num = key[/\d/].to_i
|
|
2198
|
+
@vi_arg = (@vi_arg || 0) * 10 + num
|
|
2199
|
+
end
|
|
2200
|
+
|
|
2201
|
+
private def vi_to_column(key, arg: 0)
|
|
2202
|
+
# Implementing behavior of vi, not Readline's vi-mode.
|
|
2203
|
+
@byte_pointer, = current_line.grapheme_clusters.inject([0, 0]) { |(total_byte_size, total_width), gc|
|
|
2204
|
+
mbchar_width = Reline::Unicode.get_mbchar_width(gc)
|
|
2205
|
+
break [total_byte_size, total_width] if (total_width + mbchar_width) >= arg
|
|
2206
|
+
[total_byte_size + gc.bytesize, total_width + mbchar_width]
|
|
2207
|
+
}
|
|
2208
|
+
end
|
|
2209
|
+
|
|
2210
|
+
private def vi_replace_char(key, arg: 1)
|
|
2211
|
+
@waiting_proc = ->(k) {
|
|
2212
|
+
if arg == 1
|
|
2213
|
+
byte_size = Reline::Unicode.get_next_mbchar_size(current_line, @byte_pointer)
|
|
2214
|
+
before = current_line.byteslice(0, @byte_pointer)
|
|
2215
|
+
remaining_point = @byte_pointer + byte_size
|
|
2216
|
+
after = current_line.byteslice(remaining_point, current_line.bytesize - remaining_point)
|
|
2217
|
+
set_current_line(before + k + after)
|
|
2218
|
+
@waiting_proc = nil
|
|
2219
|
+
elsif arg > 1
|
|
2220
|
+
byte_size = 0
|
|
2221
|
+
arg.times do
|
|
2222
|
+
byte_size += Reline::Unicode.get_next_mbchar_size(current_line, @byte_pointer + byte_size)
|
|
2223
|
+
end
|
|
2224
|
+
before = current_line.byteslice(0, @byte_pointer)
|
|
2225
|
+
remaining_point = @byte_pointer + byte_size
|
|
2226
|
+
after = current_line.byteslice(remaining_point, current_line.bytesize - remaining_point)
|
|
2227
|
+
replaced = k * arg
|
|
2228
|
+
set_current_line(before + replaced + after, @byte_pointer + replaced.bytesize)
|
|
2229
|
+
@waiting_proc = nil
|
|
2230
|
+
end
|
|
2231
|
+
}
|
|
2232
|
+
end
|
|
2233
|
+
|
|
2234
|
+
private def vi_next_char(key, arg: 1, inclusive: false)
|
|
2235
|
+
@waiting_proc = ->(key_for_proc) { search_next_char(key_for_proc, arg, inclusive: inclusive) }
|
|
2236
|
+
end
|
|
2237
|
+
|
|
2238
|
+
private def vi_to_next_char(key, arg: 1, inclusive: false)
|
|
2239
|
+
@waiting_proc = ->(key_for_proc) { search_next_char(key_for_proc, arg, need_prev_char: true, inclusive: inclusive) }
|
|
2240
|
+
end
|
|
2241
|
+
|
|
2242
|
+
private def search_next_char(key, arg, need_prev_char: false, inclusive: false)
|
|
2243
|
+
prev_total = nil
|
|
2244
|
+
total = nil
|
|
2245
|
+
found = false
|
|
2246
|
+
current_line.byteslice(@byte_pointer..-1).grapheme_clusters.each do |mbchar|
|
|
2247
|
+
# total has [byte_size, cursor]
|
|
2248
|
+
unless total
|
|
2249
|
+
# skip cursor point
|
|
2250
|
+
width = Reline::Unicode.get_mbchar_width(mbchar)
|
|
2251
|
+
total = [mbchar.bytesize, width]
|
|
2252
|
+
else
|
|
2253
|
+
if key == mbchar
|
|
2254
|
+
arg -= 1
|
|
2255
|
+
if arg.zero?
|
|
2256
|
+
found = true
|
|
2257
|
+
break
|
|
2258
|
+
end
|
|
2259
|
+
end
|
|
2260
|
+
width = Reline::Unicode.get_mbchar_width(mbchar)
|
|
2261
|
+
prev_total = total
|
|
2262
|
+
total = [total.first + mbchar.bytesize, total.last + width]
|
|
2263
|
+
end
|
|
2264
|
+
end
|
|
2265
|
+
if not need_prev_char and found and total
|
|
2266
|
+
byte_size, _ = total
|
|
2267
|
+
@byte_pointer += byte_size
|
|
2268
|
+
elsif need_prev_char and found and prev_total
|
|
2269
|
+
byte_size, _ = prev_total
|
|
2270
|
+
@byte_pointer += byte_size
|
|
2271
|
+
end
|
|
2272
|
+
if inclusive
|
|
2273
|
+
byte_size = Reline::Unicode.get_next_mbchar_size(current_line, @byte_pointer)
|
|
2274
|
+
if byte_size > 0
|
|
2275
|
+
@byte_pointer += byte_size
|
|
2276
|
+
end
|
|
2277
|
+
end
|
|
2278
|
+
@waiting_proc = nil
|
|
2279
|
+
end
|
|
2280
|
+
|
|
2281
|
+
private def vi_prev_char(key, arg: 1)
|
|
2282
|
+
@waiting_proc = ->(key_for_proc) { search_prev_char(key_for_proc, arg) }
|
|
2283
|
+
end
|
|
2284
|
+
|
|
2285
|
+
private def vi_to_prev_char(key, arg: 1)
|
|
2286
|
+
@waiting_proc = ->(key_for_proc) { search_prev_char(key_for_proc, arg, true) }
|
|
2287
|
+
end
|
|
2288
|
+
|
|
2289
|
+
private def search_prev_char(key, arg, need_next_char = false)
|
|
2290
|
+
prev_total = nil
|
|
2291
|
+
total = nil
|
|
2292
|
+
found = false
|
|
2293
|
+
current_line.byteslice(0..@byte_pointer).grapheme_clusters.reverse_each do |mbchar|
|
|
2294
|
+
# total has [byte_size, cursor]
|
|
2295
|
+
unless total
|
|
2296
|
+
# skip cursor point
|
|
2297
|
+
width = Reline::Unicode.get_mbchar_width(mbchar)
|
|
2298
|
+
total = [mbchar.bytesize, width]
|
|
2299
|
+
else
|
|
2300
|
+
if key == mbchar
|
|
2301
|
+
arg -= 1
|
|
2302
|
+
if arg.zero?
|
|
2303
|
+
found = true
|
|
2304
|
+
break
|
|
2305
|
+
end
|
|
2306
|
+
end
|
|
2307
|
+
width = Reline::Unicode.get_mbchar_width(mbchar)
|
|
2308
|
+
prev_total = total
|
|
2309
|
+
total = [total.first + mbchar.bytesize, total.last + width]
|
|
2310
|
+
end
|
|
2311
|
+
end
|
|
2312
|
+
if not need_next_char and found and total
|
|
2313
|
+
byte_size, _ = total
|
|
2314
|
+
@byte_pointer -= byte_size
|
|
2315
|
+
elsif need_next_char and found and prev_total
|
|
2316
|
+
byte_size, _ = prev_total
|
|
2317
|
+
@byte_pointer -= byte_size
|
|
2318
|
+
end
|
|
2319
|
+
@waiting_proc = nil
|
|
2320
|
+
end
|
|
2321
|
+
|
|
2322
|
+
private def vi_join_lines(key, arg: 1)
|
|
2323
|
+
if @buffer_of_lines.size > @line_index + 1
|
|
2324
|
+
next_line = @buffer_of_lines.delete_at(@line_index + 1).lstrip
|
|
2325
|
+
set_current_line(current_line + ' ' + next_line, current_line.bytesize)
|
|
2326
|
+
end
|
|
2327
|
+
arg -= 1
|
|
2328
|
+
vi_join_lines(key, arg: arg) if arg > 0
|
|
2329
|
+
end
|
|
2330
|
+
|
|
2331
|
+
private def em_set_mark(key)
|
|
2332
|
+
@mark_pointer = [@byte_pointer, @line_index]
|
|
2333
|
+
end
|
|
2334
|
+
alias_method :set_mark, :em_set_mark
|
|
2335
|
+
|
|
2336
|
+
private def em_exchange_mark(key)
|
|
2337
|
+
return unless @mark_pointer
|
|
2338
|
+
new_pointer = [@byte_pointer, @line_index]
|
|
2339
|
+
@byte_pointer, @line_index = @mark_pointer
|
|
2340
|
+
@mark_pointer = new_pointer
|
|
2341
|
+
end
|
|
2342
|
+
alias_method :exchange_point_and_mark, :em_exchange_mark
|
|
2343
|
+
|
|
2344
|
+
private def emacs_editing_mode(key)
|
|
2345
|
+
@config.editing_mode = :emacs
|
|
2346
|
+
end
|
|
2347
|
+
|
|
2348
|
+
private def vi_editing_mode(key)
|
|
2349
|
+
@config.editing_mode = :vi_insert
|
|
2350
|
+
end
|
|
2351
|
+
|
|
2352
|
+
private def move_undo_redo(direction)
|
|
2353
|
+
@restoring = true
|
|
2354
|
+
return unless (0..@input_lines.size - 1).cover?(@input_lines_position + direction)
|
|
2355
|
+
|
|
2356
|
+
@input_lines_position += direction
|
|
2357
|
+
buffer_of_lines, byte_pointer, line_index = @input_lines[@input_lines_position]
|
|
2358
|
+
@buffer_of_lines = buffer_of_lines.dup
|
|
2359
|
+
@line_index = line_index
|
|
2360
|
+
@byte_pointer = byte_pointer
|
|
2361
|
+
end
|
|
2362
|
+
|
|
2363
|
+
private def undo(_key)
|
|
2364
|
+
move_undo_redo(-1)
|
|
2365
|
+
end
|
|
2366
|
+
|
|
2367
|
+
private def redo(_key)
|
|
2368
|
+
move_undo_redo(+1)
|
|
2369
|
+
end
|
|
2370
|
+
|
|
2371
|
+
private def prev_action_state_value(type)
|
|
2372
|
+
@prev_action_state[0] == type ? @prev_action_state[1] : nil
|
|
2373
|
+
end
|
|
2374
|
+
|
|
2375
|
+
private def set_next_action_state(type, value)
|
|
2376
|
+
@next_action_state = [type, value]
|
|
2377
|
+
end
|
|
2378
|
+
|
|
2379
|
+
private def re_read_init_file(_key)
|
|
2380
|
+
@config.reload
|
|
2381
|
+
end
|
|
2382
|
+
end
|