From e2638959ec53863cd0b8f76ba19d0c9a71238dd6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 18:57:23 +0000 Subject: [PATCH 1/3] build(deps-dev): bump stackprof in /Library/Homebrew Bumps [stackprof](https://github.com/tmm1/stackprof) from 0.2.25 to 0.2.26. - [Changelog](https://github.com/tmm1/stackprof/blob/master/CHANGELOG.md) - [Commits](https://github.com/tmm1/stackprof/compare/v0.2.25...v0.2.26) --- updated-dependencies: - dependency-name: stackprof dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Library/Homebrew/Gemfile.lock | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index 726f5d4082..9408e3e242 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -154,7 +154,7 @@ GEM sorbet-static-and-runtime (>= 0.5.10187) syntax_tree (>= 6.1.1) thor (>= 0.19.2) - stackprof (0.2.25) + stackprof (0.2.26) syntax_tree (6.2.0) prettier_print (>= 1.2.0) tapioca (0.11.16) @@ -181,8 +181,6 @@ GEM zeitwerk (2.6.12) PLATFORMS - aarch64-linux - arm-linux arm64-darwin x86_64-darwin x86_64-linux From 8a5fd2a46c1e3650e91df96a98908bba1317d417 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 15 Jan 2024 19:00:14 +0000 Subject: [PATCH 2/3] brew vendor-gems: commit updates. --- Library/Homebrew/Gemfile.lock | 2 + .../Homebrew/vendor/bundle/bundler/setup.rb | 4 +- .../vendor/gems/mechanize-2.9.2/LICENSE.txt | 24 +++ .../http/content_disposition_parser.rb | 202 ++++++++++++++++++ .../mechanize-2.9.2/lib/mechanize/version.rb | 4 + 5 files changed, 234 insertions(+), 2 deletions(-) create mode 100644 Library/Homebrew/vendor/gems/mechanize-2.9.2/LICENSE.txt create mode 100644 Library/Homebrew/vendor/gems/mechanize-2.9.2/lib/mechanize/http/content_disposition_parser.rb create mode 100644 Library/Homebrew/vendor/gems/mechanize-2.9.2/lib/mechanize/version.rb diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index 9408e3e242..fd991320c0 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -181,6 +181,8 @@ GEM zeitwerk (2.6.12) PLATFORMS + aarch64-linux + arm-linux arm64-darwin x86_64-darwin x86_64-linux diff --git a/Library/Homebrew/vendor/bundle/bundler/setup.rb b/Library/Homebrew/vendor/bundle/bundler/setup.rb index 9a0d2e461c..d349845d23 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -118,8 +118,8 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/syntax_tree-6.2.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/thor-1.3.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/spoom-1.2.4/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/x86_64-darwin-15/#{Gem.extension_api_version}/stackprof-0.2.25") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/stackprof-0.2.25/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/x86_64-darwin-15/#{Gem.extension_api_version}/stackprof-0.2.26") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/stackprof-0.2.26/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/yard-0.9.34/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/yard-sorbet-0.8.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/tapioca-0.11.16/lib") diff --git a/Library/Homebrew/vendor/gems/mechanize-2.9.2/LICENSE.txt b/Library/Homebrew/vendor/gems/mechanize-2.9.2/LICENSE.txt new file mode 100644 index 0000000000..3a5074024a --- /dev/null +++ b/Library/Homebrew/vendor/gems/mechanize-2.9.2/LICENSE.txt @@ -0,0 +1,24 @@ +(The MIT License) + +Copyright (c) 2005 by Michael Neumann (mneumann@ntecs.de) + +Copyright (c) 2006-2021 by Eric Hodel, Akinori MUSHA, Aaron Patterson, Lee Jarvis, Mike Dalessio + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Library/Homebrew/vendor/gems/mechanize-2.9.2/lib/mechanize/http/content_disposition_parser.rb b/Library/Homebrew/vendor/gems/mechanize-2.9.2/lib/mechanize/http/content_disposition_parser.rb new file mode 100644 index 0000000000..f8b8f9a9fd --- /dev/null +++ b/Library/Homebrew/vendor/gems/mechanize-2.9.2/lib/mechanize/http/content_disposition_parser.rb @@ -0,0 +1,202 @@ +# frozen_string_literal: true +# coding: BINARY + +require 'strscan' +require 'time' + +class Mechanize::HTTP + ContentDisposition = Struct.new :type, :filename, :creation_date, + :modification_date, :read_date, :size, :parameters +end + +## +# Parser Content-Disposition headers that loosely follows RFC 2183. +# +# Beyond RFC 2183, this parser allows: +# +# * Missing disposition-type +# * Multiple semicolons +# * Whitespace around semicolons +# * Dates in ISO 8601 format + +class Mechanize::HTTP::ContentDispositionParser + + attr_accessor :scanner # :nodoc: + + @parser = nil + + ## + # Parses the disposition type and params in the +content_disposition+ + # string. The "Content-Disposition:" must be removed. + + def self.parse content_disposition + @parser ||= self.new + @parser.parse content_disposition + end + + ## + # Creates a new parser Content-Disposition headers + + def initialize + @scanner = nil + end + + ## + # Parses the +content_disposition+ header. If +header+ is set to true the + # "Content-Disposition:" portion will be parsed + + def parse content_disposition, header = false + return nil if content_disposition.empty? + + @scanner = StringScanner.new content_disposition + + if header then + return nil unless @scanner.scan(/Content-Disposition/i) + return nil unless @scanner.scan(/:/) + spaces + end + + type = rfc_2045_token + @scanner.scan(/;+/) + + if @scanner.peek(1) == '=' then + @scanner.pos = 0 + type = nil + end + + disposition = Mechanize::HTTP::ContentDisposition.new type + + spaces + + return nil unless parameters = parse_parameters + + disposition.filename = parameters.delete 'filename' + disposition.creation_date = parameters.delete 'creation-date' + disposition.modification_date = parameters.delete 'modification-date' + disposition.read_date = parameters.delete 'read-date' + disposition.size = parameters.delete 'size' + disposition.parameters = parameters + + disposition + end + + ## + # Extracts disposition-param and returns a Hash. + + def parse_parameters + parameters = {} + + while true do + return nil unless param = rfc_2045_token + param.downcase! + return nil unless @scanner.scan(/=/) + + value = case param + when /^filename$/ then + rfc_2045_value + when /^(creation|modification|read)-date$/ then + date = rfc_2045_quoted_string + + begin + Time.rfc822 date + rescue ArgumentError + begin + Time.iso8601 date + rescue ArgumentError + nil + end + end + when /^size$/ then + rfc_2045_value.to_i(10) + else + rfc_2045_value + end + + return nil unless value + + parameters[param] = value + + spaces + + break if @scanner.eos? or not @scanner.scan(/;+/) + + spaces + end + + parameters + end + + ## + # quoted-string = <"> *(qtext/quoted-pair) <"> + # qtext = , "\" & CR, + # and including linear-white-space + # quoted-pair = "\" CHAR + # + # Parses an RFC 2045 quoted-string + + def rfc_2045_quoted_string + return nil unless @scanner.scan(/"/) + + text = String.new + + while true do + chunk = @scanner.scan(/[\000-\014\016-\041\043-\133\135-\177]+/) # not \r " + + if chunk then + text << chunk + + if @scanner.peek(1) == '\\' then + @scanner.get_byte + return nil if @scanner.eos? + text << @scanner.get_byte + elsif @scanner.scan(/\r\n[\t ]+/) then + text << " " + end + else + if '\\"' == @scanner.peek(2) then + @scanner.skip(/\\/) + text << @scanner.get_byte + elsif '"' == @scanner.peek(1) then + @scanner.get_byte + break + else + return nil + end + end + end + + text + end + + ## + # token := 1* + # + # Parses an RFC 2045 token + + def rfc_2045_token + @scanner.scan(/[^\000-\037\177()<>@,;:\\"\/\[\]?= ]+/) + end + + ## + # value := token / quoted-string + # + # Parses an RFC 2045 value + + def rfc_2045_value + if @scanner.peek(1) == '"' then + rfc_2045_quoted_string + else + rfc_2045_token + end + end + + ## + # 1*SP + # + # Parses spaces + + def spaces + @scanner.scan(/ +/) + end + +end diff --git a/Library/Homebrew/vendor/gems/mechanize-2.9.2/lib/mechanize/version.rb b/Library/Homebrew/vendor/gems/mechanize-2.9.2/lib/mechanize/version.rb new file mode 100644 index 0000000000..343f0eaeac --- /dev/null +++ b/Library/Homebrew/vendor/gems/mechanize-2.9.2/lib/mechanize/version.rb @@ -0,0 +1,4 @@ +# frozen_string_literal: true +class Mechanize + VERSION = "2.9.2" +end From aa390a76121e84fa237788dded4b495e87e0426c Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 15 Jan 2024 19:05:35 +0000 Subject: [PATCH 3/3] Update RBI files for stackprof. Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow. --- .../rbi/gems/{stackprof@0.2.25.rbi => stackprof@0.2.26.rbi} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{stackprof@0.2.25.rbi => stackprof@0.2.26.rbi} (98%) diff --git a/Library/Homebrew/sorbet/rbi/gems/stackprof@0.2.25.rbi b/Library/Homebrew/sorbet/rbi/gems/stackprof@0.2.26.rbi similarity index 98% rename from Library/Homebrew/sorbet/rbi/gems/stackprof@0.2.25.rbi rename to Library/Homebrew/sorbet/rbi/gems/stackprof@0.2.26.rbi index eb8c92fe0d..84c1017717 100644 --- a/Library/Homebrew/sorbet/rbi/gems/stackprof@0.2.25.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/stackprof@0.2.26.rbi @@ -4,7 +4,7 @@ # This is an autogenerated file for types exported from the `stackprof` gem. # Please instead update this file by running `bin/tapioca gem stackprof`. -# source://stackprof//lib/stackprof.rb#16 +# source://stackprof//lib/stackprof.rb#20 module StackProf class << self def results(*_arg0); end @@ -237,5 +237,5 @@ end # source://stackprof//lib/stackprof/report.rb#9 StackProf::Report::MARSHAL_SIGNATURE = T.let(T.unsafe(nil), String) -# source://stackprof//lib/stackprof.rb#17 +# source://stackprof//lib/stackprof.rb#21 StackProf::VERSION = T.let(T.unsafe(nil), String)