Skip to content

Update httparty requirement from ~> 0.24.2 to >= 0.24.2, < 0.26.0 - #27

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/httparty-0.25.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/httparty-0.25.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 24, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on httparty to permit the latest version.

Release notes

Sourced from httparty's releases.

v0.25.0

Full Changelog: jnunemaker/httparty@v0.24.4...v0.25.0

0.25 makes request paths and redirect targets resolve the way RFC 3986, browsers, curl and other HTTP clients resolve them. Both changes alter which URL some requests go to, so check the tables below before upgrading. 0.24.4 printed a [DEPRECATION] warning for every request the first change affects.

Breaking Changes

Empty paths no longer add a trailing slash

An empty path (""), a query-only path ("?a=1") or a fragment-only path ("#top") now requests the base_uri as-is. Before, HTTParty added a trailing slash, which some servers, such as SOAP endpoints, reject. (#742, #898, #900, thanks @​Arniedude5342)

Call (base_uri "https://example.com/api/articles") 0.24 0.25
get("") /api/articles/ /api/articles
get("?a=1") /api/articles/?a=1 /api/articles?a=1
get("", query: { a: 1 }) /api/articles/?a=1 /api/articles?a=1
get("#top") /api/articles/#top /api/articles#top

base_uri has always dropped a trailing slash when it is set, so base_uri "https://example.com/api/" with get("") now requests /api as well.

Relative redirect Locations resolve against the current URL

A relative Location header now resolves against the URL that redirected. Before, HTTParty sent "" and ?page=2 to the site root and sent ../ to the server as-is. (#909)

Location (redirecting from /foo/start?a=1) 0.24 0.25
"" / /foo/start?a=1
?page=2 /?page=2 /foo/start?page=2
../baz /foo/../baz /baz
./baz /foo/./baz /foo/baz

A server that always answers with Location: "" now gets the same URL requested again, until the redirect limit raises HTTParty::RedirectionTooDeep.

Upgrading

  • To keep the trailing slash on an empty path, pass "/" as the path. It requests the same URL in 0.24 and 0.25.
  • If you upgraded to 0.24.4, its [DEPRECATION] warnings point to each call whose URL changes.
  • Redirects need no change unless you relied on a relative Location reaching the site root. Use an absolute path such as / in the Location for that.

Unchanged

  • get("/") and any non-empty path such as get("/comments").
  • A base_uri without a path: get("") against https://example.com still requests /.
  • Absolute URLs, URI objects and the Addressable adapter for request paths.
  • Redirects to baz, /x and any Location with a host.

Other Behavior Changes

  • A HEAD request stays HEAD across a 303 redirect, as the docs already said and RFC 9110 allows. Before, a 303 turned it into a GET, which downloaded the whole body. (#905)
  • headers: values that aren't hash-like raise the documented ArgumentError, ':headers must be a hash'. Before, they raised NoMethodError or TypeError. (#902)

... (truncated)

Commits
  • 1ec0e59 Merge pull request #910 from jnunemaker/nunes/release-0.25.0
  • d07c563 Merge pull request #900 from jnunemaker/nunes/exciting-darwin-6f9qn7
  • f9752f1 Release 0.25.0
  • 6e7d32c Merge main into the 0.25 empty path change
  • 0753ef3 Merge pull request #909 from jnunemaker/nunes/redirect-location-resolution
  • 75432b8 Resolve relative redirect Locations against the redirecting URL
  • 591b9f6 Merge pull request #905 from jnunemaker/nunes/head-stays-head-on-303
  • 4f6aed3 Merge pull request #906 from jnunemaker/nunes/connection-adapter-doc-examples
  • ef1f2c2 Merge pull request #907 from jnunemaker/nunes/body-normalizer-arrays
  • 282806b Merge pull request #908 from jnunemaker/nunes/remove-unused-cucumber-steps
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot 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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

Updates the requirements on [httparty](https://github.com/jnunemaker/httparty) to permit the latest version.
- [Release notes](https://github.com/jnunemaker/httparty/releases)
- [Changelog](https://github.com/jnunemaker/httparty/blob/main/Changelog.md)
- [Commits](jnunemaker/httparty@v0.24.4...v0.25.0)

---
updated-dependencies:
- dependency-name: httparty
  dependency-version: 0.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file ruby Pull requests that update ruby code labels Nov 24, 2026
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

@dependabot @github

dependabot Bot commented on behalf of github Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #28.

@dependabot dependabot Bot closed this Nov 25, 2026
@dependabot
dependabot Bot deleted the dependabot/bundler/httparty-0.25.0 branch November 25, 2026 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants