From a60f91102337dbbc0c51839c80939b70f888f50b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Mar 2023 19:01:29 +0000 Subject: [PATCH 1/3] build(deps): bump rack from 3.0.4.2 to 3.0.6.1 in /Library/Homebrew Bumps [rack](https://github.com/rack/rack) from 3.0.4.2 to 3.0.6.1. - [Release notes](https://github.com/rack/rack/releases) - [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md) - [Commits](https://github.com/rack/rack/compare/v3.0.4.2...v3.0.6.1) --- updated-dependencies: - dependency-name: rack dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Library/Homebrew/Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index b588a1cd64742..4b10fa2bee7e2 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -92,7 +92,7 @@ GEM method_source (~> 1.0) public_suffix (5.0.1) racc (1.6.2) - rack (3.0.4.2) + rack (3.0.6.1) rainbow (3.1.1) rbi (0.0.14) ast From 539d95d80533b25d2b6f54b7ca875f0ed1dd101a Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 13 Mar 2023 19:05:23 +0000 Subject: [PATCH 2/3] brew vendor-gems: commit updates. --- .../Homebrew/vendor/bundle/bundler/setup.rb | 2 +- .../lib/rack.rb | 1 + .../lib/rack/auth/abstract/handler.rb | 0 .../lib/rack/auth/abstract/request.rb | 0 .../lib/rack/auth/basic.rb | 0 .../lib/rack/auth/digest.rb | 0 .../lib/rack/auth/digest/md5.rb | 0 .../lib/rack/auth/digest/nonce.rb | 0 .../lib/rack/auth/digest/params.rb | 0 .../lib/rack/auth/digest/request.rb | 0 .../lib/rack/body_proxy.rb | 0 .../lib/rack/builder.rb | 0 .../lib/rack/cascade.rb | 0 .../lib/rack/chunked.rb | 0 .../lib/rack/common_logger.rb | 0 .../lib/rack/conditional_get.rb | 0 .../lib/rack/config.rb | 0 .../lib/rack/constants.rb | 2 + .../lib/rack/content_length.rb | 0 .../lib/rack/content_type.rb | 0 .../lib/rack/deflater.rb | 0 .../lib/rack/directory.rb | 0 .../lib/rack/etag.rb | 0 .../lib/rack/events.rb | 0 .../lib/rack/file.rb | 0 .../lib/rack/files.rb | 0 .../lib/rack/head.rb | 0 .../lib/rack/headers.rb | 0 .../lib/rack/lint.rb | 0 .../lib/rack/lock.rb | 0 .../lib/rack/logger.rb | 0 .../lib/rack/media_type.rb | 0 .../lib/rack/method_override.rb | 0 .../lib/rack/mime.rb | 0 .../lib/rack/mock.rb | 0 .../lib/rack/mock_request.rb | 0 .../lib/rack/mock_response.rb | 0 .../lib/rack/multipart.rb | 25 ++++++ .../lib/rack/multipart/generator.rb | 0 .../lib/rack/multipart/parser.rb | 0 .../lib/rack/multipart/uploaded_file.rb | 0 .../lib/rack/null_logger.rb | 0 .../lib/rack/query_parser.rb | 67 +++++++++----- .../lib/rack/recursive.rb | 0 .../lib/rack/reloader.rb | 0 .../lib/rack/request.rb | 88 +++++++++++++++---- .../lib/rack/response.rb | 0 .../lib/rack/rewindable_input.rb | 0 .../lib/rack/runtime.rb | 0 .../lib/rack/sendfile.rb | 0 .../lib/rack/show_exceptions.rb | 0 .../lib/rack/show_status.rb | 0 .../lib/rack/static.rb | 0 .../lib/rack/tempfile_reaper.rb | 0 .../lib/rack/urlmap.rb | 0 .../lib/rack/utils.rb | 0 .../lib/rack/version.rb | 2 +- 57 files changed, 148 insertions(+), 39 deletions(-) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack.rb (98%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/auth/abstract/handler.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/auth/abstract/request.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/auth/basic.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/auth/digest.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/auth/digest/md5.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/auth/digest/nonce.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/auth/digest/params.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/auth/digest/request.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/body_proxy.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/builder.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/cascade.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/chunked.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/common_logger.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/conditional_get.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/config.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/constants.rb (95%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/content_length.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/content_type.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/deflater.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/directory.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/etag.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/events.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/file.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/files.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/head.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/headers.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/lint.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/lock.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/logger.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/media_type.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/method_override.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/mime.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/mock.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/mock_request.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/mock_response.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/multipart.rb (69%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/multipart/generator.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/multipart/parser.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/multipart/uploaded_file.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/null_logger.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/query_parser.rb (83%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/recursive.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/reloader.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/request.rb (90%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/response.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/rewindable_input.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/runtime.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/sendfile.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/show_exceptions.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/show_status.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/static.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/tempfile_reaper.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/urlmap.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/utils.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rack-3.0.4.2 => rack-3.0.6.1}/lib/rack/version.rb (97%) diff --git a/Library/Homebrew/vendor/bundle/bundler/setup.rb b/Library/Homebrew/vendor/bundle/bundler/setup.rb index 3d822842b430f..aa0bf4eedeb91 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -83,7 +83,7 @@ def self.extension_api_version $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/patchelf-1.4.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/plist-3.7.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/pry-0.14.2/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rack-3.0.4.2/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rack-3.0.6.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/unparser-0.6.4/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rbi-0.0.14/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/universal-darwin-21/#{Gem.extension_api_version}/rdiscount-2.2.7") diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack.rb similarity index 98% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack.rb index 5b87ea1bc416d..b37c00cdee674 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack.rb @@ -41,6 +41,7 @@ module Rack autoload :MethodOverride, "rack/method_override" autoload :Mime, "rack/mime" autoload :NullLogger, "rack/null_logger" + autoload :QueryParser, "rack/query_parser" autoload :Recursive, "rack/recursive" autoload :Reloader, "rack/reloader" autoload :RewindableInput, "rack/rewindable_input" diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/auth/abstract/handler.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/auth/abstract/handler.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/auth/abstract/handler.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/auth/abstract/handler.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/auth/abstract/request.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/auth/abstract/request.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/auth/abstract/request.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/auth/abstract/request.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/auth/basic.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/auth/basic.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/auth/basic.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/auth/basic.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/auth/digest.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/auth/digest.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/auth/digest.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/auth/digest.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/auth/digest/md5.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/auth/digest/md5.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/auth/digest/md5.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/auth/digest/md5.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/auth/digest/nonce.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/auth/digest/nonce.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/auth/digest/nonce.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/auth/digest/nonce.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/auth/digest/params.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/auth/digest/params.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/auth/digest/params.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/auth/digest/params.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/auth/digest/request.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/auth/digest/request.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/auth/digest/request.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/auth/digest/request.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/body_proxy.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/body_proxy.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/body_proxy.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/body_proxy.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/builder.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/builder.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/builder.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/builder.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/cascade.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/cascade.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/cascade.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/cascade.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/chunked.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/chunked.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/chunked.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/chunked.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/common_logger.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/common_logger.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/common_logger.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/common_logger.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/conditional_get.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/conditional_get.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/conditional_get.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/conditional_get.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/config.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/config.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/config.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/config.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/constants.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/constants.rb similarity index 95% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/constants.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/constants.rb index 13365935b1b5b..5b0c181e5b987 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/constants.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/constants.rb @@ -54,11 +54,13 @@ module Rack RACK_RESPONSE_FINISHED = 'rack.response_finished' RACK_REQUEST_FORM_INPUT = 'rack.request.form_input' RACK_REQUEST_FORM_HASH = 'rack.request.form_hash' + RACK_REQUEST_FORM_PAIRS = 'rack.request.form_pairs' RACK_REQUEST_FORM_VARS = 'rack.request.form_vars' RACK_REQUEST_FORM_ERROR = 'rack.request.form_error' RACK_REQUEST_COOKIE_HASH = 'rack.request.cookie_hash' RACK_REQUEST_COOKIE_STRING = 'rack.request.cookie_string' RACK_REQUEST_QUERY_HASH = 'rack.request.query_hash' + RACK_REQUEST_QUERY_PAIRS = 'rack.request.query_pairs' RACK_REQUEST_QUERY_STRING = 'rack.request.query_string' RACK_METHODOVERRIDE_ORIGINAL_METHOD = 'rack.methodoverride.original_method' end diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/content_length.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/content_length.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/content_length.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/content_length.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/content_type.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/content_type.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/content_type.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/content_type.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/deflater.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/deflater.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/deflater.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/deflater.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/directory.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/directory.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/directory.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/directory.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/etag.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/etag.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/etag.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/etag.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/events.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/events.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/events.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/events.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/file.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/file.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/file.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/file.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/files.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/files.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/files.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/files.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/head.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/head.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/head.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/head.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/headers.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/headers.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/headers.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/headers.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/lint.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/lint.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/lint.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/lint.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/lock.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/lock.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/lock.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/lock.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/logger.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/logger.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/logger.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/logger.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/media_type.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/media_type.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/media_type.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/media_type.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/method_override.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/method_override.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/method_override.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/method_override.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/mime.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/mime.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/mime.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/mime.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/mock.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/mock.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/mock.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/mock.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/mock_request.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/mock_request.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/mock_request.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/mock_request.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/mock_response.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/mock_response.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/mock_response.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/mock_response.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/multipart.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/multipart.rb similarity index 69% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/multipart.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/multipart.rb index 3347662acc3fb..5cae8f6383d58 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/multipart.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/multipart.rb @@ -13,6 +13,31 @@ module Rack module Multipart MULTIPART_BOUNDARY = "AaB03x" + # Accumulator for multipart form data, conforming to the QueryParser API. + # In future, the Parser could return the pair list directly, but that would + # change its API. + class ParamList # :nodoc: + def self.make_params + new + end + + def self.normalize_params(params, key, value) + params << [key, value] + end + + def initialize + @pairs = [] + end + + def <<(pair) + @pairs << pair + end + + def to_params_hash + @pairs + end + end + class << self def parse_multipart(env, params = Rack::Utils.default_query_parser) io = env[RACK_INPUT] diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/multipart/generator.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/multipart/generator.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/multipart/generator.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/multipart/generator.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/multipart/parser.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/multipart/parser.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/multipart/parser.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/multipart/parser.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/multipart/uploaded_file.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/multipart/uploaded_file.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/multipart/uploaded_file.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/multipart/uploaded_file.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/null_logger.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/null_logger.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/null_logger.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/null_logger.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/query_parser.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/query_parser.rb similarity index 83% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/query_parser.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/query_parser.rb index 3077fb1fdb9c5..c465e57ad1ff1 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/query_parser.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/query_parser.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require 'uri' + module Rack class QueryParser DEFAULT_SEP = /[&] */n @@ -37,19 +39,42 @@ def initialize(params_class, _key_space_limit=(not_deprecated = true; nil), para @param_depth_limit = param_depth_limit end - # Stolen from Mongrel, with some small modifications: + # Originally stolen from Mongrel, now with some modifications: # Parses a query string by breaking it up at the '&'. You can also use this # to parse cookies by changing the characters used in the second parameter # (which defaults to '&'). - def parse_query(qs, separator = nil, &unescaper) - unescaper ||= method(:unescape) + # + # Returns an array of 2-element arrays, where the first element is the + # key and the second element is the value. + def split_query(qs, separator = nil, &unescaper) + pairs = [] + + if qs && !qs.empty? + unescaper ||= method(:unescape) + + qs.split(separator ? (COMMON_SEP[separator] || /[#{separator}] */n) : DEFAULT_SEP).each do |p| + next if p.empty? + pair = p.split('=', 2).map!(&unescaper) + pair << nil if pair.length == 1 + pairs << pair + end + end - params = make_params + pairs + rescue ArgumentError => e + raise InvalidParameterError, e.message, e.backtrace + end - (qs || '').split(separator ? (COMMON_SEP[separator] || /[#{separator}] */n) : DEFAULT_SEP).each do |p| - next if p.empty? - k, v = p.split('=', 2).map!(&unescaper) + # Parses a query string by breaking it up at the '&'. You can also use this + # to parse cookies by changing the characters used in the second parameter + # (which defaults to '&'). + # + # Returns a hash where each value is a string (when a key only appears once) + # or an array of strings (when a key appears more than once). + def parse_query(qs, separator = nil, &unescaper) + params = make_params + split_query(qs, separator, &unescaper).each do |k, v| if cur = params[k] if cur.class == Array params[k] << v @@ -61,7 +86,7 @@ def parse_query(qs, separator = nil, &unescaper) end end - return params.to_h + params.to_h end # parse_nested_query expands a query string into structural types. Supported @@ -72,17 +97,11 @@ def parse_query(qs, separator = nil, &unescaper) def parse_nested_query(qs, separator = nil) params = make_params - unless qs.nil? || qs.empty? - (qs || '').split(separator ? (COMMON_SEP[separator] || /[#{separator}] */n) : DEFAULT_SEP).each do |p| - k, v = p.split('=', 2).map! { |s| unescape(s) } - - _normalize_params(params, k, v, 0) - end + split_query(qs, separator).each do |k, v| + _normalize_params(params, k, v, 0) end - return params.to_h - rescue ArgumentError => e - raise InvalidParameterError, e.message, e.backtrace + params.to_h end # normalize_params recursively expands parameters into structural types. If @@ -94,6 +113,14 @@ def normalize_params(params, name, v, _depth=nil) _normalize_params(params, name, v, 0) end + # This value is used by default when a parameter is missing (nil). This + # usually happens when a parameter is specified without an `=value` part. + # The default value is an empty string, but this can be overridden by + # subclasses. + def missing_value + String.new + end + private def _normalize_params(params, name, v, depth) raise ParamsTooDeepError if depth >= param_depth_limit @@ -128,7 +155,7 @@ def normalize_params(params, name, v, _depth=nil) return if k.empty? - v ||= String.new + v ||= missing_value if after == '' if k == '[]' && depth != 0 @@ -190,8 +217,8 @@ def params_hash_has_key?(hash, key) true end - def unescape(s) - Utils.unescape(s) + def unescape(string, encoding = Encoding::UTF_8) + URI.decode_www_form_component(string, encoding) end class Params diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/recursive.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/recursive.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/recursive.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/recursive.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/reloader.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/reloader.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/reloader.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/reloader.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/request.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/request.rb similarity index 90% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/request.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/request.rb index 40922a219418e..8942167433b14 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/request.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/request.rb @@ -483,11 +483,22 @@ def parseable_data? # Returns the data received in the query string. def GET if get_header(RACK_REQUEST_QUERY_STRING) == query_string - get_header(RACK_REQUEST_QUERY_HASH) + if query_hash = get_header(RACK_REQUEST_QUERY_HASH) + return query_hash + end + end + + set_header(RACK_REQUEST_QUERY_HASH, expand_params(query_param_list)) + end + + def query_param_list + if get_header(RACK_REQUEST_QUERY_STRING) == query_string + get_header(RACK_REQUEST_QUERY_PAIRS) else - query_hash = parse_query(query_string, '&') - set_header(RACK_REQUEST_QUERY_STRING, query_string) - set_header(RACK_REQUEST_QUERY_HASH, query_hash) + query_pairs = split_query(query_string, '&') + set_header RACK_REQUEST_QUERY_STRING, query_string + set_header RACK_REQUEST_QUERY_HASH, nil + set_header(RACK_REQUEST_QUERY_PAIRS, query_pairs) end end @@ -496,32 +507,53 @@ def GET # This method support both application/x-www-form-urlencoded and # multipart/form-data. def POST + if get_header(RACK_REQUEST_FORM_INPUT).equal?(get_header(RACK_INPUT)) + if form_hash = get_header(RACK_REQUEST_FORM_HASH) + return form_hash + end + end + + set_header(RACK_REQUEST_FORM_HASH, expand_params(body_param_list)) + end + + def body_param_list if error = get_header(RACK_REQUEST_FORM_ERROR) raise error.class, error.message, cause: error.cause end begin - if get_header(RACK_INPUT).nil? - raise "Missing rack.input" - elsif get_header(RACK_REQUEST_FORM_INPUT) == get_header(RACK_INPUT) - get_header(RACK_REQUEST_FORM_HASH) + rack_input = get_header(RACK_INPUT) + + form_pairs = nil + + # If the form data has already been memoized from the same + # input: + if get_header(RACK_REQUEST_FORM_INPUT).equal?(rack_input) + if form_pairs = get_header(RACK_REQUEST_FORM_PAIRS) + return form_pairs + end + end + + if rack_input.nil? + form_pairs = [] elsif form_data? || parseable_data? - unless set_header(RACK_REQUEST_FORM_HASH, parse_multipart) - form_vars = get_header(RACK_INPUT).read + unless form_pairs = Rack::Multipart.extract_multipart(self, Rack::Multipart::ParamList) + form_vars = rack_input.read # Fix for Safari Ajax postings that always append \0 # form_vars.sub!(/\0\z/, '') # performance replacement: form_vars.slice!(-1) if form_vars.end_with?("\0") set_header RACK_REQUEST_FORM_VARS, form_vars - set_header RACK_REQUEST_FORM_HASH, parse_query(form_vars, '&') + form_pairs = split_query(form_vars, '&') end - set_header RACK_REQUEST_FORM_INPUT, get_header(RACK_INPUT) - get_header RACK_REQUEST_FORM_HASH else - set_header RACK_REQUEST_FORM_INPUT, get_header(RACK_INPUT) - set_header(RACK_REQUEST_FORM_HASH, {}) + form_pairs = [] end + + set_header RACK_REQUEST_FORM_INPUT, rack_input + set_header RACK_REQUEST_FORM_HASH, nil + set_header(RACK_REQUEST_FORM_PAIRS, form_pairs) rescue => error set_header(RACK_REQUEST_FORM_ERROR, error) raise @@ -634,8 +666,8 @@ def wrap_ipv6(host) end def parse_http_accept_header(header) - header.to_s.split(/\s*,\s*/).map do |part| - attribute, parameters = part.split(/\s*;\s*/, 2) + header.to_s.split(",").each(&:strip!).map do |part| + attribute, parameters = part.split(";", 2).each(&:strip!) quality = 1.0 if parameters and /\Aq=([\d.]+)/ =~ parameters quality = $1.to_f @@ -661,6 +693,28 @@ def parse_multipart Rack::Multipart.extract_multipart(self, query_parser) end + def split_query(query, d = '&') + query_parser = query_parser() + unless query_parser.respond_to?(:split_query) + query_parser = Utils.default_query_parser + unless query_parser.respond_to?(:split_query) + query_parser = QueryParser.make_default(0) + end + end + + query_parser.split_query(query, d) + end + + def expand_params(pairs, query_parser = query_parser()) + params = query_parser.make_params + + pairs.each do |key, value| + query_parser.normalize_params(params, key, value) + end + + params.to_params_hash + end + def split_header(value) value ? value.strip.split(/[,\s]+/) : [] end diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/response.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/response.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/response.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/response.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/rewindable_input.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/rewindable_input.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/rewindable_input.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/rewindable_input.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/runtime.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/runtime.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/runtime.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/runtime.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/sendfile.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/sendfile.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/sendfile.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/sendfile.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/show_exceptions.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/show_exceptions.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/show_exceptions.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/show_exceptions.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/show_status.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/show_status.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/show_status.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/show_status.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/static.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/static.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/static.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/static.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/tempfile_reaper.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/tempfile_reaper.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/tempfile_reaper.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/tempfile_reaper.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/urlmap.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/urlmap.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/urlmap.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/urlmap.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/utils.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/utils.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/utils.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/utils.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/version.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/version.rb similarity index 97% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/version.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/version.rb index 998be6f99c23b..68337d361b5e6 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.4.2/lib/rack/version.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.6.1/lib/rack/version.rb @@ -25,7 +25,7 @@ def self.version VERSION end - RELEASE = "3.0.4.2" + RELEASE = "3.0.6.1" # Return the Rack release as a dotted string. def self.release From 1a7c5dbf1798a8dd27191048a031028f4b592f62 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 13 Mar 2023 19:12:11 +0000 Subject: [PATCH 3/3] Update RBI files for rack. Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow. --- .../{rack@3.0.4.2.rbi => rack@3.0.6.1.rbi} | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) rename Library/Homebrew/sorbet/rbi/gems/{rack@3.0.4.2.rbi => rack@3.0.6.1.rbi} (98%) diff --git a/Library/Homebrew/sorbet/rbi/gems/rack@3.0.4.2.rbi b/Library/Homebrew/sorbet/rbi/gems/rack@3.0.6.1.rbi similarity index 98% rename from Library/Homebrew/sorbet/rbi/gems/rack@3.0.4.2.rbi rename to Library/Homebrew/sorbet/rbi/gems/rack@3.0.6.1.rbi index 578f28528a99d..d3b5691a7f891 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rack@3.0.4.2.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rack@3.0.6.1.rbi @@ -695,6 +695,18 @@ Rack::Multipart::MULTIPART_CONTENT_TYPE = T.let(T.unsafe(nil), Regexp) class Rack::Multipart::MultipartPartLimitError < ::Errno::EMFILE; end class Rack::Multipart::MultipartTotalPartLimitError < ::StandardError; end +class Rack::Multipart::ParamList + def initialize; end + + def <<(pair); end + def to_params_hash; end + + class << self + def make_params; end + def normalize_params(params, key, value); end + end +end + class Rack::Multipart::Parser def initialize(boundary, tempfile, bufsize, query_parser); end @@ -846,18 +858,20 @@ class Rack::QueryParser def initialize(params_class, _key_space_limit = T.unsafe(nil), param_depth_limit); end def make_params; end + def missing_value; end def new_depth_limit(param_depth_limit); end def normalize_params(params, name, v, _depth = T.unsafe(nil)); end def param_depth_limit; end def parse_nested_query(qs, separator = T.unsafe(nil)); end def parse_query(qs, separator = T.unsafe(nil), &unescaper); end + def split_query(qs, separator = T.unsafe(nil), &unescaper); end private def _normalize_params(params, name, v, depth); end def params_hash_has_key?(hash, key); end def params_hash_type?(obj); end - def unescape(s); end + def unescape(string, encoding = T.unsafe(nil)); end class << self def make_default(_key_space_limit = T.unsafe(nil), param_depth_limit); end @@ -894,8 +908,10 @@ Rack::RACK_REQUEST_COOKIE_STRING = T.let(T.unsafe(nil), String) Rack::RACK_REQUEST_FORM_ERROR = T.let(T.unsafe(nil), String) Rack::RACK_REQUEST_FORM_HASH = T.let(T.unsafe(nil), String) Rack::RACK_REQUEST_FORM_INPUT = T.let(T.unsafe(nil), String) +Rack::RACK_REQUEST_FORM_PAIRS = T.let(T.unsafe(nil), String) Rack::RACK_REQUEST_FORM_VARS = T.let(T.unsafe(nil), String) Rack::RACK_REQUEST_QUERY_HASH = T.let(T.unsafe(nil), String) +Rack::RACK_REQUEST_QUERY_PAIRS = T.let(T.unsafe(nil), String) Rack::RACK_REQUEST_QUERY_STRING = T.let(T.unsafe(nil), String) Rack::RACK_RESPONSE_FINISHED = T.let(T.unsafe(nil), String) Rack::RACK_SESSION = T.let(T.unsafe(nil), String) @@ -983,6 +999,7 @@ module Rack::Request::Helpers def authority; end def base_url; end def body; end + def body_param_list; end def content_charset; end def content_length; end def content_type; end @@ -1015,6 +1032,7 @@ module Rack::Request::Helpers def port; end def post?; end def put?; end + def query_param_list; end def query_string; end def referer; end def referrer; end @@ -1041,6 +1059,7 @@ module Rack::Request::Helpers def allowed_scheme(header); end def default_session; end + def expand_params(pairs, query_parser = T.unsafe(nil)); end def forwarded_priority; end def forwarded_scheme; end def get_http_forwarded(token); end @@ -1051,6 +1070,7 @@ module Rack::Request::Helpers def reject_trusted_ip_addresses(ip_addresses); end def split_authority(authority); end def split_header(value); end + def split_query(query, d = T.unsafe(nil)); end def wrap_ipv6(host); end def x_forwarded_proto_priority; end end