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

bolshakov / stoplight / 6023403993
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: feature/polish-types
DEFAULT BRANCH: master
Ran 30 Aug 2023 10:01AM UTC
Jobs 3
Files 24
Run time 1s
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

30 Aug 2023 09:55AM UTC coverage: 100.0%. Remained the same
6023403993

Pull #215

github

bolshakov
Update #names method to retain lights without failures

This commit addresses an issue with the #names method. Previously, the method would only retrieve light names
that had failures or been locked. This update ensures that the #names method correctly includes light
names without failures and locks as well.

Since Stoplight does not require lights to be registered or unregistered explicitly, we lack a means to
understand whether a light is still in use or not. To address this issue, I have added an additional
`stoplight:v4:last_used_at` key that stores information about the last time the light
was used. This information is updated with every call to Stoplight's #run method.

By default, the `#names` method returns all lights that have been used within the last 7 days. However,
if you provide an optional `used_after` argument, you can retrieve lights that were used during a different time period.
Pull Request #215: Update #names method to retain lights without failures

19 of 19 new or added lines in 4 files covered. (100.0%)

527 of 527 relevant lines covered (100.0%)

399.03 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ruby-3.2 - 6023403993.1 30 Aug 2023 10:01AM UTC 24
100.0
GitHub Action Run
2 ruby-3.1 - 6023403993.2 30 Aug 2023 10:02AM UTC 24
100.0
GitHub Action Run
3 ruby-3.0 - 6023403993.3 30 Aug 2023 10:02AM UTC 24
100.0
GitHub Action Run
Source Files on build 6023403993
  • Tree
  • List 24
  • Changed 8
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #215
  • PR Base - master (#5999818755)
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

© 2026 Coveralls, Inc