From ab69719957ce8fa175b0b0426bda8ebceb592bda Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 27 Jan 2023 18:04:08 +0000 Subject: [PATCH 1/3] build(deps): bump webrick from 1.7.0 to 1.8.1 in /Library/Homebrew Bumps [webrick](https://github.com/ruby/webrick) from 1.7.0 to 1.8.1. - [Release notes](https://github.com/ruby/webrick/releases) - [Commits](https://github.com/ruby/webrick/compare/v1.7.0...v1.8.1) --- updated-dependencies: - dependency-name: webrick dependency-type: indirect update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Library/Homebrew/Gemfile.lock | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index e307d39754..f2ac5f9d4b 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -209,10 +209,9 @@ GEM parser (>= 3.1.0) uri_template (0.7.0) warning (1.3.0) - webrick (1.7.0) + webrick (1.8.1) webrobots (0.1.2) - yard (0.9.28) - webrick (~> 1.7.0) + yard (0.9.26) yard-sorbet (0.6.1) sorbet-runtime (>= 0.5) yard (>= 0.9) From f9facbf2b688fca4581a050bf523baa7393811ed Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Fri, 27 Jan 2023 18:08:11 +0000 Subject: [PATCH 2/3] brew vendor-gems: commit updates. --- .../Homebrew/vendor/bundle/bundler/setup.rb | 4 +- .../lib/webrick.rb | 0 .../lib/webrick/accesslog.rb | 2 +- .../lib/webrick/cgi.rb | 2 +- .../lib/webrick/compat.rb | 2 +- .../lib/webrick/config.rb | 2 +- .../lib/webrick/cookie.rb | 4 +- .../lib/webrick/htmlutils.rb | 2 +- .../lib/webrick/httpauth.rb | 2 +- .../lib/webrick/httpauth/authenticator.rb | 2 +- .../lib/webrick/httpauth/basicauth.rb | 2 +- .../lib/webrick/httpauth/digestauth.rb | 2 +- .../lib/webrick/httpauth/htdigest.rb | 2 +- .../lib/webrick/httpauth/htgroup.rb | 2 +- .../lib/webrick/httpauth/htpasswd.rb | 2 +- .../lib/webrick/httpauth/userdb.rb | 2 +- .../lib/webrick/httpproxy.rb | 2 +- .../lib/webrick/httprequest.rb | 14 ++++-- .../lib/webrick/httpresponse.rb | 50 ++++++++++++++----- .../lib/webrick/https.rb | 2 +- .../lib/webrick/httpserver.rb | 4 +- .../lib/webrick/httpservlet.rb | 2 +- .../lib/webrick/httpservlet/abstract.rb | 2 +- .../lib/webrick/httpservlet/cgi_runner.rb | 4 +- .../lib/webrick/httpservlet/cgihandler.rb | 2 +- .../lib/webrick/httpservlet/erbhandler.rb | 2 +- .../lib/webrick/httpservlet/filehandler.rb | 10 ++-- .../lib/webrick/httpservlet/prochandler.rb | 3 +- .../lib/webrick/httpstatus.rb | 2 +- .../lib/webrick/httputils.rb | 19 +++++-- .../lib/webrick/httpversion.rb | 2 +- .../lib/webrick/log.rb | 14 +++--- .../lib/webrick/server.rb | 4 +- .../lib/webrick/ssl.rb | 30 ++++++----- .../lib/webrick/utils.rb | 4 +- .../lib/webrick/version.rb | 4 +- 36 files changed, 127 insertions(+), 83 deletions(-) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/accesslog.rb (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/cgi.rb (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/compat.rb (96%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/config.rb (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/cookie.rb (98%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/htmlutils.rb (95%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httpauth.rb (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httpauth/authenticator.rb (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httpauth/basicauth.rb (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httpauth/digestauth.rb (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httpauth/htdigest.rb (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httpauth/htgroup.rb (98%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httpauth/htpasswd.rb (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httpauth/userdb.rb (97%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httpproxy.rb (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httprequest.rb (98%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httpresponse.rb (92%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/https.rb (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httpserver.rb (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httpservlet.rb (95%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httpservlet/abstract.rb (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httpservlet/cgi_runner.rb (95%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httpservlet/cgihandler.rb (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httpservlet/erbhandler.rb (98%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httpservlet/filehandler.rb (98%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httpservlet/prochandler.rb (94%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httpstatus.rb (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httputils.rb (96%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/httpversion.rb (98%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/log.rb (90%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/server.rb (98%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/ssl.rb (90%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/utils.rb (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{webrick-1.7.0 => webrick-1.8.1}/lib/webrick/version.rb (86%) diff --git a/Library/Homebrew/vendor/bundle/bundler/setup.rb b/Library/Homebrew/vendor/bundle/bundler/setup.rb index 01fa40ae12..c57b569f89 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -69,7 +69,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/racc-1.6.2/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/nokogiri-1.13.10-x86_64-darwin/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubyntlm-0.6.3/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/webrick-1.7.0/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/webrick-1.8.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/webrobots-0.1.2/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/mechanize-2.8.5/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/method_source-1.0.0/lib") @@ -119,7 +119,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-and-runtime-0.5.10461/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/thor-1.2.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/spoom-1.1.11/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/yard-0.9.28/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/yard-0.9.26/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/yard-sorbet-0.6.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/tapioca-0.7.3/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/warning-1.3.0/lib") diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/accesslog.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/accesslog.rb similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/accesslog.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/accesslog.rb index e4849637f3..fccfd65334 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/accesslog.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/accesslog.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true #-- # accesslog.rb -- Access log handling utilities # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/cgi.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/cgi.rb similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/cgi.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/cgi.rb index bb0ae2fc84..f22480b86b 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/cgi.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/cgi.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # cgi.rb -- Yet another CGI library # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/compat.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/compat.rb similarity index 96% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/compat.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/compat.rb index c497a1933c..842da1ebbc 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/compat.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/compat.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # compat.rb -- cross platform compatibility # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/config.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/config.rb similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/config.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/config.rb index 9f2ab44f49..d67375c816 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/config.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/config.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # config.rb -- Default configurations. # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/cookie.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/cookie.rb similarity index 98% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/cookie.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/cookie.rb index 5fd3bfb228..7b187822a2 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/cookie.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/cookie.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # cookie.rb -- Cookie class # @@ -92,7 +92,7 @@ module WEBrick # The cookie string suitable for use in an HTTP header def to_s - ret = "" + ret = +"" ret << @name << "=" << @value ret << "; " << "Version=" << @version.to_s if @version > 0 ret << "; " << "Domain=" << @domain if @domain diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/htmlutils.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/htmlutils.rb similarity index 95% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/htmlutils.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/htmlutils.rb index ed9f4ac0d3..7ff0bde27f 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/htmlutils.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/htmlutils.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true #-- # htmlutils.rb -- HTMLUtils Module # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth.rb similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth.rb index f8bf09a6f1..4f5321c882 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # httpauth.rb -- HTTP access authentication # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/authenticator.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/authenticator.rb similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/authenticator.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/authenticator.rb index 8f0eaa3aca..a6ee28de1a 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/authenticator.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/authenticator.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true #-- # httpauth/authenticator.rb -- Authenticator mix-in module. # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/basicauth.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/basicauth.rb similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/basicauth.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/basicauth.rb index 7d0a9cfc8f..cc8137aff7 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/basicauth.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/basicauth.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # httpauth/basicauth.rb -- HTTP basic access authentication # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/digestauth.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/digestauth.rb similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/digestauth.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/digestauth.rb index 3cf12899d2..25ce8ba080 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/digestauth.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/digestauth.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # httpauth/digestauth.rb -- HTTP digest access authentication # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/htdigest.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/htdigest.rb similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/htdigest.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/htdigest.rb index 93b18e2c75..c7e853b775 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/htdigest.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/htdigest.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # httpauth/htdigest.rb -- Apache compatible htdigest file # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/htgroup.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/htgroup.rb similarity index 98% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/htgroup.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/htgroup.rb index e06c441b18..108c9d0ba6 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/htgroup.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/htgroup.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # httpauth/htgroup.rb -- Apache compatible htgroup file # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/htpasswd.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/htpasswd.rb similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/htpasswd.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/htpasswd.rb index abca30532e..9a48e57d16 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/htpasswd.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/htpasswd.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # httpauth/htpasswd -- Apache compatible htpasswd file # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/userdb.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/userdb.rb similarity index 97% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/userdb.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/userdb.rb index 7a17715cdf..0d0f72b1f0 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpauth/userdb.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpauth/userdb.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true #-- # httpauth/userdb.rb -- UserDB mix-in module. # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpproxy.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpproxy.rb similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpproxy.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpproxy.rb index 7607c3df88..196682ec2d 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpproxy.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpproxy.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # httpproxy.rb -- HTTPProxy Class # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httprequest.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httprequest.rb similarity index 98% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httprequest.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httprequest.rb index d34eac7ecf..680ac65af2 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httprequest.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httprequest.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # httprequest.rb -- HTTPRequest Class # @@ -171,7 +171,7 @@ module WEBrick @accept_charset = [] @accept_encoding = [] @accept_language = [] - @body = "" + @body = +"" @addr = @peeraddr = nil @attributes = {} @@ -491,8 +491,7 @@ module WEBrick if @forwarded_host host, port = @forwarded_host, @forwarded_port elsif self["host"] - pattern = /\A(#{URI::REGEXP::PATTERN::HOST})(?::(\d+))?\z/n - host, port = *self['host'].scan(pattern)[0] + host, port = parse_host_request_line(self["host"]) elsif @addr.size > 0 host, port = @addr[2], @addr[1] else @@ -504,6 +503,11 @@ module WEBrick return URI::parse(uri.to_s) end + def parse_host_request_line(host) + pattern = /\A(#{URI::REGEXP::PATTERN::HOST})(?::(\d+))?\z/no + host.scan(pattern)[0] + end + def read_body(socket, block) return unless socket if tc = self['transfer-encoding'] @@ -522,7 +526,7 @@ module WEBrick if @remaining_size > 0 && @socket.eof? raise HTTPStatus::BadRequest, "invalid body size." end - elsif BODY_CONTAINABLE_METHODS.member?(@request_method) && !@socket.eof + elsif BODY_CONTAINABLE_METHODS.member?(@request_method) raise HTTPStatus::LengthRequired end return @body diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpresponse.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpresponse.rb similarity index 92% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpresponse.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpresponse.rb index ba4494ab74..dde0261da0 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpresponse.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpresponse.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # httpresponse.rb -- HTTPResponse Class # @@ -105,6 +105,11 @@ module WEBrick attr_reader :sent_size + ## + # Set the response body proc as an streaming/upgrade response. + + attr_accessor :upgrade + ## # Creates a new HTTP response object. WEBrick::Config::HTTP is the # default configuration. @@ -117,7 +122,7 @@ module WEBrick @status = HTTPStatus::RC_OK @reason_phrase = nil @http_version = HTTPVersion::convert(@config[:HTTPVersion]) - @body = '' + @body = +"" @keep_alive = true @cookies = [] @request_method = nil @@ -217,6 +222,16 @@ module WEBrick @keep_alive end + ## + # Sets the response to be a streaming/upgrade response. + # This will disable keep-alive and chunked transfer encoding. + + def upgrade!(protocol) + @upgrade = protocol + @keep_alive = false + @chunked = false + end + ## # Sends the response on +socket+ @@ -242,6 +257,14 @@ module WEBrick @header['server'] ||= @config[:ServerSoftware] @header['date'] ||= Time.now.httpdate + if @upgrade + @header['connection'] = 'upgrade' + @header['upgrade'] = @upgrade + @keep_alive = false + + return + end + # HTTP/0.9 features if @request_http_version < "1.0" @http_version = HTTPVersion.new("0.9") @@ -268,11 +291,10 @@ module WEBrick elsif %r{^multipart/byteranges} =~ @header['content-type'] @header.delete('content-length') elsif @header['content-length'].nil? - if @body.respond_to? :readpartial - elsif @body.respond_to? :call - make_body_tempfile + if @body.respond_to?(:bytesize) + @header['content-length'] = @body.bytesize.to_s else - @header['content-length'] = (@body ? @body.bytesize : 0).to_s + @header['connection'] = 'close' end end @@ -332,7 +354,7 @@ module WEBrick def send_header(socket) # :nodoc: if @http_version.major > 0 - data = status_line() + data = status_line().dup @header.each{|key, value| tmp = key.gsub(/\bwww|^te$|\b\w/){ $&.upcase } data << "#{tmp}: #{check_header(value)}" << CRLF @@ -419,7 +441,7 @@ module WEBrick # :stopdoc: def error_body(backtrace, ex, host, port) - @body = '' + @body = +"" @body << <<-_end_of_html_ @@ -453,11 +475,11 @@ module WEBrick if @request_method == "HEAD" # do nothing elsif chunked? - buf = '' + buf = +'' begin @body.readpartial(@buffer_size, buf) size = buf.bytesize - data = "#{size.to_s(16)}#{CRLF}#{buf}#{CRLF}" + data = +"#{size.to_s(16)}#{CRLF}#{buf}#{CRLF}" socket.write(data) data.clear @sent_size += size @@ -517,14 +539,16 @@ module WEBrick @body.call(ChunkedWrapper.new(socket, self)) socket.write("0#{CRLF}#{CRLF}") else - size = @header['content-length'].to_i if @bodytempfile @bodytempfile.rewind IO.copy_stream(@bodytempfile, socket) else @body.call(socket) end - @sent_size = size + + if content_length = @header['content-length'] + @sent_size = content_length.to_i + end end end @@ -539,7 +563,7 @@ module WEBrick socket = @socket @resp.instance_eval { size = buf.bytesize - data = "#{size.to_s(16)}#{CRLF}#{buf}#{CRLF}" + data = +"#{size.to_s(16)}#{CRLF}#{buf}#{CRLF}" socket.write(data) data.clear @sent_size += size diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/https.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/https.rb similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/https.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/https.rb index b0a49bc40b..7f00b3068d 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/https.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/https.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # https.rb -- SSL/TLS enhancement for HTTPServer # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpserver.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpserver.rb similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpserver.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpserver.rb index e85d059319..0d261bf00c 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpserver.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpserver.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # httpserver.rb -- HTTPServer Class # @@ -285,7 +285,7 @@ module WEBrick end def normalize(dir) - ret = dir ? dir.dup : "" + ret = dir ? dir.dup : +"" ret.sub!(%r|/+\z|, "") ret end diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet.rb similarity index 95% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet.rb index da49a1405b..4cb1822cd3 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # httpservlet.rb -- HTTPServlet Utility File # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet/abstract.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet/abstract.rb similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet/abstract.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet/abstract.rb index bccb091861..6fae4de919 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet/abstract.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet/abstract.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # httpservlet.rb -- HTTPServlet Module # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet/cgi_runner.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet/cgi_runner.rb similarity index 95% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet/cgi_runner.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet/cgi_runner.rb index 0398c16749..b0948ae39b 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet/cgi_runner.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet/cgi_runner.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # cgi_runner.rb -- CGI launcher. # @@ -10,7 +10,7 @@ # $IPR: cgi_runner.rb,v 1.9 2002/09/25 11:33:15 gotoyuzo Exp $ def sysread(io, size) - buf = "" + buf = +"" while size > 0 tmp = io.sysread(size) buf << tmp diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet/cgihandler.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet/cgihandler.rb similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet/cgihandler.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet/cgihandler.rb index 4457770b7a..450aa3806a 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet/cgihandler.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet/cgihandler.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # cgihandler.rb -- CGIHandler Class # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet/erbhandler.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet/erbhandler.rb similarity index 98% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet/erbhandler.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet/erbhandler.rb index cd09e5f216..3b232f7f5b 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet/erbhandler.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet/erbhandler.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # erbhandler.rb -- ERBHandler Class # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet/filehandler.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet/filehandler.rb similarity index 98% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet/filehandler.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet/filehandler.rb index 010df0e918..7ab88bca13 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet/filehandler.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet/filehandler.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # filehandler.rb -- FileHandler Module # @@ -481,9 +481,9 @@ module WEBrick elsif !namewidth or (namewidth = namewidth.to_i) < 2 namewidth = 25 end - query = query.inject('') {|s, (k, v)| s << '&' << HTMLUtils::escape("#{k}=#{v}")} + query = query.inject('') {|s, (k, v)| s << '&' << HTMLUtils::escape("#{k}=#{v}")}.dup - type = "text/html" + type = +"text/html" case enc = Encoding.find('filesystem') when Encoding::US_ASCII, Encoding::ASCII_8BIT else @@ -492,7 +492,7 @@ module WEBrick res['content-type'] = type title = "Index of #{HTMLUtils::escape(req.path)}" - res.body = <<-_end_of_html_ + res.body = +<<-_end_of_html_ @@ -528,7 +528,7 @@ module WEBrick else dname = name end - s = "#{HTMLUtils::escape(dname)}" + s = +"#{HTMLUtils::escape(dname)}" s << "" << (time ? time.strftime("%Y/%m/%d %H:%M") : "") << "" s << "" << (size >= 0 ? size.to_s : "-") << "\n" res.body << s diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet/prochandler.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet/prochandler.rb similarity index 94% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet/prochandler.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet/prochandler.rb index 599ffc4340..92e4f80d06 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpservlet/prochandler.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpservlet/prochandler.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # prochandler.rb -- ProcHandler Class # @@ -40,6 +40,7 @@ module WEBrick end alias do_POST do_GET + alias do_PUT do_GET # :startdoc: end diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpstatus.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpstatus.rb similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpstatus.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpstatus.rb index c811f21964..c21c1d4679 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpstatus.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpstatus.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true #-- # httpstatus.rb -- HTTPStatus Class # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httputils.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httputils.rb similarity index 96% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httputils.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httputils.rb index f1b9ddf9f0..48aa1371b2 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httputils.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httputils.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # httputils.rb -- HTTPUtils Module # @@ -48,6 +48,7 @@ module WEBrick "ai" => "application/postscript", "asc" => "text/plain", "avi" => "video/x-msvideo", + "avif" => "image/avif", "bin" => "application/octet-stream", "bmp" => "image/bmp", "class" => "application/octet-stream", @@ -65,6 +66,7 @@ module WEBrick "gif" => "image/gif", "htm" => "text/html", "html" => "text/html", + "ico" => "image/x-icon", "jpe" => "image/jpeg", "jpeg" => "image/jpeg", "jpg" => "image/jpeg", @@ -74,9 +76,11 @@ module WEBrick "lzh" => "application/octet-stream", "mjs" => "application/javascript", "mov" => "video/quicktime", + "mp4" => "video/mp4", "mpe" => "video/mpeg", "mpeg" => "video/mpeg", "mpg" => "video/mpeg", + "otf" => "font/otf", "pbm" => "image/x-portable-bitmap", "pdf" => "application/pdf", "pgm" => "image/x-portable-graymap", @@ -95,8 +99,15 @@ module WEBrick "svg" => "image/svg+xml", "tif" => "image/tiff", "tiff" => "image/tiff", + "ttc" => "font/collection", + "ttf" => "font/ttf", "txt" => "text/plain", "wasm" => "application/wasm", + "webm" => "video/webm", + "webmanifest" => "application/manifest+json", + "webp" => "image/webp", + "woff" => "font/woff", + "woff2" => "font/woff2", "xbm" => "image/x-xbitmap", "xhtml" => "text/html", "xls" => "application/vnd.ms-excel", @@ -112,7 +123,7 @@ module WEBrick def load_mime_types(file) # note: +file+ may be a "| command" for now; some people may # rely on this, but currently we do not use this method by default. - open(file){ |io| + File.open(file){ |io| hash = Hash.new io.each{ |line| next if /^#/ =~ line @@ -231,7 +242,7 @@ module WEBrick # Quotes and escapes quotes in +str+ def quote(str) - '"' << str.gsub(/[\\\"]/o, "\\\1") << '"' + +'"' << str.gsub(/[\\\"]/o, "\\\1") << '"' end module_function :quote @@ -495,7 +506,7 @@ module WEBrick # Escapes path +str+ def escape_path(str) - result = "" + result = +"" str.scan(%r{/([^/]*)}).each{|i| result << "/" << _escape(i[0], UNESCAPED_PCHAR) } diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpversion.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpversion.rb similarity index 98% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpversion.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpversion.rb index 8a251944a2..6349590334 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/httpversion.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/httpversion.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true #-- # HTTPVersion.rb -- presentation of HTTP version # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/log.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/log.rb similarity index 90% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/log.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/log.rb index 2c1fdfe602..4de4bee1c8 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/log.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/log.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true #-- # log.rb -- Log Class # @@ -86,15 +86,15 @@ module WEBrick end # Shortcut for logging a FATAL message - def fatal(msg) log(FATAL, "FATAL " << format(msg)); end + def fatal(msg) log(FATAL, "FATAL " + format(msg)); end # Shortcut for logging an ERROR message - def error(msg) log(ERROR, "ERROR " << format(msg)); end + def error(msg) log(ERROR, "ERROR " + format(msg)); end # Shortcut for logging a WARN message - def warn(msg) log(WARN, "WARN " << format(msg)); end + def warn(msg) log(WARN, "WARN " + format(msg)); end # Shortcut for logging an INFO message - def info(msg) log(INFO, "INFO " << format(msg)); end + def info(msg) log(INFO, "INFO " + format(msg)); end # Shortcut for logging a DEBUG message - def debug(msg) log(DEBUG, "DEBUG " << format(msg)); end + def debug(msg) log(DEBUG, "DEBUG " + format(msg)); end # Will the logger output FATAL messages? def fatal?; @level >= FATAL; end @@ -118,7 +118,7 @@ module WEBrick # * Otherwise it will return +arg+.inspect. def format(arg) if arg.is_a?(Exception) - "#{arg.class}: #{AccessLog.escape(arg.message)}\n\t" << + +"#{arg.class}: #{AccessLog.escape(arg.message)}\n\t" << arg.backtrace.join("\n\t") << "\n" elsif arg.respond_to?(:to_str) AccessLog.escape(arg.to_str) diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/server.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/server.rb similarity index 98% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/server.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/server.rb index fd6b7a61b5..f085d5d2b0 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/server.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/server.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # server.rb -- GenericServer Class # @@ -102,7 +102,7 @@ module WEBrick @listeners = [] @shutdown_pipe = nil unless @config[:DoNotListen] - raise ArgumentError, "Port must an integer" unless @config[:Port].to_s == @config[:Port].to_i.to_s + raise ArgumentError, "Port must be an integer" unless @config[:Port].to_s == @config[:Port].to_i.to_s @config[:Port] = @config[:Port].to_i if @config[:Listen] diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/ssl.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/ssl.rb similarity index 90% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/ssl.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/ssl.rb index e448095a12..6937f93bf0 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/ssl.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/ssl.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # ssl.rb -- SSL/TLS enhancement for GenericServer # @@ -95,18 +95,22 @@ module WEBrick # the issuer +cn+ and a +comment+ to be stored in the certificate. def create_self_signed_cert(bits, cn, comment) - rsa = OpenSSL::PKey::RSA.new(bits){|p, n| - case p - when 0; $stderr.putc "." # BN_generate_prime - when 1; $stderr.putc "+" # BN_generate_prime - when 2; $stderr.putc "*" # searching good prime, - # n = #of try, - # but also data from BN_generate_prime - when 3; $stderr.putc "\n" # found good prime, n==0 - p, n==1 - q, - # but also data from BN_generate_prime - else; $stderr.putc "*" # BN_generate_prime - end - } + rsa = if $VERBOSE + OpenSSL::PKey::RSA.new(bits){|p, n| + case p + when 0; $stderr.putc "." # BN_generate_prime + when 1; $stderr.putc "+" # BN_generate_prime + when 2; $stderr.putc "*" # searching good prime, + # n = #of try, + # but also data from BN_generate_prime + when 3; $stderr.putc "\n" # found good prime, n==0 - p, n==1 - q, + # but also data from BN_generate_prime + else; $stderr.putc "*" # BN_generate_prime + end + } + else + OpenSSL::PKey::RSA.new(bits) + end cert = OpenSSL::X509::Certificate.new cert.version = 2 cert.serial = 1 diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/utils.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/utils.rb similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/utils.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/utils.rb index a96d6f03fd..e4902d0bd9 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/utils.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/utils.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # utils.rb -- Miscellaneous utilities # @@ -78,7 +78,7 @@ module WEBrick # Generates a random string of length +len+ def random_string(len) rand_max = RAND_CHARS.bytesize - ret = "" + ret = +"" len.times{ ret << RAND_CHARS[rand(rand_max)] } ret end diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/version.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/version.rb similarity index 86% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/version.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/version.rb index b62988bdbb..ceeefc33f9 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib/webrick/version.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.8.1/lib/webrick/version.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true #-- # version.rb -- version and release date # @@ -14,5 +14,5 @@ module WEBrick ## # The WEBrick version - VERSION = "1.7.0" + VERSION = "1.8.1" end From ebe8a70954fdd988e4e6b56260078d1b39088264 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Fri, 27 Jan 2023 18:14:26 +0000 Subject: [PATCH 3/3] Update RBI files for webrick. Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow. --- .../{webrick@1.7.0.rbi => webrick@1.8.1.rbi} | 15 ++++++++++++++- .../gems/{yard@0.9.28.rbi => yard@0.9.26.rbi} | 16 +++++----------- 2 files changed, 19 insertions(+), 12 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{webrick@1.7.0.rbi => webrick@1.8.1.rbi} (97%) rename Library/Homebrew/sorbet/rbi/gems/{yard@0.9.28.rbi => yard@0.9.26.rbi} (99%) diff --git a/Library/Homebrew/sorbet/rbi/gems/webrick@1.7.0.rbi b/Library/Homebrew/sorbet/rbi/gems/webrick@1.8.1.rbi similarity index 97% rename from Library/Homebrew/sorbet/rbi/gems/webrick@1.7.0.rbi rename to Library/Homebrew/sorbet/rbi/gems/webrick@1.8.1.rbi index 63755aa3aa..8bff972a30 100644 --- a/Library/Homebrew/sorbet/rbi/gems/webrick@1.7.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/webrick@1.8.1.rbi @@ -265,6 +265,7 @@ class WEBrick::HTTPRequest private def _read_data(io, method, *arg); end + def parse_host_request_line(host); end def parse_query; end def parse_uri(str, scheme = T.unsafe(nil)); end def read_body(socket, block); end @@ -284,7 +285,6 @@ class WEBrick::HTTPResponse def [](field); end def []=(field, value); end - def _rack_setup_header; end def body; end def body=(_arg0); end def chunked=(val); end @@ -319,9 +319,13 @@ class WEBrick::HTTPResponse def sent_size; end def set_error(ex, backtrace = T.unsafe(nil)); end def set_redirect(status, url); end + def setup_header; end def status; end def status=(status); end def status_line; end + def upgrade; end + def upgrade!(protocol); end + def upgrade=(_arg0); end private @@ -450,6 +454,15 @@ class WEBrick::HTTPServlet::FileHandler < ::WEBrick::HTTPServlet::AbstractServle end end +class WEBrick::HTTPServlet::ProcHandler < ::WEBrick::HTTPServlet::AbstractServlet + def initialize(proc); end + + def do_GET(request, response); end + def do_POST(request, response); end + def do_PUT(request, response); end + def get_instance(server, *options); end +end + module WEBrick::HTTPStatus private diff --git a/Library/Homebrew/sorbet/rbi/gems/yard@0.9.28.rbi b/Library/Homebrew/sorbet/rbi/gems/yard@0.9.26.rbi similarity index 99% rename from Library/Homebrew/sorbet/rbi/gems/yard@0.9.28.rbi rename to Library/Homebrew/sorbet/rbi/gems/yard@0.9.26.rbi index 0a9df757b5..6bb3345a04 100644 --- a/Library/Homebrew/sorbet/rbi/gems/yard@0.9.28.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/yard@0.9.26.rbi @@ -149,13 +149,16 @@ class Rack::Request def xhr?; end class << self + def forwarded_priority; end + def forwarded_priority=(_arg0); end def ip_filter; end def ip_filter=(_arg0); end + def x_forwarded_proto_priority; end + def x_forwarded_proto_priority=(_arg0); end end end Rack::Request::ALLOWED_SCHEMES = T.let(T.unsafe(nil), Array) -Rack::Request::SCHEME_WHITELIST = T.let(T.unsafe(nil), Array) class String include ::Comparable @@ -202,8 +205,6 @@ module YARD def ruby18?; end def ruby19?; end def ruby2?; end - def ruby31?; end - def ruby3?; end def windows?; end end end @@ -1419,12 +1420,7 @@ class YARD::Handlers::Ruby::MixinHandler < ::YARD::Handlers::Ruby::Base def recipient(mixin); end end -class YARD::Handlers::Ruby::ModuleFunctionHandler < ::YARD::Handlers::Ruby::Base - include ::YARD::Handlers::Ruby::DecoratorHandlerMethods - - def make_module_function(instance_method, namespace); end -end - +class YARD::Handlers::Ruby::ModuleFunctionHandler < ::YARD::Handlers::Ruby::Base; end class YARD::Handlers::Ruby::ModuleHandler < ::YARD::Handlers::Ruby::Base; end class YARD::Handlers::Ruby::PrivateClassMethodHandler < ::YARD::Handlers::Ruby::Base @@ -2409,7 +2405,6 @@ class YARD::Parser::Ruby::ModuleNode < ::YARD::Parser::Ruby::KeywordNode end class YARD::Parser::Ruby::ParameterNode < ::YARD::Parser::Ruby::AstNode - def args_forward; end def block_param; end def double_splat_param; end def named_params; end @@ -3335,7 +3330,6 @@ class YARD::Tags::Directive protected - def inside_directive?; end def parser; end end