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

ruby-grape / grape / 24754755957
97%

Build:
DEFAULT BRANCH: master
Ran 22 Apr 2026 01:06AM UTC
Jobs 37
Files 155
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

22 Apr 2026 01:06AM UTC coverage: 97.001% (+0.002%) from 96.999%
24754755957

push

github

web-flow
Precompute prefix list in Versioner::Path (#2691)

`Versioner::Path#before` built `[mount_path, Grape::Router.normalize_path(prefix)]`
on every request and iterated it, filtering nil/empty/'/' entries with a guard
clause on each element. Both `mount_path` and `prefix` are fixed at mount time,
so this work is redundant.

Memoize a pre-filtered `@prefixes` array in `initialize` (the middleware dup in
`Middleware::Base#call` shallow-copies ivars, so the frozen array is shared
across request dups for free). The per-request loop simplifies to
`if path_info.start_with?(path)`.

  current                    1.09 M i/s, 80KB / 2k objects
  variant A (memoize normalize) 1.34 M i/s, 80KB / 2k objects
  variant B (memoize list)   2.61 M i/s, 40KB / 1k objects  (2.38x faster, 2x fewer)

Shipping variant B.

No behavior change; all 2,236 specs pass.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

1077 of 1161 branches covered (92.76%)

Branch coverage included in aggregate %.

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

3354 of 3407 relevant lines covered (98.44%)

32198.21 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.4-gemfiles/rack_3_2.gemfile - 24754755957.1 22 Apr 2026 01:07AM UTC 154
95.68
GitHub Action Run
2 run-4.0-Gemfile - 24754755957.2 22 Apr 2026 01:07AM UTC 154
95.68
GitHub Action Run
3 run-4.0-gemfiles/rack_3_1.gemfile - 24754755957.3 22 Apr 2026 01:07AM UTC 154
95.68
GitHub Action Run
4 run-3.3-Gemfile - 24754755957.4 22 Apr 2026 01:07AM UTC 154
95.66
GitHub Action Run
5 run-3.2-Gemfile - 24754755957.5 22 Apr 2026 01:07AM UTC 154
95.7
GitHub Action Run
6 run-3.4-gemfiles/rails_8_0.gemfile - 24754755957.6 22 Apr 2026 01:07AM UTC 155
95.68
GitHub Action Run
7 run-4.0-gemfiles/rails_7_2.gemfile - 24754755957.7 22 Apr 2026 01:07AM UTC 155
95.68
GitHub Action Run
8 run-4.0-gemfiles/rails_8_1.gemfile - 24754755957.8 22 Apr 2026 01:07AM UTC 155
95.68
GitHub Action Run
9 run-3.2-gemfiles/rails_7_2.gemfile - 24754755957.9 22 Apr 2026 01:07AM UTC 155
95.7
GitHub Action Run
10 run-4.0-gemfiles/rack_3_2.gemfile - 24754755957.10 22 Apr 2026 01:07AM UTC 154
95.68
GitHub Action Run
11 run-4.0-gemfiles/dry_validation.gemfile - 24754755957.11 22 Apr 2026 01:06AM UTC 154
57.78
GitHub Action Run
12 run-3.3-gemfiles/rails_8_0.gemfile - 24754755957.12 22 Apr 2026 01:07AM UTC 155
95.66
GitHub Action Run
13 run-4.0-gemfiles/rack_2_2.gemfile - 24754755957.13 22 Apr 2026 01:07AM UTC 154
95.63
GitHub Action Run
14 run-4.0-gemfiles/hashie.gemfile - 24754755957.14 22 Apr 2026 01:07AM UTC 154
62.48
GitHub Action Run
15 run-3.3-gemfiles/rails_8_1.gemfile - 24754755957.15 22 Apr 2026 01:07AM UTC 155
95.66
GitHub Action Run
16 run-3.2-gemfiles/rack_3_2.gemfile - 24754755957.16 22 Apr 2026 01:06AM UTC 154
95.7
GitHub Action Run
17 run-3.4-gemfiles/rails_8_1.gemfile - 24754755957.17 22 Apr 2026 01:07AM UTC 155
95.68
GitHub Action Run
18 run-3.3-gemfiles/rack_2_2.gemfile - 24754755957.18 22 Apr 2026 01:06AM UTC 154
95.61
GitHub Action Run
19 run-3.3-gemfiles/rack_3_0.gemfile - 24754755957.19 22 Apr 2026 01:07AM UTC 154
95.66
GitHub Action Run
20 run-4.0-gemfiles/grape_entity.gemfile - 24754755957.20 22 Apr 2026 01:07AM UTC 154
49.44
GitHub Action Run
21 run-3.2-gemfiles/rails_8_1.gemfile - 24754755957.21 22 Apr 2026 01:07AM UTC 155
95.7
GitHub Action Run
22 run-3.2-gemfiles/rack_3_0.gemfile - 24754755957.22 22 Apr 2026 01:06AM UTC 154
95.7
GitHub Action Run
23 run-3.4-gemfiles/rack_3_0.gemfile - 24754755957.23 22 Apr 2026 01:06AM UTC 154
95.68
GitHub Action Run
24 run-4.0-gemfiles/rails_8_0.gemfile - 24754755957.24 22 Apr 2026 01:07AM UTC 155
95.68
GitHub Action Run
25 run-3.4-gemfiles/rack_2_2.gemfile - 24754755957.25 22 Apr 2026 01:07AM UTC 154
95.63
GitHub Action Run
26 run-3.4-gemfiles/rack_3_1.gemfile - 24754755957.26 22 Apr 2026 01:07AM UTC 154
95.68
GitHub Action Run
27 run-3.2-gemfiles/rails_8_0.gemfile - 24754755957.27 22 Apr 2026 01:07AM UTC 155
95.7
GitHub Action Run
28 run-3.3-gemfiles/rack_3_1.gemfile - 24754755957.28 22 Apr 2026 01:07AM UTC 154
95.66
GitHub Action Run
29 run-3.4-gemfiles/rails_7_2.gemfile - 24754755957.29 22 Apr 2026 01:07AM UTC 155
95.68
GitHub Action Run
30 run-3.3-gemfiles/rack_3_2.gemfile - 24754755957.30 22 Apr 2026 01:07AM UTC 154
95.66
GitHub Action Run
31 run-3.2-gemfiles/rack_2_2.gemfile - 24754755957.31 22 Apr 2026 01:07AM UTC 154
95.66
GitHub Action Run
32 run-3.3-gemfiles/rails_7_2.gemfile - 24754755957.32 22 Apr 2026 01:07AM UTC 155
95.66
GitHub Action Run
33 run-3.4-Gemfile - 24754755957.33 22 Apr 2026 01:07AM UTC 154
95.68
GitHub Action Run
34 run-3.2-gemfiles/rack_3_1.gemfile - 24754755957.34 22 Apr 2026 01:06AM UTC 154
95.7
GitHub Action Run
35 run-4.0-gemfiles/multi_xml.gemfile - 24754755957.35 22 Apr 2026 01:07AM UTC 154
35.97
GitHub Action Run
36 run-4.0-gemfiles/multi_json.gemfile - 24754755957.36 22 Apr 2026 01:07AM UTC 154
35.97
GitHub Action Run
37 run-4.0-gemfiles/rack_3_0.gemfile - 24754755957.37 22 Apr 2026 01:07AM UTC 154
95.68
GitHub Action Run
Source Files on build 24754755957
  • Tree
  • List 155
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24754755957
  • f2ef8619 on github
  • Prev Build on master (#24754666104)
  • Next Build on master (#24754841764)
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