Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rack-2.2 for openSUSE:Factory checked in at 2025-06-13 18:46:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-rack-2.2 (Old) and /work/SRC/openSUSE:Factory/.rubygem-rack-2.2.new.19631 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rack-2.2" Fri Jun 13 18:46:32 2025 rev:15 rq:1285374 version:2.2.17 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-rack-2.2/rubygem-rack-2.2.changes 2025-05-20 17:05:26.268890779 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rack-2.2.new.19631/rubygem-rack-2.2.changes 2025-06-13 18:46:44.910017315 +0200 @@ -1,0 +2,6 @@ +Thu Jun 12 15:23:43 UTC 2025 - Eduardo Navarro <enava...@suse.com> + +- update to version 2.2.17 + * Fix incorrect backport of optional CGI::Cookie support. + +------------------------------------------------------------------- Old: ---- rack-2.2.15.gem New: ---- rack-2.2.17.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-rack-2.2.spec ++++++ --- /var/tmp/diff_new_pack.kUJwax/_old 2025-06-13 18:46:45.430038641 +0200 +++ /var/tmp/diff_new_pack.kUJwax/_new 2025-06-13 18:46:45.434038805 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-rack-2.2 -Version: 2.2.15 +Version: 2.2.17 Release: 0 %define mod_name rack %define mod_full_name %{mod_name}-%{version} ++++++ rack-2.2.15.gem -> rack-2.2.17.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md 1980-01-02 01:00:00.000000000 +0100 +++ new/CHANGELOG.md 1980-01-02 01:00:00.000000000 +0100 @@ -2,6 +2,14 @@ All notable changes to this project will be documented in this file. For info on how to format all future additions to this file please reference [Keep A Changelog](https://keepachangelog.com/en/1.0.0/). +## [2.2.17] - 2025-06-03 + +- Backport `Rack::MediaType#params` now handles parameters without values. ([#2263](https://github.com/rack/rack/pull/2263), [@AllyMarthaJ](https://github.com/AllyMarthaJ)) + +## [2.2.16] - 2025-05-22 + +- Fix incorrect backport of optional `CGI::Cookie` support. ([#2335](https://github.com/rack/rack/pull/2335), [@jeremyevans]) + ## [2.2.15] - 2025-05-18 - Optional support for `CGI::Cookie` if not available. ([#2327](https://github.com/rack/rack/pull/2327), [#2333](https://github.com/rack/rack/pull/2333), [@earlopain]) Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rack/media_type.rb new/lib/rack/media_type.rb --- old/lib/rack/media_type.rb 1980-01-02 01:00:00.000000000 +0100 +++ new/lib/rack/media_type.rb 1980-01-02 01:00:00.000000000 +0100 @@ -27,6 +27,11 @@ # provided. e.g., when the CONTENT_TYPE is "text/plain;charset=utf-8", # this method responds with the following Hash: # { 'charset' => 'utf-8' } + # + # This will pass back parameters with empty strings in the hash if they + # lack a value (e.g., "text/plain;charset=" will return { 'charset' => '' }, + # and "text/plain;charset" will return { 'charset' => '' }, similarly to + # the query params parser (barring the latter case, which returns nil instead)). def params(content_type) return {} if content_type.nil? @@ -40,9 +45,9 @@ private - def strip_doublequotes(str) - (str.start_with?('"') && str.end_with?('"')) ? str[1..-2] : str - end + def strip_doublequotes(str) + (str && str.start_with?('"') && str.end_with?('"')) ? str[1..-2] : str || '' + end end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rack/mock.rb new/lib/rack/mock.rb --- old/lib/rack/mock.rb 1980-01-02 01:00:00.000000000 +0100 +++ new/lib/rack/mock.rb 1980-01-02 01:00:00.000000000 +0100 @@ -265,7 +265,7 @@ set_cookie_header.split("\n").each do |cookie| cookie_name, cookie_filling = cookie.split('=', 2) cookie_attributes = identify_cookie_attributes cookie_filling - parsed_cookie = CGI::Cookie.new( + parsed_cookie = Cookie.new( 'name' => cookie_name.strip, 'value' => cookie_attributes.fetch('value'), 'path' => cookie_attributes.fetch('path', nil), @@ -282,7 +282,7 @@ def identify_cookie_attributes(cookie_filling) cookie_bits = cookie_filling.split(';') cookie_attributes = Hash.new - cookie_attributes.store('value', cookie_bits[0].strip) + cookie_attributes.store('value', Array(cookie_bits[0].strip)) cookie_bits.each do |bit| if bit.include? '=' cookie_attribute, attribute_value = bit.split('=') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rack/version.rb new/lib/rack/version.rb --- old/lib/rack/version.rb 1980-01-02 01:00:00.000000000 +0100 +++ new/lib/rack/version.rb 1980-01-02 01:00:00.000000000 +0100 @@ -20,7 +20,7 @@ VERSION.join(".") end - RELEASE = "2.2.15" + RELEASE = "2.2.17" # Return the Rack release as a dotted string. def self.release diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 1980-01-02 01:00:00.000000000 +0100 +++ new/metadata 1980-01-02 01:00:00.000000000 +0100 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: rack version: !ruby/object:Gem::Version - version: 2.2.15 + version: 2.2.17 platform: ruby authors: - Leah Neukirchen @@ -182,7 +182,7 @@ - !ruby/object:Gem::Version version: '0' requirements: [] -rubygems_version: 3.6.7 +rubygems_version: 3.7.0.dev specification_version: 4 summary: A modular Ruby webserver interface. test_files: []