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

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

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 01 Nov 2026 02:52PM 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.135% (-0.1%) from 95.247%
#4648

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)

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

13 existing lines in 9 files now uncovered.

1545 of 1624 relevant lines covered (95.14%)

160.58 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
98.0
lib/faraday/base_options.rb
1
95.77
-1.15% lib/faraday/utils.rb

Coverage Regressions

Lines Coverage ∆ File
3
91.47
-1.55% lib/faraday/adapter/test.rb
2
97.67
-2.33% lib/faraday/error.rb
2
93.33
-3.33% lib/faraday/logging/formatter.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
92.86
-7.14% 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
Jobs
ID Job ID Ran Files Coverage
1 #4648.1 01 Nov 2026 02:52PM UTC 34
95.14
Source Files on build #4648
  • Tree
  • List 34
  • Changed 18
  • Source Changed 0
  • Coverage Changed 18
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