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

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

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 01 Nov 2026 02:51PM UTC
Jobs 1
Files 34
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

01 Nov 2026 02:50PM UTC coverage: 95.734% (+0.5%) from 95.247%
#4647

push

web-flow
Foundation: Create OptionsLike module and BaseOptions class (#1656)

* Initial plan

* Implement BaseOptions and OptionsLike foundation classes

Co-authored-by: iMacTia <2527520+iMacTia@users.noreply.github.com>

* Move BaseOptions spec to spec/faraday/options and fix lint offenses

Define test option classes with Class.new instead of constants in a block.

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

* Include OptionsLike in Faraday::Options and check only OptionsLike in deep_merge!

Add specs for legacy Options inclusion and Utils.deep_merge!/deep_merge with
plain hashes and legacy Options.

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

* Align BaseOptions and Utils deep merge/dup with the options RFC

BaseOptions:
- default MEMBERS/COERCIONS, Class (from) and Proc coercions, ArgumentError
  from unsupported types
- initialize/update/merge!/deep_dup/to_hash go through the public readers and
  writers; unknown keys raise NoMethodError like legacy Options
- false is preserved, nil never overwrites; string keys are normalized
- merge! deep merges nested hashes and options, merge never shares nested
  objects with the receiver
- to_hash skips nils and converts nested options; inspect lists set members

Utils:
- deep_merge!/deep_merge delegate to BaseOptions#merge!/merge, which allows a
  BaseOptions as the target or source
- deep_dup only copies Hash (keeping its class), Array and OptionsLike

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

* Document OptionsLike and BaseOptions

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

* BaseOptions.from returns a deep copy of an existing instance

Matches legacy Options.from and avoids sharing (and mutating) the caller's
object, including when it is used as a nested coercion.

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

---------

Co-authored-by: copilot-swe-agent[bot] <1989... (continued)

66 of 66 new or added lines in 5 files covered. (100.0%)

1571 of 1641 relevant lines covered (95.73%)

160.44 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #4647.1 01 Nov 2026 02:51PM UTC 34
95.73
Source Files on build #4647
  • Tree
  • List 34
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 79e2462c 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