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

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

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 23 Nov 2026 10:13AM UTC
Jobs 1
Files 35
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

23 Nov 2026 10:12AM UTC coverage: 95.121% (-0.5%) from 95.652%
#4696

push

web-flow
Convert ConnectionOptions to BaseOptions (#1652) (#1738)

* Convert ConnectionOptions to BaseOptions (#1652)

ConnectionOptions was the last Struct-based options class before Env.
It now inherits from BaseOptions, like RequestOptions and SSLOptions.

- request, ssl and proxy are coerced by .from, #update and #merge. A
  falsy value means "not set", like the legacy #update, so ssl: false
  no longer reaches SSLOptions.from, which raises for false.
- request and ssl readers still assign a new instance when none is set,
  and builder_class still defaults to RackBuilder.
- No Faraday::StructCompat: no adapter or middleware in awesome-faraday
  uses ConnectionOptions or Faraday.default_connection_options.

Faraday.new now merges default_connection_options with
BaseOptions#merge, so nil values no longer overwrite the defaults.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep the current value when ConnectionOptions gets false

The legacy #update skipped a falsy request, ssl or proxy and kept the
current value. The first conversion reset the member instead, so
update(request: false) dropped the request options. ConnectionOptions
now skips false for its coerced members, which also lets COERCIONS use
the classes instead of lambdas.

Also from the review of #1738:
- Document that proxy can be nil and that to_hash includes the
  request, ssl and builder_class defaults, and test the latter.
- Rename the utils_spec examples that still called ConnectionOptions
  an Options Struct.
- Test Utils.deep_merge with a legacy Options source again: the
  renamed example no longer covered that branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

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

15 existing lines in 11 files now uncovered.

1618 of 1701 relevant lines covered (95.12%)

156.22 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
91.47
-1.55% lib/faraday/adapter/test.rb
2
97.7
-2.3% lib/faraday/error.rb
2
93.33
-3.33% lib/faraday/logging/formatter.rb
1
98.0
-2.0% lib/faraday/base_options.rb
1
84.66
-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
96.3
-3.7% lib/faraday/options/proxy_options.rb
1
97.06
-2.94% lib/faraday/request/json.rb
1
95.65
-4.35% lib/faraday/response/raise_error.rb
1
95.77
-1.45% lib/faraday/utils.rb
Jobs
ID Job ID Ran Files Coverage
1 #4696.1 23 Nov 2026 10:13AM UTC 35
95.12
Source Files on build #4696
  • Tree
  • List 35
  • Changed 20
  • Source Changed 0
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1e0aaf25 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