• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lostisland / faraday / #4488
96%
master: 92%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 18 Oct 2026 10:49AM UTC
Jobs 1
Files 32
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Oct 2026 10:48AM UTC coverage: 94.55% (-0.5%) from 95.059%
#4488

push

web-flow
Fix FrozenError when a frozen URI is passed as the base URL (#1717)

* Fix FrozenError when a frozen URI is passed as the base URL

Utils.URI returns a URI object as-is (no dup) whenever it already
responds to :host, so url_prefix= would go on to mutate that same
object via path_prefix=, uri.query=, and uri.user=/password=. If the
caller passed a frozen URI, this raised FrozenError; even for a
non-frozen URI it silently mutated an object the caller still holds a
reference to.

Stringify the url before handing it to Utils.URI, so the string branch
(which always builds a fresh URI via the configured parser) is taken
unconditionally, per iMacTia's suggestion in the issue thread.

A prior PR attempting this (#1685) was closed unreviewed with no
comments; the bug is unchanged on main.

Fixes #1349

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Remove explanatory comment from url_prefix=

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: hikmetba-bit <hikmetba-bit@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: Matt <iMacTia@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

1 of 1 new or added line in 1 file covered. (100.0%)

13 existing lines in 9 files now uncovered.

1440 of 1523 relevant lines covered (94.55%)

159.15 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
91.47
-1.55% lib/faraday/adapter/test.rb
2
97.4
-2.6% lib/faraday/error.rb
2
93.33
-3.33% lib/faraday/logging/formatter.rb
1
84.05
-0.52% lib/faraday/connection.rb
1
95.83
-4.17% lib/faraday/middleware_registry.rb
1
81.43
-0.26% lib/faraday/options/env.rb
1
92.86
-7.14% lib/faraday/options/proxy_options.rb
1
97.06
-2.94% lib/faraday/request/json.rb
1
95.24
-4.76% lib/faraday/response/raise_error.rb
Jobs
ID Job ID Ran Files Coverage
1 #4488.1 18 Oct 2026 10:49AM UTC 32
94.55
Source Files on build #4488
  • Tree
  • List 32
  • Changed 17
  • Source Changed 0
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 2334bd9c on github
  • Prev Build on main
  • Next Build on main
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc