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

lostisland / faraday / #4691
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.688% (+0.04%) from 95.652%
#4691

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>

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

1642 of 1716 relevant lines covered (95.69%)

159.26 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #4691.1 23 Nov 2026 10:13AM UTC 35
95.69
Source Files on build #4691
  • Tree
  • List 35
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
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