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

ruby-grape / grape / 39050573748
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fix/content-type-order-cache
DEFAULT BRANCH: master
Ran 17 Oct 2026 04:47PM UTC
Jobs 32
Files 168
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

17 Oct 2026 04:39PM UTC coverage: 99.95%. Remained the same
39050573748

Pull #3033

github

ericproulx
Allocate less per request when presenting an entity or reading path params

Profiling the grape-on-rack app under live load showed four per-request
allocations whose only use was to feed another one:

- `present` collected the `env`/`version` embeds into a Hash and splatted
  it into `represent`, whose keywords build a Hash anyway: two Hashes per
  call where one does.
- `present` built `[nil, object]` only to destructure it in the
  one-argument form.
- `Request#make_params` copied the routing args with `except` only to
  `deep_merge!` the copy into the params. A capture is a String or an
  Array of them, never a Hash, so the merge only ever assigned; the
  captures are now assigned directly, skipping Grape's own keys.
- `format_from_extension` sliced the extension out with an endless
  Range, an object of its own on every call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #3033: Allocate less per request when presenting an entity or reading path params

1499 of 1501 branches covered (99.87%)

Branch coverage included in aggregate %.

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

4465 of 4466 relevant lines covered (99.98%)

29387.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.3-gemfiles/rack_3_2.gemfile - 39050573748.1 17 Oct 2026 04:50PM UTC 167
98.81
GitHub Action Run
2 run-3.4-Gemfile - 39050573748.2 17 Oct 2026 04:49PM UTC 167
98.79
GitHub Action Run
3 run-3.4-gemfiles/rack_3_2.gemfile - 39050573748.3 17 Oct 2026 04:50PM UTC 167
98.79
GitHub Action Run
4 run-4.0-gemfiles/multi_xml.gemfile - 39050573748.4 17 Oct 2026 04:50PM UTC 166
45.93
GitHub Action Run
5 run-3.3-gemfiles/rails_7_2.gemfile - 39050573748.5 17 Oct 2026 04:50PM UTC 168
98.81
GitHub Action Run
6 run-4.0-gemfiles/rack_3_1.gemfile - 39050573748.6 17 Oct 2026 04:49PM UTC 167
98.79
GitHub Action Run
7 run-4.0-gemfiles/rack_2_2.gemfile - 39050573748.7 17 Oct 2026 04:49PM UTC 167
98.76
GitHub Action Run
8 run-4.0-gemfiles/rails_8_1.gemfile - 39050573748.8 17 Oct 2026 04:50PM UTC 168
98.79
GitHub Action Run
9 run-3.4-gemfiles/rack_3_1.gemfile - 39050573748.9 17 Oct 2026 04:50PM UTC 167
98.79
GitHub Action Run
10 run-4.0-gemfiles/dry_validation.gemfile - 39050573748.10 17 Oct 2026 04:50PM UTC 166
56.04
GitHub Action Run
11 run-3.3-Gemfile - 39050573748.11 17 Oct 2026 04:48PM UTC 167
98.81
GitHub Action Run
12 run-3.4-gemfiles/rack_3_0.gemfile - 39050573748.12 17 Oct 2026 04:50PM UTC 167
98.79
GitHub Action Run
13 run-4.0-gemfiles/multi_xml_0_8.gemfile - 39050573748.13 17 Oct 2026 04:48PM UTC 166
45.96
GitHub Action Run
14 run-4.0-gemfiles/rails_8_0.gemfile - 39050573748.14 17 Oct 2026 04:48PM UTC 168
98.79
GitHub Action Run
15 run-4.0-gemfiles/grape_entity.gemfile - 39050573748.15 17 Oct 2026 04:50PM UTC 166
49.1
GitHub Action Run
16 run-3.3-gemfiles/rack_3_0.gemfile - 39050573748.16 17 Oct 2026 04:51PM UTC 167
98.81
GitHub Action Run
17 run-4.0-gemfiles/rails_7_2.gemfile - 39050573748.17 17 Oct 2026 04:48PM UTC 168
98.79
GitHub Action Run
18 run-3.4-gemfiles/rack_2_2.gemfile - 39050573748.18 17 Oct 2026 04:50PM UTC 167
98.76
GitHub Action Run
19 run-4.0-gemfiles/multi_json.gemfile - 39050573748.19 17 Oct 2026 04:49PM UTC 166
46.23
GitHub Action Run
20 run-4.0-gemfiles/rack_3_0.gemfile - 39050573748.20 17 Oct 2026 04:49PM UTC 167
98.79
GitHub Action Run
21 run-3.3-gemfiles/rack_3_1.gemfile - 39050573748.21 17 Oct 2026 04:50PM UTC 167
98.81
GitHub Action Run
22 run-3.3-gemfiles/rack_2_2.gemfile - 39050573748.22 17 Oct 2026 04:51PM UTC 167
98.78
GitHub Action Run
23 run-3.3-gemfiles/rails_8_0.gemfile - 39050573748.23 17 Oct 2026 04:50PM UTC 168
98.81
GitHub Action Run
24 run-3.4-gemfiles/rails_8_1.gemfile - 39050573748.24 17 Oct 2026 04:49PM UTC 168
98.79
GitHub Action Run
25 run-3.4-gemfiles/rails_7_2.gemfile - 39050573748.25 17 Oct 2026 04:48PM UTC 168
98.79
GitHub Action Run
26 run-3.4-gemfiles/rails_8_0.gemfile - 39050573748.26 17 Oct 2026 04:50PM UTC 168
98.79
GitHub Action Run
27 run-4.0-gemfiles/rack_3_2.gemfile - 39050573748.27 17 Oct 2026 04:47PM UTC 167
98.79
GitHub Action Run
28 run-4.0-Gemfile - 39050573748.28 17 Oct 2026 04:48PM UTC 167
98.79
GitHub Action Run
29 run-3.3-gemfiles/rails_8_1.gemfile - 39050573748.29 17 Oct 2026 04:48PM UTC 168
98.81
GitHub Action Run
30 run-4.0-gemfiles/hashie.gemfile - 39050573748.30 17 Oct 2026 04:48PM UTC 166
60.07
GitHub Action Run
31 run-4.0-gemfiles/grape_swagger.gemfile - 39050573748.31 17 Oct 2026 04:49PM UTC 166
53.38
GitHub Action Run
32 run-4.0-gemfiles/multi_json_1_20.gemfile - 39050573748.32 17 Oct 2026 04:48PM UTC 166
46.27
GitHub Action Run
Source Files on build 39050573748
  • Tree
  • List 168
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #39050573748
  • Pull Request #3033
  • PR Base - master (#39049930924)
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