@appthreat/atom 2.1.10 → 2.1.12
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/package.json +1 -1
- package/plugins/bin/atom +2 -2
- package/plugins/bin/atom.bat +7 -1
- package/plugins/bin/bundler +2 -2
- package/plugins/bin/ruby_ast_gen +2 -2
- package/plugins/composer/InstalledVersions.php +18 -2
- package/plugins/composer/installed.php +6 -6
- package/plugins/lib/io.appthreat.atom-2.1.12-classpath.jar +0 -0
- package/plugins/lib/{io.appthreat.atom-2.1.10.jar → io.appthreat.atom-2.1.12.jar} +0 -0
- package/plugins/rubyastgen/Gemfile +2 -2
- package/plugins/rubyastgen/Gemfile.lock +5 -7
- package/plugins/rubyastgen/bundle/bundler/setup.rb +4 -3
- package/plugins/rubyastgen/bundle/{jruby/3.1.0/bundler/gems/ruby_ast_gen-05140cf67b0c → ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b6ffa44317}/Gemfile +1 -1
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-05140cf67b0c → ruby_ast_gen-d8b6ffa44317}/lib/ruby_ast_gen/node_handling.rb +3 -7
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-05140cf67b0c → ruby_ast_gen-d8b6ffa44317}/lib/ruby_ast_gen/version.rb +1 -1
- package/plugins/rubyastgen/bundle/{jruby/3.1.0/bundler/gems/ruby_ast_gen-05140cf67b0c → ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b6ffa44317}/lib/ruby_ast_gen.rb +9 -8
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-05140cf67b0c → ruby_ast_gen-d8b6ffa44317}/ruby_ast_gen.gemspec +4 -4
- package/plugins/rubyastgen/bundle/{jruby/3.1.0/bundler/gems/ruby_ast_gen-05140cf67b0c → ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b6ffa44317}/spec/ruby_ast_gen_spec.rb +82 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/racc-1.8.1/gem_make.out +6 -6
- package/plugins/rubyastgen/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/racc-1.8.1/racc/cparse.so +0 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/{parser-3.3.7.0 → parser-3.3.7.1}/lib/parser/current.rb +2 -2
- package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/version.rb +1 -1
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/ext/racc/cparse/Makefile +3 -3
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/cparse.so +0 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/specifications/{parser-3.3.7.0.gemspec → parser-3.3.7.1.gemspec} +4 -4
- package/plugins/rubyastgen/setup.ps1 +2 -2
- package/rbastgen.js +6 -3
- package/utils.mjs +7 -1
- package/plugins/lib/io.appthreat.atom-2.1.10-classpath.jar +0 -0
- package/plugins/rubyastgen/bundle/jruby/3.1.0/bin/bundle +0 -29
- package/plugins/rubyastgen/bundle/jruby/3.1.0/bin/bundler +0 -29
- package/plugins/rubyastgen/bundle/jruby/3.1.0/bin/racc +0 -29
- package/plugins/rubyastgen/bundle/jruby/3.1.0/bin/ruby-parse +0 -29
- package/plugins/rubyastgen/bundle/jruby/3.1.0/bin/ruby-rewrite +0 -29
- package/plugins/rubyastgen/bundle/jruby/3.1.0/bin/ruby_ast_gen +0 -29
- package/plugins/rubyastgen/bundle/jruby/3.1.0/bundler/gems/ruby_ast_gen-05140cf67b0c/.github/workflows/pr.yaml +0 -31
- package/plugins/rubyastgen/bundle/jruby/3.1.0/bundler/gems/ruby_ast_gen-05140cf67b0c/lib/ruby_ast_gen/node_handling.rb +0 -236
- package/plugins/rubyastgen/bundle/jruby/3.1.0/bundler/gems/ruby_ast_gen-05140cf67b0c/lib/ruby_ast_gen/version.rb +0 -5
- package/plugins/rubyastgen/bundle/jruby/3.1.0/bundler/gems/ruby_ast_gen-05140cf67b0c/ruby_ast_gen.gemspec +0 -25
- package/plugins/rubyastgen/bundle/jruby/3.1.0/bundler/gems/ruby_ast_gen-05140cf67b0c/sig/ruby_ast_gen.rbs +0 -3
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/ast-2.4.2.gem +0 -0
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/HEAD +0 -1
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/config +0 -6
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/description +0 -1
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/hooks/applypatch-msg.sample +0 -15
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/hooks/commit-msg.sample +0 -24
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/hooks/fsmonitor-watchman.sample +0 -174
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/hooks/post-update.sample +0 -8
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/hooks/pre-applypatch.sample +0 -14
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/hooks/pre-commit.sample +0 -49
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/hooks/pre-merge-commit.sample +0 -13
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/hooks/pre-push.sample +0 -53
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/hooks/pre-rebase.sample +0 -169
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/hooks/pre-receive.sample +0 -24
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/hooks/prepare-commit-msg.sample +0 -42
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/hooks/push-to-checkout.sample +0 -78
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/hooks/sendemail-validate.sample +0 -77
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/hooks/update.sample +0 -128
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/info/exclude +0 -6
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/objects/pack/pack-3c48027f466a958231f3c7c00ed8f07f7ba25e2e.idx +0 -0
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/objects/pack/pack-3c48027f466a958231f3c7c00ed8f07f7ba25e2e.pack +0 -0
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/objects/pack/pack-3c48027f466a958231f3c7c00ed8f07f7ba25e2e.rev +0 -0
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler/git/ruby_ast_gen-243d3717ca4e4cb1d20a3b48fd8f19c12a09423d/packed-refs +0 -7
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/bundler-2.6.2.gem +0 -0
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/ostruct-0.6.1.gem +0 -0
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/parser-3.3.7.0.gem +0 -0
- package/plugins/rubyastgen/bundle/jruby/3.1.0/cache/racc-1.8.1-java.gem +0 -0
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/ast-2.4.2/LICENSE.MIT +0 -20
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/ast-2.4.2/README.YARD.md +0 -12
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/ast-2.4.2/lib/ast/node.rb +0 -268
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/ast-2.4.2/lib/ast/processor/mixin.rb +0 -288
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/ast-2.4.2/lib/ast/processor.rb +0 -12
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/ast-2.4.2/lib/ast/sexp.rb +0 -30
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/ast-2.4.2/lib/ast.rb +0 -17
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/CHANGELOG.md +0 -5129
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/LICENSE.md +0 -22
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/README.md +0 -58
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/bundler.gemspec +0 -46
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/exe/bundle +0 -29
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/exe/bundler +0 -4
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/.document +0 -1
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/build_metadata.rb +0 -45
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/capistrano.rb +0 -22
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/checksum.rb +0 -254
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/ci_detector.rb +0 -75
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/add.rb +0 -49
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/binstubs.rb +0 -57
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/cache.rb +0 -43
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/check.rb +0 -40
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/clean.rb +0 -25
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/common.rb +0 -138
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/config.rb +0 -204
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/console.rb +0 -40
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/doctor.rb +0 -157
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/exec.rb +0 -89
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/fund.rb +0 -36
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/gem.rb +0 -467
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/info.rb +0 -83
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/init.rb +0 -51
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/inject.rb +0 -60
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/install.rb +0 -199
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/issue.rb +0 -41
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/list.rb +0 -66
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/lock.rb +0 -93
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/open.rb +0 -29
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/outdated.rb +0 -295
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/platform.rb +0 -48
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/plugin.rb +0 -35
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/pristine.rb +0 -60
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/remove.rb +0 -17
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/show.rb +0 -75
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/update.rb +0 -123
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli/viz.rb +0 -31
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/cli.rb +0 -799
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/compact_index_client/cache.rb +0 -96
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/compact_index_client/cache_file.rb +0 -148
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/compact_index_client/gem_parser.rb +0 -32
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/compact_index_client/parser.rb +0 -84
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/compact_index_client/updater.rb +0 -104
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/compact_index_client.rb +0 -97
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/constants.rb +0 -14
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/current_ruby.rb +0 -92
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/definition.rb +0 -1151
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/dependency.rb +0 -106
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/deployment.rb +0 -69
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/deprecate.rb +0 -44
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/digest.rb +0 -71
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/dsl.rb +0 -634
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/endpoint_specification.rb +0 -167
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/env.rb +0 -148
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/environment_preserver.rb +0 -68
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/errors.rb +0 -259
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/feature_flag.rb +0 -54
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/fetcher/base.rb +0 -52
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/fetcher/compact_index.rb +0 -120
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/fetcher/dependency.rb +0 -78
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/fetcher/downloader.rb +0 -91
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/fetcher/gem_remote_fetcher.rb +0 -16
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/fetcher/index.rb +0 -25
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/fetcher.rb +0 -331
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/force_platform.rb +0 -16
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/friendly_errors.rb +0 -126
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/gem_helper.rb +0 -237
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/gem_helpers.rb +0 -150
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/gem_tasks.rb +0 -7
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/gem_version_promoter.rb +0 -149
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/graph.rb +0 -152
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/index.rb +0 -205
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/injector.rb +0 -285
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/inline.rb +0 -98
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/installer/gem_installer.rb +0 -85
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/installer/parallel_installer.rb +0 -203
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/installer/standalone.rb +0 -113
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/installer.rb +0 -229
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/lazy_specification.rb +0 -221
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/lockfile_generator.rb +0 -104
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/lockfile_parser.rb +0 -297
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/.document +0 -1
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-add.1 +0 -76
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-add.1.ronn +0 -87
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-binstubs.1 +0 -33
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-binstubs.1.ronn +0 -44
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-cache.1 +0 -68
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-cache.1.ronn +0 -108
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-check.1 +0 -24
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-check.1.ronn +0 -31
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-clean.1 +0 -17
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-clean.1.ronn +0 -18
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-config.1 +0 -317
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-config.1.ronn +0 -403
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-console.1 +0 -33
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-console.1.ronn +0 -39
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-doctor.1 +0 -30
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-doctor.1.ronn +0 -33
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-env.1 +0 -9
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-env.1.ronn +0 -10
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-exec.1 +0 -107
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-exec.1.ronn +0 -154
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-fund.1 +0 -22
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-fund.1.ronn +0 -25
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-gem.1 +0 -87
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-gem.1.ronn +0 -149
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-help.1 +0 -9
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-help.1.ronn +0 -12
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-info.1 +0 -17
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-info.1.ronn +0 -21
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-init.1 +0 -20
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-init.1.ronn +0 -32
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-inject.1 +0 -31
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-inject.1.ronn +0 -32
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-install.1 +0 -218
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-install.1.ronn +0 -387
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-issue.1 +0 -45
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-issue.1.ronn +0 -37
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-licenses.1 +0 -9
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-licenses.1.ronn +0 -10
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-list.1 +0 -35
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-list.1.ronn +0 -36
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-lock.1 +0 -75
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-lock.1.ronn +0 -115
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-open.1 +0 -32
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-open.1.ronn +0 -28
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-outdated.1 +0 -103
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-outdated.1.ronn +0 -110
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-platform.1 +0 -49
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-platform.1.ronn +0 -49
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-plugin.1 +0 -58
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-plugin.1.ronn +0 -63
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-pristine.1 +0 -23
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-pristine.1.ronn +0 -34
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-remove.1 +0 -21
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-remove.1.ronn +0 -23
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-show.1 +0 -19
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-show.1.ronn +0 -25
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-update.1 +0 -281
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-update.1.ronn +0 -359
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-version.1 +0 -22
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-version.1.ronn +0 -24
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-viz.1 +0 -30
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle-viz.1.ronn +0 -36
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle.1 +0 -102
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/bundle.1.ronn +0 -116
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/gemfile.5 +0 -472
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/gemfile.5.ronn +0 -558
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/man/index.txt +0 -33
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/match_metadata.rb +0 -17
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/match_platform.rb +0 -23
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/match_remote_metadata.rb +0 -29
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/materialization.rb +0 -59
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/mirror.rb +0 -221
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/plugin/api/source.rb +0 -322
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/plugin/api.rb +0 -81
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/plugin/dsl.rb +0 -53
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/plugin/events.rb +0 -85
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/plugin/index.rb +0 -193
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/plugin/installer/git.rb +0 -34
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/plugin/installer/path.rb +0 -18
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/plugin/installer/rubygems.rb +0 -19
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/plugin/installer.rb +0 -132
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/plugin/source_list.rb +0 -31
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/plugin.rb +0 -378
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/process_lock.rb +0 -20
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/remote_specification.rb +0 -126
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/resolver/base.rb +0 -117
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/resolver/candidate.rb +0 -82
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/resolver/incompatibility.rb +0 -15
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/resolver/package.rb +0 -90
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/resolver/root.rb +0 -25
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/resolver/spec_group.rb +0 -98
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/resolver.rb +0 -523
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/retry.rb +0 -66
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/ruby_dsl.rb +0 -53
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/ruby_version.rb +0 -137
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/rubygems_ext.rb +0 -469
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/rubygems_gem_installer.rb +0 -172
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/rubygems_integration.rb +0 -468
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/runtime.rb +0 -322
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/safe_marshal.rb +0 -31
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/self_manager.rb +0 -206
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/settings/validator.rb +0 -102
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/settings.rb +0 -599
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/setup.rb +0 -39
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/shared_helpers.rb +0 -394
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/similarity_detector.rb +0 -63
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/source/gemspec.rb +0 -18
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/source/git/git_proxy.rb +0 -461
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/source/git.rb +0 -447
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/source/metadata.rb +0 -63
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/source/path/installer.rb +0 -53
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/source/path.rb +0 -250
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/source/rubygems/remote.rb +0 -68
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/source/rubygems.rb +0 -507
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/source/rubygems_aggregate.rb +0 -68
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/source.rb +0 -116
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/source_list.rb +0 -251
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/source_map.rb +0 -71
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/spec_set.rb +0 -323
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/stub_specification.rb +0 -146
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/.document +0 -1
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/Executable +0 -27
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/Executable.bundler +0 -109
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/Executable.standalone +0 -14
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/Gemfile +0 -5
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/CHANGELOG.md.tt +0 -5
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +0 -132
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/Cargo.toml.tt +0 -7
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/Gemfile.tt +0 -23
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/LICENSE.txt.tt +0 -21
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/README.md.tt +0 -49
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/Rakefile.tt +0 -67
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/bin/console.tt +0 -11
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/bin/setup.tt +0 -8
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/circleci/config.yml.tt +0 -25
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/exe/newgem.tt +0 -3
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/ext/newgem/Cargo.toml.tt +0 -15
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/ext/newgem/extconf-c.rb.tt +0 -10
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/ext/newgem/extconf-rust.rb.tt +0 -6
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/ext/newgem/newgem.c.tt +0 -9
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/ext/newgem/newgem.h.tt +0 -6
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/ext/newgem/src/lib.rs.tt +0 -12
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/github/workflows/main.yml.tt +0 -37
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/gitignore.tt +0 -23
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/gitlab-ci.yml.tt +0 -18
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +0 -9
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/lib/newgem.rb.tt +0 -15
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/newgem.gemspec.tt +0 -52
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/rspec.tt +0 -3
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/rubocop.yml.tt +0 -8
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/sig/newgem.rbs.tt +0 -8
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +0 -11
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +0 -15
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/standard.yml.tt +0 -3
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/test/minitest/test_helper.rb.tt +0 -6
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/test/minitest/test_newgem.rb.tt +0 -13
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/test/test-unit/newgem_test.rb.tt +0 -15
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/templates/newgem/test/test-unit/test_helper.rb.tt +0 -6
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/ui/rg_proxy.rb +0 -19
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/ui/shell.rb +0 -187
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/ui/silent.rb +0 -96
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/ui.rb +0 -9
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/uri_credentials_filter.rb +0 -43
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/uri_normalizer.rb +0 -23
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/.document +0 -1
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/connection_pool/.document +0 -1
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/connection_pool/LICENSE +0 -20
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb +0 -174
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/connection_pool/lib/connection_pool/version.rb +0 -3
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb +0 -56
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/connection_pool/lib/connection_pool.rb +0 -175
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/fileutils/.document +0 -1
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/fileutils/COPYING +0 -56
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/fileutils/lib/fileutils.rb +0 -2696
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/net-http-persistent/.document +0 -1
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/net-http-persistent/README.rdoc +0 -82
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/connection.rb +0 -41
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/pool.rb +0 -65
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/timed_stack_multi.rb +0 -79
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +0 -1111
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/pub_grub/.document +0 -1
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/pub_grub/LICENSE.txt +0 -21
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb +0 -20
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/pub_grub/lib/pub_grub/basic_package_source.rb +0 -189
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/pub_grub/lib/pub_grub/failure_writer.rb +0 -182
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/pub_grub/lib/pub_grub/incompatibility.rb +0 -150
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/pub_grub/lib/pub_grub/package.rb +0 -43
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/pub_grub/lib/pub_grub/partial_solution.rb +0 -121
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/pub_grub/lib/pub_grub/rubygems.rb +0 -45
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/pub_grub/lib/pub_grub/solve_failure.rb +0 -19
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb +0 -61
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/pub_grub/lib/pub_grub/term.rb +0 -105
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/pub_grub/lib/pub_grub/version.rb +0 -3
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/pub_grub/lib/pub_grub/version_constraint.rb +0 -129
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb +0 -411
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/pub_grub/lib/pub_grub/version_solver.rb +0 -248
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/pub_grub/lib/pub_grub/version_union.rb +0 -178
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/pub_grub/lib/pub_grub.rb +0 -31
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/securerandom/.document +0 -1
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/securerandom/COPYING +0 -56
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/securerandom/lib/securerandom.rb +0 -102
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/.document +0 -1
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/LICENSE.md +0 -20
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +0 -105
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +0 -61
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/actions/directory.rb +0 -108
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +0 -143
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +0 -371
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +0 -130
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/actions.rb +0 -340
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/base.rb +0 -825
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/command.rb +0 -151
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +0 -107
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/error.rb +0 -106
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/group.rb +0 -292
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/invocation.rb +0 -178
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +0 -37
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb +0 -88
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/line_editor.rb +0 -17
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/nested_context.rb +0 -29
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/parser/argument.rb +0 -86
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/parser/arguments.rb +0 -195
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/parser/option.rb +0 -178
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/parser/options.rb +0 -294
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/parser.rb +0 -4
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/rake_compat.rb +0 -72
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/runner.rb +0 -335
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +0 -388
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/shell/color.rb +0 -112
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/shell/column_printer.rb +0 -29
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/shell/html.rb +0 -81
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/shell/table_printer.rb +0 -118
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/shell/terminal.rb +0 -42
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/shell/wrapped_printer.rb +0 -38
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/shell.rb +0 -81
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/util.rb +0 -285
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor/version.rb +0 -3
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/thor/lib/thor.rb +0 -674
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/tsort/.document +0 -1
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/tsort/LICENSE.txt +0 -22
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/tsort/lib/tsort.rb +0 -455
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/uri/.document +0 -1
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/uri/COPYING +0 -56
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/uri/lib/uri/common.rb +0 -876
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/uri/lib/uri/file.rb +0 -100
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/uri/lib/uri/ftp.rb +0 -267
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/uri/lib/uri/generic.rb +0 -1578
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/uri/lib/uri/http.rb +0 -125
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/uri/lib/uri/https.rb +0 -23
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/uri/lib/uri/ldap.rb +0 -261
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/uri/lib/uri/ldaps.rb +0 -22
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/uri/lib/uri/mailto.rb +0 -293
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb +0 -546
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/uri/lib/uri/rfc3986_parser.rb +0 -206
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/uri/lib/uri/version.rb +0 -6
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/uri/lib/uri/ws.rb +0 -83
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/uri/lib/uri/wss.rb +0 -23
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendor/uri/lib/uri.rb +0 -104
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendored_fileutils.rb +0 -4
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendored_net_http.rb +0 -23
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendored_persistent.rb +0 -11
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendored_pub_grub.rb +0 -4
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendored_securerandom.rb +0 -12
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendored_thor.rb +0 -8
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendored_timeout.rb +0 -12
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendored_tsort.rb +0 -4
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vendored_uri.rb +0 -21
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/version.rb +0 -13
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/vlad.rb +0 -17
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/worker.rb +0 -117
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler/yaml_serializer.rb +0 -98
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/bundler-2.6.2/lib/bundler.rb +0 -721
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/ostruct-0.6.1/BSDL +0 -22
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/ostruct-0.6.1/COPYING +0 -56
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/ostruct-0.6.1/Gemfile +0 -10
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/ostruct-0.6.1/README.md +0 -69
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/ostruct-0.6.1/Rakefile +0 -18
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/ostruct-0.6.1/bin/console +0 -14
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/ostruct-0.6.1/bin/setup +0 -8
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/ostruct-0.6.1/lib/ostruct.rb +0 -489
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/ostruct-0.6.1/ostruct.gemspec +0 -24
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/parser-3.3.7.0/lib/parser/current.rb +0 -137
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/BSDL +0 -22
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/COPYING +0 -56
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/ChangeLog +0 -846
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/README.ja.rdoc +0 -58
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/README.rdoc +0 -60
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/TODO +0 -5
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/bin/racc +0 -320
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/doc/en/grammar.en.rdoc +0 -218
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/doc/en/grammar2.en.rdoc +0 -219
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/doc/ja/command.ja.html +0 -99
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/doc/ja/debug.ja.rdoc +0 -36
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/doc/ja/grammar.ja.rdoc +0 -348
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/doc/ja/index.ja.html +0 -10
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/doc/ja/parser.ja.rdoc +0 -125
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/doc/ja/usage.ja.html +0 -414
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/lib/java/racc/cparse-jruby.jar +0 -0
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/lib/racc/compat.rb +0 -33
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/lib/racc/debugflags.rb +0 -60
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/lib/racc/exception.rb +0 -16
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/lib/racc/grammar.rb +0 -1191
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/lib/racc/grammarfileparser.rb +0 -667
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/lib/racc/info.rb +0 -18
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/lib/racc/iset.rb +0 -92
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/lib/racc/logfilegenerator.rb +0 -212
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/lib/racc/parser-text.rb +0 -644
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/lib/racc/parser.rb +0 -630
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/lib/racc/parserfilegenerator.rb +0 -473
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/lib/racc/sourcetext.rb +0 -35
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/lib/racc/state.rb +0 -976
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/lib/racc/statetransitiontable.rb +0 -311
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/lib/racc/static.rb +0 -5
- package/plugins/rubyastgen/bundle/jruby/3.1.0/gems/racc-1.8.1-java/lib/racc.rb +0 -6
- package/plugins/rubyastgen/bundle/jruby/3.1.0/specifications/ast-2.4.2.gemspec +0 -42
- package/plugins/rubyastgen/bundle/jruby/3.1.0/specifications/bundler-2.6.2.gemspec +0 -25
- package/plugins/rubyastgen/bundle/jruby/3.1.0/specifications/ostruct-0.6.1.gemspec +0 -21
- package/plugins/rubyastgen/bundle/jruby/3.1.0/specifications/parser-3.3.7.0.gemspec +0 -52
- package/plugins/rubyastgen/bundle/jruby/3.1.0/specifications/racc-1.8.1-java.gemspec +0 -27
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-05140cf67b0c/.rspec +0 -3
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-05140cf67b0c/Gemfile +0 -10
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-05140cf67b0c/LICENSE.txt +0 -213
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-05140cf67b0c/README.md +0 -46
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-05140cf67b0c/Rakefile +0 -8
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-05140cf67b0c/bin/console +0 -11
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-05140cf67b0c/bin/setup +0 -6
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-05140cf67b0c/exe/ruby_ast_gen +0 -59
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-05140cf67b0c/lib/ruby_ast_gen.rb +0 -139
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-05140cf67b0c/sig/ruby_ast_gen.rbs +0 -3
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-05140cf67b0c/spec/ruby_ast_gen_spec.rb +0 -93
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-05140cf67b0c/spec/spec_helper.rb +0 -15
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-05140cf67b0c/update_version.rb +0 -36
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/LICENSE.txt +0 -26
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/bin/ruby-parse +0 -7
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/bin/ruby-rewrite +0 -7
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/gauntlet_parser.rb +0 -123
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/all.rb +0 -17
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/ast/node.rb +0 -40
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/ast/processor.rb +0 -293
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/base.rb +0 -291
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/builders/default.rb +0 -2338
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/clobbering_error.rb +0 -13
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/color.rb +0 -32
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/context.rb +0 -51
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/current_arg_stack.rb +0 -46
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/deprecation.rb +0 -13
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/diagnostic/engine.rb +0 -104
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/diagnostic.rb +0 -163
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/lexer/dedenter.rb +0 -88
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/lexer/explanation.rb +0 -55
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/lexer/literal.rb +0 -284
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/lexer/stack_state.rb +0 -49
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/lexer-F0.rb +0 -12922
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/lexer-F1.rb +0 -14875
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/lexer-strings.rb +0 -5424
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/macruby.rb +0 -9634
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/max_numparam_stack.rb +0 -56
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/messages.rb +0 -125
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/meta.rb +0 -40
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/rewriter.rb +0 -105
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/ruby18.rb +0 -9272
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/ruby19.rb +0 -9558
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/ruby20.rb +0 -10229
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/ruby21.rb +0 -10203
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/ruby22.rb +0 -10302
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/ruby23.rb +0 -10322
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/ruby24.rb +0 -10454
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/ruby25.rb +0 -10374
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/ruby26.rb +0 -10352
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/ruby27.rb +0 -11947
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/ruby28.rb +0 -8047
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/ruby30.rb +0 -12243
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/ruby31.rb +0 -12716
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/ruby32.rb +0 -12704
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/ruby33.rb +0 -12589
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/ruby34.rb +0 -12596
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/rubymotion.rb +0 -9515
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/runner/ruby_parse.rb +0 -157
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/runner/ruby_rewrite.rb +0 -101
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/runner.rb +0 -299
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/buffer.rb +0 -369
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/comment/associator.rb +0 -233
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/comment.rb +0 -134
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/map/collection.rb +0 -18
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/map/condition.rb +0 -21
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/map/constant.rb +0 -32
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/map/definition.rb +0 -23
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/map/for.rb +0 -19
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/map/heredoc.rb +0 -19
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/map/index.rb +0 -33
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/map/keyword.rb +0 -20
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/map/method_definition.rb +0 -25
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/map/objc_kwarg.rb +0 -19
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/map/operator.rb +0 -17
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/map/rescue_body.rb +0 -21
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/map/send.rb +0 -36
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/map/ternary.rb +0 -18
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/map/variable.rb +0 -31
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/map.rb +0 -186
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/range.rb +0 -326
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/rewriter/action.rb +0 -44
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/rewriter.rb +0 -513
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/tree_rewriter/action.rb +0 -243
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/source/tree_rewriter.rb +0 -431
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/static_environment.rb +0 -134
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/syntax_error.rb +0 -21
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/tree_rewriter.rb +0 -133
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/unknown_encoding_in_magic_comment_error.rb +0 -15
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/variables_stack.rb +0 -36
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser/version.rb +0 -5
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/lib/parser.rb +0 -91
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.7.0/parser.gemspec +0 -43
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/bundler/gems/ruby_ast_gen-05140cf67b0c → ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b6ffa44317}/.rspec +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/bundler/gems/ruby_ast_gen-05140cf67b0c → ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b6ffa44317}/LICENSE.txt +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/bundler/gems/ruby_ast_gen-05140cf67b0c → ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b6ffa44317}/README.md +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/bundler/gems/ruby_ast_gen-05140cf67b0c → ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b6ffa44317}/Rakefile +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/bundler/gems/ruby_ast_gen-05140cf67b0c → ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b6ffa44317}/bin/console +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/bundler/gems/ruby_ast_gen-05140cf67b0c → ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b6ffa44317}/bin/setup +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/bundler/gems/ruby_ast_gen-05140cf67b0c → ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b6ffa44317}/exe/ruby_ast_gen +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/bundler/gems/ruby_ast_gen-05140cf67b0c → ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b6ffa44317}/spec/spec_helper.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/bundler/gems/ruby_ast_gen-05140cf67b0c → ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b6ffa44317}/update_version.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/LICENSE.txt +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/bin/ruby-parse +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/bin/ruby-rewrite +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/gauntlet_parser.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/all.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/ast/node.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/ast/processor.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/base.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/builders/default.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/clobbering_error.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/color.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/context.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/current_arg_stack.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/deprecation.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/diagnostic/engine.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/diagnostic.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/lexer/dedenter.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/lexer/explanation.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/lexer/literal.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/lexer/stack_state.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/lexer-F0.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/lexer-F1.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/lexer-strings.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/macruby.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/max_numparam_stack.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/messages.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/meta.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/rewriter.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/ruby18.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/ruby19.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/ruby20.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/ruby21.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/ruby22.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/ruby23.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/ruby24.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/ruby25.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/ruby26.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/ruby27.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/ruby28.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/ruby30.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/ruby31.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/ruby32.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/ruby33.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/ruby34.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/rubymotion.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/runner/ruby_parse.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/runner/ruby_rewrite.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/runner.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/buffer.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/comment/associator.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/comment.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/map/collection.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/map/condition.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/map/constant.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/map/definition.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/map/for.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/map/heredoc.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/map/index.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/map/keyword.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/map/method_definition.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/map/objc_kwarg.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/map/operator.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/map/rescue_body.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/map/send.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/map/ternary.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/map/variable.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/map.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/range.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/rewriter/action.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/rewriter.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/tree_rewriter/action.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/source/tree_rewriter.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/static_environment.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/syntax_error.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/tree_rewriter.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/unknown_encoding_in_magic_comment_error.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser/variables_stack.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/lib/parser.rb +0 -0
- /package/plugins/rubyastgen/bundle/{jruby/3.1.0/gems/parser-3.3.7.0 → ruby/3.4.0/gems/parser-3.3.7.1}/parser.gemspec +0 -0
|
@@ -1,1578 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# = uri/generic.rb
|
|
4
|
-
#
|
|
5
|
-
# Author:: Akira Yamada <akira@ruby-lang.org>
|
|
6
|
-
# License:: You can redistribute it and/or modify it under the same term as Ruby.
|
|
7
|
-
#
|
|
8
|
-
# See Bundler::URI for general documentation
|
|
9
|
-
#
|
|
10
|
-
|
|
11
|
-
require_relative 'common'
|
|
12
|
-
autoload :IPSocket, 'socket'
|
|
13
|
-
autoload :IPAddr, 'ipaddr'
|
|
14
|
-
|
|
15
|
-
module Bundler::URI
|
|
16
|
-
|
|
17
|
-
#
|
|
18
|
-
# Base class for all Bundler::URI classes.
|
|
19
|
-
# Implements generic Bundler::URI syntax as per RFC 2396.
|
|
20
|
-
#
|
|
21
|
-
class Generic
|
|
22
|
-
include Bundler::URI
|
|
23
|
-
|
|
24
|
-
#
|
|
25
|
-
# A Default port of nil for Bundler::URI::Generic.
|
|
26
|
-
#
|
|
27
|
-
DEFAULT_PORT = nil
|
|
28
|
-
|
|
29
|
-
#
|
|
30
|
-
# Returns default port.
|
|
31
|
-
#
|
|
32
|
-
def self.default_port
|
|
33
|
-
self::DEFAULT_PORT
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
#
|
|
37
|
-
# Returns default port.
|
|
38
|
-
#
|
|
39
|
-
def default_port
|
|
40
|
-
self.class.default_port
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
#
|
|
44
|
-
# An Array of the available components for Bundler::URI::Generic.
|
|
45
|
-
#
|
|
46
|
-
COMPONENT = [
|
|
47
|
-
:scheme,
|
|
48
|
-
:userinfo, :host, :port, :registry,
|
|
49
|
-
:path, :opaque,
|
|
50
|
-
:query,
|
|
51
|
-
:fragment
|
|
52
|
-
].freeze
|
|
53
|
-
|
|
54
|
-
#
|
|
55
|
-
# Components of the Bundler::URI in the order.
|
|
56
|
-
#
|
|
57
|
-
def self.component
|
|
58
|
-
self::COMPONENT
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
USE_REGISTRY = false # :nodoc:
|
|
62
|
-
|
|
63
|
-
def self.use_registry # :nodoc:
|
|
64
|
-
self::USE_REGISTRY
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
#
|
|
68
|
-
# == Synopsis
|
|
69
|
-
#
|
|
70
|
-
# See ::new.
|
|
71
|
-
#
|
|
72
|
-
# == Description
|
|
73
|
-
#
|
|
74
|
-
# At first, tries to create a new Bundler::URI::Generic instance using
|
|
75
|
-
# Bundler::URI::Generic::build. But, if exception Bundler::URI::InvalidComponentError is raised,
|
|
76
|
-
# then it does Bundler::URI::Escape.escape all Bundler::URI components and tries again.
|
|
77
|
-
#
|
|
78
|
-
def self.build2(args)
|
|
79
|
-
begin
|
|
80
|
-
return self.build(args)
|
|
81
|
-
rescue InvalidComponentError
|
|
82
|
-
if args.kind_of?(Array)
|
|
83
|
-
return self.build(args.collect{|x|
|
|
84
|
-
if x.is_a?(String)
|
|
85
|
-
Bundler::URI::RFC2396_PARSER.escape(x)
|
|
86
|
-
else
|
|
87
|
-
x
|
|
88
|
-
end
|
|
89
|
-
})
|
|
90
|
-
elsif args.kind_of?(Hash)
|
|
91
|
-
tmp = {}
|
|
92
|
-
args.each do |key, value|
|
|
93
|
-
tmp[key] = if value
|
|
94
|
-
Bundler::URI::RFC2396_PARSER.escape(value)
|
|
95
|
-
else
|
|
96
|
-
value
|
|
97
|
-
end
|
|
98
|
-
end
|
|
99
|
-
return self.build(tmp)
|
|
100
|
-
end
|
|
101
|
-
end
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
#
|
|
105
|
-
# == Synopsis
|
|
106
|
-
#
|
|
107
|
-
# See ::new.
|
|
108
|
-
#
|
|
109
|
-
# == Description
|
|
110
|
-
#
|
|
111
|
-
# Creates a new Bundler::URI::Generic instance from components of Bundler::URI::Generic
|
|
112
|
-
# with check. Components are: scheme, userinfo, host, port, registry, path,
|
|
113
|
-
# opaque, query, and fragment. You can provide arguments either by an Array or a Hash.
|
|
114
|
-
# See ::new for hash keys to use or for order of array items.
|
|
115
|
-
#
|
|
116
|
-
def self.build(args)
|
|
117
|
-
if args.kind_of?(Array) &&
|
|
118
|
-
args.size == ::Bundler::URI::Generic::COMPONENT.size
|
|
119
|
-
tmp = args.dup
|
|
120
|
-
elsif args.kind_of?(Hash)
|
|
121
|
-
tmp = ::Bundler::URI::Generic::COMPONENT.collect do |c|
|
|
122
|
-
if args.include?(c)
|
|
123
|
-
args[c]
|
|
124
|
-
else
|
|
125
|
-
nil
|
|
126
|
-
end
|
|
127
|
-
end
|
|
128
|
-
else
|
|
129
|
-
component = self.class.component rescue ::Bundler::URI::Generic::COMPONENT
|
|
130
|
-
raise ArgumentError,
|
|
131
|
-
"expected Array of or Hash of components of #{self.class} (#{component.join(', ')})"
|
|
132
|
-
end
|
|
133
|
-
|
|
134
|
-
tmp << nil
|
|
135
|
-
tmp << true
|
|
136
|
-
return self.new(*tmp)
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
#
|
|
140
|
-
# == Args
|
|
141
|
-
#
|
|
142
|
-
# +scheme+::
|
|
143
|
-
# Protocol scheme, i.e. 'http','ftp','mailto' and so on.
|
|
144
|
-
# +userinfo+::
|
|
145
|
-
# User name and password, i.e. 'sdmitry:bla'.
|
|
146
|
-
# +host+::
|
|
147
|
-
# Server host name.
|
|
148
|
-
# +port+::
|
|
149
|
-
# Server port.
|
|
150
|
-
# +registry+::
|
|
151
|
-
# Registry of naming authorities.
|
|
152
|
-
# +path+::
|
|
153
|
-
# Path on server.
|
|
154
|
-
# +opaque+::
|
|
155
|
-
# Opaque part.
|
|
156
|
-
# +query+::
|
|
157
|
-
# Query data.
|
|
158
|
-
# +fragment+::
|
|
159
|
-
# Part of the Bundler::URI after '#' character.
|
|
160
|
-
# +parser+::
|
|
161
|
-
# Parser for internal use [Bundler::URI::DEFAULT_PARSER by default].
|
|
162
|
-
# +arg_check+::
|
|
163
|
-
# Check arguments [false by default].
|
|
164
|
-
#
|
|
165
|
-
# == Description
|
|
166
|
-
#
|
|
167
|
-
# Creates a new Bundler::URI::Generic instance from ``generic'' components without check.
|
|
168
|
-
#
|
|
169
|
-
def initialize(scheme,
|
|
170
|
-
userinfo, host, port, registry,
|
|
171
|
-
path, opaque,
|
|
172
|
-
query,
|
|
173
|
-
fragment,
|
|
174
|
-
parser = DEFAULT_PARSER,
|
|
175
|
-
arg_check = false)
|
|
176
|
-
@scheme = nil
|
|
177
|
-
@user = nil
|
|
178
|
-
@password = nil
|
|
179
|
-
@host = nil
|
|
180
|
-
@port = nil
|
|
181
|
-
@path = nil
|
|
182
|
-
@query = nil
|
|
183
|
-
@opaque = nil
|
|
184
|
-
@fragment = nil
|
|
185
|
-
@parser = parser == DEFAULT_PARSER ? nil : parser
|
|
186
|
-
|
|
187
|
-
if arg_check
|
|
188
|
-
self.scheme = scheme
|
|
189
|
-
self.userinfo = userinfo
|
|
190
|
-
self.hostname = host
|
|
191
|
-
self.port = port
|
|
192
|
-
self.path = path
|
|
193
|
-
self.query = query
|
|
194
|
-
self.opaque = opaque
|
|
195
|
-
self.fragment = fragment
|
|
196
|
-
else
|
|
197
|
-
self.set_scheme(scheme)
|
|
198
|
-
self.set_userinfo(userinfo)
|
|
199
|
-
self.set_host(host)
|
|
200
|
-
self.set_port(port)
|
|
201
|
-
self.set_path(path)
|
|
202
|
-
self.query = query
|
|
203
|
-
self.set_opaque(opaque)
|
|
204
|
-
self.fragment=(fragment)
|
|
205
|
-
end
|
|
206
|
-
if registry
|
|
207
|
-
raise InvalidURIError,
|
|
208
|
-
"the scheme #{@scheme} does not accept registry part: #{registry} (or bad hostname?)"
|
|
209
|
-
end
|
|
210
|
-
|
|
211
|
-
@scheme&.freeze
|
|
212
|
-
self.set_path('') if !@path && !@opaque # (see RFC2396 Section 5.2)
|
|
213
|
-
self.set_port(self.default_port) if self.default_port && !@port
|
|
214
|
-
end
|
|
215
|
-
|
|
216
|
-
#
|
|
217
|
-
# Returns the scheme component of the Bundler::URI.
|
|
218
|
-
#
|
|
219
|
-
# Bundler::URI("http://foo/bar/baz").scheme #=> "http"
|
|
220
|
-
#
|
|
221
|
-
attr_reader :scheme
|
|
222
|
-
|
|
223
|
-
# Returns the host component of the Bundler::URI.
|
|
224
|
-
#
|
|
225
|
-
# Bundler::URI("http://foo/bar/baz").host #=> "foo"
|
|
226
|
-
#
|
|
227
|
-
# It returns nil if no host component exists.
|
|
228
|
-
#
|
|
229
|
-
# Bundler::URI("mailto:foo@example.org").host #=> nil
|
|
230
|
-
#
|
|
231
|
-
# The component does not contain the port number.
|
|
232
|
-
#
|
|
233
|
-
# Bundler::URI("http://foo:8080/bar/baz").host #=> "foo"
|
|
234
|
-
#
|
|
235
|
-
# Since IPv6 addresses are wrapped with brackets in URIs,
|
|
236
|
-
# this method returns IPv6 addresses wrapped with brackets.
|
|
237
|
-
# This form is not appropriate to pass to socket methods such as TCPSocket.open.
|
|
238
|
-
# If unwrapped host names are required, use the #hostname method.
|
|
239
|
-
#
|
|
240
|
-
# Bundler::URI("http://[::1]/bar/baz").host #=> "[::1]"
|
|
241
|
-
# Bundler::URI("http://[::1]/bar/baz").hostname #=> "::1"
|
|
242
|
-
#
|
|
243
|
-
attr_reader :host
|
|
244
|
-
|
|
245
|
-
# Returns the port component of the Bundler::URI.
|
|
246
|
-
#
|
|
247
|
-
# Bundler::URI("http://foo/bar/baz").port #=> 80
|
|
248
|
-
# Bundler::URI("http://foo:8080/bar/baz").port #=> 8080
|
|
249
|
-
#
|
|
250
|
-
attr_reader :port
|
|
251
|
-
|
|
252
|
-
def registry # :nodoc:
|
|
253
|
-
nil
|
|
254
|
-
end
|
|
255
|
-
|
|
256
|
-
# Returns the path component of the Bundler::URI.
|
|
257
|
-
#
|
|
258
|
-
# Bundler::URI("http://foo/bar/baz").path #=> "/bar/baz"
|
|
259
|
-
#
|
|
260
|
-
attr_reader :path
|
|
261
|
-
|
|
262
|
-
# Returns the query component of the Bundler::URI.
|
|
263
|
-
#
|
|
264
|
-
# Bundler::URI("http://foo/bar/baz?search=FooBar").query #=> "search=FooBar"
|
|
265
|
-
#
|
|
266
|
-
attr_reader :query
|
|
267
|
-
|
|
268
|
-
# Returns the opaque part of the Bundler::URI.
|
|
269
|
-
#
|
|
270
|
-
# Bundler::URI("mailto:foo@example.org").opaque #=> "foo@example.org"
|
|
271
|
-
# Bundler::URI("http://foo/bar/baz").opaque #=> nil
|
|
272
|
-
#
|
|
273
|
-
# The portion of the path that does not make use of the slash '/'.
|
|
274
|
-
# The path typically refers to an absolute path or an opaque part.
|
|
275
|
-
# (See RFC2396 Section 3 and 5.2.)
|
|
276
|
-
#
|
|
277
|
-
attr_reader :opaque
|
|
278
|
-
|
|
279
|
-
# Returns the fragment component of the Bundler::URI.
|
|
280
|
-
#
|
|
281
|
-
# Bundler::URI("http://foo/bar/baz?search=FooBar#ponies").fragment #=> "ponies"
|
|
282
|
-
#
|
|
283
|
-
attr_reader :fragment
|
|
284
|
-
|
|
285
|
-
# Returns the parser to be used.
|
|
286
|
-
#
|
|
287
|
-
# Unless a Bundler::URI::Parser is defined, DEFAULT_PARSER is used.
|
|
288
|
-
#
|
|
289
|
-
def parser
|
|
290
|
-
if !defined?(@parser) || !@parser
|
|
291
|
-
DEFAULT_PARSER
|
|
292
|
-
else
|
|
293
|
-
@parser || DEFAULT_PARSER
|
|
294
|
-
end
|
|
295
|
-
end
|
|
296
|
-
|
|
297
|
-
# Replaces self by other Bundler::URI object.
|
|
298
|
-
#
|
|
299
|
-
def replace!(oth)
|
|
300
|
-
if self.class != oth.class
|
|
301
|
-
raise ArgumentError, "expected #{self.class} object"
|
|
302
|
-
end
|
|
303
|
-
|
|
304
|
-
component.each do |c|
|
|
305
|
-
self.__send__("#{c}=", oth.__send__(c))
|
|
306
|
-
end
|
|
307
|
-
end
|
|
308
|
-
private :replace!
|
|
309
|
-
|
|
310
|
-
#
|
|
311
|
-
# Components of the Bundler::URI in the order.
|
|
312
|
-
#
|
|
313
|
-
def component
|
|
314
|
-
self.class.component
|
|
315
|
-
end
|
|
316
|
-
|
|
317
|
-
#
|
|
318
|
-
# Checks the scheme +v+ component against the Bundler::URI::Parser Regexp for :SCHEME.
|
|
319
|
-
#
|
|
320
|
-
def check_scheme(v)
|
|
321
|
-
if v && parser.regexp[:SCHEME] !~ v
|
|
322
|
-
raise InvalidComponentError,
|
|
323
|
-
"bad component(expected scheme component): #{v}"
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
return true
|
|
327
|
-
end
|
|
328
|
-
private :check_scheme
|
|
329
|
-
|
|
330
|
-
# Protected setter for the scheme component +v+.
|
|
331
|
-
#
|
|
332
|
-
# See also Bundler::URI::Generic.scheme=.
|
|
333
|
-
#
|
|
334
|
-
def set_scheme(v)
|
|
335
|
-
@scheme = v&.downcase
|
|
336
|
-
end
|
|
337
|
-
protected :set_scheme
|
|
338
|
-
|
|
339
|
-
#
|
|
340
|
-
# == Args
|
|
341
|
-
#
|
|
342
|
-
# +v+::
|
|
343
|
-
# String
|
|
344
|
-
#
|
|
345
|
-
# == Description
|
|
346
|
-
#
|
|
347
|
-
# Public setter for the scheme component +v+
|
|
348
|
-
# (with validation).
|
|
349
|
-
#
|
|
350
|
-
# See also Bundler::URI::Generic.check_scheme.
|
|
351
|
-
#
|
|
352
|
-
# == Usage
|
|
353
|
-
#
|
|
354
|
-
# require 'bundler/vendor/uri/lib/uri'
|
|
355
|
-
#
|
|
356
|
-
# uri = Bundler::URI.parse("http://my.example.com")
|
|
357
|
-
# uri.scheme = "https"
|
|
358
|
-
# uri.to_s #=> "https://my.example.com"
|
|
359
|
-
#
|
|
360
|
-
def scheme=(v)
|
|
361
|
-
check_scheme(v)
|
|
362
|
-
set_scheme(v)
|
|
363
|
-
v
|
|
364
|
-
end
|
|
365
|
-
|
|
366
|
-
#
|
|
367
|
-
# Checks the +user+ and +password+.
|
|
368
|
-
#
|
|
369
|
-
# If +password+ is not provided, then +user+ is
|
|
370
|
-
# split, using Bundler::URI::Generic.split_userinfo, to
|
|
371
|
-
# pull +user+ and +password.
|
|
372
|
-
#
|
|
373
|
-
# See also Bundler::URI::Generic.check_user, Bundler::URI::Generic.check_password.
|
|
374
|
-
#
|
|
375
|
-
def check_userinfo(user, password = nil)
|
|
376
|
-
if !password
|
|
377
|
-
user, password = split_userinfo(user)
|
|
378
|
-
end
|
|
379
|
-
check_user(user)
|
|
380
|
-
check_password(password, user)
|
|
381
|
-
|
|
382
|
-
return true
|
|
383
|
-
end
|
|
384
|
-
private :check_userinfo
|
|
385
|
-
|
|
386
|
-
#
|
|
387
|
-
# Checks the user +v+ component for RFC2396 compliance
|
|
388
|
-
# and against the Bundler::URI::Parser Regexp for :USERINFO.
|
|
389
|
-
#
|
|
390
|
-
# Can not have a registry or opaque component defined,
|
|
391
|
-
# with a user component defined.
|
|
392
|
-
#
|
|
393
|
-
def check_user(v)
|
|
394
|
-
if @opaque
|
|
395
|
-
raise InvalidURIError,
|
|
396
|
-
"cannot set user with opaque"
|
|
397
|
-
end
|
|
398
|
-
|
|
399
|
-
return v unless v
|
|
400
|
-
|
|
401
|
-
if parser.regexp[:USERINFO] !~ v
|
|
402
|
-
raise InvalidComponentError,
|
|
403
|
-
"bad component(expected userinfo component or user component): #{v}"
|
|
404
|
-
end
|
|
405
|
-
|
|
406
|
-
return true
|
|
407
|
-
end
|
|
408
|
-
private :check_user
|
|
409
|
-
|
|
410
|
-
#
|
|
411
|
-
# Checks the password +v+ component for RFC2396 compliance
|
|
412
|
-
# and against the Bundler::URI::Parser Regexp for :USERINFO.
|
|
413
|
-
#
|
|
414
|
-
# Can not have a registry or opaque component defined,
|
|
415
|
-
# with a user component defined.
|
|
416
|
-
#
|
|
417
|
-
def check_password(v, user = @user)
|
|
418
|
-
if @opaque
|
|
419
|
-
raise InvalidURIError,
|
|
420
|
-
"cannot set password with opaque"
|
|
421
|
-
end
|
|
422
|
-
return v unless v
|
|
423
|
-
|
|
424
|
-
if !user
|
|
425
|
-
raise InvalidURIError,
|
|
426
|
-
"password component depends user component"
|
|
427
|
-
end
|
|
428
|
-
|
|
429
|
-
if parser.regexp[:USERINFO] !~ v
|
|
430
|
-
raise InvalidComponentError,
|
|
431
|
-
"bad password component"
|
|
432
|
-
end
|
|
433
|
-
|
|
434
|
-
return true
|
|
435
|
-
end
|
|
436
|
-
private :check_password
|
|
437
|
-
|
|
438
|
-
#
|
|
439
|
-
# Sets userinfo, argument is string like 'name:pass'.
|
|
440
|
-
#
|
|
441
|
-
def userinfo=(userinfo)
|
|
442
|
-
if userinfo.nil?
|
|
443
|
-
return nil
|
|
444
|
-
end
|
|
445
|
-
check_userinfo(*userinfo)
|
|
446
|
-
set_userinfo(*userinfo)
|
|
447
|
-
# returns userinfo
|
|
448
|
-
end
|
|
449
|
-
|
|
450
|
-
#
|
|
451
|
-
# == Args
|
|
452
|
-
#
|
|
453
|
-
# +v+::
|
|
454
|
-
# String
|
|
455
|
-
#
|
|
456
|
-
# == Description
|
|
457
|
-
#
|
|
458
|
-
# Public setter for the +user+ component
|
|
459
|
-
# (with validation).
|
|
460
|
-
#
|
|
461
|
-
# See also Bundler::URI::Generic.check_user.
|
|
462
|
-
#
|
|
463
|
-
# == Usage
|
|
464
|
-
#
|
|
465
|
-
# require 'bundler/vendor/uri/lib/uri'
|
|
466
|
-
#
|
|
467
|
-
# uri = Bundler::URI.parse("http://john:S3nsit1ve@my.example.com")
|
|
468
|
-
# uri.user = "sam"
|
|
469
|
-
# uri.to_s #=> "http://sam:V3ry_S3nsit1ve@my.example.com"
|
|
470
|
-
#
|
|
471
|
-
def user=(user)
|
|
472
|
-
check_user(user)
|
|
473
|
-
set_user(user)
|
|
474
|
-
# returns user
|
|
475
|
-
end
|
|
476
|
-
|
|
477
|
-
#
|
|
478
|
-
# == Args
|
|
479
|
-
#
|
|
480
|
-
# +v+::
|
|
481
|
-
# String
|
|
482
|
-
#
|
|
483
|
-
# == Description
|
|
484
|
-
#
|
|
485
|
-
# Public setter for the +password+ component
|
|
486
|
-
# (with validation).
|
|
487
|
-
#
|
|
488
|
-
# See also Bundler::URI::Generic.check_password.
|
|
489
|
-
#
|
|
490
|
-
# == Usage
|
|
491
|
-
#
|
|
492
|
-
# require 'bundler/vendor/uri/lib/uri'
|
|
493
|
-
#
|
|
494
|
-
# uri = Bundler::URI.parse("http://john:S3nsit1ve@my.example.com")
|
|
495
|
-
# uri.password = "V3ry_S3nsit1ve"
|
|
496
|
-
# uri.to_s #=> "http://john:V3ry_S3nsit1ve@my.example.com"
|
|
497
|
-
#
|
|
498
|
-
def password=(password)
|
|
499
|
-
check_password(password)
|
|
500
|
-
set_password(password)
|
|
501
|
-
# returns password
|
|
502
|
-
end
|
|
503
|
-
|
|
504
|
-
# Protected setter for the +user+ component, and +password+ if available
|
|
505
|
-
# (with validation).
|
|
506
|
-
#
|
|
507
|
-
# See also Bundler::URI::Generic.userinfo=.
|
|
508
|
-
#
|
|
509
|
-
def set_userinfo(user, password = nil)
|
|
510
|
-
unless password
|
|
511
|
-
user, password = split_userinfo(user)
|
|
512
|
-
end
|
|
513
|
-
@user = user
|
|
514
|
-
@password = password if password
|
|
515
|
-
|
|
516
|
-
[@user, @password]
|
|
517
|
-
end
|
|
518
|
-
protected :set_userinfo
|
|
519
|
-
|
|
520
|
-
# Protected setter for the user component +v+.
|
|
521
|
-
#
|
|
522
|
-
# See also Bundler::URI::Generic.user=.
|
|
523
|
-
#
|
|
524
|
-
def set_user(v)
|
|
525
|
-
set_userinfo(v, @password)
|
|
526
|
-
v
|
|
527
|
-
end
|
|
528
|
-
protected :set_user
|
|
529
|
-
|
|
530
|
-
# Protected setter for the password component +v+.
|
|
531
|
-
#
|
|
532
|
-
# See also Bundler::URI::Generic.password=.
|
|
533
|
-
#
|
|
534
|
-
def set_password(v)
|
|
535
|
-
@password = v
|
|
536
|
-
# returns v
|
|
537
|
-
end
|
|
538
|
-
protected :set_password
|
|
539
|
-
|
|
540
|
-
# Returns the userinfo +ui+ as <code>[user, password]</code>
|
|
541
|
-
# if properly formatted as 'user:password'.
|
|
542
|
-
def split_userinfo(ui)
|
|
543
|
-
return nil, nil unless ui
|
|
544
|
-
user, password = ui.split(':', 2)
|
|
545
|
-
|
|
546
|
-
return user, password
|
|
547
|
-
end
|
|
548
|
-
private :split_userinfo
|
|
549
|
-
|
|
550
|
-
# Escapes 'user:password' +v+ based on RFC 1738 section 3.1.
|
|
551
|
-
def escape_userpass(v)
|
|
552
|
-
parser.escape(v, /[@:\/]/o) # RFC 1738 section 3.1 #/
|
|
553
|
-
end
|
|
554
|
-
private :escape_userpass
|
|
555
|
-
|
|
556
|
-
# Returns the userinfo, either as 'user' or 'user:password'.
|
|
557
|
-
def userinfo
|
|
558
|
-
if @user.nil?
|
|
559
|
-
nil
|
|
560
|
-
elsif @password.nil?
|
|
561
|
-
@user
|
|
562
|
-
else
|
|
563
|
-
@user + ':' + @password
|
|
564
|
-
end
|
|
565
|
-
end
|
|
566
|
-
|
|
567
|
-
# Returns the user component (without Bundler::URI decoding).
|
|
568
|
-
def user
|
|
569
|
-
@user
|
|
570
|
-
end
|
|
571
|
-
|
|
572
|
-
# Returns the password component (without Bundler::URI decoding).
|
|
573
|
-
def password
|
|
574
|
-
@password
|
|
575
|
-
end
|
|
576
|
-
|
|
577
|
-
# Returns the user component after Bundler::URI decoding.
|
|
578
|
-
def decoded_user
|
|
579
|
-
Bundler::URI.decode_uri_component(@user) if @user
|
|
580
|
-
end
|
|
581
|
-
|
|
582
|
-
# Returns the password component after Bundler::URI decoding.
|
|
583
|
-
def decoded_password
|
|
584
|
-
Bundler::URI.decode_uri_component(@password) if @password
|
|
585
|
-
end
|
|
586
|
-
|
|
587
|
-
#
|
|
588
|
-
# Checks the host +v+ component for RFC2396 compliance
|
|
589
|
-
# and against the Bundler::URI::Parser Regexp for :HOST.
|
|
590
|
-
#
|
|
591
|
-
# Can not have a registry or opaque component defined,
|
|
592
|
-
# with a host component defined.
|
|
593
|
-
#
|
|
594
|
-
def check_host(v)
|
|
595
|
-
return v unless v
|
|
596
|
-
|
|
597
|
-
if @opaque
|
|
598
|
-
raise InvalidURIError,
|
|
599
|
-
"cannot set host with registry or opaque"
|
|
600
|
-
elsif parser.regexp[:HOST] !~ v
|
|
601
|
-
raise InvalidComponentError,
|
|
602
|
-
"bad component(expected host component): #{v}"
|
|
603
|
-
end
|
|
604
|
-
|
|
605
|
-
return true
|
|
606
|
-
end
|
|
607
|
-
private :check_host
|
|
608
|
-
|
|
609
|
-
# Protected setter for the host component +v+.
|
|
610
|
-
#
|
|
611
|
-
# See also Bundler::URI::Generic.host=.
|
|
612
|
-
#
|
|
613
|
-
def set_host(v)
|
|
614
|
-
@host = v
|
|
615
|
-
end
|
|
616
|
-
protected :set_host
|
|
617
|
-
|
|
618
|
-
#
|
|
619
|
-
# == Args
|
|
620
|
-
#
|
|
621
|
-
# +v+::
|
|
622
|
-
# String
|
|
623
|
-
#
|
|
624
|
-
# == Description
|
|
625
|
-
#
|
|
626
|
-
# Public setter for the host component +v+
|
|
627
|
-
# (with validation).
|
|
628
|
-
#
|
|
629
|
-
# See also Bundler::URI::Generic.check_host.
|
|
630
|
-
#
|
|
631
|
-
# == Usage
|
|
632
|
-
#
|
|
633
|
-
# require 'bundler/vendor/uri/lib/uri'
|
|
634
|
-
#
|
|
635
|
-
# uri = Bundler::URI.parse("http://my.example.com")
|
|
636
|
-
# uri.host = "foo.com"
|
|
637
|
-
# uri.to_s #=> "http://foo.com"
|
|
638
|
-
#
|
|
639
|
-
def host=(v)
|
|
640
|
-
check_host(v)
|
|
641
|
-
set_host(v)
|
|
642
|
-
v
|
|
643
|
-
end
|
|
644
|
-
|
|
645
|
-
# Extract the host part of the Bundler::URI and unwrap brackets for IPv6 addresses.
|
|
646
|
-
#
|
|
647
|
-
# This method is the same as Bundler::URI::Generic#host except
|
|
648
|
-
# brackets for IPv6 (and future IP) addresses are removed.
|
|
649
|
-
#
|
|
650
|
-
# uri = Bundler::URI("http://[::1]/bar")
|
|
651
|
-
# uri.hostname #=> "::1"
|
|
652
|
-
# uri.host #=> "[::1]"
|
|
653
|
-
#
|
|
654
|
-
def hostname
|
|
655
|
-
v = self.host
|
|
656
|
-
v&.start_with?('[') && v.end_with?(']') ? v[1..-2] : v
|
|
657
|
-
end
|
|
658
|
-
|
|
659
|
-
# Sets the host part of the Bundler::URI as the argument with brackets for IPv6 addresses.
|
|
660
|
-
#
|
|
661
|
-
# This method is the same as Bundler::URI::Generic#host= except
|
|
662
|
-
# the argument can be a bare IPv6 address.
|
|
663
|
-
#
|
|
664
|
-
# uri = Bundler::URI("http://foo/bar")
|
|
665
|
-
# uri.hostname = "::1"
|
|
666
|
-
# uri.to_s #=> "http://[::1]/bar"
|
|
667
|
-
#
|
|
668
|
-
# If the argument seems to be an IPv6 address,
|
|
669
|
-
# it is wrapped with brackets.
|
|
670
|
-
#
|
|
671
|
-
def hostname=(v)
|
|
672
|
-
v = "[#{v}]" if !(v&.start_with?('[') && v&.end_with?(']')) && v&.index(':')
|
|
673
|
-
self.host = v
|
|
674
|
-
end
|
|
675
|
-
|
|
676
|
-
#
|
|
677
|
-
# Checks the port +v+ component for RFC2396 compliance
|
|
678
|
-
# and against the Bundler::URI::Parser Regexp for :PORT.
|
|
679
|
-
#
|
|
680
|
-
# Can not have a registry or opaque component defined,
|
|
681
|
-
# with a port component defined.
|
|
682
|
-
#
|
|
683
|
-
def check_port(v)
|
|
684
|
-
return v unless v
|
|
685
|
-
|
|
686
|
-
if @opaque
|
|
687
|
-
raise InvalidURIError,
|
|
688
|
-
"cannot set port with registry or opaque"
|
|
689
|
-
elsif !v.kind_of?(Integer) && parser.regexp[:PORT] !~ v
|
|
690
|
-
raise InvalidComponentError,
|
|
691
|
-
"bad component(expected port component): #{v.inspect}"
|
|
692
|
-
end
|
|
693
|
-
|
|
694
|
-
return true
|
|
695
|
-
end
|
|
696
|
-
private :check_port
|
|
697
|
-
|
|
698
|
-
# Protected setter for the port component +v+.
|
|
699
|
-
#
|
|
700
|
-
# See also Bundler::URI::Generic.port=.
|
|
701
|
-
#
|
|
702
|
-
def set_port(v)
|
|
703
|
-
v = v.empty? ? nil : v.to_i unless !v || v.kind_of?(Integer)
|
|
704
|
-
@port = v
|
|
705
|
-
end
|
|
706
|
-
protected :set_port
|
|
707
|
-
|
|
708
|
-
#
|
|
709
|
-
# == Args
|
|
710
|
-
#
|
|
711
|
-
# +v+::
|
|
712
|
-
# String
|
|
713
|
-
#
|
|
714
|
-
# == Description
|
|
715
|
-
#
|
|
716
|
-
# Public setter for the port component +v+
|
|
717
|
-
# (with validation).
|
|
718
|
-
#
|
|
719
|
-
# See also Bundler::URI::Generic.check_port.
|
|
720
|
-
#
|
|
721
|
-
# == Usage
|
|
722
|
-
#
|
|
723
|
-
# require 'bundler/vendor/uri/lib/uri'
|
|
724
|
-
#
|
|
725
|
-
# uri = Bundler::URI.parse("http://my.example.com")
|
|
726
|
-
# uri.port = 8080
|
|
727
|
-
# uri.to_s #=> "http://my.example.com:8080"
|
|
728
|
-
#
|
|
729
|
-
def port=(v)
|
|
730
|
-
check_port(v)
|
|
731
|
-
set_port(v)
|
|
732
|
-
port
|
|
733
|
-
end
|
|
734
|
-
|
|
735
|
-
def check_registry(v) # :nodoc:
|
|
736
|
-
raise InvalidURIError, "cannot set registry"
|
|
737
|
-
end
|
|
738
|
-
private :check_registry
|
|
739
|
-
|
|
740
|
-
def set_registry(v) #:nodoc:
|
|
741
|
-
raise InvalidURIError, "cannot set registry"
|
|
742
|
-
end
|
|
743
|
-
protected :set_registry
|
|
744
|
-
|
|
745
|
-
def registry=(v)
|
|
746
|
-
raise InvalidURIError, "cannot set registry"
|
|
747
|
-
end
|
|
748
|
-
|
|
749
|
-
#
|
|
750
|
-
# Checks the path +v+ component for RFC2396 compliance
|
|
751
|
-
# and against the Bundler::URI::Parser Regexp
|
|
752
|
-
# for :ABS_PATH and :REL_PATH.
|
|
753
|
-
#
|
|
754
|
-
# Can not have a opaque component defined,
|
|
755
|
-
# with a path component defined.
|
|
756
|
-
#
|
|
757
|
-
def check_path(v)
|
|
758
|
-
# raise if both hier and opaque are not nil, because:
|
|
759
|
-
# absoluteURI = scheme ":" ( hier_part | opaque_part )
|
|
760
|
-
# hier_part = ( net_path | abs_path ) [ "?" query ]
|
|
761
|
-
if v && @opaque
|
|
762
|
-
raise InvalidURIError,
|
|
763
|
-
"path conflicts with opaque"
|
|
764
|
-
end
|
|
765
|
-
|
|
766
|
-
# If scheme is ftp, path may be relative.
|
|
767
|
-
# See RFC 1738 section 3.2.2, and RFC 2396.
|
|
768
|
-
if @scheme && @scheme != "ftp"
|
|
769
|
-
if v && v != '' && parser.regexp[:ABS_PATH] !~ v
|
|
770
|
-
raise InvalidComponentError,
|
|
771
|
-
"bad component(expected absolute path component): #{v}"
|
|
772
|
-
end
|
|
773
|
-
else
|
|
774
|
-
if v && v != '' && parser.regexp[:ABS_PATH] !~ v &&
|
|
775
|
-
parser.regexp[:REL_PATH] !~ v
|
|
776
|
-
raise InvalidComponentError,
|
|
777
|
-
"bad component(expected relative path component): #{v}"
|
|
778
|
-
end
|
|
779
|
-
end
|
|
780
|
-
|
|
781
|
-
return true
|
|
782
|
-
end
|
|
783
|
-
private :check_path
|
|
784
|
-
|
|
785
|
-
# Protected setter for the path component +v+.
|
|
786
|
-
#
|
|
787
|
-
# See also Bundler::URI::Generic.path=.
|
|
788
|
-
#
|
|
789
|
-
def set_path(v)
|
|
790
|
-
@path = v
|
|
791
|
-
end
|
|
792
|
-
protected :set_path
|
|
793
|
-
|
|
794
|
-
#
|
|
795
|
-
# == Args
|
|
796
|
-
#
|
|
797
|
-
# +v+::
|
|
798
|
-
# String
|
|
799
|
-
#
|
|
800
|
-
# == Description
|
|
801
|
-
#
|
|
802
|
-
# Public setter for the path component +v+
|
|
803
|
-
# (with validation).
|
|
804
|
-
#
|
|
805
|
-
# See also Bundler::URI::Generic.check_path.
|
|
806
|
-
#
|
|
807
|
-
# == Usage
|
|
808
|
-
#
|
|
809
|
-
# require 'bundler/vendor/uri/lib/uri'
|
|
810
|
-
#
|
|
811
|
-
# uri = Bundler::URI.parse("http://my.example.com/pub/files")
|
|
812
|
-
# uri.path = "/faq/"
|
|
813
|
-
# uri.to_s #=> "http://my.example.com/faq/"
|
|
814
|
-
#
|
|
815
|
-
def path=(v)
|
|
816
|
-
check_path(v)
|
|
817
|
-
set_path(v)
|
|
818
|
-
v
|
|
819
|
-
end
|
|
820
|
-
|
|
821
|
-
#
|
|
822
|
-
# == Args
|
|
823
|
-
#
|
|
824
|
-
# +v+::
|
|
825
|
-
# String
|
|
826
|
-
#
|
|
827
|
-
# == Description
|
|
828
|
-
#
|
|
829
|
-
# Public setter for the query component +v+.
|
|
830
|
-
#
|
|
831
|
-
# == Usage
|
|
832
|
-
#
|
|
833
|
-
# require 'bundler/vendor/uri/lib/uri'
|
|
834
|
-
#
|
|
835
|
-
# uri = Bundler::URI.parse("http://my.example.com/?id=25")
|
|
836
|
-
# uri.query = "id=1"
|
|
837
|
-
# uri.to_s #=> "http://my.example.com/?id=1"
|
|
838
|
-
#
|
|
839
|
-
def query=(v)
|
|
840
|
-
return @query = nil unless v
|
|
841
|
-
raise InvalidURIError, "query conflicts with opaque" if @opaque
|
|
842
|
-
|
|
843
|
-
x = v.to_str
|
|
844
|
-
v = x.dup if x.equal? v
|
|
845
|
-
v.encode!(Encoding::UTF_8) rescue nil
|
|
846
|
-
v.delete!("\t\r\n")
|
|
847
|
-
v.force_encoding(Encoding::ASCII_8BIT)
|
|
848
|
-
raise InvalidURIError, "invalid percent escape: #{$1}" if /(%\H\H)/n.match(v)
|
|
849
|
-
v.gsub!(/(?!%\h\h|[!$-&(-;=?-_a-~])./n.freeze){'%%%02X' % $&.ord}
|
|
850
|
-
v.force_encoding(Encoding::US_ASCII)
|
|
851
|
-
@query = v
|
|
852
|
-
end
|
|
853
|
-
|
|
854
|
-
#
|
|
855
|
-
# Checks the opaque +v+ component for RFC2396 compliance and
|
|
856
|
-
# against the Bundler::URI::Parser Regexp for :OPAQUE.
|
|
857
|
-
#
|
|
858
|
-
# Can not have a host, port, user, or path component defined,
|
|
859
|
-
# with an opaque component defined.
|
|
860
|
-
#
|
|
861
|
-
def check_opaque(v)
|
|
862
|
-
return v unless v
|
|
863
|
-
|
|
864
|
-
# raise if both hier and opaque are not nil, because:
|
|
865
|
-
# absoluteURI = scheme ":" ( hier_part | opaque_part )
|
|
866
|
-
# hier_part = ( net_path | abs_path ) [ "?" query ]
|
|
867
|
-
if @host || @port || @user || @path # userinfo = @user + ':' + @password
|
|
868
|
-
raise InvalidURIError,
|
|
869
|
-
"cannot set opaque with host, port, userinfo or path"
|
|
870
|
-
elsif v && parser.regexp[:OPAQUE] !~ v
|
|
871
|
-
raise InvalidComponentError,
|
|
872
|
-
"bad component(expected opaque component): #{v}"
|
|
873
|
-
end
|
|
874
|
-
|
|
875
|
-
return true
|
|
876
|
-
end
|
|
877
|
-
private :check_opaque
|
|
878
|
-
|
|
879
|
-
# Protected setter for the opaque component +v+.
|
|
880
|
-
#
|
|
881
|
-
# See also Bundler::URI::Generic.opaque=.
|
|
882
|
-
#
|
|
883
|
-
def set_opaque(v)
|
|
884
|
-
@opaque = v
|
|
885
|
-
end
|
|
886
|
-
protected :set_opaque
|
|
887
|
-
|
|
888
|
-
#
|
|
889
|
-
# == Args
|
|
890
|
-
#
|
|
891
|
-
# +v+::
|
|
892
|
-
# String
|
|
893
|
-
#
|
|
894
|
-
# == Description
|
|
895
|
-
#
|
|
896
|
-
# Public setter for the opaque component +v+
|
|
897
|
-
# (with validation).
|
|
898
|
-
#
|
|
899
|
-
# See also Bundler::URI::Generic.check_opaque.
|
|
900
|
-
#
|
|
901
|
-
def opaque=(v)
|
|
902
|
-
check_opaque(v)
|
|
903
|
-
set_opaque(v)
|
|
904
|
-
v
|
|
905
|
-
end
|
|
906
|
-
|
|
907
|
-
#
|
|
908
|
-
# Checks the fragment +v+ component against the Bundler::URI::Parser Regexp for :FRAGMENT.
|
|
909
|
-
#
|
|
910
|
-
#
|
|
911
|
-
# == Args
|
|
912
|
-
#
|
|
913
|
-
# +v+::
|
|
914
|
-
# String
|
|
915
|
-
#
|
|
916
|
-
# == Description
|
|
917
|
-
#
|
|
918
|
-
# Public setter for the fragment component +v+
|
|
919
|
-
# (with validation).
|
|
920
|
-
#
|
|
921
|
-
# == Usage
|
|
922
|
-
#
|
|
923
|
-
# require 'bundler/vendor/uri/lib/uri'
|
|
924
|
-
#
|
|
925
|
-
# uri = Bundler::URI.parse("http://my.example.com/?id=25#time=1305212049")
|
|
926
|
-
# uri.fragment = "time=1305212086"
|
|
927
|
-
# uri.to_s #=> "http://my.example.com/?id=25#time=1305212086"
|
|
928
|
-
#
|
|
929
|
-
def fragment=(v)
|
|
930
|
-
return @fragment = nil unless v
|
|
931
|
-
|
|
932
|
-
x = v.to_str
|
|
933
|
-
v = x.dup if x.equal? v
|
|
934
|
-
v.encode!(Encoding::UTF_8) rescue nil
|
|
935
|
-
v.delete!("\t\r\n")
|
|
936
|
-
v.force_encoding(Encoding::ASCII_8BIT)
|
|
937
|
-
v.gsub!(/(?!%\h\h|[!-~])./n){'%%%02X' % $&.ord}
|
|
938
|
-
v.force_encoding(Encoding::US_ASCII)
|
|
939
|
-
@fragment = v
|
|
940
|
-
end
|
|
941
|
-
|
|
942
|
-
#
|
|
943
|
-
# Returns true if Bundler::URI is hierarchical.
|
|
944
|
-
#
|
|
945
|
-
# == Description
|
|
946
|
-
#
|
|
947
|
-
# Bundler::URI has components listed in order of decreasing significance from left to right,
|
|
948
|
-
# see RFC3986 https://www.rfc-editor.org/rfc/rfc3986 1.2.3.
|
|
949
|
-
#
|
|
950
|
-
# == Usage
|
|
951
|
-
#
|
|
952
|
-
# require 'bundler/vendor/uri/lib/uri'
|
|
953
|
-
#
|
|
954
|
-
# uri = Bundler::URI.parse("http://my.example.com/")
|
|
955
|
-
# uri.hierarchical?
|
|
956
|
-
# #=> true
|
|
957
|
-
# uri = Bundler::URI.parse("mailto:joe@example.com")
|
|
958
|
-
# uri.hierarchical?
|
|
959
|
-
# #=> false
|
|
960
|
-
#
|
|
961
|
-
def hierarchical?
|
|
962
|
-
if @path
|
|
963
|
-
true
|
|
964
|
-
else
|
|
965
|
-
false
|
|
966
|
-
end
|
|
967
|
-
end
|
|
968
|
-
|
|
969
|
-
#
|
|
970
|
-
# Returns true if Bundler::URI has a scheme (e.g. http:// or https://) specified.
|
|
971
|
-
#
|
|
972
|
-
def absolute?
|
|
973
|
-
if @scheme
|
|
974
|
-
true
|
|
975
|
-
else
|
|
976
|
-
false
|
|
977
|
-
end
|
|
978
|
-
end
|
|
979
|
-
alias absolute absolute?
|
|
980
|
-
|
|
981
|
-
#
|
|
982
|
-
# Returns true if Bundler::URI does not have a scheme (e.g. http:// or https://) specified.
|
|
983
|
-
#
|
|
984
|
-
def relative?
|
|
985
|
-
!absolute?
|
|
986
|
-
end
|
|
987
|
-
|
|
988
|
-
#
|
|
989
|
-
# Returns an Array of the path split on '/'.
|
|
990
|
-
#
|
|
991
|
-
def split_path(path)
|
|
992
|
-
path.split("/", -1)
|
|
993
|
-
end
|
|
994
|
-
private :split_path
|
|
995
|
-
|
|
996
|
-
#
|
|
997
|
-
# Merges a base path +base+, with relative path +rel+,
|
|
998
|
-
# returns a modified base path.
|
|
999
|
-
#
|
|
1000
|
-
def merge_path(base, rel)
|
|
1001
|
-
|
|
1002
|
-
# RFC2396, Section 5.2, 5)
|
|
1003
|
-
# RFC2396, Section 5.2, 6)
|
|
1004
|
-
base_path = split_path(base)
|
|
1005
|
-
rel_path = split_path(rel)
|
|
1006
|
-
|
|
1007
|
-
# RFC2396, Section 5.2, 6), a)
|
|
1008
|
-
base_path << '' if base_path.last == '..'
|
|
1009
|
-
while i = base_path.index('..')
|
|
1010
|
-
base_path.slice!(i - 1, 2)
|
|
1011
|
-
end
|
|
1012
|
-
|
|
1013
|
-
if (first = rel_path.first) and first.empty?
|
|
1014
|
-
base_path.clear
|
|
1015
|
-
rel_path.shift
|
|
1016
|
-
end
|
|
1017
|
-
|
|
1018
|
-
# RFC2396, Section 5.2, 6), c)
|
|
1019
|
-
# RFC2396, Section 5.2, 6), d)
|
|
1020
|
-
rel_path.push('') if rel_path.last == '.' || rel_path.last == '..'
|
|
1021
|
-
rel_path.delete('.')
|
|
1022
|
-
|
|
1023
|
-
# RFC2396, Section 5.2, 6), e)
|
|
1024
|
-
tmp = []
|
|
1025
|
-
rel_path.each do |x|
|
|
1026
|
-
if x == '..' &&
|
|
1027
|
-
!(tmp.empty? || tmp.last == '..')
|
|
1028
|
-
tmp.pop
|
|
1029
|
-
else
|
|
1030
|
-
tmp << x
|
|
1031
|
-
end
|
|
1032
|
-
end
|
|
1033
|
-
|
|
1034
|
-
add_trailer_slash = !tmp.empty?
|
|
1035
|
-
if base_path.empty?
|
|
1036
|
-
base_path = [''] # keep '/' for root directory
|
|
1037
|
-
elsif add_trailer_slash
|
|
1038
|
-
base_path.pop
|
|
1039
|
-
end
|
|
1040
|
-
while x = tmp.shift
|
|
1041
|
-
if x == '..'
|
|
1042
|
-
# RFC2396, Section 4
|
|
1043
|
-
# a .. or . in an absolute path has no special meaning
|
|
1044
|
-
base_path.pop if base_path.size > 1
|
|
1045
|
-
else
|
|
1046
|
-
# if x == '..'
|
|
1047
|
-
# valid absolute (but abnormal) path "/../..."
|
|
1048
|
-
# else
|
|
1049
|
-
# valid absolute path
|
|
1050
|
-
# end
|
|
1051
|
-
base_path << x
|
|
1052
|
-
tmp.each {|t| base_path << t}
|
|
1053
|
-
add_trailer_slash = false
|
|
1054
|
-
break
|
|
1055
|
-
end
|
|
1056
|
-
end
|
|
1057
|
-
base_path.push('') if add_trailer_slash
|
|
1058
|
-
|
|
1059
|
-
return base_path.join('/')
|
|
1060
|
-
end
|
|
1061
|
-
private :merge_path
|
|
1062
|
-
|
|
1063
|
-
#
|
|
1064
|
-
# == Args
|
|
1065
|
-
#
|
|
1066
|
-
# +oth+::
|
|
1067
|
-
# Bundler::URI or String
|
|
1068
|
-
#
|
|
1069
|
-
# == Description
|
|
1070
|
-
#
|
|
1071
|
-
# Destructive form of #merge.
|
|
1072
|
-
#
|
|
1073
|
-
# == Usage
|
|
1074
|
-
#
|
|
1075
|
-
# require 'bundler/vendor/uri/lib/uri'
|
|
1076
|
-
#
|
|
1077
|
-
# uri = Bundler::URI.parse("http://my.example.com")
|
|
1078
|
-
# uri.merge!("/main.rbx?page=1")
|
|
1079
|
-
# uri.to_s # => "http://my.example.com/main.rbx?page=1"
|
|
1080
|
-
#
|
|
1081
|
-
def merge!(oth)
|
|
1082
|
-
t = merge(oth)
|
|
1083
|
-
if self == t
|
|
1084
|
-
nil
|
|
1085
|
-
else
|
|
1086
|
-
replace!(t)
|
|
1087
|
-
self
|
|
1088
|
-
end
|
|
1089
|
-
end
|
|
1090
|
-
|
|
1091
|
-
#
|
|
1092
|
-
# == Args
|
|
1093
|
-
#
|
|
1094
|
-
# +oth+::
|
|
1095
|
-
# Bundler::URI or String
|
|
1096
|
-
#
|
|
1097
|
-
# == Description
|
|
1098
|
-
#
|
|
1099
|
-
# Merges two URIs.
|
|
1100
|
-
#
|
|
1101
|
-
# == Usage
|
|
1102
|
-
#
|
|
1103
|
-
# require 'bundler/vendor/uri/lib/uri'
|
|
1104
|
-
#
|
|
1105
|
-
# uri = Bundler::URI.parse("http://my.example.com")
|
|
1106
|
-
# uri.merge("/main.rbx?page=1")
|
|
1107
|
-
# # => "http://my.example.com/main.rbx?page=1"
|
|
1108
|
-
#
|
|
1109
|
-
def merge(oth)
|
|
1110
|
-
rel = parser.__send__(:convert_to_uri, oth)
|
|
1111
|
-
|
|
1112
|
-
if rel.absolute?
|
|
1113
|
-
#raise BadURIError, "both Bundler::URI are absolute" if absolute?
|
|
1114
|
-
# hmm... should return oth for usability?
|
|
1115
|
-
return rel
|
|
1116
|
-
end
|
|
1117
|
-
|
|
1118
|
-
unless self.absolute?
|
|
1119
|
-
raise BadURIError, "both Bundler::URI are relative"
|
|
1120
|
-
end
|
|
1121
|
-
|
|
1122
|
-
base = self.dup
|
|
1123
|
-
|
|
1124
|
-
authority = rel.userinfo || rel.host || rel.port
|
|
1125
|
-
|
|
1126
|
-
# RFC2396, Section 5.2, 2)
|
|
1127
|
-
if (rel.path.nil? || rel.path.empty?) && !authority && !rel.query
|
|
1128
|
-
base.fragment=(rel.fragment) if rel.fragment
|
|
1129
|
-
return base
|
|
1130
|
-
end
|
|
1131
|
-
|
|
1132
|
-
base.query = nil
|
|
1133
|
-
base.fragment=(nil)
|
|
1134
|
-
|
|
1135
|
-
# RFC2396, Section 5.2, 4)
|
|
1136
|
-
if !authority
|
|
1137
|
-
base.set_path(merge_path(base.path, rel.path)) if base.path && rel.path
|
|
1138
|
-
else
|
|
1139
|
-
# RFC2396, Section 5.2, 4)
|
|
1140
|
-
base.set_path(rel.path) if rel.path
|
|
1141
|
-
end
|
|
1142
|
-
|
|
1143
|
-
# RFC2396, Section 5.2, 7)
|
|
1144
|
-
base.set_userinfo(rel.userinfo) if rel.userinfo
|
|
1145
|
-
base.set_host(rel.host) if rel.host
|
|
1146
|
-
base.set_port(rel.port) if rel.port
|
|
1147
|
-
base.query = rel.query if rel.query
|
|
1148
|
-
base.fragment=(rel.fragment) if rel.fragment
|
|
1149
|
-
|
|
1150
|
-
return base
|
|
1151
|
-
end # merge
|
|
1152
|
-
alias + merge
|
|
1153
|
-
|
|
1154
|
-
# :stopdoc:
|
|
1155
|
-
def route_from_path(src, dst)
|
|
1156
|
-
case dst
|
|
1157
|
-
when src
|
|
1158
|
-
# RFC2396, Section 4.2
|
|
1159
|
-
return ''
|
|
1160
|
-
when %r{(?:\A|/)\.\.?(?:/|\z)}
|
|
1161
|
-
# dst has abnormal absolute path,
|
|
1162
|
-
# like "/./", "/../", "/x/../", ...
|
|
1163
|
-
return dst.dup
|
|
1164
|
-
end
|
|
1165
|
-
|
|
1166
|
-
src_path = src.scan(%r{[^/]*/})
|
|
1167
|
-
dst_path = dst.scan(%r{[^/]*/?})
|
|
1168
|
-
|
|
1169
|
-
# discard same parts
|
|
1170
|
-
while !dst_path.empty? && dst_path.first == src_path.first
|
|
1171
|
-
src_path.shift
|
|
1172
|
-
dst_path.shift
|
|
1173
|
-
end
|
|
1174
|
-
|
|
1175
|
-
tmp = dst_path.join
|
|
1176
|
-
|
|
1177
|
-
# calculate
|
|
1178
|
-
if src_path.empty?
|
|
1179
|
-
if tmp.empty?
|
|
1180
|
-
return './'
|
|
1181
|
-
elsif dst_path.first.include?(':') # (see RFC2396 Section 5)
|
|
1182
|
-
return './' + tmp
|
|
1183
|
-
else
|
|
1184
|
-
return tmp
|
|
1185
|
-
end
|
|
1186
|
-
end
|
|
1187
|
-
|
|
1188
|
-
return '../' * src_path.size + tmp
|
|
1189
|
-
end
|
|
1190
|
-
private :route_from_path
|
|
1191
|
-
# :startdoc:
|
|
1192
|
-
|
|
1193
|
-
# :stopdoc:
|
|
1194
|
-
def route_from0(oth)
|
|
1195
|
-
oth = parser.__send__(:convert_to_uri, oth)
|
|
1196
|
-
if self.relative?
|
|
1197
|
-
raise BadURIError,
|
|
1198
|
-
"relative Bundler::URI: #{self}"
|
|
1199
|
-
end
|
|
1200
|
-
if oth.relative?
|
|
1201
|
-
raise BadURIError,
|
|
1202
|
-
"relative Bundler::URI: #{oth}"
|
|
1203
|
-
end
|
|
1204
|
-
|
|
1205
|
-
if self.scheme != oth.scheme
|
|
1206
|
-
return self, self.dup
|
|
1207
|
-
end
|
|
1208
|
-
rel = Bundler::URI::Generic.new(nil, # it is relative Bundler::URI
|
|
1209
|
-
self.userinfo, self.host, self.port,
|
|
1210
|
-
nil, self.path, self.opaque,
|
|
1211
|
-
self.query, self.fragment, parser)
|
|
1212
|
-
|
|
1213
|
-
if rel.userinfo != oth.userinfo ||
|
|
1214
|
-
rel.host.to_s.downcase != oth.host.to_s.downcase ||
|
|
1215
|
-
rel.port != oth.port
|
|
1216
|
-
|
|
1217
|
-
if self.userinfo.nil? && self.host.nil?
|
|
1218
|
-
return self, self.dup
|
|
1219
|
-
end
|
|
1220
|
-
|
|
1221
|
-
rel.set_port(nil) if rel.port == oth.default_port
|
|
1222
|
-
return rel, rel
|
|
1223
|
-
end
|
|
1224
|
-
rel.set_userinfo(nil)
|
|
1225
|
-
rel.set_host(nil)
|
|
1226
|
-
rel.set_port(nil)
|
|
1227
|
-
|
|
1228
|
-
if rel.path && rel.path == oth.path
|
|
1229
|
-
rel.set_path('')
|
|
1230
|
-
rel.query = nil if rel.query == oth.query
|
|
1231
|
-
return rel, rel
|
|
1232
|
-
elsif rel.opaque && rel.opaque == oth.opaque
|
|
1233
|
-
rel.set_opaque('')
|
|
1234
|
-
rel.query = nil if rel.query == oth.query
|
|
1235
|
-
return rel, rel
|
|
1236
|
-
end
|
|
1237
|
-
|
|
1238
|
-
# you can modify `rel', but cannot `oth'.
|
|
1239
|
-
return oth, rel
|
|
1240
|
-
end
|
|
1241
|
-
private :route_from0
|
|
1242
|
-
# :startdoc:
|
|
1243
|
-
|
|
1244
|
-
#
|
|
1245
|
-
# == Args
|
|
1246
|
-
#
|
|
1247
|
-
# +oth+::
|
|
1248
|
-
# Bundler::URI or String
|
|
1249
|
-
#
|
|
1250
|
-
# == Description
|
|
1251
|
-
#
|
|
1252
|
-
# Calculates relative path from oth to self.
|
|
1253
|
-
#
|
|
1254
|
-
# == Usage
|
|
1255
|
-
#
|
|
1256
|
-
# require 'bundler/vendor/uri/lib/uri'
|
|
1257
|
-
#
|
|
1258
|
-
# uri = Bundler::URI.parse('http://my.example.com/main.rbx?page=1')
|
|
1259
|
-
# uri.route_from('http://my.example.com')
|
|
1260
|
-
# #=> #<Bundler::URI::Generic /main.rbx?page=1>
|
|
1261
|
-
#
|
|
1262
|
-
def route_from(oth)
|
|
1263
|
-
# you can modify `rel', but cannot `oth'.
|
|
1264
|
-
begin
|
|
1265
|
-
oth, rel = route_from0(oth)
|
|
1266
|
-
rescue
|
|
1267
|
-
raise $!.class, $!.message
|
|
1268
|
-
end
|
|
1269
|
-
if oth == rel
|
|
1270
|
-
return rel
|
|
1271
|
-
end
|
|
1272
|
-
|
|
1273
|
-
rel.set_path(route_from_path(oth.path, self.path))
|
|
1274
|
-
if rel.path == './' && self.query
|
|
1275
|
-
# "./?foo" -> "?foo"
|
|
1276
|
-
rel.set_path('')
|
|
1277
|
-
end
|
|
1278
|
-
|
|
1279
|
-
return rel
|
|
1280
|
-
end
|
|
1281
|
-
|
|
1282
|
-
alias - route_from
|
|
1283
|
-
|
|
1284
|
-
#
|
|
1285
|
-
# == Args
|
|
1286
|
-
#
|
|
1287
|
-
# +oth+::
|
|
1288
|
-
# Bundler::URI or String
|
|
1289
|
-
#
|
|
1290
|
-
# == Description
|
|
1291
|
-
#
|
|
1292
|
-
# Calculates relative path to oth from self.
|
|
1293
|
-
#
|
|
1294
|
-
# == Usage
|
|
1295
|
-
#
|
|
1296
|
-
# require 'bundler/vendor/uri/lib/uri'
|
|
1297
|
-
#
|
|
1298
|
-
# uri = Bundler::URI.parse('http://my.example.com')
|
|
1299
|
-
# uri.route_to('http://my.example.com/main.rbx?page=1')
|
|
1300
|
-
# #=> #<Bundler::URI::Generic /main.rbx?page=1>
|
|
1301
|
-
#
|
|
1302
|
-
def route_to(oth)
|
|
1303
|
-
parser.__send__(:convert_to_uri, oth).route_from(self)
|
|
1304
|
-
end
|
|
1305
|
-
|
|
1306
|
-
#
|
|
1307
|
-
# Returns normalized Bundler::URI.
|
|
1308
|
-
#
|
|
1309
|
-
# require 'bundler/vendor/uri/lib/uri'
|
|
1310
|
-
#
|
|
1311
|
-
# Bundler::URI("HTTP://my.EXAMPLE.com").normalize
|
|
1312
|
-
# #=> #<Bundler::URI::HTTP http://my.example.com/>
|
|
1313
|
-
#
|
|
1314
|
-
# Normalization here means:
|
|
1315
|
-
#
|
|
1316
|
-
# * scheme and host are converted to lowercase,
|
|
1317
|
-
# * an empty path component is set to "/".
|
|
1318
|
-
#
|
|
1319
|
-
def normalize
|
|
1320
|
-
uri = dup
|
|
1321
|
-
uri.normalize!
|
|
1322
|
-
uri
|
|
1323
|
-
end
|
|
1324
|
-
|
|
1325
|
-
#
|
|
1326
|
-
# Destructive version of #normalize.
|
|
1327
|
-
#
|
|
1328
|
-
def normalize!
|
|
1329
|
-
if path&.empty?
|
|
1330
|
-
set_path('/')
|
|
1331
|
-
end
|
|
1332
|
-
if scheme && scheme != scheme.downcase
|
|
1333
|
-
set_scheme(self.scheme.downcase)
|
|
1334
|
-
end
|
|
1335
|
-
if host && host != host.downcase
|
|
1336
|
-
set_host(self.host.downcase)
|
|
1337
|
-
end
|
|
1338
|
-
end
|
|
1339
|
-
|
|
1340
|
-
#
|
|
1341
|
-
# Constructs String from Bundler::URI.
|
|
1342
|
-
#
|
|
1343
|
-
def to_s
|
|
1344
|
-
str = ''.dup
|
|
1345
|
-
if @scheme
|
|
1346
|
-
str << @scheme
|
|
1347
|
-
str << ':'
|
|
1348
|
-
end
|
|
1349
|
-
|
|
1350
|
-
if @opaque
|
|
1351
|
-
str << @opaque
|
|
1352
|
-
else
|
|
1353
|
-
if @host || %w[file postgres].include?(@scheme)
|
|
1354
|
-
str << '//'
|
|
1355
|
-
end
|
|
1356
|
-
if self.userinfo
|
|
1357
|
-
str << self.userinfo
|
|
1358
|
-
str << '@'
|
|
1359
|
-
end
|
|
1360
|
-
if @host
|
|
1361
|
-
str << @host
|
|
1362
|
-
end
|
|
1363
|
-
if @port && @port != self.default_port
|
|
1364
|
-
str << ':'
|
|
1365
|
-
str << @port.to_s
|
|
1366
|
-
end
|
|
1367
|
-
if (@host || @port) && !@path.empty? && !@path.start_with?('/')
|
|
1368
|
-
str << '/'
|
|
1369
|
-
end
|
|
1370
|
-
str << @path
|
|
1371
|
-
if @query
|
|
1372
|
-
str << '?'
|
|
1373
|
-
str << @query
|
|
1374
|
-
end
|
|
1375
|
-
end
|
|
1376
|
-
if @fragment
|
|
1377
|
-
str << '#'
|
|
1378
|
-
str << @fragment
|
|
1379
|
-
end
|
|
1380
|
-
str
|
|
1381
|
-
end
|
|
1382
|
-
alias to_str to_s
|
|
1383
|
-
|
|
1384
|
-
#
|
|
1385
|
-
# Compares two URIs.
|
|
1386
|
-
#
|
|
1387
|
-
def ==(oth)
|
|
1388
|
-
if self.class == oth.class
|
|
1389
|
-
self.normalize.component_ary == oth.normalize.component_ary
|
|
1390
|
-
else
|
|
1391
|
-
false
|
|
1392
|
-
end
|
|
1393
|
-
end
|
|
1394
|
-
|
|
1395
|
-
def hash
|
|
1396
|
-
self.component_ary.hash
|
|
1397
|
-
end
|
|
1398
|
-
|
|
1399
|
-
def eql?(oth)
|
|
1400
|
-
self.class == oth.class &&
|
|
1401
|
-
parser == oth.parser &&
|
|
1402
|
-
self.component_ary.eql?(oth.component_ary)
|
|
1403
|
-
end
|
|
1404
|
-
|
|
1405
|
-
# Returns an Array of the components defined from the COMPONENT Array.
|
|
1406
|
-
def component_ary
|
|
1407
|
-
component.collect do |x|
|
|
1408
|
-
self.__send__(x)
|
|
1409
|
-
end
|
|
1410
|
-
end
|
|
1411
|
-
protected :component_ary
|
|
1412
|
-
|
|
1413
|
-
# == Args
|
|
1414
|
-
#
|
|
1415
|
-
# +components+::
|
|
1416
|
-
# Multiple Symbol arguments defined in Bundler::URI::HTTP.
|
|
1417
|
-
#
|
|
1418
|
-
# == Description
|
|
1419
|
-
#
|
|
1420
|
-
# Selects specified components from Bundler::URI.
|
|
1421
|
-
#
|
|
1422
|
-
# == Usage
|
|
1423
|
-
#
|
|
1424
|
-
# require 'bundler/vendor/uri/lib/uri'
|
|
1425
|
-
#
|
|
1426
|
-
# uri = Bundler::URI.parse('http://myuser:mypass@my.example.com/test.rbx')
|
|
1427
|
-
# uri.select(:userinfo, :host, :path)
|
|
1428
|
-
# # => ["myuser:mypass", "my.example.com", "/test.rbx"]
|
|
1429
|
-
#
|
|
1430
|
-
def select(*components)
|
|
1431
|
-
components.collect do |c|
|
|
1432
|
-
if component.include?(c)
|
|
1433
|
-
self.__send__(c)
|
|
1434
|
-
else
|
|
1435
|
-
raise ArgumentError,
|
|
1436
|
-
"expected of components of #{self.class} (#{self.class.component.join(', ')})"
|
|
1437
|
-
end
|
|
1438
|
-
end
|
|
1439
|
-
end
|
|
1440
|
-
|
|
1441
|
-
def inspect
|
|
1442
|
-
"#<#{self.class} #{self}>"
|
|
1443
|
-
end
|
|
1444
|
-
|
|
1445
|
-
#
|
|
1446
|
-
# == Args
|
|
1447
|
-
#
|
|
1448
|
-
# +v+::
|
|
1449
|
-
# Bundler::URI or String
|
|
1450
|
-
#
|
|
1451
|
-
# == Description
|
|
1452
|
-
#
|
|
1453
|
-
# Attempts to parse other Bundler::URI +oth+,
|
|
1454
|
-
# returns [parsed_oth, self].
|
|
1455
|
-
#
|
|
1456
|
-
# == Usage
|
|
1457
|
-
#
|
|
1458
|
-
# require 'bundler/vendor/uri/lib/uri'
|
|
1459
|
-
#
|
|
1460
|
-
# uri = Bundler::URI.parse("http://my.example.com")
|
|
1461
|
-
# uri.coerce("http://foo.com")
|
|
1462
|
-
# #=> [#<Bundler::URI::HTTP http://foo.com>, #<Bundler::URI::HTTP http://my.example.com>]
|
|
1463
|
-
#
|
|
1464
|
-
def coerce(oth)
|
|
1465
|
-
case oth
|
|
1466
|
-
when String
|
|
1467
|
-
oth = parser.parse(oth)
|
|
1468
|
-
else
|
|
1469
|
-
super
|
|
1470
|
-
end
|
|
1471
|
-
|
|
1472
|
-
return oth, self
|
|
1473
|
-
end
|
|
1474
|
-
|
|
1475
|
-
# Returns a proxy Bundler::URI.
|
|
1476
|
-
# The proxy Bundler::URI is obtained from environment variables such as http_proxy,
|
|
1477
|
-
# ftp_proxy, no_proxy, etc.
|
|
1478
|
-
# If there is no proper proxy, nil is returned.
|
|
1479
|
-
#
|
|
1480
|
-
# If the optional parameter +env+ is specified, it is used instead of ENV.
|
|
1481
|
-
#
|
|
1482
|
-
# Note that capitalized variables (HTTP_PROXY, FTP_PROXY, NO_PROXY, etc.)
|
|
1483
|
-
# are examined, too.
|
|
1484
|
-
#
|
|
1485
|
-
# But http_proxy and HTTP_PROXY is treated specially under CGI environment.
|
|
1486
|
-
# It's because HTTP_PROXY may be set by Proxy: header.
|
|
1487
|
-
# So HTTP_PROXY is not used.
|
|
1488
|
-
# http_proxy is not used too if the variable is case insensitive.
|
|
1489
|
-
# CGI_HTTP_PROXY can be used instead.
|
|
1490
|
-
def find_proxy(env=ENV)
|
|
1491
|
-
raise BadURIError, "relative Bundler::URI: #{self}" if self.relative?
|
|
1492
|
-
name = self.scheme.downcase + '_proxy'
|
|
1493
|
-
proxy_uri = nil
|
|
1494
|
-
if name == 'http_proxy' && env.include?('REQUEST_METHOD') # CGI?
|
|
1495
|
-
# HTTP_PROXY conflicts with *_proxy for proxy settings and
|
|
1496
|
-
# HTTP_* for header information in CGI.
|
|
1497
|
-
# So it should be careful to use it.
|
|
1498
|
-
pairs = env.reject {|k, v| /\Ahttp_proxy\z/i !~ k }
|
|
1499
|
-
case pairs.length
|
|
1500
|
-
when 0 # no proxy setting anyway.
|
|
1501
|
-
proxy_uri = nil
|
|
1502
|
-
when 1
|
|
1503
|
-
k, _ = pairs.shift
|
|
1504
|
-
if k == 'http_proxy' && env[k.upcase] == nil
|
|
1505
|
-
# http_proxy is safe to use because ENV is case sensitive.
|
|
1506
|
-
proxy_uri = env[name]
|
|
1507
|
-
else
|
|
1508
|
-
proxy_uri = nil
|
|
1509
|
-
end
|
|
1510
|
-
else # http_proxy is safe to use because ENV is case sensitive.
|
|
1511
|
-
proxy_uri = env.to_hash[name]
|
|
1512
|
-
end
|
|
1513
|
-
if !proxy_uri
|
|
1514
|
-
# Use CGI_HTTP_PROXY. cf. libwww-perl.
|
|
1515
|
-
proxy_uri = env["CGI_#{name.upcase}"]
|
|
1516
|
-
end
|
|
1517
|
-
elsif name == 'http_proxy'
|
|
1518
|
-
if RUBY_ENGINE == 'jruby' && p_addr = ENV_JAVA['http.proxyHost']
|
|
1519
|
-
p_port = ENV_JAVA['http.proxyPort']
|
|
1520
|
-
if p_user = ENV_JAVA['http.proxyUser']
|
|
1521
|
-
p_pass = ENV_JAVA['http.proxyPass']
|
|
1522
|
-
proxy_uri = "http://#{p_user}:#{p_pass}@#{p_addr}:#{p_port}"
|
|
1523
|
-
else
|
|
1524
|
-
proxy_uri = "http://#{p_addr}:#{p_port}"
|
|
1525
|
-
end
|
|
1526
|
-
else
|
|
1527
|
-
unless proxy_uri = env[name]
|
|
1528
|
-
if proxy_uri = env[name.upcase]
|
|
1529
|
-
warn 'The environment variable HTTP_PROXY is discouraged. Use http_proxy.', uplevel: 1
|
|
1530
|
-
end
|
|
1531
|
-
end
|
|
1532
|
-
end
|
|
1533
|
-
else
|
|
1534
|
-
proxy_uri = env[name] || env[name.upcase]
|
|
1535
|
-
end
|
|
1536
|
-
|
|
1537
|
-
if proxy_uri.nil? || proxy_uri.empty?
|
|
1538
|
-
return nil
|
|
1539
|
-
end
|
|
1540
|
-
|
|
1541
|
-
if self.hostname
|
|
1542
|
-
begin
|
|
1543
|
-
addr = IPSocket.getaddress(self.hostname)
|
|
1544
|
-
return nil if /\A127\.|\A::1\z/ =~ addr
|
|
1545
|
-
rescue SocketError
|
|
1546
|
-
end
|
|
1547
|
-
end
|
|
1548
|
-
|
|
1549
|
-
name = 'no_proxy'
|
|
1550
|
-
if no_proxy = env[name] || env[name.upcase]
|
|
1551
|
-
return nil unless Bundler::URI::Generic.use_proxy?(self.hostname, addr, self.port, no_proxy)
|
|
1552
|
-
end
|
|
1553
|
-
Bundler::URI.parse(proxy_uri)
|
|
1554
|
-
end
|
|
1555
|
-
|
|
1556
|
-
def self.use_proxy?(hostname, addr, port, no_proxy) # :nodoc:
|
|
1557
|
-
hostname = hostname.downcase
|
|
1558
|
-
dothostname = ".#{hostname}"
|
|
1559
|
-
no_proxy.scan(/([^:,\s]+)(?::(\d+))?/) {|p_host, p_port|
|
|
1560
|
-
if !p_port || port == p_port.to_i
|
|
1561
|
-
if p_host.start_with?('.')
|
|
1562
|
-
return false if hostname.end_with?(p_host.downcase)
|
|
1563
|
-
else
|
|
1564
|
-
return false if dothostname.end_with?(".#{p_host.downcase}")
|
|
1565
|
-
end
|
|
1566
|
-
if addr
|
|
1567
|
-
begin
|
|
1568
|
-
return false if IPAddr.new(p_host).include?(addr)
|
|
1569
|
-
rescue IPAddr::InvalidAddressError
|
|
1570
|
-
next
|
|
1571
|
-
end
|
|
1572
|
-
end
|
|
1573
|
-
end
|
|
1574
|
-
}
|
|
1575
|
-
true
|
|
1576
|
-
end
|
|
1577
|
-
end
|
|
1578
|
-
end
|