@ai-ecoverse/wasix-ruby 3.4.11-3 → 3.4.11-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/PRESTAGE.md +40 -38
- package/bin/bundle +1 -1
- package/bin/bundler +1 -1
- package/bin/erb +1 -1
- package/bin/gem +1 -1
- package/bin/irb +1 -1
- package/bin/rake +1 -1
- package/bin/ruby.wasm +0 -0
- package/lib/ruby/3.4.0/wasm32-wasi/rbconfig.rb +3 -3
- package/package.json +16 -14
- package/lib/ruby/3.4.11/English.gemspec +0 -22
- package/lib/ruby/3.4.11/English.rb +0 -164
- package/lib/ruby/3.4.11/benchmark.gemspec +0 -32
- package/lib/ruby/3.4.11/benchmark.rb +0 -594
- package/lib/ruby/3.4.11/bundled_gems.rb +0 -248
- package/lib/ruby/3.4.11/bundler/.document +0 -1
- package/lib/ruby/3.4.11/bundler/build_metadata.rb +0 -43
- package/lib/ruby/3.4.11/bundler/bundler.gemspec +0 -45
- package/lib/ruby/3.4.11/bundler/capistrano.rb +0 -22
- package/lib/ruby/3.4.11/bundler/checksum.rb +0 -264
- package/lib/ruby/3.4.11/bundler/ci_detector.rb +0 -75
- package/lib/ruby/3.4.11/bundler/cli/add.rb +0 -49
- package/lib/ruby/3.4.11/bundler/cli/binstubs.rb +0 -57
- package/lib/ruby/3.4.11/bundler/cli/cache.rb +0 -43
- package/lib/ruby/3.4.11/bundler/cli/check.rb +0 -40
- package/lib/ruby/3.4.11/bundler/cli/clean.rb +0 -25
- package/lib/ruby/3.4.11/bundler/cli/common.rb +0 -138
- package/lib/ruby/3.4.11/bundler/cli/config.rb +0 -204
- package/lib/ruby/3.4.11/bundler/cli/console.rb +0 -42
- package/lib/ruby/3.4.11/bundler/cli/doctor/diagnose.rb +0 -167
- package/lib/ruby/3.4.11/bundler/cli/doctor/ssl.rb +0 -249
- package/lib/ruby/3.4.11/bundler/cli/doctor.rb +0 -33
- package/lib/ruby/3.4.11/bundler/cli/exec.rb +0 -89
- package/lib/ruby/3.4.11/bundler/cli/fund.rb +0 -36
- package/lib/ruby/3.4.11/bundler/cli/gem.rb +0 -467
- package/lib/ruby/3.4.11/bundler/cli/info.rb +0 -83
- package/lib/ruby/3.4.11/bundler/cli/init.rb +0 -51
- package/lib/ruby/3.4.11/bundler/cli/inject.rb +0 -60
- package/lib/ruby/3.4.11/bundler/cli/install.rb +0 -199
- package/lib/ruby/3.4.11/bundler/cli/issue.rb +0 -41
- package/lib/ruby/3.4.11/bundler/cli/list.rb +0 -66
- package/lib/ruby/3.4.11/bundler/cli/lock.rb +0 -94
- package/lib/ruby/3.4.11/bundler/cli/open.rb +0 -29
- package/lib/ruby/3.4.11/bundler/cli/outdated.rb +0 -297
- package/lib/ruby/3.4.11/bundler/cli/platform.rb +0 -48
- package/lib/ruby/3.4.11/bundler/cli/plugin.rb +0 -35
- package/lib/ruby/3.4.11/bundler/cli/pristine.rb +0 -60
- package/lib/ruby/3.4.11/bundler/cli/remove.rb +0 -17
- package/lib/ruby/3.4.11/bundler/cli/show.rb +0 -75
- package/lib/ruby/3.4.11/bundler/cli/update.rb +0 -123
- package/lib/ruby/3.4.11/bundler/cli/viz.rb +0 -31
- package/lib/ruby/3.4.11/bundler/cli.rb +0 -790
- package/lib/ruby/3.4.11/bundler/compact_index_client/cache.rb +0 -96
- package/lib/ruby/3.4.11/bundler/compact_index_client/cache_file.rb +0 -148
- package/lib/ruby/3.4.11/bundler/compact_index_client/parser.rb +0 -84
- package/lib/ruby/3.4.11/bundler/compact_index_client/updater.rb +0 -105
- package/lib/ruby/3.4.11/bundler/compact_index_client.rb +0 -97
- package/lib/ruby/3.4.11/bundler/constants.rb +0 -14
- package/lib/ruby/3.4.11/bundler/current_ruby.rb +0 -82
- package/lib/ruby/3.4.11/bundler/definition.rb +0 -1187
- package/lib/ruby/3.4.11/bundler/dependency.rb +0 -151
- package/lib/ruby/3.4.11/bundler/deployment.rb +0 -69
- package/lib/ruby/3.4.11/bundler/deprecate.rb +0 -44
- package/lib/ruby/3.4.11/bundler/digest.rb +0 -71
- package/lib/ruby/3.4.11/bundler/dsl.rb +0 -638
- package/lib/ruby/3.4.11/bundler/endpoint_specification.rb +0 -174
- package/lib/ruby/3.4.11/bundler/env.rb +0 -148
- package/lib/ruby/3.4.11/bundler/environment_preserver.rb +0 -68
- package/lib/ruby/3.4.11/bundler/errors.rb +0 -281
- package/lib/ruby/3.4.11/bundler/feature_flag.rb +0 -50
- package/lib/ruby/3.4.11/bundler/fetcher/base.rb +0 -52
- package/lib/ruby/3.4.11/bundler/fetcher/compact_index.rb +0 -120
- package/lib/ruby/3.4.11/bundler/fetcher/dependency.rb +0 -78
- package/lib/ruby/3.4.11/bundler/fetcher/downloader.rb +0 -91
- package/lib/ruby/3.4.11/bundler/fetcher/gem_remote_fetcher.rb +0 -16
- package/lib/ruby/3.4.11/bundler/fetcher/index.rb +0 -25
- package/lib/ruby/3.4.11/bundler/fetcher.rb +0 -331
- package/lib/ruby/3.4.11/bundler/force_platform.rb +0 -16
- package/lib/ruby/3.4.11/bundler/friendly_errors.rb +0 -126
- package/lib/ruby/3.4.11/bundler/gem_helper.rb +0 -237
- package/lib/ruby/3.4.11/bundler/gem_helpers.rb +0 -144
- package/lib/ruby/3.4.11/bundler/gem_tasks.rb +0 -7
- package/lib/ruby/3.4.11/bundler/gem_version_promoter.rb +0 -147
- package/lib/ruby/3.4.11/bundler/graph.rb +0 -152
- package/lib/ruby/3.4.11/bundler/index.rb +0 -205
- package/lib/ruby/3.4.11/bundler/injector.rb +0 -285
- package/lib/ruby/3.4.11/bundler/inline.rb +0 -98
- package/lib/ruby/3.4.11/bundler/installer/gem_installer.rb +0 -85
- package/lib/ruby/3.4.11/bundler/installer/parallel_installer.rb +0 -203
- package/lib/ruby/3.4.11/bundler/installer/standalone.rb +0 -113
- package/lib/ruby/3.4.11/bundler/installer.rb +0 -243
- package/lib/ruby/3.4.11/bundler/lazy_specification.rb +0 -243
- package/lib/ruby/3.4.11/bundler/lockfile_generator.rb +0 -104
- package/lib/ruby/3.4.11/bundler/lockfile_parser.rb +0 -300
- package/lib/ruby/3.4.11/bundler/man/.document +0 -1
- package/lib/ruby/3.4.11/bundler/man/bundle-add.1 +0 -76
- package/lib/ruby/3.4.11/bundler/man/bundle-add.1.ronn +0 -87
- package/lib/ruby/3.4.11/bundler/man/bundle-binstubs.1 +0 -33
- package/lib/ruby/3.4.11/bundler/man/bundle-binstubs.1.ronn +0 -44
- package/lib/ruby/3.4.11/bundler/man/bundle-cache.1 +0 -68
- package/lib/ruby/3.4.11/bundler/man/bundle-cache.1.ronn +0 -108
- package/lib/ruby/3.4.11/bundler/man/bundle-check.1 +0 -24
- package/lib/ruby/3.4.11/bundler/man/bundle-check.1.ronn +0 -31
- package/lib/ruby/3.4.11/bundler/man/bundle-clean.1 +0 -17
- package/lib/ruby/3.4.11/bundler/man/bundle-clean.1.ronn +0 -18
- package/lib/ruby/3.4.11/bundler/man/bundle-config.1 +0 -317
- package/lib/ruby/3.4.11/bundler/man/bundle-config.1.ronn +0 -408
- package/lib/ruby/3.4.11/bundler/man/bundle-console.1 +0 -33
- package/lib/ruby/3.4.11/bundler/man/bundle-console.1.ronn +0 -39
- package/lib/ruby/3.4.11/bundler/man/bundle-doctor.1 +0 -30
- package/lib/ruby/3.4.11/bundler/man/bundle-doctor.1.ronn +0 -33
- package/lib/ruby/3.4.11/bundler/man/bundle-env.1 +0 -9
- package/lib/ruby/3.4.11/bundler/man/bundle-env.1.ronn +0 -10
- package/lib/ruby/3.4.11/bundler/man/bundle-exec.1 +0 -107
- package/lib/ruby/3.4.11/bundler/man/bundle-exec.1.ronn +0 -154
- package/lib/ruby/3.4.11/bundler/man/bundle-fund.1 +0 -22
- package/lib/ruby/3.4.11/bundler/man/bundle-fund.1.ronn +0 -25
- package/lib/ruby/3.4.11/bundler/man/bundle-gem.1 +0 -87
- package/lib/ruby/3.4.11/bundler/man/bundle-gem.1.ronn +0 -149
- package/lib/ruby/3.4.11/bundler/man/bundle-help.1 +0 -9
- package/lib/ruby/3.4.11/bundler/man/bundle-help.1.ronn +0 -12
- package/lib/ruby/3.4.11/bundler/man/bundle-info.1 +0 -17
- package/lib/ruby/3.4.11/bundler/man/bundle-info.1.ronn +0 -21
- package/lib/ruby/3.4.11/bundler/man/bundle-init.1 +0 -20
- package/lib/ruby/3.4.11/bundler/man/bundle-init.1.ronn +0 -32
- package/lib/ruby/3.4.11/bundler/man/bundle-inject.1 +0 -31
- package/lib/ruby/3.4.11/bundler/man/bundle-inject.1.ronn +0 -32
- package/lib/ruby/3.4.11/bundler/man/bundle-install.1 +0 -218
- package/lib/ruby/3.4.11/bundler/man/bundle-install.1.ronn +0 -387
- package/lib/ruby/3.4.11/bundler/man/bundle-issue.1 +0 -45
- package/lib/ruby/3.4.11/bundler/man/bundle-issue.1.ronn +0 -37
- package/lib/ruby/3.4.11/bundler/man/bundle-licenses.1 +0 -9
- package/lib/ruby/3.4.11/bundler/man/bundle-licenses.1.ronn +0 -10
- package/lib/ruby/3.4.11/bundler/man/bundle-list.1 +0 -35
- package/lib/ruby/3.4.11/bundler/man/bundle-list.1.ronn +0 -36
- package/lib/ruby/3.4.11/bundler/man/bundle-lock.1 +0 -75
- package/lib/ruby/3.4.11/bundler/man/bundle-lock.1.ronn +0 -115
- package/lib/ruby/3.4.11/bundler/man/bundle-open.1 +0 -32
- package/lib/ruby/3.4.11/bundler/man/bundle-open.1.ronn +0 -28
- package/lib/ruby/3.4.11/bundler/man/bundle-outdated.1 +0 -103
- package/lib/ruby/3.4.11/bundler/man/bundle-outdated.1.ronn +0 -110
- package/lib/ruby/3.4.11/bundler/man/bundle-platform.1 +0 -49
- package/lib/ruby/3.4.11/bundler/man/bundle-platform.1.ronn +0 -49
- package/lib/ruby/3.4.11/bundler/man/bundle-plugin.1 +0 -58
- package/lib/ruby/3.4.11/bundler/man/bundle-plugin.1.ronn +0 -63
- package/lib/ruby/3.4.11/bundler/man/bundle-pristine.1 +0 -23
- package/lib/ruby/3.4.11/bundler/man/bundle-pristine.1.ronn +0 -34
- package/lib/ruby/3.4.11/bundler/man/bundle-remove.1 +0 -21
- package/lib/ruby/3.4.11/bundler/man/bundle-remove.1.ronn +0 -23
- package/lib/ruby/3.4.11/bundler/man/bundle-show.1 +0 -19
- package/lib/ruby/3.4.11/bundler/man/bundle-show.1.ronn +0 -25
- package/lib/ruby/3.4.11/bundler/man/bundle-update.1 +0 -281
- package/lib/ruby/3.4.11/bundler/man/bundle-update.1.ronn +0 -359
- package/lib/ruby/3.4.11/bundler/man/bundle-version.1 +0 -22
- package/lib/ruby/3.4.11/bundler/man/bundle-version.1.ronn +0 -24
- package/lib/ruby/3.4.11/bundler/man/bundle-viz.1 +0 -30
- package/lib/ruby/3.4.11/bundler/man/bundle-viz.1.ronn +0 -36
- package/lib/ruby/3.4.11/bundler/man/bundle.1 +0 -102
- package/lib/ruby/3.4.11/bundler/man/bundle.1.ronn +0 -116
- package/lib/ruby/3.4.11/bundler/man/gemfile.5 +0 -472
- package/lib/ruby/3.4.11/bundler/man/gemfile.5.ronn +0 -558
- package/lib/ruby/3.4.11/bundler/man/index.txt +0 -33
- package/lib/ruby/3.4.11/bundler/match_metadata.rb +0 -30
- package/lib/ruby/3.4.11/bundler/match_platform.rb +0 -23
- package/lib/ruby/3.4.11/bundler/match_remote_metadata.rb +0 -29
- package/lib/ruby/3.4.11/bundler/materialization.rb +0 -59
- package/lib/ruby/3.4.11/bundler/mirror.rb +0 -221
- package/lib/ruby/3.4.11/bundler/plugin/api/source.rb +0 -322
- package/lib/ruby/3.4.11/bundler/plugin/api.rb +0 -81
- package/lib/ruby/3.4.11/bundler/plugin/dsl.rb +0 -53
- package/lib/ruby/3.4.11/bundler/plugin/events.rb +0 -85
- package/lib/ruby/3.4.11/bundler/plugin/index.rb +0 -197
- package/lib/ruby/3.4.11/bundler/plugin/installer/git.rb +0 -34
- package/lib/ruby/3.4.11/bundler/plugin/installer/path.rb +0 -26
- package/lib/ruby/3.4.11/bundler/plugin/installer/rubygems.rb +0 -19
- package/lib/ruby/3.4.11/bundler/plugin/installer.rb +0 -132
- package/lib/ruby/3.4.11/bundler/plugin/source_list.rb +0 -31
- package/lib/ruby/3.4.11/bundler/plugin.rb +0 -378
- package/lib/ruby/3.4.11/bundler/process_lock.rb +0 -20
- package/lib/ruby/3.4.11/bundler/remote_specification.rb +0 -126
- package/lib/ruby/3.4.11/bundler/resolver/base.rb +0 -118
- package/lib/ruby/3.4.11/bundler/resolver/candidate.rb +0 -85
- package/lib/ruby/3.4.11/bundler/resolver/incompatibility.rb +0 -15
- package/lib/ruby/3.4.11/bundler/resolver/package.rb +0 -94
- package/lib/ruby/3.4.11/bundler/resolver/root.rb +0 -25
- package/lib/ruby/3.4.11/bundler/resolver/spec_group.rb +0 -74
- package/lib/ruby/3.4.11/bundler/resolver/strategy.rb +0 -40
- package/lib/ruby/3.4.11/bundler/resolver.rb +0 -526
- package/lib/ruby/3.4.11/bundler/retry.rb +0 -66
- package/lib/ruby/3.4.11/bundler/ruby_dsl.rb +0 -62
- package/lib/ruby/3.4.11/bundler/ruby_version.rb +0 -137
- package/lib/ruby/3.4.11/bundler/rubygems_ext.rb +0 -485
- package/lib/ruby/3.4.11/bundler/rubygems_gem_installer.rb +0 -172
- package/lib/ruby/3.4.11/bundler/rubygems_integration.rb +0 -455
- package/lib/ruby/3.4.11/bundler/runtime.rb +0 -320
- package/lib/ruby/3.4.11/bundler/safe_marshal.rb +0 -31
- package/lib/ruby/3.4.11/bundler/self_manager.rb +0 -206
- package/lib/ruby/3.4.11/bundler/settings/validator.rb +0 -102
- package/lib/ruby/3.4.11/bundler/settings.rb +0 -599
- package/lib/ruby/3.4.11/bundler/setup.rb +0 -39
- package/lib/ruby/3.4.11/bundler/shared_helpers.rb +0 -398
- package/lib/ruby/3.4.11/bundler/similarity_detector.rb +0 -63
- package/lib/ruby/3.4.11/bundler/source/gemspec.rb +0 -15
- package/lib/ruby/3.4.11/bundler/source/git/git_proxy.rb +0 -472
- package/lib/ruby/3.4.11/bundler/source/git.rb +0 -452
- package/lib/ruby/3.4.11/bundler/source/metadata.rb +0 -63
- package/lib/ruby/3.4.11/bundler/source/path/installer.rb +0 -53
- package/lib/ruby/3.4.11/bundler/source/path.rb +0 -250
- package/lib/ruby/3.4.11/bundler/source/rubygems/remote.rb +0 -76
- package/lib/ruby/3.4.11/bundler/source/rubygems.rb +0 -522
- package/lib/ruby/3.4.11/bundler/source/rubygems_aggregate.rb +0 -68
- package/lib/ruby/3.4.11/bundler/source.rb +0 -118
- package/lib/ruby/3.4.11/bundler/source_list.rb +0 -273
- package/lib/ruby/3.4.11/bundler/source_map.rb +0 -71
- package/lib/ruby/3.4.11/bundler/spec_set.rb +0 -395
- package/lib/ruby/3.4.11/bundler/stub_specification.rb +0 -146
- package/lib/ruby/3.4.11/bundler/templates/.document +0 -1
- package/lib/ruby/3.4.11/bundler/templates/Executable +0 -27
- package/lib/ruby/3.4.11/bundler/templates/Executable.bundler +0 -109
- package/lib/ruby/3.4.11/bundler/templates/Executable.standalone +0 -14
- package/lib/ruby/3.4.11/bundler/templates/Gemfile +0 -5
- package/lib/ruby/3.4.11/bundler/templates/newgem/CHANGELOG.md.tt +0 -5
- package/lib/ruby/3.4.11/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +0 -132
- package/lib/ruby/3.4.11/bundler/templates/newgem/Cargo.toml.tt +0 -7
- package/lib/ruby/3.4.11/bundler/templates/newgem/Gemfile.tt +0 -24
- package/lib/ruby/3.4.11/bundler/templates/newgem/LICENSE.txt.tt +0 -21
- package/lib/ruby/3.4.11/bundler/templates/newgem/README.md.tt +0 -49
- package/lib/ruby/3.4.11/bundler/templates/newgem/Rakefile.tt +0 -67
- package/lib/ruby/3.4.11/bundler/templates/newgem/bin/console.tt +0 -11
- package/lib/ruby/3.4.11/bundler/templates/newgem/bin/setup.tt +0 -8
- package/lib/ruby/3.4.11/bundler/templates/newgem/circleci/config.yml.tt +0 -25
- package/lib/ruby/3.4.11/bundler/templates/newgem/exe/newgem.tt +0 -3
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/Cargo.toml.tt +0 -15
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/extconf-c.rb.tt +0 -10
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/extconf-rust.rb.tt +0 -6
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/newgem.c.tt +0 -9
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/newgem.h.tt +0 -6
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/src/lib.rs.tt +0 -12
- package/lib/ruby/3.4.11/bundler/templates/newgem/github/workflows/main.yml.tt +0 -37
- package/lib/ruby/3.4.11/bundler/templates/newgem/gitignore.tt +0 -23
- package/lib/ruby/3.4.11/bundler/templates/newgem/gitlab-ci.yml.tt +0 -18
- package/lib/ruby/3.4.11/bundler/templates/newgem/lib/newgem/version.rb.tt +0 -9
- package/lib/ruby/3.4.11/bundler/templates/newgem/lib/newgem.rb.tt +0 -15
- package/lib/ruby/3.4.11/bundler/templates/newgem/newgem.gemspec.tt +0 -52
- package/lib/ruby/3.4.11/bundler/templates/newgem/rspec.tt +0 -3
- package/lib/ruby/3.4.11/bundler/templates/newgem/rubocop.yml.tt +0 -8
- package/lib/ruby/3.4.11/bundler/templates/newgem/sig/newgem.rbs.tt +0 -8
- package/lib/ruby/3.4.11/bundler/templates/newgem/spec/newgem_spec.rb.tt +0 -11
- package/lib/ruby/3.4.11/bundler/templates/newgem/spec/spec_helper.rb.tt +0 -15
- package/lib/ruby/3.4.11/bundler/templates/newgem/standard.yml.tt +0 -3
- package/lib/ruby/3.4.11/bundler/templates/newgem/test/minitest/test_helper.rb.tt +0 -6
- package/lib/ruby/3.4.11/bundler/templates/newgem/test/minitest/test_newgem.rb.tt +0 -13
- package/lib/ruby/3.4.11/bundler/templates/newgem/test/test-unit/newgem_test.rb.tt +0 -15
- package/lib/ruby/3.4.11/bundler/templates/newgem/test/test-unit/test_helper.rb.tt +0 -6
- package/lib/ruby/3.4.11/bundler/ui/rg_proxy.rb +0 -19
- package/lib/ruby/3.4.11/bundler/ui/shell.rb +0 -187
- package/lib/ruby/3.4.11/bundler/ui/silent.rb +0 -96
- package/lib/ruby/3.4.11/bundler/ui.rb +0 -9
- package/lib/ruby/3.4.11/bundler/uri_credentials_filter.rb +0 -43
- package/lib/ruby/3.4.11/bundler/uri_normalizer.rb +0 -23
- package/lib/ruby/3.4.11/bundler/vendor/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb +0 -224
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool/version.rb +0 -3
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb +0 -56
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool.rb +0 -186
- package/lib/ruby/3.4.11/bundler/vendor/fileutils/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/fileutils/lib/fileutils.rb +0 -2696
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent/connection.rb +0 -41
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent/pool.rb +0 -65
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent/timed_stack_multi.rb +0 -79
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +0 -1111
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb +0 -20
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/basic_package_source.rb +0 -169
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/failure_writer.rb +0 -182
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/incompatibility.rb +0 -150
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/package.rb +0 -43
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/partial_solution.rb +0 -121
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/rubygems.rb +0 -45
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/solve_failure.rb +0 -19
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb +0 -61
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/strategy.rb +0 -42
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/term.rb +0 -105
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version.rb +0 -3
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_constraint.rb +0 -129
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb +0 -423
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_solver.rb +0 -236
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_union.rb +0 -178
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub.rb +0 -31
- package/lib/ruby/3.4.11/bundler/vendor/securerandom/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/securerandom/lib/securerandom.rb +0 -102
- package/lib/ruby/3.4.11/bundler/vendor/thor/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/create_file.rb +0 -105
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/create_link.rb +0 -61
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/directory.rb +0 -108
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +0 -143
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +0 -371
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +0 -130
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions.rb +0 -340
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/base.rb +0 -825
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/command.rb +0 -151
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +0 -107
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/error.rb +0 -106
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/group.rb +0 -292
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/invocation.rb +0 -178
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/line_editor/basic.rb +0 -37
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/line_editor/readline.rb +0 -88
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/line_editor.rb +0 -17
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/nested_context.rb +0 -29
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/argument.rb +0 -86
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/arguments.rb +0 -195
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/option.rb +0 -178
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/options.rb +0 -294
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser.rb +0 -4
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/rake_compat.rb +0 -72
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/runner.rb +0 -335
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/basic.rb +0 -388
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/color.rb +0 -112
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/column_printer.rb +0 -29
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/html.rb +0 -81
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/table_printer.rb +0 -118
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/terminal.rb +0 -42
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/wrapped_printer.rb +0 -38
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell.rb +0 -81
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/util.rb +0 -285
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/version.rb +0 -3
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor.rb +0 -674
- package/lib/ruby/3.4.11/bundler/vendor/tsort/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/tsort/lib/tsort.rb +0 -455
- package/lib/ruby/3.4.11/bundler/vendor/uri/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/common.rb +0 -880
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/file.rb +0 -100
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ftp.rb +0 -267
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/generic.rb +0 -1592
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/http.rb +0 -125
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/https.rb +0 -23
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ldap.rb +0 -261
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ldaps.rb +0 -22
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/mailto.rb +0 -293
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/rfc2396_parser.rb +0 -546
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/rfc3986_parser.rb +0 -206
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/version.rb +0 -6
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ws.rb +0 -83
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/wss.rb +0 -23
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri.rb +0 -104
- package/lib/ruby/3.4.11/bundler/vendored_fileutils.rb +0 -4
- package/lib/ruby/3.4.11/bundler/vendored_net_http.rb +0 -23
- package/lib/ruby/3.4.11/bundler/vendored_persistent.rb +0 -11
- package/lib/ruby/3.4.11/bundler/vendored_pub_grub.rb +0 -4
- package/lib/ruby/3.4.11/bundler/vendored_securerandom.rb +0 -12
- package/lib/ruby/3.4.11/bundler/vendored_thor.rb +0 -8
- package/lib/ruby/3.4.11/bundler/vendored_timeout.rb +0 -12
- package/lib/ruby/3.4.11/bundler/vendored_tsort.rb +0 -4
- package/lib/ruby/3.4.11/bundler/vendored_uri.rb +0 -21
- package/lib/ruby/3.4.11/bundler/version.rb +0 -13
- package/lib/ruby/3.4.11/bundler/vlad.rb +0 -17
- package/lib/ruby/3.4.11/bundler/worker.rb +0 -117
- package/lib/ruby/3.4.11/bundler/yaml_serializer.rb +0 -98
- package/lib/ruby/3.4.11/bundler.rb +0 -701
- package/lib/ruby/3.4.11/cgi/cgi.gemspec +0 -43
- package/lib/ruby/3.4.11/cgi/cookie.rb +0 -210
- package/lib/ruby/3.4.11/cgi/core.rb +0 -900
- package/lib/ruby/3.4.11/cgi/html.rb +0 -1035
- package/lib/ruby/3.4.11/cgi/session/pstore.rb +0 -91
- package/lib/ruby/3.4.11/cgi/session.rb +0 -562
- package/lib/ruby/3.4.11/cgi/util.rb +0 -258
- package/lib/ruby/3.4.11/cgi.rb +0 -297
- package/lib/ruby/3.4.11/delegate.gemspec +0 -29
- package/lib/ruby/3.4.11/delegate.rb +0 -444
- package/lib/ruby/3.4.11/did_you_mean/core_ext/name_error.rb +0 -57
- package/lib/ruby/3.4.11/did_you_mean/did_you_mean.gemspec +0 -25
- package/lib/ruby/3.4.11/did_you_mean/experimental.rb +0 -2
- package/lib/ruby/3.4.11/did_you_mean/formatter.rb +0 -44
- package/lib/ruby/3.4.11/did_you_mean/formatters/plain_formatter.rb +0 -4
- package/lib/ruby/3.4.11/did_you_mean/formatters/verbose_formatter.rb +0 -10
- package/lib/ruby/3.4.11/did_you_mean/jaro_winkler.rb +0 -84
- package/lib/ruby/3.4.11/did_you_mean/levenshtein.rb +0 -57
- package/lib/ruby/3.4.11/did_you_mean/spell_checker.rb +0 -46
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/key_error_checker.rb +0 -28
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/method_name_checker.rb +0 -79
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb +0 -49
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb +0 -85
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/name_error_checkers.rb +0 -20
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/null_checker.rb +0 -6
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/pattern_key_name_checker.rb +0 -28
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/require_path_checker.rb +0 -39
- package/lib/ruby/3.4.11/did_you_mean/tree_spell_checker.rb +0 -109
- package/lib/ruby/3.4.11/did_you_mean/verbose.rb +0 -2
- package/lib/ruby/3.4.11/did_you_mean/version.rb +0 -3
- package/lib/ruby/3.4.11/did_you_mean.rb +0 -131
- package/lib/ruby/3.4.11/erb/compiler.rb +0 -472
- package/lib/ruby/3.4.11/erb/def_method.rb +0 -47
- package/lib/ruby/3.4.11/erb/util.rb +0 -63
- package/lib/ruby/3.4.11/erb/version.rb +0 -5
- package/lib/ruby/3.4.11/erb.gemspec +0 -38
- package/lib/ruby/3.4.11/erb.rb +0 -509
- package/lib/ruby/3.4.11/error_highlight/base.rb +0 -830
- package/lib/ruby/3.4.11/error_highlight/core_ext.rb +0 -47
- package/lib/ruby/3.4.11/error_highlight/error_highlight.gemspec +0 -27
- package/lib/ruby/3.4.11/error_highlight/formatter.rb +0 -74
- package/lib/ruby/3.4.11/error_highlight/version.rb +0 -3
- package/lib/ruby/3.4.11/error_highlight.rb +0 -2
- package/lib/ruby/3.4.11/fileutils.gemspec +0 -31
- package/lib/ruby/3.4.11/fileutils.rb +0 -2696
- package/lib/ruby/3.4.11/find.gemspec +0 -29
- package/lib/ruby/3.4.11/find.rb +0 -90
- package/lib/ruby/3.4.11/forwardable/forwardable.gemspec +0 -26
- package/lib/ruby/3.4.11/forwardable/impl.rb +0 -17
- package/lib/ruby/3.4.11/forwardable.rb +0 -321
- package/lib/ruby/3.4.11/ipaddr.gemspec +0 -36
- package/lib/ruby/3.4.11/ipaddr.rb +0 -841
- package/lib/ruby/3.4.11/irb/cmd/nop.rb +0 -4
- package/lib/ruby/3.4.11/irb/color.rb +0 -262
- package/lib/ruby/3.4.11/irb/color_printer.rb +0 -55
- package/lib/ruby/3.4.11/irb/command/backtrace.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/base.rb +0 -60
- package/lib/ruby/3.4.11/irb/command/break.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/catch.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/cd.rb +0 -51
- package/lib/ruby/3.4.11/irb/command/chws.rb +0 -40
- package/lib/ruby/3.4.11/irb/command/context.rb +0 -16
- package/lib/ruby/3.4.11/irb/command/continue.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/debug.rb +0 -73
- package/lib/ruby/3.4.11/irb/command/delete.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/disable_irb.rb +0 -19
- package/lib/ruby/3.4.11/irb/command/edit.rb +0 -63
- package/lib/ruby/3.4.11/irb/command/exit.rb +0 -18
- package/lib/ruby/3.4.11/irb/command/finish.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/force_exit.rb +0 -18
- package/lib/ruby/3.4.11/irb/command/help.rb +0 -83
- package/lib/ruby/3.4.11/irb/command/history.rb +0 -45
- package/lib/ruby/3.4.11/irb/command/info.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/internal_helpers.rb +0 -27
- package/lib/ruby/3.4.11/irb/command/irb_info.rb +0 -33
- package/lib/ruby/3.4.11/irb/command/load.rb +0 -91
- package/lib/ruby/3.4.11/irb/command/ls.rb +0 -167
- package/lib/ruby/3.4.11/irb/command/measure.rb +0 -49
- package/lib/ruby/3.4.11/irb/command/next.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/pushws.rb +0 -65
- package/lib/ruby/3.4.11/irb/command/show_doc.rb +0 -51
- package/lib/ruby/3.4.11/irb/command/show_source.rb +0 -74
- package/lib/ruby/3.4.11/irb/command/step.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/subirb.rb +0 -123
- package/lib/ruby/3.4.11/irb/command/whereami.rb +0 -23
- package/lib/ruby/3.4.11/irb/command.rb +0 -23
- package/lib/ruby/3.4.11/irb/completion.rb +0 -504
- package/lib/ruby/3.4.11/irb/context.rb +0 -716
- package/lib/ruby/3.4.11/irb/debug/ui.rb +0 -101
- package/lib/ruby/3.4.11/irb/debug.rb +0 -127
- package/lib/ruby/3.4.11/irb/default_commands.rb +0 -276
- package/lib/ruby/3.4.11/irb/easter-egg.rb +0 -152
- package/lib/ruby/3.4.11/irb/ext/change-ws.rb +0 -37
- package/lib/ruby/3.4.11/irb/ext/eval_history.rb +0 -149
- package/lib/ruby/3.4.11/irb/ext/loader.rb +0 -127
- package/lib/ruby/3.4.11/irb/ext/multi-irb.rb +0 -258
- package/lib/ruby/3.4.11/irb/ext/tracer.rb +0 -39
- package/lib/ruby/3.4.11/irb/ext/use-loader.rb +0 -67
- package/lib/ruby/3.4.11/irb/ext/workspaces.rb +0 -36
- package/lib/ruby/3.4.11/irb/frame.rb +0 -80
- package/lib/ruby/3.4.11/irb/help.rb +0 -28
- package/lib/ruby/3.4.11/irb/helper_method/base.rb +0 -16
- package/lib/ruby/3.4.11/irb/helper_method/conf.rb +0 -11
- package/lib/ruby/3.4.11/irb/helper_method.rb +0 -29
- package/lib/ruby/3.4.11/irb/history.rb +0 -112
- package/lib/ruby/3.4.11/irb/init.rb +0 -538
- package/lib/ruby/3.4.11/irb/input-method.rb +0 -515
- package/lib/ruby/3.4.11/irb/inspector.rb +0 -131
- package/lib/ruby/3.4.11/irb/irb.gemspec +0 -46
- package/lib/ruby/3.4.11/irb/lc/error.rb +0 -52
- package/lib/ruby/3.4.11/irb/lc/help-message +0 -55
- package/lib/ruby/3.4.11/irb/lc/ja/error.rb +0 -53
- package/lib/ruby/3.4.11/irb/lc/ja/help-message +0 -58
- package/lib/ruby/3.4.11/irb/locale.rb +0 -153
- package/lib/ruby/3.4.11/irb/nesting_parser.rb +0 -239
- package/lib/ruby/3.4.11/irb/notifier.rb +0 -230
- package/lib/ruby/3.4.11/irb/output-method.rb +0 -80
- package/lib/ruby/3.4.11/irb/pager.rb +0 -100
- package/lib/ruby/3.4.11/irb/ruby-lex.rb +0 -476
- package/lib/ruby/3.4.11/irb/ruby_logo.aa +0 -118
- package/lib/ruby/3.4.11/irb/source_finder.rb +0 -138
- package/lib/ruby/3.4.11/irb/statement.rb +0 -80
- package/lib/ruby/3.4.11/irb/version.rb +0 -11
- package/lib/ruby/3.4.11/irb/workspace.rb +0 -171
- package/lib/ruby/3.4.11/irb/ws-for-case-2.rb +0 -9
- package/lib/ruby/3.4.11/irb/xmp.rb +0 -164
- package/lib/ruby/3.4.11/irb.rb +0 -1593
- package/lib/ruby/3.4.11/logger/errors.rb +0 -9
- package/lib/ruby/3.4.11/logger/formatter.rb +0 -36
- package/lib/ruby/3.4.11/logger/log_device.rb +0 -236
- package/lib/ruby/3.4.11/logger/logger.gemspec +0 -22
- package/lib/ruby/3.4.11/logger/period.rb +0 -47
- package/lib/ruby/3.4.11/logger/severity.rb +0 -38
- package/lib/ruby/3.4.11/logger/version.rb +0 -5
- package/lib/ruby/3.4.11/logger.rb +0 -761
- package/lib/ruby/3.4.11/mkmf.rb +0 -3045
- package/lib/ruby/3.4.11/net/http/exceptions.rb +0 -34
- package/lib/ruby/3.4.11/net/http/generic_request.rb +0 -414
- package/lib/ruby/3.4.11/net/http/header.rb +0 -981
- package/lib/ruby/3.4.11/net/http/net-http.gemspec +0 -39
- package/lib/ruby/3.4.11/net/http/proxy_delta.rb +0 -17
- package/lib/ruby/3.4.11/net/http/request.rb +0 -88
- package/lib/ruby/3.4.11/net/http/requests.rb +0 -430
- package/lib/ruby/3.4.11/net/http/response.rb +0 -738
- package/lib/ruby/3.4.11/net/http/responses.rb +0 -1174
- package/lib/ruby/3.4.11/net/http/status.rb +0 -84
- package/lib/ruby/3.4.11/net/http.rb +0 -2574
- package/lib/ruby/3.4.11/net/https.rb +0 -23
- package/lib/ruby/3.4.11/net/net-protocol.gemspec +0 -34
- package/lib/ruby/3.4.11/net/protocol.rb +0 -544
- package/lib/ruby/3.4.11/open-uri.gemspec +0 -32
- package/lib/ruby/3.4.11/open-uri.rb +0 -895
- package/lib/ruby/3.4.11/open3/open3.gemspec +0 -33
- package/lib/ruby/3.4.11/open3/version.rb +0 -3
- package/lib/ruby/3.4.11/open3.rb +0 -1410
- package/lib/ruby/3.4.11/optionparser.rb +0 -2
- package/lib/ruby/3.4.11/optparse/ac.rb +0 -70
- package/lib/ruby/3.4.11/optparse/date.rb +0 -18
- package/lib/ruby/3.4.11/optparse/kwargs.rb +0 -27
- package/lib/ruby/3.4.11/optparse/optparse.gemspec +0 -31
- package/lib/ruby/3.4.11/optparse/shellwords.rb +0 -7
- package/lib/ruby/3.4.11/optparse/time.rb +0 -11
- package/lib/ruby/3.4.11/optparse/uri.rb +0 -7
- package/lib/ruby/3.4.11/optparse/version.rb +0 -80
- package/lib/ruby/3.4.11/optparse.rb +0 -2429
- package/lib/ruby/3.4.11/ostruct.gemspec +0 -24
- package/lib/ruby/3.4.11/ostruct.rb +0 -489
- package/lib/ruby/3.4.11/pp.gemspec +0 -35
- package/lib/ruby/3.4.11/pp.rb +0 -699
- package/lib/ruby/3.4.11/prettyprint.gemspec +0 -29
- package/lib/ruby/3.4.11/prettyprint.rb +0 -558
- package/lib/ruby/3.4.11/prism/compiler.rb +0 -801
- package/lib/ruby/3.4.11/prism/desugar_compiler.rb +0 -392
- package/lib/ruby/3.4.11/prism/dispatcher.rb +0 -2210
- package/lib/ruby/3.4.11/prism/dsl.rb +0 -1003
- package/lib/ruby/3.4.11/prism/ffi.rb +0 -570
- package/lib/ruby/3.4.11/prism/inspect_visitor.rb +0 -2392
- package/lib/ruby/3.4.11/prism/lex_compat.rb +0 -928
- package/lib/ruby/3.4.11/prism/mutation_compiler.rb +0 -772
- package/lib/ruby/3.4.11/prism/node.rb +0 -18816
- package/lib/ruby/3.4.11/prism/node_ext.rb +0 -511
- package/lib/ruby/3.4.11/prism/pack.rb +0 -230
- package/lib/ruby/3.4.11/prism/parse_result/comments.rb +0 -188
- package/lib/ruby/3.4.11/prism/parse_result/errors.rb +0 -66
- package/lib/ruby/3.4.11/prism/parse_result/newlines.rb +0 -155
- package/lib/ruby/3.4.11/prism/parse_result.rb +0 -911
- package/lib/ruby/3.4.11/prism/pattern.rb +0 -269
- package/lib/ruby/3.4.11/prism/polyfill/append_as_bytes.rb +0 -15
- package/lib/ruby/3.4.11/prism/polyfill/byteindex.rb +0 -13
- package/lib/ruby/3.4.11/prism/polyfill/scan_byte.rb +0 -14
- package/lib/ruby/3.4.11/prism/polyfill/unpack1.rb +0 -14
- package/lib/ruby/3.4.11/prism/polyfill/warn.rb +0 -36
- package/lib/ruby/3.4.11/prism/prism.gemspec +0 -174
- package/lib/ruby/3.4.11/prism/reflection.rb +0 -416
- package/lib/ruby/3.4.11/prism/relocation.rb +0 -505
- package/lib/ruby/3.4.11/prism/serialize.rb +0 -2400
- package/lib/ruby/3.4.11/prism/string_query.rb +0 -31
- package/lib/ruby/3.4.11/prism/translation/parser/builder.rb +0 -62
- package/lib/ruby/3.4.11/prism/translation/parser/compiler.rb +0 -2234
- package/lib/ruby/3.4.11/prism/translation/parser/lexer.rb +0 -820
- package/lib/ruby/3.4.11/prism/translation/parser.rb +0 -374
- package/lib/ruby/3.4.11/prism/translation/parser33.rb +0 -13
- package/lib/ruby/3.4.11/prism/translation/parser34.rb +0 -13
- package/lib/ruby/3.4.11/prism/translation/parser35.rb +0 -13
- package/lib/ruby/3.4.11/prism/translation/parser_current.rb +0 -24
- package/lib/ruby/3.4.11/prism/translation/ripper/sexp.rb +0 -126
- package/lib/ruby/3.4.11/prism/translation/ripper/shim.rb +0 -5
- package/lib/ruby/3.4.11/prism/translation/ripper.rb +0 -3474
- package/lib/ruby/3.4.11/prism/translation/ruby_parser.rb +0 -1929
- package/lib/ruby/3.4.11/prism/translation.rb +0 -16
- package/lib/ruby/3.4.11/prism/visitor.rb +0 -813
- package/lib/ruby/3.4.11/prism.rb +0 -91
- package/lib/ruby/3.4.11/pstore.gemspec +0 -32
- package/lib/ruby/3.4.11/pstore.rb +0 -736
- package/lib/ruby/3.4.11/random/formatter.rb +0 -372
- package/lib/ruby/3.4.11/rdoc/.document +0 -2
- package/lib/ruby/3.4.11/rdoc/code_object/alias.rb +0 -104
- package/lib/ruby/3.4.11/rdoc/code_object/anon_class.rb +0 -10
- package/lib/ruby/3.4.11/rdoc/code_object/any_method.rb +0 -374
- package/lib/ruby/3.4.11/rdoc/code_object/attr.rb +0 -172
- package/lib/ruby/3.4.11/rdoc/code_object/class_module.rb +0 -888
- package/lib/ruby/3.4.11/rdoc/code_object/constant.rb +0 -186
- package/lib/ruby/3.4.11/rdoc/code_object/context/section.rb +0 -175
- package/lib/ruby/3.4.11/rdoc/code_object/context.rb +0 -1222
- package/lib/ruby/3.4.11/rdoc/code_object/extend.rb +0 -9
- package/lib/ruby/3.4.11/rdoc/code_object/ghost_method.rb +0 -6
- package/lib/ruby/3.4.11/rdoc/code_object/include.rb +0 -9
- package/lib/ruby/3.4.11/rdoc/code_object/meta_method.rb +0 -6
- package/lib/ruby/3.4.11/rdoc/code_object/method_attr.rb +0 -410
- package/lib/ruby/3.4.11/rdoc/code_object/mixin.rb +0 -120
- package/lib/ruby/3.4.11/rdoc/code_object/normal_class.rb +0 -92
- package/lib/ruby/3.4.11/rdoc/code_object/normal_module.rb +0 -73
- package/lib/ruby/3.4.11/rdoc/code_object/require.rb +0 -51
- package/lib/ruby/3.4.11/rdoc/code_object/single_class.rb +0 -30
- package/lib/ruby/3.4.11/rdoc/code_object/top_level.rb +0 -273
- package/lib/ruby/3.4.11/rdoc/code_object.rb +0 -395
- package/lib/ruby/3.4.11/rdoc/code_objects.rb +0 -5
- package/lib/ruby/3.4.11/rdoc/comment.rb +0 -236
- package/lib/ruby/3.4.11/rdoc/cross_reference.rb +0 -228
- package/lib/ruby/3.4.11/rdoc/encoding.rb +0 -120
- package/lib/ruby/3.4.11/rdoc/erb_partial.rb +0 -18
- package/lib/ruby/3.4.11/rdoc/erbio.rb +0 -37
- package/lib/ruby/3.4.11/rdoc/generator/darkfish.rb +0 -812
- package/lib/ruby/3.4.11/rdoc/generator/json_index.rb +0 -284
- package/lib/ruby/3.4.11/rdoc/generator/markup.rb +0 -171
- package/lib/ruby/3.4.11/rdoc/generator/pot/message_extractor.rb +0 -68
- package/lib/ruby/3.4.11/rdoc/generator/pot/po.rb +0 -84
- package/lib/ruby/3.4.11/rdoc/generator/pot/po_entry.rb +0 -141
- package/lib/ruby/3.4.11/rdoc/generator/pot.rb +0 -94
- package/lib/ruby/3.4.11/rdoc/generator/ri.rb +0 -30
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/.document +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_footer.rhtml +0 -5
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_head.rhtml +0 -48
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +0 -5
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +0 -15
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +0 -15
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +0 -15
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +0 -21
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +0 -11
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +0 -32
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +0 -6
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_search.rhtml +0 -14
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +0 -11
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +0 -39
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_toggle.rhtml +0 -3
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/class.rhtml +0 -221
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/css/fonts.css +0 -167
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/css/rdoc.css +0 -683
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/add.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/arrow_up.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/brick.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/brick_link.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/bug.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/bullet_black.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/date.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/delete.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/find.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/loadingAnimation.gif +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/macFFBgHack.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/package.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/page_green.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/page_white_text.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/page_white_width.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/plugin.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/ruby.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/tag_blue.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/tag_green.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/transparent.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/wrench.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/wrench_orange.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/zoom.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/index.rhtml +0 -23
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/js/darkfish.js +0 -120
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/js/search.js +0 -110
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/page.rhtml +0 -18
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/servlet_not_found.rhtml +0 -20
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/servlet_root.rhtml +0 -65
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/table_of_contents.rhtml +0 -70
- package/lib/ruby/3.4.11/rdoc/generator/template/json_index/.document +0 -1
- package/lib/ruby/3.4.11/rdoc/generator/template/json_index/js/navigation.js +0 -105
- package/lib/ruby/3.4.11/rdoc/generator/template/json_index/js/searcher.js +0 -229
- package/lib/ruby/3.4.11/rdoc/generator.rb +0 -51
- package/lib/ruby/3.4.11/rdoc/i18n/locale.rb +0 -102
- package/lib/ruby/3.4.11/rdoc/i18n/text.rb +0 -126
- package/lib/ruby/3.4.11/rdoc/i18n.rb +0 -10
- package/lib/ruby/3.4.11/rdoc/known_classes.rb +0 -74
- package/lib/ruby/3.4.11/rdoc/markdown/.document +0 -1
- package/lib/ruby/3.4.11/rdoc/markdown/entities.rb +0 -2131
- package/lib/ruby/3.4.11/rdoc/markdown/literals.rb +0 -454
- package/lib/ruby/3.4.11/rdoc/markdown.rb +0 -16806
- package/lib/ruby/3.4.11/rdoc/markup/attr_changer.rb +0 -22
- package/lib/ruby/3.4.11/rdoc/markup/attr_span.rb +0 -35
- package/lib/ruby/3.4.11/rdoc/markup/attribute_manager.rb +0 -405
- package/lib/ruby/3.4.11/rdoc/markup/attributes.rb +0 -70
- package/lib/ruby/3.4.11/rdoc/markup/blank_line.rb +0 -27
- package/lib/ruby/3.4.11/rdoc/markup/block_quote.rb +0 -14
- package/lib/ruby/3.4.11/rdoc/markup/document.rb +0 -164
- package/lib/ruby/3.4.11/rdoc/markup/formatter.rb +0 -272
- package/lib/ruby/3.4.11/rdoc/markup/hard_break.rb +0 -31
- package/lib/ruby/3.4.11/rdoc/markup/heading.rb +0 -84
- package/lib/ruby/3.4.11/rdoc/markup/include.rb +0 -42
- package/lib/ruby/3.4.11/rdoc/markup/indented_paragraph.rb +0 -47
- package/lib/ruby/3.4.11/rdoc/markup/list.rb +0 -101
- package/lib/ruby/3.4.11/rdoc/markup/list_item.rb +0 -99
- package/lib/ruby/3.4.11/rdoc/markup/paragraph.rb +0 -28
- package/lib/ruby/3.4.11/rdoc/markup/parser.rb +0 -585
- package/lib/ruby/3.4.11/rdoc/markup/pre_process.rb +0 -318
- package/lib/ruby/3.4.11/rdoc/markup/raw.rb +0 -69
- package/lib/ruby/3.4.11/rdoc/markup/regexp_handling.rb +0 -40
- package/lib/ruby/3.4.11/rdoc/markup/rule.rb +0 -20
- package/lib/ruby/3.4.11/rdoc/markup/table.rb +0 -56
- package/lib/ruby/3.4.11/rdoc/markup/to_ansi.rb +0 -93
- package/lib/ruby/3.4.11/rdoc/markup/to_bs.rb +0 -102
- package/lib/ruby/3.4.11/rdoc/markup/to_html.rb +0 -462
- package/lib/ruby/3.4.11/rdoc/markup/to_html_crossref.rb +0 -226
- package/lib/ruby/3.4.11/rdoc/markup/to_html_snippet.rb +0 -287
- package/lib/ruby/3.4.11/rdoc/markup/to_joined_paragraph.rb +0 -46
- package/lib/ruby/3.4.11/rdoc/markup/to_label.rb +0 -74
- package/lib/ruby/3.4.11/rdoc/markup/to_markdown.rb +0 -191
- package/lib/ruby/3.4.11/rdoc/markup/to_rdoc.rb +0 -353
- package/lib/ruby/3.4.11/rdoc/markup/to_table_of_contents.rb +0 -88
- package/lib/ruby/3.4.11/rdoc/markup/to_test.rb +0 -69
- package/lib/ruby/3.4.11/rdoc/markup/to_tt_only.rb +0 -120
- package/lib/ruby/3.4.11/rdoc/markup/verbatim.rb +0 -83
- package/lib/ruby/3.4.11/rdoc/markup.rb +0 -240
- package/lib/ruby/3.4.11/rdoc/options.rb +0 -1416
- package/lib/ruby/3.4.11/rdoc/parser/c.rb +0 -1257
- package/lib/ruby/3.4.11/rdoc/parser/changelog.rb +0 -350
- package/lib/ruby/3.4.11/rdoc/parser/markdown.rb +0 -22
- package/lib/ruby/3.4.11/rdoc/parser/prism_ruby.rb +0 -1092
- package/lib/ruby/3.4.11/rdoc/parser/rd.rb +0 -22
- package/lib/ruby/3.4.11/rdoc/parser/ripper_state_lex.rb +0 -302
- package/lib/ruby/3.4.11/rdoc/parser/ruby.rb +0 -2378
- package/lib/ruby/3.4.11/rdoc/parser/ruby_tools.rb +0 -165
- package/lib/ruby/3.4.11/rdoc/parser/simple.rb +0 -61
- package/lib/ruby/3.4.11/rdoc/parser/text.rb +0 -11
- package/lib/ruby/3.4.11/rdoc/parser.rb +0 -297
- package/lib/ruby/3.4.11/rdoc/rd/.document +0 -1
- package/lib/ruby/3.4.11/rdoc/rd/block_parser.rb +0 -1706
- package/lib/ruby/3.4.11/rdoc/rd/inline.rb +0 -71
- package/lib/ruby/3.4.11/rdoc/rd/inline_parser.rb +0 -1854
- package/lib/ruby/3.4.11/rdoc/rd.rb +0 -99
- package/lib/ruby/3.4.11/rdoc/rdoc.gemspec +0 -68
- package/lib/ruby/3.4.11/rdoc/rdoc.rb +0 -551
- package/lib/ruby/3.4.11/rdoc/ri/driver.rb +0 -1566
- package/lib/ruby/3.4.11/rdoc/ri/formatter.rb +0 -6
- package/lib/ruby/3.4.11/rdoc/ri/paths.rb +0 -171
- package/lib/ruby/3.4.11/rdoc/ri/store.rb +0 -6
- package/lib/ruby/3.4.11/rdoc/ri/task.rb +0 -71
- package/lib/ruby/3.4.11/rdoc/ri.rb +0 -20
- package/lib/ruby/3.4.11/rdoc/rubygems_hook.rb +0 -327
- package/lib/ruby/3.4.11/rdoc/servlet.rb +0 -452
- package/lib/ruby/3.4.11/rdoc/stats/normal.rb +0 -58
- package/lib/ruby/3.4.11/rdoc/stats/quiet.rb +0 -59
- package/lib/ruby/3.4.11/rdoc/stats/verbose.rb +0 -44
- package/lib/ruby/3.4.11/rdoc/stats.rb +0 -461
- package/lib/ruby/3.4.11/rdoc/store.rb +0 -997
- package/lib/ruby/3.4.11/rdoc/task.rb +0 -354
- package/lib/ruby/3.4.11/rdoc/text.rb +0 -322
- package/lib/ruby/3.4.11/rdoc/token_stream.rb +0 -118
- package/lib/ruby/3.4.11/rdoc/tom_doc.rb +0 -257
- package/lib/ruby/3.4.11/rdoc/version.rb +0 -10
- package/lib/ruby/3.4.11/rdoc.rb +0 -211
- package/lib/ruby/3.4.11/readline.gemspec +0 -33
- package/lib/ruby/3.4.11/readline.rb +0 -7
- package/lib/ruby/3.4.11/reline/config.rb +0 -373
- package/lib/ruby/3.4.11/reline/face.rb +0 -199
- package/lib/ruby/3.4.11/reline/history.rb +0 -76
- package/lib/ruby/3.4.11/reline/io/ansi.rb +0 -325
- package/lib/ruby/3.4.11/reline/io/dumb.rb +0 -120
- package/lib/ruby/3.4.11/reline/io/windows.rb +0 -530
- package/lib/ruby/3.4.11/reline/io.rb +0 -55
- package/lib/ruby/3.4.11/reline/key_actor/base.rb +0 -37
- package/lib/ruby/3.4.11/reline/key_actor/composite.rb +0 -17
- package/lib/ruby/3.4.11/reline/key_actor/emacs.rb +0 -517
- package/lib/ruby/3.4.11/reline/key_actor/vi_command.rb +0 -518
- package/lib/ruby/3.4.11/reline/key_actor/vi_insert.rb +0 -517
- package/lib/ruby/3.4.11/reline/key_actor.rb +0 -8
- package/lib/ruby/3.4.11/reline/key_stroke.rb +0 -119
- package/lib/ruby/3.4.11/reline/kill_ring.rb +0 -125
- package/lib/ruby/3.4.11/reline/line_editor.rb +0 -2382
- package/lib/ruby/3.4.11/reline/reline.gemspec +0 -30
- package/lib/ruby/3.4.11/reline/unicode/east_asian_width.rb +0 -1267
- package/lib/ruby/3.4.11/reline/unicode.rb +0 -415
- package/lib/ruby/3.4.11/reline/version.rb +0 -3
- package/lib/ruby/3.4.11/reline.rb +0 -519
- package/lib/ruby/3.4.11/resolv.gemspec +0 -30
- package/lib/ruby/3.4.11/resolv.rb +0 -3587
- package/lib/ruby/3.4.11/ruby2_keywords.gemspec +0 -23
- package/lib/ruby/3.4.11/ruby_vm/rjit/.document +0 -1
- package/lib/ruby/3.4.11/ruby_vm/rjit/assembler.rb +0 -1160
- package/lib/ruby/3.4.11/ruby_vm/rjit/block.rb +0 -11
- package/lib/ruby/3.4.11/ruby_vm/rjit/branch_stub.rb +0 -24
- package/lib/ruby/3.4.11/ruby_vm/rjit/c_pointer.rb +0 -394
- package/lib/ruby/3.4.11/ruby_vm/rjit/c_type.rb +0 -99
- package/lib/ruby/3.4.11/ruby_vm/rjit/code_block.rb +0 -91
- package/lib/ruby/3.4.11/ruby_vm/rjit/compiler.rb +0 -518
- package/lib/ruby/3.4.11/ruby_vm/rjit/context.rb +0 -377
- package/lib/ruby/3.4.11/ruby_vm/rjit/entry_stub.rb +0 -7
- package/lib/ruby/3.4.11/ruby_vm/rjit/exit_compiler.rb +0 -164
- package/lib/ruby/3.4.11/ruby_vm/rjit/hooks.rb +0 -36
- package/lib/ruby/3.4.11/ruby_vm/rjit/insn_compiler.rb +0 -6046
- package/lib/ruby/3.4.11/ruby_vm/rjit/instruction.rb +0 -1326
- package/lib/ruby/3.4.11/ruby_vm/rjit/invariants.rb +0 -155
- package/lib/ruby/3.4.11/ruby_vm/rjit/jit_state.rb +0 -65
- package/lib/ruby/3.4.11/ruby_vm/rjit/stats.rb +0 -191
- package/lib/ruby/3.4.11/ruby_vm/rjit/type.rb +0 -221
- package/lib/ruby/3.4.11/rubygems/available_set.rb +0 -165
- package/lib/ruby/3.4.11/rubygems/basic_specification.rb +0 -383
- package/lib/ruby/3.4.11/rubygems/bundler_version_finder.rb +0 -77
- package/lib/ruby/3.4.11/rubygems/ci_detector.rb +0 -75
- package/lib/ruby/3.4.11/rubygems/command.rb +0 -664
- package/lib/ruby/3.4.11/rubygems/command_manager.rb +0 -255
- package/lib/ruby/3.4.11/rubygems/commands/build_command.rb +0 -127
- package/lib/ruby/3.4.11/rubygems/commands/cert_command.rb +0 -325
- package/lib/ruby/3.4.11/rubygems/commands/check_command.rb +0 -97
- package/lib/ruby/3.4.11/rubygems/commands/cleanup_command.rb +0 -178
- package/lib/ruby/3.4.11/rubygems/commands/contents_command.rb +0 -196
- package/lib/ruby/3.4.11/rubygems/commands/dependency_command.rb +0 -206
- package/lib/ruby/3.4.11/rubygems/commands/environment_command.rb +0 -181
- package/lib/ruby/3.4.11/rubygems/commands/exec_command.rb +0 -256
- package/lib/ruby/3.4.11/rubygems/commands/fetch_command.rb +0 -109
- package/lib/ruby/3.4.11/rubygems/commands/generate_index_command.rb +0 -51
- package/lib/ruby/3.4.11/rubygems/commands/help_command.rb +0 -375
- package/lib/ruby/3.4.11/rubygems/commands/info_command.rb +0 -38
- package/lib/ruby/3.4.11/rubygems/commands/install_command.rb +0 -269
- package/lib/ruby/3.4.11/rubygems/commands/list_command.rb +0 -42
- package/lib/ruby/3.4.11/rubygems/commands/lock_command.rb +0 -109
- package/lib/ruby/3.4.11/rubygems/commands/mirror_command.rb +0 -26
- package/lib/ruby/3.4.11/rubygems/commands/open_command.rb +0 -83
- package/lib/ruby/3.4.11/rubygems/commands/outdated_command.rb +0 -33
- package/lib/ruby/3.4.11/rubygems/commands/owner_command.rb +0 -124
- package/lib/ruby/3.4.11/rubygems/commands/pristine_command.rb +0 -217
- package/lib/ruby/3.4.11/rubygems/commands/push_command.rb +0 -135
- package/lib/ruby/3.4.11/rubygems/commands/query_command.rb +0 -43
- package/lib/ruby/3.4.11/rubygems/commands/rdoc_command.rb +0 -90
- package/lib/ruby/3.4.11/rubygems/commands/rebuild_command.rb +0 -262
- package/lib/ruby/3.4.11/rubygems/commands/search_command.rb +0 -41
- package/lib/ruby/3.4.11/rubygems/commands/server_command.rb +0 -26
- package/lib/ruby/3.4.11/rubygems/commands/setup_command.rb +0 -663
- package/lib/ruby/3.4.11/rubygems/commands/signin_command.rb +0 -34
- package/lib/ruby/3.4.11/rubygems/commands/signout_command.rb +0 -32
- package/lib/ruby/3.4.11/rubygems/commands/sources_command.rb +0 -227
- package/lib/ruby/3.4.11/rubygems/commands/specification_command.rb +0 -156
- package/lib/ruby/3.4.11/rubygems/commands/stale_command.rb +0 -40
- package/lib/ruby/3.4.11/rubygems/commands/uninstall_command.rb +0 -204
- package/lib/ruby/3.4.11/rubygems/commands/unpack_command.rb +0 -168
- package/lib/ruby/3.4.11/rubygems/commands/update_command.rb +0 -326
- package/lib/ruby/3.4.11/rubygems/commands/which_command.rb +0 -88
- package/lib/ruby/3.4.11/rubygems/commands/yank_command.rb +0 -99
- package/lib/ruby/3.4.11/rubygems/compatibility.rb +0 -41
- package/lib/ruby/3.4.11/rubygems/config_file.rb +0 -618
- package/lib/ruby/3.4.11/rubygems/core_ext/kernel_gem.rb +0 -68
- package/lib/ruby/3.4.11/rubygems/core_ext/kernel_require.rb +0 -149
- package/lib/ruby/3.4.11/rubygems/core_ext/kernel_warn.rb +0 -45
- package/lib/ruby/3.4.11/rubygems/core_ext/tcpsocket_init.rb +0 -54
- package/lib/ruby/3.4.11/rubygems/defaults.rb +0 -308
- package/lib/ruby/3.4.11/rubygems/dependency.rb +0 -348
- package/lib/ruby/3.4.11/rubygems/dependency_installer.rb +0 -335
- package/lib/ruby/3.4.11/rubygems/dependency_list.rb +0 -243
- package/lib/ruby/3.4.11/rubygems/deprecate.rb +0 -169
- package/lib/ruby/3.4.11/rubygems/doctor.rb +0 -132
- package/lib/ruby/3.4.11/rubygems/errors.rb +0 -177
- package/lib/ruby/3.4.11/rubygems/exceptions.rb +0 -293
- package/lib/ruby/3.4.11/rubygems/ext/build_error.rb +0 -9
- package/lib/ruby/3.4.11/rubygems/ext/builder.rb +0 -260
- package/lib/ruby/3.4.11/rubygems/ext/cargo_builder/link_flag_converter.rb +0 -27
- package/lib/ruby/3.4.11/rubygems/ext/cargo_builder.rb +0 -346
- package/lib/ruby/3.4.11/rubygems/ext/cmake_builder.rb +0 -21
- package/lib/ruby/3.4.11/rubygems/ext/configure_builder.rb +0 -26
- package/lib/ruby/3.4.11/rubygems/ext/ext_conf_builder.rb +0 -77
- package/lib/ruby/3.4.11/rubygems/ext/rake_builder.rb +0 -37
- package/lib/ruby/3.4.11/rubygems/ext.rb +0 -20
- package/lib/ruby/3.4.11/rubygems/gem_runner.rb +0 -89
- package/lib/ruby/3.4.11/rubygems/gemcutter_utilities/webauthn_listener/response.rb +0 -163
- package/lib/ruby/3.4.11/rubygems/gemcutter_utilities/webauthn_listener.rb +0 -105
- package/lib/ruby/3.4.11/rubygems/gemcutter_utilities/webauthn_poller.rb +0 -80
- package/lib/ruby/3.4.11/rubygems/gemcutter_utilities.rb +0 -397
- package/lib/ruby/3.4.11/rubygems/gemspec_helpers.rb +0 -19
- package/lib/ruby/3.4.11/rubygems/install_default_message.rb +0 -13
- package/lib/ruby/3.4.11/rubygems/install_message.rb +0 -13
- package/lib/ruby/3.4.11/rubygems/install_update_options.rb +0 -204
- package/lib/ruby/3.4.11/rubygems/installer.rb +0 -1031
- package/lib/ruby/3.4.11/rubygems/installer_uninstaller_utils.rb +0 -27
- package/lib/ruby/3.4.11/rubygems/local_remote_options.rb +0 -146
- package/lib/ruby/3.4.11/rubygems/name_tuple.rb +0 -119
- package/lib/ruby/3.4.11/rubygems/openssl.rb +0 -7
- package/lib/ruby/3.4.11/rubygems/package/digest_io.rb +0 -63
- package/lib/ruby/3.4.11/rubygems/package/file_source.rb +0 -32
- package/lib/ruby/3.4.11/rubygems/package/io_source.rb +0 -48
- package/lib/ruby/3.4.11/rubygems/package/old.rb +0 -169
- package/lib/ruby/3.4.11/rubygems/package/source.rb +0 -4
- package/lib/ruby/3.4.11/rubygems/package/tar_header.rb +0 -277
- package/lib/ruby/3.4.11/rubygems/package/tar_reader/entry.rb +0 -244
- package/lib/ruby/3.4.11/rubygems/package/tar_reader.rb +0 -101
- package/lib/ruby/3.4.11/rubygems/package/tar_writer.rb +0 -332
- package/lib/ruby/3.4.11/rubygems/package.rb +0 -742
- package/lib/ruby/3.4.11/rubygems/package_task.rb +0 -123
- package/lib/ruby/3.4.11/rubygems/path_support.rb +0 -85
- package/lib/ruby/3.4.11/rubygems/platform.rb +0 -269
- package/lib/ruby/3.4.11/rubygems/psych_tree.rb +0 -37
- package/lib/ruby/3.4.11/rubygems/query_utils.rb +0 -349
- package/lib/ruby/3.4.11/rubygems/rdoc.rb +0 -26
- package/lib/ruby/3.4.11/rubygems/remote_fetcher.rb +0 -341
- package/lib/ruby/3.4.11/rubygems/request/connection_pools.rb +0 -95
- package/lib/ruby/3.4.11/rubygems/request/http_pool.rb +0 -47
- package/lib/ruby/3.4.11/rubygems/request/https_pool.rb +0 -10
- package/lib/ruby/3.4.11/rubygems/request.rb +0 -298
- package/lib/ruby/3.4.11/rubygems/request_set/gem_dependency_api.rb +0 -841
- package/lib/ruby/3.4.11/rubygems/request_set/lockfile/parser.rb +0 -344
- package/lib/ruby/3.4.11/rubygems/request_set/lockfile/tokenizer.rb +0 -122
- package/lib/ruby/3.4.11/rubygems/request_set/lockfile.rb +0 -235
- package/lib/ruby/3.4.11/rubygems/request_set.rb +0 -468
- package/lib/ruby/3.4.11/rubygems/requirement.rb +0 -298
- package/lib/ruby/3.4.11/rubygems/resolver/activation_request.rb +0 -159
- package/lib/ruby/3.4.11/rubygems/resolver/api_set/gem_parser.rb +0 -21
- package/lib/ruby/3.4.11/rubygems/resolver/api_set.rb +0 -139
- package/lib/ruby/3.4.11/rubygems/resolver/api_specification.rb +0 -105
- package/lib/ruby/3.4.11/rubygems/resolver/best_set.rb +0 -49
- package/lib/ruby/3.4.11/rubygems/resolver/composed_set.rb +0 -65
- package/lib/ruby/3.4.11/rubygems/resolver/conflict.rb +0 -146
- package/lib/ruby/3.4.11/rubygems/resolver/current_set.rb +0 -12
- package/lib/ruby/3.4.11/rubygems/resolver/dependency_request.rb +0 -119
- package/lib/ruby/3.4.11/rubygems/resolver/git_set.rb +0 -120
- package/lib/ruby/3.4.11/rubygems/resolver/git_specification.rb +0 -57
- package/lib/ruby/3.4.11/rubygems/resolver/index_set.rb +0 -79
- package/lib/ruby/3.4.11/rubygems/resolver/index_specification.rb +0 -101
- package/lib/ruby/3.4.11/rubygems/resolver/installed_specification.rb +0 -57
- package/lib/ruby/3.4.11/rubygems/resolver/installer_set.rb +0 -271
- package/lib/ruby/3.4.11/rubygems/resolver/local_specification.rb +0 -40
- package/lib/ruby/3.4.11/rubygems/resolver/lock_set.rb +0 -81
- package/lib/ruby/3.4.11/rubygems/resolver/lock_specification.rb +0 -86
- package/lib/ruby/3.4.11/rubygems/resolver/requirement_list.rb +0 -82
- package/lib/ruby/3.4.11/rubygems/resolver/set.rb +0 -55
- package/lib/ruby/3.4.11/rubygems/resolver/source_set.rb +0 -47
- package/lib/ruby/3.4.11/rubygems/resolver/spec_specification.rb +0 -76
- package/lib/ruby/3.4.11/rubygems/resolver/specification.rb +0 -126
- package/lib/ruby/3.4.11/rubygems/resolver/stats.rb +0 -46
- package/lib/ruby/3.4.11/rubygems/resolver/vendor_set.rb +0 -86
- package/lib/ruby/3.4.11/rubygems/resolver/vendor_specification.rb +0 -23
- package/lib/ruby/3.4.11/rubygems/resolver.rb +0 -341
- package/lib/ruby/3.4.11/rubygems/s3_uri_signer.rb +0 -177
- package/lib/ruby/3.4.11/rubygems/safe_marshal/elements.rb +0 -146
- package/lib/ruby/3.4.11/rubygems/safe_marshal/reader.rb +0 -325
- package/lib/ruby/3.4.11/rubygems/safe_marshal/visitors/stream_printer.rb +0 -31
- package/lib/ruby/3.4.11/rubygems/safe_marshal/visitors/to_ruby.rb +0 -428
- package/lib/ruby/3.4.11/rubygems/safe_marshal/visitors/visitor.rb +0 -74
- package/lib/ruby/3.4.11/rubygems/safe_marshal.rb +0 -74
- package/lib/ruby/3.4.11/rubygems/safe_yaml.rb +0 -45
- package/lib/ruby/3.4.11/rubygems/security/policies.rb +0 -114
- package/lib/ruby/3.4.11/rubygems/security/policy.rb +0 -288
- package/lib/ruby/3.4.11/rubygems/security/signer.rb +0 -212
- package/lib/ruby/3.4.11/rubygems/security/trust_dir.rb +0 -117
- package/lib/ruby/3.4.11/rubygems/security.rb +0 -615
- package/lib/ruby/3.4.11/rubygems/security_option.rb +0 -43
- package/lib/ruby/3.4.11/rubygems/source/git.rb +0 -244
- package/lib/ruby/3.4.11/rubygems/source/installed.rb +0 -39
- package/lib/ruby/3.4.11/rubygems/source/local.rb +0 -131
- package/lib/ruby/3.4.11/rubygems/source/lock.rb +0 -49
- package/lib/ruby/3.4.11/rubygems/source/specific_file.rb +0 -73
- package/lib/ruby/3.4.11/rubygems/source/vendor.rb +0 -24
- package/lib/ruby/3.4.11/rubygems/source.rb +0 -247
- package/lib/ruby/3.4.11/rubygems/source_list.rb +0 -146
- package/lib/ruby/3.4.11/rubygems/spec_fetcher.rb +0 -290
- package/lib/ruby/3.4.11/rubygems/specification.rb +0 -2666
- package/lib/ruby/3.4.11/rubygems/specification_policy.rb +0 -558
- package/lib/ruby/3.4.11/rubygems/specification_record.rb +0 -212
- package/lib/ruby/3.4.11/rubygems/ssl_certs/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA.pem +0 -21
- package/lib/ruby/3.4.11/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA_R3.pem +0 -21
- package/lib/ruby/3.4.11/rubygems/stub_specification.rb +0 -235
- package/lib/ruby/3.4.11/rubygems/target_rbconfig.rb +0 -50
- package/lib/ruby/3.4.11/rubygems/text.rb +0 -85
- package/lib/ruby/3.4.11/rubygems/uninstaller.rb +0 -429
- package/lib/ruby/3.4.11/rubygems/unknown_command_spell_checker.rb +0 -21
- package/lib/ruby/3.4.11/rubygems/update_suggestion.rb +0 -56
- package/lib/ruby/3.4.11/rubygems/uri.rb +0 -126
- package/lib/ruby/3.4.11/rubygems/uri_formatter.rb +0 -47
- package/lib/ruby/3.4.11/rubygems/user_interaction.rb +0 -650
- package/lib/ruby/3.4.11/rubygems/util/licenses.rb +0 -834
- package/lib/ruby/3.4.11/rubygems/util/list.rb +0 -40
- package/lib/ruby/3.4.11/rubygems/util.rb +0 -118
- package/lib/ruby/3.4.11/rubygems/validator.rb +0 -144
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +0 -57
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +0 -88
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +0 -36
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +0 -66
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +0 -62
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +0 -63
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +0 -61
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +0 -126
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +0 -46
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +0 -36
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +0 -164
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph.rb +0 -255
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/errors.rb +0 -149
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/gem_metadata.rb +0 -6
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +0 -112
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/modules/ui.rb +0 -67
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/resolution.rb +0 -839
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/resolver.rb +0 -46
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/state.rb +0 -58
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo.rb +0 -11
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/exceptions.rb +0 -34
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/generic_request.rb +0 -414
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/header.rb +0 -981
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/proxy_delta.rb +0 -17
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/request.rb +0 -88
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/requests.rb +0 -430
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/response.rb +0 -738
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/responses.rb +0 -1174
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/status.rb +0 -84
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http.rb +0 -2580
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/https.rb +0 -23
- package/lib/ruby/3.4.11/rubygems/vendor/net-protocol/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/net-protocol/lib/net/protocol.rb +0 -544
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optionparser.rb +0 -2
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/ac.rb +0 -70
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/date.rb +0 -18
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/kwargs.rb +0 -27
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/shellwords.rb +0 -7
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/time.rb +0 -11
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/uri.rb +0 -7
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/version.rb +0 -80
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse.rb +0 -2426
- package/lib/ruby/3.4.11/rubygems/vendor/resolv/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/resolv/lib/resolv.rb +0 -3455
- package/lib/ruby/3.4.11/rubygems/vendor/securerandom/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/securerandom/lib/securerandom.rb +0 -102
- package/lib/ruby/3.4.11/rubygems/vendor/timeout/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/timeout/lib/timeout.rb +0 -198
- package/lib/ruby/3.4.11/rubygems/vendor/tsort/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/tsort/lib/tsort.rb +0 -455
- package/lib/ruby/3.4.11/rubygems/vendor/uri/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/common.rb +0 -880
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/file.rb +0 -100
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ftp.rb +0 -267
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/generic.rb +0 -1592
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/http.rb +0 -125
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/https.rb +0 -23
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ldap.rb +0 -261
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ldaps.rb +0 -22
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/mailto.rb +0 -293
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/rfc2396_parser.rb +0 -546
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/rfc3986_parser.rb +0 -206
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/version.rb +0 -6
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ws.rb +0 -83
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/wss.rb +0 -23
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri.rb +0 -104
- package/lib/ruby/3.4.11/rubygems/vendored_molinillo.rb +0 -3
- package/lib/ruby/3.4.11/rubygems/vendored_net_http.rb +0 -5
- package/lib/ruby/3.4.11/rubygems/vendored_optparse.rb +0 -3
- package/lib/ruby/3.4.11/rubygems/vendored_securerandom.rb +0 -3
- package/lib/ruby/3.4.11/rubygems/vendored_timeout.rb +0 -5
- package/lib/ruby/3.4.11/rubygems/vendored_tsort.rb +0 -3
- package/lib/ruby/3.4.11/rubygems/version.rb +0 -441
- package/lib/ruby/3.4.11/rubygems/version_option.rb +0 -80
- package/lib/ruby/3.4.11/rubygems/yaml_serializer.rb +0 -98
- package/lib/ruby/3.4.11/rubygems.rb +0 -1417
- package/lib/ruby/3.4.11/securerandom.gemspec +0 -34
- package/lib/ruby/3.4.11/securerandom.rb +0 -102
- package/lib/ruby/3.4.11/set/set.gemspec +0 -30
- package/lib/ruby/3.4.11/set/sorted_set.rb +0 -6
- package/lib/ruby/3.4.11/set.rb +0 -855
- package/lib/ruby/3.4.11/shellwords.gemspec +0 -31
- package/lib/ruby/3.4.11/shellwords.rb +0 -254
- package/lib/ruby/3.4.11/singleton.gemspec +0 -30
- package/lib/ruby/3.4.11/singleton.rb +0 -239
- package/lib/ruby/3.4.11/syntax_suggest/api.rb +0 -233
- package/lib/ruby/3.4.11/syntax_suggest/around_block_scan.rb +0 -232
- package/lib/ruby/3.4.11/syntax_suggest/block_expand.rb +0 -165
- package/lib/ruby/3.4.11/syntax_suggest/capture/before_after_keyword_ends.rb +0 -85
- package/lib/ruby/3.4.11/syntax_suggest/capture/falling_indent_lines.rb +0 -71
- package/lib/ruby/3.4.11/syntax_suggest/capture_code_context.rb +0 -245
- package/lib/ruby/3.4.11/syntax_suggest/clean_document.rb +0 -306
- package/lib/ruby/3.4.11/syntax_suggest/cli.rb +0 -130
- package/lib/ruby/3.4.11/syntax_suggest/code_block.rb +0 -100
- package/lib/ruby/3.4.11/syntax_suggest/code_frontier.rb +0 -178
- package/lib/ruby/3.4.11/syntax_suggest/code_line.rb +0 -243
- package/lib/ruby/3.4.11/syntax_suggest/code_search.rb +0 -139
- package/lib/ruby/3.4.11/syntax_suggest/core_ext.rb +0 -96
- package/lib/ruby/3.4.11/syntax_suggest/display_code_with_line_numbers.rb +0 -70
- package/lib/ruby/3.4.11/syntax_suggest/display_invalid_blocks.rb +0 -83
- package/lib/ruby/3.4.11/syntax_suggest/explain_syntax.rb +0 -117
- package/lib/ruby/3.4.11/syntax_suggest/left_right_lex_count.rb +0 -168
- package/lib/ruby/3.4.11/syntax_suggest/lex_all.rb +0 -74
- package/lib/ruby/3.4.11/syntax_suggest/lex_value.rb +0 -70
- package/lib/ruby/3.4.11/syntax_suggest/mini_stringio.rb +0 -30
- package/lib/ruby/3.4.11/syntax_suggest/parse_blocks_from_indent_line.rb +0 -60
- package/lib/ruby/3.4.11/syntax_suggest/pathname_from_message.rb +0 -59
- package/lib/ruby/3.4.11/syntax_suggest/priority_engulf_queue.rb +0 -63
- package/lib/ruby/3.4.11/syntax_suggest/priority_queue.rb +0 -105
- package/lib/ruby/3.4.11/syntax_suggest/ripper_errors.rb +0 -39
- package/lib/ruby/3.4.11/syntax_suggest/scan_history.rb +0 -134
- package/lib/ruby/3.4.11/syntax_suggest/syntax_suggest.gemspec +0 -32
- package/lib/ruby/3.4.11/syntax_suggest/unvisited_lines.rb +0 -36
- package/lib/ruby/3.4.11/syntax_suggest/version.rb +0 -5
- package/lib/ruby/3.4.11/syntax_suggest.rb +0 -3
- package/lib/ruby/3.4.11/tempfile.gemspec +0 -33
- package/lib/ruby/3.4.11/tempfile.rb +0 -640
- package/lib/ruby/3.4.11/time.gemspec +0 -35
- package/lib/ruby/3.4.11/time.rb +0 -731
- package/lib/ruby/3.4.11/timeout.gemspec +0 -33
- package/lib/ruby/3.4.11/timeout.rb +0 -200
- package/lib/ruby/3.4.11/tmpdir.gemspec +0 -30
- package/lib/ruby/3.4.11/tmpdir.rb +0 -189
- package/lib/ruby/3.4.11/tsort.gemspec +0 -29
- package/lib/ruby/3.4.11/tsort.rb +0 -455
- package/lib/ruby/3.4.11/un.gemspec +0 -31
- package/lib/ruby/3.4.11/un.rb +0 -441
- package/lib/ruby/3.4.11/unicode_normalize/normalize.rb +0 -181
- package/lib/ruby/3.4.11/unicode_normalize/tables.rb +0 -9259
- package/lib/ruby/3.4.11/uri/common.rb +0 -880
- package/lib/ruby/3.4.11/uri/file.rb +0 -100
- package/lib/ruby/3.4.11/uri/ftp.rb +0 -267
- package/lib/ruby/3.4.11/uri/generic.rb +0 -1592
- package/lib/ruby/3.4.11/uri/http.rb +0 -125
- package/lib/ruby/3.4.11/uri/https.rb +0 -23
- package/lib/ruby/3.4.11/uri/ldap.rb +0 -261
- package/lib/ruby/3.4.11/uri/ldaps.rb +0 -22
- package/lib/ruby/3.4.11/uri/mailto.rb +0 -293
- package/lib/ruby/3.4.11/uri/rfc2396_parser.rb +0 -546
- package/lib/ruby/3.4.11/uri/rfc3986_parser.rb +0 -206
- package/lib/ruby/3.4.11/uri/uri.gemspec +0 -42
- package/lib/ruby/3.4.11/uri/version.rb +0 -6
- package/lib/ruby/3.4.11/uri/ws.rb +0 -83
- package/lib/ruby/3.4.11/uri/wss.rb +0 -23
- package/lib/ruby/3.4.11/uri.rb +0 -104
- package/lib/ruby/3.4.11/weakref.gemspec +0 -34
- package/lib/ruby/3.4.11/weakref.rb +0 -58
- package/lib/ruby/3.4.11/yaml/dbm.rb +0 -295
- package/lib/ruby/3.4.11/yaml/store.rb +0 -98
- package/lib/ruby/3.4.11/yaml/yaml.gemspec +0 -30
- package/lib/ruby/3.4.11/yaml.rb +0 -70
|
@@ -1,981 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
#
|
|
3
|
-
# The \HTTPHeader module provides access to \HTTP headers.
|
|
4
|
-
#
|
|
5
|
-
# The module is included in:
|
|
6
|
-
#
|
|
7
|
-
# - Net::HTTPGenericRequest (and therefore Net::HTTPRequest).
|
|
8
|
-
# - Net::HTTPResponse.
|
|
9
|
-
#
|
|
10
|
-
# The headers are a hash-like collection of key/value pairs called _fields_.
|
|
11
|
-
#
|
|
12
|
-
# == Request and Response Fields
|
|
13
|
-
#
|
|
14
|
-
# Headers may be included in:
|
|
15
|
-
#
|
|
16
|
-
# - A Net::HTTPRequest object:
|
|
17
|
-
# the object's headers will be sent with the request.
|
|
18
|
-
# Any fields may be defined in the request;
|
|
19
|
-
# see {Setters}[rdoc-ref:Net::HTTPHeader@Setters].
|
|
20
|
-
# - A Net::HTTPResponse object:
|
|
21
|
-
# the objects headers are usually those returned from the host.
|
|
22
|
-
# Fields may be retrieved from the object;
|
|
23
|
-
# see {Getters}[rdoc-ref:Net::HTTPHeader@Getters]
|
|
24
|
-
# and {Iterators}[rdoc-ref:Net::HTTPHeader@Iterators].
|
|
25
|
-
#
|
|
26
|
-
# Exactly which fields should be sent or expected depends on the host;
|
|
27
|
-
# see:
|
|
28
|
-
#
|
|
29
|
-
# - {Request fields}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Request_fields].
|
|
30
|
-
# - {Response fields}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Response_fields].
|
|
31
|
-
#
|
|
32
|
-
# == About the Examples
|
|
33
|
-
#
|
|
34
|
-
# :include: doc/net-http/examples.rdoc
|
|
35
|
-
#
|
|
36
|
-
# == Fields
|
|
37
|
-
#
|
|
38
|
-
# A header field is a key/value pair.
|
|
39
|
-
#
|
|
40
|
-
# === Field Keys
|
|
41
|
-
#
|
|
42
|
-
# A field key may be:
|
|
43
|
-
#
|
|
44
|
-
# - A string: Key <tt>'Accept'</tt> is treated as if it were
|
|
45
|
-
# <tt>'Accept'.downcase</tt>; i.e., <tt>'accept'</tt>.
|
|
46
|
-
# - A symbol: Key <tt>:Accept</tt> is treated as if it were
|
|
47
|
-
# <tt>:Accept.to_s.downcase</tt>; i.e., <tt>'accept'</tt>.
|
|
48
|
-
#
|
|
49
|
-
# Examples:
|
|
50
|
-
#
|
|
51
|
-
# req = Net::HTTP::Get.new(uri)
|
|
52
|
-
# req[:accept] # => "*/*"
|
|
53
|
-
# req['Accept'] # => "*/*"
|
|
54
|
-
# req['ACCEPT'] # => "*/*"
|
|
55
|
-
#
|
|
56
|
-
# req['accept'] = 'text/html'
|
|
57
|
-
# req[:accept] = 'text/html'
|
|
58
|
-
# req['ACCEPT'] = 'text/html'
|
|
59
|
-
#
|
|
60
|
-
# === Field Values
|
|
61
|
-
#
|
|
62
|
-
# A field value may be returned as an array of strings or as a string:
|
|
63
|
-
#
|
|
64
|
-
# - These methods return field values as arrays:
|
|
65
|
-
#
|
|
66
|
-
# - #get_fields: Returns the array value for the given key,
|
|
67
|
-
# or +nil+ if it does not exist.
|
|
68
|
-
# - #to_hash: Returns a hash of all header fields:
|
|
69
|
-
# each key is a field name; its value is the array value for the field.
|
|
70
|
-
#
|
|
71
|
-
# - These methods return field values as string;
|
|
72
|
-
# the string value for a field is equivalent to
|
|
73
|
-
# <tt>self[key.downcase.to_s].join(', '))</tt>:
|
|
74
|
-
#
|
|
75
|
-
# - #[]: Returns the string value for the given key,
|
|
76
|
-
# or +nil+ if it does not exist.
|
|
77
|
-
# - #fetch: Like #[], but accepts a default value
|
|
78
|
-
# to be returned if the key does not exist.
|
|
79
|
-
#
|
|
80
|
-
# The field value may be set:
|
|
81
|
-
#
|
|
82
|
-
# - #[]=: Sets the value for the given key;
|
|
83
|
-
# the given value may be a string, a symbol, an array, or a hash.
|
|
84
|
-
# - #add_field: Adds a given value to a value for the given key
|
|
85
|
-
# (not overwriting the existing value).
|
|
86
|
-
# - #delete: Deletes the field for the given key.
|
|
87
|
-
#
|
|
88
|
-
# Example field values:
|
|
89
|
-
#
|
|
90
|
-
# - \String:
|
|
91
|
-
#
|
|
92
|
-
# req['Accept'] = 'text/html' # => "text/html"
|
|
93
|
-
# req['Accept'] # => "text/html"
|
|
94
|
-
# req.get_fields('Accept') # => ["text/html"]
|
|
95
|
-
#
|
|
96
|
-
# - \Symbol:
|
|
97
|
-
#
|
|
98
|
-
# req['Accept'] = :text # => :text
|
|
99
|
-
# req['Accept'] # => "text"
|
|
100
|
-
# req.get_fields('Accept') # => ["text"]
|
|
101
|
-
#
|
|
102
|
-
# - Simple array:
|
|
103
|
-
#
|
|
104
|
-
# req[:foo] = %w[bar baz bat]
|
|
105
|
-
# req[:foo] # => "bar, baz, bat"
|
|
106
|
-
# req.get_fields(:foo) # => ["bar", "baz", "bat"]
|
|
107
|
-
#
|
|
108
|
-
# - Simple hash:
|
|
109
|
-
#
|
|
110
|
-
# req[:foo] = {bar: 0, baz: 1, bat: 2}
|
|
111
|
-
# req[:foo] # => "bar, 0, baz, 1, bat, 2"
|
|
112
|
-
# req.get_fields(:foo) # => ["bar", "0", "baz", "1", "bat", "2"]
|
|
113
|
-
#
|
|
114
|
-
# - Nested:
|
|
115
|
-
#
|
|
116
|
-
# req[:foo] = [%w[bar baz], {bat: 0, bam: 1}]
|
|
117
|
-
# req[:foo] # => "bar, baz, bat, 0, bam, 1"
|
|
118
|
-
# req.get_fields(:foo) # => ["bar", "baz", "bat", "0", "bam", "1"]
|
|
119
|
-
#
|
|
120
|
-
# req[:foo] = {bar: %w[baz bat], bam: {bah: 0, bad: 1}}
|
|
121
|
-
# req[:foo] # => "bar, baz, bat, bam, bah, 0, bad, 1"
|
|
122
|
-
# req.get_fields(:foo) # => ["bar", "baz", "bat", "bam", "bah", "0", "bad", "1"]
|
|
123
|
-
#
|
|
124
|
-
# == Convenience Methods
|
|
125
|
-
#
|
|
126
|
-
# Various convenience methods retrieve values, set values, query values,
|
|
127
|
-
# set form values, or iterate over fields.
|
|
128
|
-
#
|
|
129
|
-
# === Setters
|
|
130
|
-
#
|
|
131
|
-
# \Method #[]= can set any field, but does little to validate the new value;
|
|
132
|
-
# some of the other setter methods provide some validation:
|
|
133
|
-
#
|
|
134
|
-
# - #[]=: Sets the string or array value for the given key.
|
|
135
|
-
# - #add_field: Creates or adds to the array value for the given key.
|
|
136
|
-
# - #basic_auth: Sets the string authorization header for <tt>'Authorization'</tt>.
|
|
137
|
-
# - #content_length=: Sets the integer length for field <tt>'Content-Length</tt>.
|
|
138
|
-
# - #content_type=: Sets the string value for field <tt>'Content-Type'</tt>.
|
|
139
|
-
# - #proxy_basic_auth: Sets the string authorization header for <tt>'Proxy-Authorization'</tt>.
|
|
140
|
-
# - #set_range: Sets the value for field <tt>'Range'</tt>.
|
|
141
|
-
#
|
|
142
|
-
# === Form Setters
|
|
143
|
-
#
|
|
144
|
-
# - #set_form: Sets an HTML form data set.
|
|
145
|
-
# - #set_form_data: Sets header fields and a body from HTML form data.
|
|
146
|
-
#
|
|
147
|
-
# === Getters
|
|
148
|
-
#
|
|
149
|
-
# \Method #[] can retrieve the value of any field that exists,
|
|
150
|
-
# but always as a string;
|
|
151
|
-
# some of the other getter methods return something different
|
|
152
|
-
# from the simple string value:
|
|
153
|
-
#
|
|
154
|
-
# - #[]: Returns the string field value for the given key.
|
|
155
|
-
# - #content_length: Returns the integer value of field <tt>'Content-Length'</tt>.
|
|
156
|
-
# - #content_range: Returns the Range value of field <tt>'Content-Range'</tt>.
|
|
157
|
-
# - #content_type: Returns the string value of field <tt>'Content-Type'</tt>.
|
|
158
|
-
# - #fetch: Returns the string field value for the given key.
|
|
159
|
-
# - #get_fields: Returns the array field value for the given +key+.
|
|
160
|
-
# - #main_type: Returns first part of the string value of field <tt>'Content-Type'</tt>.
|
|
161
|
-
# - #sub_type: Returns second part of the string value of field <tt>'Content-Type'</tt>.
|
|
162
|
-
# - #range: Returns an array of Range objects of field <tt>'Range'</tt>, or +nil+.
|
|
163
|
-
# - #range_length: Returns the integer length of the range given in field <tt>'Content-Range'</tt>.
|
|
164
|
-
# - #type_params: Returns the string parameters for <tt>'Content-Type'</tt>.
|
|
165
|
-
#
|
|
166
|
-
# === Queries
|
|
167
|
-
#
|
|
168
|
-
# - #chunked?: Returns whether field <tt>'Transfer-Encoding'</tt> is set to <tt>'chunked'</tt>.
|
|
169
|
-
# - #connection_close?: Returns whether field <tt>'Connection'</tt> is set to <tt>'close'</tt>.
|
|
170
|
-
# - #connection_keep_alive?: Returns whether field <tt>'Connection'</tt> is set to <tt>'keep-alive'</tt>.
|
|
171
|
-
# - #key?: Returns whether a given key exists.
|
|
172
|
-
#
|
|
173
|
-
# === Iterators
|
|
174
|
-
#
|
|
175
|
-
# - #each_capitalized: Passes each field capitalized-name/value pair to the block.
|
|
176
|
-
# - #each_capitalized_name: Passes each capitalized field name to the block.
|
|
177
|
-
# - #each_header: Passes each field name/value pair to the block.
|
|
178
|
-
# - #each_name: Passes each field name to the block.
|
|
179
|
-
# - #each_value: Passes each string field value to the block.
|
|
180
|
-
#
|
|
181
|
-
module Net::HTTPHeader
|
|
182
|
-
MAX_KEY_LENGTH = 1024
|
|
183
|
-
MAX_FIELD_LENGTH = 65536
|
|
184
|
-
|
|
185
|
-
def initialize_http_header(initheader) #:nodoc:
|
|
186
|
-
@header = {}
|
|
187
|
-
return unless initheader
|
|
188
|
-
initheader.each do |key, value|
|
|
189
|
-
warn "net/http: duplicated HTTP header: #{key}", uplevel: 3 if key?(key) and $VERBOSE
|
|
190
|
-
if value.nil?
|
|
191
|
-
warn "net/http: nil HTTP header: #{key}", uplevel: 3 if $VERBOSE
|
|
192
|
-
else
|
|
193
|
-
value = value.strip # raise error for invalid byte sequences
|
|
194
|
-
if key.to_s.bytesize > MAX_KEY_LENGTH
|
|
195
|
-
raise ArgumentError, "too long (#{key.bytesize} bytes) header: #{key[0, 30].inspect}..."
|
|
196
|
-
end
|
|
197
|
-
if value.to_s.bytesize > MAX_FIELD_LENGTH
|
|
198
|
-
raise ArgumentError, "header #{key} has too long field value: #{value.bytesize}"
|
|
199
|
-
end
|
|
200
|
-
if value.count("\r\n") > 0
|
|
201
|
-
raise ArgumentError, "header #{key} has field value #{value.inspect}, this cannot include CR/LF"
|
|
202
|
-
end
|
|
203
|
-
@header[key.downcase.to_s] = [value]
|
|
204
|
-
end
|
|
205
|
-
end
|
|
206
|
-
end
|
|
207
|
-
|
|
208
|
-
def size #:nodoc: obsolete
|
|
209
|
-
@header.size
|
|
210
|
-
end
|
|
211
|
-
|
|
212
|
-
alias length size #:nodoc: obsolete
|
|
213
|
-
|
|
214
|
-
# Returns the string field value for the case-insensitive field +key+,
|
|
215
|
-
# or +nil+ if there is no such key;
|
|
216
|
-
# see {Fields}[rdoc-ref:Net::HTTPHeader@Fields]:
|
|
217
|
-
#
|
|
218
|
-
# res = Net::HTTP.get_response(hostname, '/todos/1')
|
|
219
|
-
# res['Connection'] # => "keep-alive"
|
|
220
|
-
# res['Nosuch'] # => nil
|
|
221
|
-
#
|
|
222
|
-
# Note that some field values may be retrieved via convenience methods;
|
|
223
|
-
# see {Getters}[rdoc-ref:Net::HTTPHeader@Getters].
|
|
224
|
-
def [](key)
|
|
225
|
-
a = @header[key.downcase.to_s] or return nil
|
|
226
|
-
a.join(', ')
|
|
227
|
-
end
|
|
228
|
-
|
|
229
|
-
# Sets the value for the case-insensitive +key+ to +val+,
|
|
230
|
-
# overwriting the previous value if the field exists;
|
|
231
|
-
# see {Fields}[rdoc-ref:Net::HTTPHeader@Fields]:
|
|
232
|
-
#
|
|
233
|
-
# req = Net::HTTP::Get.new(uri)
|
|
234
|
-
# req['Accept'] # => "*/*"
|
|
235
|
-
# req['Accept'] = 'text/html'
|
|
236
|
-
# req['Accept'] # => "text/html"
|
|
237
|
-
#
|
|
238
|
-
# Note that some field values may be set via convenience methods;
|
|
239
|
-
# see {Setters}[rdoc-ref:Net::HTTPHeader@Setters].
|
|
240
|
-
def []=(key, val)
|
|
241
|
-
unless val
|
|
242
|
-
@header.delete key.downcase.to_s
|
|
243
|
-
return val
|
|
244
|
-
end
|
|
245
|
-
set_field(key, val)
|
|
246
|
-
end
|
|
247
|
-
|
|
248
|
-
# Adds value +val+ to the value array for field +key+ if the field exists;
|
|
249
|
-
# creates the field with the given +key+ and +val+ if it does not exist.
|
|
250
|
-
# see {Fields}[rdoc-ref:Net::HTTPHeader@Fields]:
|
|
251
|
-
#
|
|
252
|
-
# req = Net::HTTP::Get.new(uri)
|
|
253
|
-
# req.add_field('Foo', 'bar')
|
|
254
|
-
# req['Foo'] # => "bar"
|
|
255
|
-
# req.add_field('Foo', 'baz')
|
|
256
|
-
# req['Foo'] # => "bar, baz"
|
|
257
|
-
# req.add_field('Foo', %w[baz bam])
|
|
258
|
-
# req['Foo'] # => "bar, baz, baz, bam"
|
|
259
|
-
# req.get_fields('Foo') # => ["bar", "baz", "baz", "bam"]
|
|
260
|
-
#
|
|
261
|
-
def add_field(key, val)
|
|
262
|
-
stringified_downcased_key = key.downcase.to_s
|
|
263
|
-
if @header.key?(stringified_downcased_key)
|
|
264
|
-
append_field_value(@header[stringified_downcased_key], val)
|
|
265
|
-
else
|
|
266
|
-
set_field(key, val)
|
|
267
|
-
end
|
|
268
|
-
end
|
|
269
|
-
|
|
270
|
-
private def set_field(key, val)
|
|
271
|
-
case val
|
|
272
|
-
when Enumerable
|
|
273
|
-
ary = []
|
|
274
|
-
append_field_value(ary, val)
|
|
275
|
-
@header[key.downcase.to_s] = ary
|
|
276
|
-
else
|
|
277
|
-
val = val.to_s # for compatibility use to_s instead of to_str
|
|
278
|
-
if val.b.count("\r\n") > 0
|
|
279
|
-
raise ArgumentError, 'header field value cannot include CR/LF'
|
|
280
|
-
end
|
|
281
|
-
@header[key.downcase.to_s] = [val]
|
|
282
|
-
end
|
|
283
|
-
end
|
|
284
|
-
|
|
285
|
-
private def append_field_value(ary, val)
|
|
286
|
-
case val
|
|
287
|
-
when Enumerable
|
|
288
|
-
val.each{|x| append_field_value(ary, x)}
|
|
289
|
-
else
|
|
290
|
-
val = val.to_s
|
|
291
|
-
if /[\r\n]/n.match?(val.b)
|
|
292
|
-
raise ArgumentError, 'header field value cannot include CR/LF'
|
|
293
|
-
end
|
|
294
|
-
ary.push val
|
|
295
|
-
end
|
|
296
|
-
end
|
|
297
|
-
|
|
298
|
-
# Returns the array field value for the given +key+,
|
|
299
|
-
# or +nil+ if there is no such field;
|
|
300
|
-
# see {Fields}[rdoc-ref:Net::HTTPHeader@Fields]:
|
|
301
|
-
#
|
|
302
|
-
# res = Net::HTTP.get_response(hostname, '/todos/1')
|
|
303
|
-
# res.get_fields('Connection') # => ["keep-alive"]
|
|
304
|
-
# res.get_fields('Nosuch') # => nil
|
|
305
|
-
#
|
|
306
|
-
def get_fields(key)
|
|
307
|
-
stringified_downcased_key = key.downcase.to_s
|
|
308
|
-
return nil unless @header[stringified_downcased_key]
|
|
309
|
-
@header[stringified_downcased_key].dup
|
|
310
|
-
end
|
|
311
|
-
|
|
312
|
-
# call-seq:
|
|
313
|
-
# fetch(key, default_val = nil) {|key| ... } -> object
|
|
314
|
-
# fetch(key, default_val = nil) -> value or default_val
|
|
315
|
-
#
|
|
316
|
-
# With a block, returns the string value for +key+ if it exists;
|
|
317
|
-
# otherwise returns the value of the block;
|
|
318
|
-
# ignores the +default_val+;
|
|
319
|
-
# see {Fields}[rdoc-ref:Net::HTTPHeader@Fields]:
|
|
320
|
-
#
|
|
321
|
-
# res = Net::HTTP.get_response(hostname, '/todos/1')
|
|
322
|
-
#
|
|
323
|
-
# # Field exists; block not called.
|
|
324
|
-
# res.fetch('Connection') do |value|
|
|
325
|
-
# fail 'Cannot happen'
|
|
326
|
-
# end # => "keep-alive"
|
|
327
|
-
#
|
|
328
|
-
# # Field does not exist; block called.
|
|
329
|
-
# res.fetch('Nosuch') do |value|
|
|
330
|
-
# value.downcase
|
|
331
|
-
# end # => "nosuch"
|
|
332
|
-
#
|
|
333
|
-
# With no block, returns the string value for +key+ if it exists;
|
|
334
|
-
# otherwise, returns +default_val+ if it was given;
|
|
335
|
-
# otherwise raises an exception:
|
|
336
|
-
#
|
|
337
|
-
# res.fetch('Connection', 'Foo') # => "keep-alive"
|
|
338
|
-
# res.fetch('Nosuch', 'Foo') # => "Foo"
|
|
339
|
-
# res.fetch('Nosuch') # Raises KeyError.
|
|
340
|
-
#
|
|
341
|
-
def fetch(key, *args, &block) #:yield: +key+
|
|
342
|
-
a = @header.fetch(key.downcase.to_s, *args, &block)
|
|
343
|
-
a.kind_of?(Array) ? a.join(', ') : a
|
|
344
|
-
end
|
|
345
|
-
|
|
346
|
-
# Calls the block with each key/value pair:
|
|
347
|
-
#
|
|
348
|
-
# res = Net::HTTP.get_response(hostname, '/todos/1')
|
|
349
|
-
# res.each_header do |key, value|
|
|
350
|
-
# p [key, value] if key.start_with?('c')
|
|
351
|
-
# end
|
|
352
|
-
#
|
|
353
|
-
# Output:
|
|
354
|
-
#
|
|
355
|
-
# ["content-type", "application/json; charset=utf-8"]
|
|
356
|
-
# ["connection", "keep-alive"]
|
|
357
|
-
# ["cache-control", "max-age=43200"]
|
|
358
|
-
# ["cf-cache-status", "HIT"]
|
|
359
|
-
# ["cf-ray", "771d17e9bc542cf5-ORD"]
|
|
360
|
-
#
|
|
361
|
-
# Returns an enumerator if no block is given.
|
|
362
|
-
#
|
|
363
|
-
# Net::HTTPHeader#each is an alias for Net::HTTPHeader#each_header.
|
|
364
|
-
def each_header #:yield: +key+, +value+
|
|
365
|
-
block_given? or return enum_for(__method__) { @header.size }
|
|
366
|
-
@header.each do |k,va|
|
|
367
|
-
yield k, va.join(', ')
|
|
368
|
-
end
|
|
369
|
-
end
|
|
370
|
-
|
|
371
|
-
alias each each_header
|
|
372
|
-
|
|
373
|
-
# Calls the block with each field key:
|
|
374
|
-
#
|
|
375
|
-
# res = Net::HTTP.get_response(hostname, '/todos/1')
|
|
376
|
-
# res.each_key do |key|
|
|
377
|
-
# p key if key.start_with?('c')
|
|
378
|
-
# end
|
|
379
|
-
#
|
|
380
|
-
# Output:
|
|
381
|
-
#
|
|
382
|
-
# "content-type"
|
|
383
|
-
# "connection"
|
|
384
|
-
# "cache-control"
|
|
385
|
-
# "cf-cache-status"
|
|
386
|
-
# "cf-ray"
|
|
387
|
-
#
|
|
388
|
-
# Returns an enumerator if no block is given.
|
|
389
|
-
#
|
|
390
|
-
# Net::HTTPHeader#each_name is an alias for Net::HTTPHeader#each_key.
|
|
391
|
-
def each_name(&block) #:yield: +key+
|
|
392
|
-
block_given? or return enum_for(__method__) { @header.size }
|
|
393
|
-
@header.each_key(&block)
|
|
394
|
-
end
|
|
395
|
-
|
|
396
|
-
alias each_key each_name
|
|
397
|
-
|
|
398
|
-
# Calls the block with each capitalized field name:
|
|
399
|
-
#
|
|
400
|
-
# res = Net::HTTP.get_response(hostname, '/todos/1')
|
|
401
|
-
# res.each_capitalized_name do |key|
|
|
402
|
-
# p key if key.start_with?('C')
|
|
403
|
-
# end
|
|
404
|
-
#
|
|
405
|
-
# Output:
|
|
406
|
-
#
|
|
407
|
-
# "Content-Type"
|
|
408
|
-
# "Connection"
|
|
409
|
-
# "Cache-Control"
|
|
410
|
-
# "Cf-Cache-Status"
|
|
411
|
-
# "Cf-Ray"
|
|
412
|
-
#
|
|
413
|
-
# The capitalization is system-dependent;
|
|
414
|
-
# see {Case Mapping}[rdoc-ref:case_mapping.rdoc].
|
|
415
|
-
#
|
|
416
|
-
# Returns an enumerator if no block is given.
|
|
417
|
-
def each_capitalized_name #:yield: +key+
|
|
418
|
-
block_given? or return enum_for(__method__) { @header.size }
|
|
419
|
-
@header.each_key do |k|
|
|
420
|
-
yield capitalize(k)
|
|
421
|
-
end
|
|
422
|
-
end
|
|
423
|
-
|
|
424
|
-
# Calls the block with each string field value:
|
|
425
|
-
#
|
|
426
|
-
# res = Net::HTTP.get_response(hostname, '/todos/1')
|
|
427
|
-
# res.each_value do |value|
|
|
428
|
-
# p value if value.start_with?('c')
|
|
429
|
-
# end
|
|
430
|
-
#
|
|
431
|
-
# Output:
|
|
432
|
-
#
|
|
433
|
-
# "chunked"
|
|
434
|
-
# "cf-q-config;dur=6.0000002122251e-06"
|
|
435
|
-
# "cloudflare"
|
|
436
|
-
#
|
|
437
|
-
# Returns an enumerator if no block is given.
|
|
438
|
-
def each_value #:yield: +value+
|
|
439
|
-
block_given? or return enum_for(__method__) { @header.size }
|
|
440
|
-
@header.each_value do |va|
|
|
441
|
-
yield va.join(', ')
|
|
442
|
-
end
|
|
443
|
-
end
|
|
444
|
-
|
|
445
|
-
# Removes the header for the given case-insensitive +key+
|
|
446
|
-
# (see {Fields}[rdoc-ref:Net::HTTPHeader@Fields]);
|
|
447
|
-
# returns the deleted value, or +nil+ if no such field exists:
|
|
448
|
-
#
|
|
449
|
-
# req = Net::HTTP::Get.new(uri)
|
|
450
|
-
# req.delete('Accept') # => ["*/*"]
|
|
451
|
-
# req.delete('Nosuch') # => nil
|
|
452
|
-
#
|
|
453
|
-
def delete(key)
|
|
454
|
-
@header.delete(key.downcase.to_s)
|
|
455
|
-
end
|
|
456
|
-
|
|
457
|
-
# Returns +true+ if the field for the case-insensitive +key+ exists, +false+ otherwise:
|
|
458
|
-
#
|
|
459
|
-
# req = Net::HTTP::Get.new(uri)
|
|
460
|
-
# req.key?('Accept') # => true
|
|
461
|
-
# req.key?('Nosuch') # => false
|
|
462
|
-
#
|
|
463
|
-
def key?(key)
|
|
464
|
-
@header.key?(key.downcase.to_s)
|
|
465
|
-
end
|
|
466
|
-
|
|
467
|
-
# Returns a hash of the key/value pairs:
|
|
468
|
-
#
|
|
469
|
-
# req = Net::HTTP::Get.new(uri)
|
|
470
|
-
# req.to_hash
|
|
471
|
-
# # =>
|
|
472
|
-
# {"accept-encoding"=>["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"],
|
|
473
|
-
# "accept"=>["*/*"],
|
|
474
|
-
# "user-agent"=>["Ruby"],
|
|
475
|
-
# "host"=>["jsonplaceholder.typicode.com"]}
|
|
476
|
-
#
|
|
477
|
-
def to_hash
|
|
478
|
-
@header.dup
|
|
479
|
-
end
|
|
480
|
-
|
|
481
|
-
# Like #each_header, but the keys are returned in capitalized form.
|
|
482
|
-
#
|
|
483
|
-
# Net::HTTPHeader#canonical_each is an alias for Net::HTTPHeader#each_capitalized.
|
|
484
|
-
def each_capitalized
|
|
485
|
-
block_given? or return enum_for(__method__) { @header.size }
|
|
486
|
-
@header.each do |k,v|
|
|
487
|
-
yield capitalize(k), v.join(', ')
|
|
488
|
-
end
|
|
489
|
-
end
|
|
490
|
-
|
|
491
|
-
alias canonical_each each_capitalized
|
|
492
|
-
|
|
493
|
-
def capitalize(name)
|
|
494
|
-
name.to_s.split('-'.freeze).map {|s| s.capitalize }.join('-'.freeze)
|
|
495
|
-
end
|
|
496
|
-
private :capitalize
|
|
497
|
-
|
|
498
|
-
# Returns an array of Range objects that represent
|
|
499
|
-
# the value of field <tt>'Range'</tt>,
|
|
500
|
-
# or +nil+ if there is no such field;
|
|
501
|
-
# see {Range request header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#range-request-header]:
|
|
502
|
-
#
|
|
503
|
-
# req = Net::HTTP::Get.new(uri)
|
|
504
|
-
# req['Range'] = 'bytes=0-99,200-299,400-499'
|
|
505
|
-
# req.range # => [0..99, 200..299, 400..499]
|
|
506
|
-
# req.delete('Range')
|
|
507
|
-
# req.range # # => nil
|
|
508
|
-
#
|
|
509
|
-
def range
|
|
510
|
-
return nil unless @header['range']
|
|
511
|
-
|
|
512
|
-
value = self['Range']
|
|
513
|
-
# byte-range-set = *( "," OWS ) ( byte-range-spec / suffix-byte-range-spec )
|
|
514
|
-
# *( OWS "," [ OWS ( byte-range-spec / suffix-byte-range-spec ) ] )
|
|
515
|
-
# corrected collected ABNF
|
|
516
|
-
# http://tools.ietf.org/html/draft-ietf-httpbis-p5-range-19#section-5.4.1
|
|
517
|
-
# http://tools.ietf.org/html/draft-ietf-httpbis-p5-range-19#appendix-C
|
|
518
|
-
# http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-19#section-3.2.5
|
|
519
|
-
unless /\Abytes=((?:,[ \t]*)*(?:\d+-\d*|-\d+)(?:[ \t]*,(?:[ \t]*\d+-\d*|-\d+)?)*)\z/ =~ value
|
|
520
|
-
raise Net::HTTPHeaderSyntaxError, "invalid syntax for byte-ranges-specifier: '#{value}'"
|
|
521
|
-
end
|
|
522
|
-
|
|
523
|
-
byte_range_set = $1
|
|
524
|
-
result = byte_range_set.split(/,/).map {|spec|
|
|
525
|
-
m = /(\d+)?\s*-\s*(\d+)?/i.match(spec) or
|
|
526
|
-
raise Net::HTTPHeaderSyntaxError, "invalid byte-range-spec: '#{spec}'"
|
|
527
|
-
d1 = m[1].to_i
|
|
528
|
-
d2 = m[2].to_i
|
|
529
|
-
if m[1] and m[2]
|
|
530
|
-
if d1 > d2
|
|
531
|
-
raise Net::HTTPHeaderSyntaxError, "last-byte-pos MUST greater than or equal to first-byte-pos but '#{spec}'"
|
|
532
|
-
end
|
|
533
|
-
d1..d2
|
|
534
|
-
elsif m[1]
|
|
535
|
-
d1..-1
|
|
536
|
-
elsif m[2]
|
|
537
|
-
-d2..-1
|
|
538
|
-
else
|
|
539
|
-
raise Net::HTTPHeaderSyntaxError, 'range is not specified'
|
|
540
|
-
end
|
|
541
|
-
}
|
|
542
|
-
# if result.empty?
|
|
543
|
-
# byte-range-set must include at least one byte-range-spec or suffix-byte-range-spec
|
|
544
|
-
# but above regexp already denies it.
|
|
545
|
-
if result.size == 1 && result[0].begin == 0 && result[0].end == -1
|
|
546
|
-
raise Net::HTTPHeaderSyntaxError, 'only one suffix-byte-range-spec with zero suffix-length'
|
|
547
|
-
end
|
|
548
|
-
result
|
|
549
|
-
end
|
|
550
|
-
|
|
551
|
-
# call-seq:
|
|
552
|
-
# set_range(length) -> length
|
|
553
|
-
# set_range(offset, length) -> range
|
|
554
|
-
# set_range(begin..length) -> range
|
|
555
|
-
#
|
|
556
|
-
# Sets the value for field <tt>'Range'</tt>;
|
|
557
|
-
# see {Range request header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#range-request-header]:
|
|
558
|
-
#
|
|
559
|
-
# With argument +length+:
|
|
560
|
-
#
|
|
561
|
-
# req = Net::HTTP::Get.new(uri)
|
|
562
|
-
# req.set_range(100) # => 100
|
|
563
|
-
# req['Range'] # => "bytes=0-99"
|
|
564
|
-
#
|
|
565
|
-
# With arguments +offset+ and +length+:
|
|
566
|
-
#
|
|
567
|
-
# req.set_range(100, 100) # => 100...200
|
|
568
|
-
# req['Range'] # => "bytes=100-199"
|
|
569
|
-
#
|
|
570
|
-
# With argument +range+:
|
|
571
|
-
#
|
|
572
|
-
# req.set_range(100..199) # => 100..199
|
|
573
|
-
# req['Range'] # => "bytes=100-199"
|
|
574
|
-
#
|
|
575
|
-
# Net::HTTPHeader#range= is an alias for Net::HTTPHeader#set_range.
|
|
576
|
-
def set_range(r, e = nil)
|
|
577
|
-
unless r
|
|
578
|
-
@header.delete 'range'
|
|
579
|
-
return r
|
|
580
|
-
end
|
|
581
|
-
r = (r...r+e) if e
|
|
582
|
-
case r
|
|
583
|
-
when Numeric
|
|
584
|
-
n = r.to_i
|
|
585
|
-
rangestr = (n > 0 ? "0-#{n-1}" : "-#{-n}")
|
|
586
|
-
when Range
|
|
587
|
-
first = r.first
|
|
588
|
-
last = r.end
|
|
589
|
-
last -= 1 if r.exclude_end?
|
|
590
|
-
if last == -1
|
|
591
|
-
rangestr = (first > 0 ? "#{first}-" : "-#{-first}")
|
|
592
|
-
else
|
|
593
|
-
raise Net::HTTPHeaderSyntaxError, 'range.first is negative' if first < 0
|
|
594
|
-
raise Net::HTTPHeaderSyntaxError, 'range.last is negative' if last < 0
|
|
595
|
-
raise Net::HTTPHeaderSyntaxError, 'must be .first < .last' if first > last
|
|
596
|
-
rangestr = "#{first}-#{last}"
|
|
597
|
-
end
|
|
598
|
-
else
|
|
599
|
-
raise TypeError, 'Range/Integer is required'
|
|
600
|
-
end
|
|
601
|
-
@header['range'] = ["bytes=#{rangestr}"]
|
|
602
|
-
r
|
|
603
|
-
end
|
|
604
|
-
|
|
605
|
-
alias range= set_range
|
|
606
|
-
|
|
607
|
-
# Returns the value of field <tt>'Content-Length'</tt> as an integer,
|
|
608
|
-
# or +nil+ if there is no such field;
|
|
609
|
-
# see {Content-Length request header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-length-request-header]:
|
|
610
|
-
#
|
|
611
|
-
# res = Net::HTTP.get_response(hostname, '/nosuch/1')
|
|
612
|
-
# res.content_length # => 2
|
|
613
|
-
# res = Net::HTTP.get_response(hostname, '/todos/1')
|
|
614
|
-
# res.content_length # => nil
|
|
615
|
-
#
|
|
616
|
-
def content_length
|
|
617
|
-
return nil unless key?('Content-Length')
|
|
618
|
-
len = self['Content-Length'].slice(/\d+/) or
|
|
619
|
-
raise Net::HTTPHeaderSyntaxError, 'wrong Content-Length format'
|
|
620
|
-
len.to_i
|
|
621
|
-
end
|
|
622
|
-
|
|
623
|
-
# Sets the value of field <tt>'Content-Length'</tt> to the given numeric;
|
|
624
|
-
# see {Content-Length response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-length-response-header]:
|
|
625
|
-
#
|
|
626
|
-
# _uri = uri.dup
|
|
627
|
-
# hostname = _uri.hostname # => "jsonplaceholder.typicode.com"
|
|
628
|
-
# _uri.path = '/posts' # => "/posts"
|
|
629
|
-
# req = Net::HTTP::Post.new(_uri) # => #<Net::HTTP::Post POST>
|
|
630
|
-
# req.body = '{"title": "foo","body": "bar","userId": 1}'
|
|
631
|
-
# req.content_length = req.body.size # => 42
|
|
632
|
-
# req.content_type = 'application/json'
|
|
633
|
-
# res = Net::HTTP.start(hostname) do |http|
|
|
634
|
-
# http.request(req)
|
|
635
|
-
# end # => #<Net::HTTPCreated 201 Created readbody=true>
|
|
636
|
-
#
|
|
637
|
-
def content_length=(len)
|
|
638
|
-
unless len
|
|
639
|
-
@header.delete 'content-length'
|
|
640
|
-
return nil
|
|
641
|
-
end
|
|
642
|
-
@header['content-length'] = [len.to_i.to_s]
|
|
643
|
-
end
|
|
644
|
-
|
|
645
|
-
# Returns +true+ if field <tt>'Transfer-Encoding'</tt>
|
|
646
|
-
# exists and has value <tt>'chunked'</tt>,
|
|
647
|
-
# +false+ otherwise;
|
|
648
|
-
# see {Transfer-Encoding response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#transfer-encoding-response-header]:
|
|
649
|
-
#
|
|
650
|
-
# res = Net::HTTP.get_response(hostname, '/todos/1')
|
|
651
|
-
# res['Transfer-Encoding'] # => "chunked"
|
|
652
|
-
# res.chunked? # => true
|
|
653
|
-
#
|
|
654
|
-
def chunked?
|
|
655
|
-
return false unless @header['transfer-encoding']
|
|
656
|
-
field = self['Transfer-Encoding']
|
|
657
|
-
(/(?:\A|[^\-\w])chunked(?![\-\w])/i =~ field) ? true : false
|
|
658
|
-
end
|
|
659
|
-
|
|
660
|
-
# Returns a Range object representing the value of field
|
|
661
|
-
# <tt>'Content-Range'</tt>, or +nil+ if no such field exists;
|
|
662
|
-
# see {Content-Range response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-range-response-header]:
|
|
663
|
-
#
|
|
664
|
-
# res = Net::HTTP.get_response(hostname, '/todos/1')
|
|
665
|
-
# res['Content-Range'] # => nil
|
|
666
|
-
# res['Content-Range'] = 'bytes 0-499/1000'
|
|
667
|
-
# res['Content-Range'] # => "bytes 0-499/1000"
|
|
668
|
-
# res.content_range # => 0..499
|
|
669
|
-
#
|
|
670
|
-
def content_range
|
|
671
|
-
return nil unless @header['content-range']
|
|
672
|
-
m = %r<\A\s*(\w+)\s+(\d+)-(\d+)/(\d+|\*)>.match(self['Content-Range']) or
|
|
673
|
-
raise Net::HTTPHeaderSyntaxError, 'wrong Content-Range format'
|
|
674
|
-
return unless m[1] == 'bytes'
|
|
675
|
-
m[2].to_i .. m[3].to_i
|
|
676
|
-
end
|
|
677
|
-
|
|
678
|
-
# Returns the integer representing length of the value of field
|
|
679
|
-
# <tt>'Content-Range'</tt>, or +nil+ if no such field exists;
|
|
680
|
-
# see {Content-Range response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-range-response-header]:
|
|
681
|
-
#
|
|
682
|
-
# res = Net::HTTP.get_response(hostname, '/todos/1')
|
|
683
|
-
# res['Content-Range'] # => nil
|
|
684
|
-
# res['Content-Range'] = 'bytes 0-499/1000'
|
|
685
|
-
# res.range_length # => 500
|
|
686
|
-
#
|
|
687
|
-
def range_length
|
|
688
|
-
r = content_range() or return nil
|
|
689
|
-
r.end - r.begin + 1
|
|
690
|
-
end
|
|
691
|
-
|
|
692
|
-
# Returns the {media type}[https://en.wikipedia.org/wiki/Media_type]
|
|
693
|
-
# from the value of field <tt>'Content-Type'</tt>,
|
|
694
|
-
# or +nil+ if no such field exists;
|
|
695
|
-
# see {Content-Type response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-type-response-header]:
|
|
696
|
-
#
|
|
697
|
-
# res = Net::HTTP.get_response(hostname, '/todos/1')
|
|
698
|
-
# res['content-type'] # => "application/json; charset=utf-8"
|
|
699
|
-
# res.content_type # => "application/json"
|
|
700
|
-
#
|
|
701
|
-
def content_type
|
|
702
|
-
main = main_type()
|
|
703
|
-
return nil unless main
|
|
704
|
-
|
|
705
|
-
sub = sub_type()
|
|
706
|
-
if sub
|
|
707
|
-
"#{main}/#{sub}"
|
|
708
|
-
else
|
|
709
|
-
main
|
|
710
|
-
end
|
|
711
|
-
end
|
|
712
|
-
|
|
713
|
-
# Returns the leading ('type') part of the
|
|
714
|
-
# {media type}[https://en.wikipedia.org/wiki/Media_type]
|
|
715
|
-
# from the value of field <tt>'Content-Type'</tt>,
|
|
716
|
-
# or +nil+ if no such field exists;
|
|
717
|
-
# see {Content-Type response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-type-response-header]:
|
|
718
|
-
#
|
|
719
|
-
# res = Net::HTTP.get_response(hostname, '/todos/1')
|
|
720
|
-
# res['content-type'] # => "application/json; charset=utf-8"
|
|
721
|
-
# res.main_type # => "application"
|
|
722
|
-
#
|
|
723
|
-
def main_type
|
|
724
|
-
return nil unless @header['content-type']
|
|
725
|
-
self['Content-Type'].split(';').first.to_s.split('/')[0].to_s.strip
|
|
726
|
-
end
|
|
727
|
-
|
|
728
|
-
# Returns the trailing ('subtype') part of the
|
|
729
|
-
# {media type}[https://en.wikipedia.org/wiki/Media_type]
|
|
730
|
-
# from the value of field <tt>'Content-Type'</tt>,
|
|
731
|
-
# or +nil+ if no such field exists;
|
|
732
|
-
# see {Content-Type response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-type-response-header]:
|
|
733
|
-
#
|
|
734
|
-
# res = Net::HTTP.get_response(hostname, '/todos/1')
|
|
735
|
-
# res['content-type'] # => "application/json; charset=utf-8"
|
|
736
|
-
# res.sub_type # => "json"
|
|
737
|
-
#
|
|
738
|
-
def sub_type
|
|
739
|
-
return nil unless @header['content-type']
|
|
740
|
-
_, sub = *self['Content-Type'].split(';').first.to_s.split('/')
|
|
741
|
-
return nil unless sub
|
|
742
|
-
sub.strip
|
|
743
|
-
end
|
|
744
|
-
|
|
745
|
-
# Returns the trailing ('parameters') part of the value of field <tt>'Content-Type'</tt>,
|
|
746
|
-
# or +nil+ if no such field exists;
|
|
747
|
-
# see {Content-Type response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-type-response-header]:
|
|
748
|
-
#
|
|
749
|
-
# res = Net::HTTP.get_response(hostname, '/todos/1')
|
|
750
|
-
# res['content-type'] # => "application/json; charset=utf-8"
|
|
751
|
-
# res.type_params # => {"charset"=>"utf-8"}
|
|
752
|
-
#
|
|
753
|
-
def type_params
|
|
754
|
-
result = {}
|
|
755
|
-
list = self['Content-Type'].to_s.split(';')
|
|
756
|
-
list.shift
|
|
757
|
-
list.each do |param|
|
|
758
|
-
k, v = *param.split('=', 2)
|
|
759
|
-
result[k.strip] = v.strip
|
|
760
|
-
end
|
|
761
|
-
result
|
|
762
|
-
end
|
|
763
|
-
|
|
764
|
-
# Sets the value of field <tt>'Content-Type'</tt>;
|
|
765
|
-
# returns the new value;
|
|
766
|
-
# see {Content-Type request header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-type-request-header]:
|
|
767
|
-
#
|
|
768
|
-
# req = Net::HTTP::Get.new(uri)
|
|
769
|
-
# req.set_content_type('application/json') # => ["application/json"]
|
|
770
|
-
#
|
|
771
|
-
# Net::HTTPHeader#content_type= is an alias for Net::HTTPHeader#set_content_type.
|
|
772
|
-
def set_content_type(type, params = {})
|
|
773
|
-
@header['content-type'] = [type + params.map{|k,v|"; #{k}=#{v}"}.join('')]
|
|
774
|
-
end
|
|
775
|
-
|
|
776
|
-
alias content_type= set_content_type
|
|
777
|
-
|
|
778
|
-
# Sets the request body to a URL-encoded string derived from argument +params+,
|
|
779
|
-
# and sets request header field <tt>'Content-Type'</tt>
|
|
780
|
-
# to <tt>'application/x-www-form-urlencoded'</tt>.
|
|
781
|
-
#
|
|
782
|
-
# The resulting request is suitable for HTTP request +POST+ or +PUT+.
|
|
783
|
-
#
|
|
784
|
-
# Argument +params+ must be suitable for use as argument +enum+ to
|
|
785
|
-
# {URI.encode_www_form}[rdoc-ref:URI.encode_www_form].
|
|
786
|
-
#
|
|
787
|
-
# With only argument +params+ given,
|
|
788
|
-
# sets the body to a URL-encoded string with the default separator <tt>'&'</tt>:
|
|
789
|
-
#
|
|
790
|
-
# req = Net::HTTP::Post.new('example.com')
|
|
791
|
-
#
|
|
792
|
-
# req.set_form_data(q: 'ruby', lang: 'en')
|
|
793
|
-
# req.body # => "q=ruby&lang=en"
|
|
794
|
-
# req['Content-Type'] # => "application/x-www-form-urlencoded"
|
|
795
|
-
#
|
|
796
|
-
# req.set_form_data([['q', 'ruby'], ['lang', 'en']])
|
|
797
|
-
# req.body # => "q=ruby&lang=en"
|
|
798
|
-
#
|
|
799
|
-
# req.set_form_data(q: ['ruby', 'perl'], lang: 'en')
|
|
800
|
-
# req.body # => "q=ruby&q=perl&lang=en"
|
|
801
|
-
#
|
|
802
|
-
# req.set_form_data([['q', 'ruby'], ['q', 'perl'], ['lang', 'en']])
|
|
803
|
-
# req.body # => "q=ruby&q=perl&lang=en"
|
|
804
|
-
#
|
|
805
|
-
# With string argument +sep+ also given,
|
|
806
|
-
# uses that string as the separator:
|
|
807
|
-
#
|
|
808
|
-
# req.set_form_data({q: 'ruby', lang: 'en'}, '|')
|
|
809
|
-
# req.body # => "q=ruby|lang=en"
|
|
810
|
-
#
|
|
811
|
-
# Net::HTTPHeader#form_data= is an alias for Net::HTTPHeader#set_form_data.
|
|
812
|
-
def set_form_data(params, sep = '&')
|
|
813
|
-
query = URI.encode_www_form(params)
|
|
814
|
-
query.gsub!(/&/, sep) if sep != '&'
|
|
815
|
-
self.body = query
|
|
816
|
-
self.content_type = 'application/x-www-form-urlencoded'
|
|
817
|
-
end
|
|
818
|
-
|
|
819
|
-
alias form_data= set_form_data
|
|
820
|
-
|
|
821
|
-
# Stores form data to be used in a +POST+ or +PUT+ request.
|
|
822
|
-
#
|
|
823
|
-
# The form data given in +params+ consists of zero or more fields;
|
|
824
|
-
# each field is:
|
|
825
|
-
#
|
|
826
|
-
# - A scalar value.
|
|
827
|
-
# - A name/value pair.
|
|
828
|
-
# - An IO stream opened for reading.
|
|
829
|
-
#
|
|
830
|
-
# Argument +params+ should be an
|
|
831
|
-
# {Enumerable}[rdoc-ref:Enumerable@Enumerable+in+Ruby+Classes]
|
|
832
|
-
# (method <tt>params.map</tt> will be called),
|
|
833
|
-
# and is often an array or hash.
|
|
834
|
-
#
|
|
835
|
-
# First, we set up a request:
|
|
836
|
-
#
|
|
837
|
-
# _uri = uri.dup
|
|
838
|
-
# _uri.path ='/posts'
|
|
839
|
-
# req = Net::HTTP::Post.new(_uri)
|
|
840
|
-
#
|
|
841
|
-
# <b>Argument +params+ As an Array</b>
|
|
842
|
-
#
|
|
843
|
-
# When +params+ is an array,
|
|
844
|
-
# each of its elements is a subarray that defines a field;
|
|
845
|
-
# the subarray may contain:
|
|
846
|
-
#
|
|
847
|
-
# - One string:
|
|
848
|
-
#
|
|
849
|
-
# req.set_form([['foo'], ['bar'], ['baz']])
|
|
850
|
-
#
|
|
851
|
-
# - Two strings:
|
|
852
|
-
#
|
|
853
|
-
# req.set_form([%w[foo 0], %w[bar 1], %w[baz 2]])
|
|
854
|
-
#
|
|
855
|
-
# - When argument +enctype+ (see below) is given as
|
|
856
|
-
# <tt>'multipart/form-data'</tt>:
|
|
857
|
-
#
|
|
858
|
-
# - A string name and an IO stream opened for reading:
|
|
859
|
-
#
|
|
860
|
-
# require 'stringio'
|
|
861
|
-
# req.set_form([['file', StringIO.new('Ruby is cool.')]])
|
|
862
|
-
#
|
|
863
|
-
# - A string name, an IO stream opened for reading,
|
|
864
|
-
# and an options hash, which may contain these entries:
|
|
865
|
-
#
|
|
866
|
-
# - +:filename+: The name of the file to use.
|
|
867
|
-
# - +:content_type+: The content type of the uploaded file.
|
|
868
|
-
#
|
|
869
|
-
# Example:
|
|
870
|
-
#
|
|
871
|
-
# req.set_form([['file', file, {filename: "other-filename.foo"}]]
|
|
872
|
-
#
|
|
873
|
-
# The various forms may be mixed:
|
|
874
|
-
#
|
|
875
|
-
# req.set_form(['foo', %w[bar 1], ['file', file]])
|
|
876
|
-
#
|
|
877
|
-
# <b>Argument +params+ As a Hash</b>
|
|
878
|
-
#
|
|
879
|
-
# When +params+ is a hash,
|
|
880
|
-
# each of its entries is a name/value pair that defines a field:
|
|
881
|
-
#
|
|
882
|
-
# - The name is a string.
|
|
883
|
-
# - The value may be:
|
|
884
|
-
#
|
|
885
|
-
# - +nil+.
|
|
886
|
-
# - Another string.
|
|
887
|
-
# - An IO stream opened for reading
|
|
888
|
-
# (only when argument +enctype+ -- see below -- is given as
|
|
889
|
-
# <tt>'multipart/form-data'</tt>).
|
|
890
|
-
#
|
|
891
|
-
# Examples:
|
|
892
|
-
#
|
|
893
|
-
# # Nil-valued fields.
|
|
894
|
-
# req.set_form({'foo' => nil, 'bar' => nil, 'baz' => nil})
|
|
895
|
-
#
|
|
896
|
-
# # String-valued fields.
|
|
897
|
-
# req.set_form({'foo' => 0, 'bar' => 1, 'baz' => 2})
|
|
898
|
-
#
|
|
899
|
-
# # IO-valued field.
|
|
900
|
-
# require 'stringio'
|
|
901
|
-
# req.set_form({'file' => StringIO.new('Ruby is cool.')})
|
|
902
|
-
#
|
|
903
|
-
# # Mixture of fields.
|
|
904
|
-
# req.set_form({'foo' => nil, 'bar' => 1, 'file' => file})
|
|
905
|
-
#
|
|
906
|
-
# Optional argument +enctype+ specifies the value to be given
|
|
907
|
-
# to field <tt>'Content-Type'</tt>, and must be one of:
|
|
908
|
-
#
|
|
909
|
-
# - <tt>'application/x-www-form-urlencoded'</tt> (the default).
|
|
910
|
-
# - <tt>'multipart/form-data'</tt>;
|
|
911
|
-
# see {RFC 7578}[https://www.rfc-editor.org/rfc/rfc7578].
|
|
912
|
-
#
|
|
913
|
-
# Optional argument +formopt+ is a hash of options
|
|
914
|
-
# (applicable only when argument +enctype+
|
|
915
|
-
# is <tt>'multipart/form-data'</tt>)
|
|
916
|
-
# that may include the following entries:
|
|
917
|
-
#
|
|
918
|
-
# - +:boundary+: The value is the boundary string for the multipart message.
|
|
919
|
-
# If not given, the boundary is a random string.
|
|
920
|
-
# See {Boundary}[https://www.rfc-editor.org/rfc/rfc7578#section-4.1].
|
|
921
|
-
# - +:charset+: Value is the character set for the form submission.
|
|
922
|
-
# Field names and values of non-file fields should be encoded with this charset.
|
|
923
|
-
#
|
|
924
|
-
def set_form(params, enctype='application/x-www-form-urlencoded', formopt={})
|
|
925
|
-
@body_data = params
|
|
926
|
-
@body = nil
|
|
927
|
-
@body_stream = nil
|
|
928
|
-
@form_option = formopt
|
|
929
|
-
case enctype
|
|
930
|
-
when /\Aapplication\/x-www-form-urlencoded\z/i,
|
|
931
|
-
/\Amultipart\/form-data\z/i
|
|
932
|
-
self.content_type = enctype
|
|
933
|
-
else
|
|
934
|
-
raise ArgumentError, "invalid enctype: #{enctype}"
|
|
935
|
-
end
|
|
936
|
-
end
|
|
937
|
-
|
|
938
|
-
# Sets header <tt>'Authorization'</tt> using the given
|
|
939
|
-
# +account+ and +password+ strings:
|
|
940
|
-
#
|
|
941
|
-
# req.basic_auth('my_account', 'my_password')
|
|
942
|
-
# req['Authorization']
|
|
943
|
-
# # => "Basic bXlfYWNjb3VudDpteV9wYXNzd29yZA=="
|
|
944
|
-
#
|
|
945
|
-
def basic_auth(account, password)
|
|
946
|
-
@header['authorization'] = [basic_encode(account, password)]
|
|
947
|
-
end
|
|
948
|
-
|
|
949
|
-
# Sets header <tt>'Proxy-Authorization'</tt> using the given
|
|
950
|
-
# +account+ and +password+ strings:
|
|
951
|
-
#
|
|
952
|
-
# req.proxy_basic_auth('my_account', 'my_password')
|
|
953
|
-
# req['Proxy-Authorization']
|
|
954
|
-
# # => "Basic bXlfYWNjb3VudDpteV9wYXNzd29yZA=="
|
|
955
|
-
#
|
|
956
|
-
def proxy_basic_auth(account, password)
|
|
957
|
-
@header['proxy-authorization'] = [basic_encode(account, password)]
|
|
958
|
-
end
|
|
959
|
-
|
|
960
|
-
def basic_encode(account, password)
|
|
961
|
-
'Basic ' + ["#{account}:#{password}"].pack('m0')
|
|
962
|
-
end
|
|
963
|
-
private :basic_encode
|
|
964
|
-
|
|
965
|
-
# Returns whether the HTTP session is to be closed.
|
|
966
|
-
def connection_close?
|
|
967
|
-
token = /(?:\A|,)\s*close\s*(?:\z|,)/i
|
|
968
|
-
@header['connection']&.grep(token) {return true}
|
|
969
|
-
@header['proxy-connection']&.grep(token) {return true}
|
|
970
|
-
false
|
|
971
|
-
end
|
|
972
|
-
|
|
973
|
-
# Returns whether the HTTP session is to be kept alive.
|
|
974
|
-
def connection_keep_alive?
|
|
975
|
-
token = /(?:\A|,)\s*keep-alive\s*(?:\z|,)/i
|
|
976
|
-
@header['connection']&.grep(token) {return true}
|
|
977
|
-
@header['proxy-connection']&.grep(token) {return true}
|
|
978
|
-
false
|
|
979
|
-
end
|
|
980
|
-
|
|
981
|
-
end
|