-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump rack-test from 1.1.0 to 2.1.0 #12715
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jk, issues in tests. Pulling down to investigate...
@@ -52,7 +52,7 @@ def documents | |||
@documents ||= params.slice(*document_keys).values.map do |document| | |||
case document | |||
when String | |||
decode_document(document) | |||
document.blank? ? nil : decode_document(document) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rack-test was converting a nil attachment to a blank string, which was causing a failure down the road here
@@ -101,7 +101,7 @@ def self.get_partname(headers) | |||
def self.get_content_type(headers) | |||
headers.each do |header| | |||
name, _, value = header.partition(':') | |||
return value.split(';')[0].strip if name == 'Content-Type' | |||
return value.split(';')[0].strip if name.downcase == 'content-type' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rack-test start sending headers downcased, so I just made these comparisons agnostic of the case of the header
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
related: rack/rack#1592
* Bump rack-test from 1.1.0 to 2.1.0 Bumps [rack-test](https://github.com/rack/rack-test) from 1.1.0 to 2.1.0. - [Release notes](https://github.com/rack/rack-test/releases) - [Changelog](https://github.com/rack/rack-test/blob/main/History.md) - [Commits](rack/rack-test@v1.1.0...v2.1.0) --- updated-dependencies: - dependency-name: rack-test dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix capitalization issue with rack-test * add case for empty string (rack-test) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ryan McNeil <ryan.mcneil@oddball.io>
Bumps rack-test from 1.1.0 to 2.1.0.
Changelog
Sourced from rack-test's changelog.
... (truncated)
Commits
867a6f1
Release 2.1.044e8be4
Update History.md5a2a3bf
Don't raise error with empty params and multipart headerfebbea4
Update CHANGELOG79c5077
Fix tests when rack master branch is used70f4db2
Ignore leading dot when merging cookies73c7174
Bump cgi version in Ruby 3.1 CI test8fb4fb2
Add CI for Ruby 3.210e7040
Test JRuby 9.4 in CI2036831
change order of arguments forassert_equal
example in READMEDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)