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

bolshakov / stoplight / 14307655969
100%

Build:
DEFAULT BRANCH: master
Ran 07 Apr 2025 11:09AM UTC
Jobs 3
Files 22
Run time 109min
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

07 Apr 2025 11:09AM UTC coverage: 100.0% (+0.2%) from 99.79%
14307655969

push

github

web-flow
Refactor Stoplight internal architecture (#277)

This PR refactors the internal architecture of Stoplight to simplify its design and improve maintainability. The primary goal was to eliminate unnecessary indirection by replacing the Builder pattern with a more direct approach while maintaining backward compatibility.

## Changes
- Replaced `Stoplight::Builder` with a more straightforward implementation that directly uses `Stoplight::Light`
- Renamed `Stoplight::Configuration` to `Stoplight::Light::Config` to better reflect its relationship with `Light`
- Extracted configuration-related functionality into a separate `Stoplight::Light::Configurable` module (similar to `Stoplight::Light::Runnable`, and `Stoplight::Light::Lockable`
- Simplified `Stoplight::CircuitBreaker` from a module to a class for backward compatibility
- Updated all data store implementations to work with the new configuration approach
- Reorganized the documentation of custom fallback in README for better flow

## Benefits
- More intuitive codebase structure with less indirection
- Reduced complexity by eliminating unnecessary abstraction layers
- Better separation of concerns through module extraction
- The public API remains backward compatible

## API Changes
- No breaking changes to the public API
- All existing code that uses Stoplight should continue to work without modification
- Internal implementation details have changed significantly but are hidden from consumers

165 of 165 new or added lines in 10 files covered. (100.0%)

429 of 429 relevant lines covered (100.0%)

237.48 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ruby-3.2 - 14307655969.1 07 Apr 2025 11:09AM UTC 22
100.0
GitHub Action Run
2 ruby-3.1 - 14307655969.2 07 Apr 2025 11:09AM UTC 22
100.0
GitHub Action Run
3 ruby-3.0 - 14307655969.3 07 Apr 2025 11:09AM UTC 22
100.0
GitHub Action Run
Source Files on build 14307655969
  • Tree
  • List 22
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 18b4c432 on github
  • Prev Build on master (#14280756162)
  • Next Build on master (#14307661779)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc