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

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

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 26 Nov 2026 12:22PM 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

26 Nov 2026 12:22PM UTC coverage: 96.563% (+0.01%) from 96.55%
#4725

push

web-flow
fix: restore members, empty? and to_h on the options classes (#1746)

* fix: restore the members class method on the options classes

Converting the options classes to BaseOptions removed the class method
`members` that the legacy Struct provided. elastic-transport 8.6.0
calls `Faraday::SSLOptions.members` to check for `verify_hostname`, so
every client set up with `ca_fingerprint:` fails on its first request
with NoMethodError.

BaseOptions.members now returns a copy of MEMBERS. Every class
converted from a Struct (Env, ConnectionOptions, RequestOptions,
SSLOptions and ProxyOptions) answers it as before, and a caller that
changes the result does not change the class.

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

* fix: restore empty? on the options classes

Converting the options classes to BaseOptions removed `empty?`, which
the legacy Options Structs answered with "no member is set". oauth2
2.1.0 checks a new connection with
`expect(subject.connection.ssl).to be_empty`. On Faraday main that
spec fails, because SSLOptions no longer responds to `empty?`.

BaseOptions#empty? is true when every member is nil, as before. A
member set to false counts as set.

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

* fix: restore to_h on the options classes

Converting the options classes to BaseOptions removed `to_h`, which
the legacy Options Structs answered with every member, nil included.
ruby_llm 2.2.3 calls `to_h` on Faraday::Env and SSLOptions in three
transport specs, and they fail on Faraday main with NoMethodError.

BaseOptions#to_h returns every member and its value, like Struct#to_h,
and maps the pairs when given a block. Nested options stay objects,
and Env leaves out its custom members, as before. to_hash still leaves
out nil values and converts nested options.

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

* docs: deprecate members, empty? and to_h on the options classes

These methods are back only for code written ... (continued)

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

1714 of 1775 relevant lines covered (96.56%)

151.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #4725.1 26 Nov 2026 12:22PM UTC 35
96.56
Source Files on build #4725
  • Tree
  • List 35
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 0827d414 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