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

ruby-grape / grape / 33365105943
97%

Build:
DEFAULT BRANCH: master
Ran 31 Aug 2026 06:40AM UTC
Jobs 32
Files 169
Run time 2min
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

31 Aug 2026 06:39AM UTC coverage: 96.978%. Remained the same
33365105943

push

github

web-flow
Keep `refresh_already_mounted` out of `mount`'s public signature (#2871)

* Keep `refresh_already_mounted` out of `mount`'s public signature

`mount` accepted an undocumented `refresh_already_mounted` option that
replaced any endpoint already mounted for the same base API instead of
adding a second one. The behaviour is essential — `Grape::API.refresh_mount_step`
replays every earlier mount when a class-level method runs after one, and
replaying without it duplicates the endpoint (a single `format :json` after
a mount turns 1 endpoint into 3) — but the decision belongs to the replay,
not to the call.

Its only legitimate caller, the private `refresh_mounted_api`, always passed
true, so the option existed solely to carry a constant from a private method
through a public one. Move the replacement into `refresh_mounted_api`, which
is possible because a mounted API's throwaway instance and the class that was
written share a base, the same signal `same_mounted_app?` already keys on.
Passing the option to `mount` warns and still works.

Two things fall out of no longer threading an internal flag through the
signature:

`mounts.respond_to?(:each_pair)` becomes `mounts.is_a?(Hash)`. A Struct and
an OpenStruct answer `each_pair` without being able to express an app => path
mapping, so a Rack app that happened to be one was read as a mapping and
mounted its own field value as a path. The normalisation is shared with the
endpoint replacement rather than written twice.

`*opts` becomes `opts = {}`. The splat could only ever hold one element, so
every read spelled `opts.any? ? opts.first[:key] : default`. It stays
positional: `mount` must declare no keywords, or Ruby routes the brace-less
Hash of `mount App => '/path'` to them and the mount itself goes missing.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

* Add the missing CHANGELOG entry for #2867

#2867 was merged as a squash of a branch that also carried #2865's commit,
so its merge delivered that PR... (continued)

1234 of 1326 branches covered (93.06%)

Branch coverage included in aggregate %.

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

3900 of 3968 relevant lines covered (98.29%)

27290.03 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.3-gemfiles/rails_8_0.gemfile - 33365105943.1 31 Aug 2026 06:40AM UTC 169
95.73
GitHub Action Run
2 run-3.4-gemfiles/rails_8_1.gemfile - 33365105943.2 31 Aug 2026 06:40AM UTC 169
95.73
GitHub Action Run
3 run-3.4-gemfiles/rack_3_2.gemfile - 33365105943.3 31 Aug 2026 06:40AM UTC 168
95.73
GitHub Action Run
4 run-4.0-gemfiles/rack_3_2.gemfile - 33365105943.4 31 Aug 2026 06:40AM UTC 168
95.73
GitHub Action Run
5 run-3.4-gemfiles/rack_2_2.gemfile - 33365105943.5 31 Aug 2026 06:40AM UTC 168
95.69
GitHub Action Run
6 run-4.0-gemfiles/multi_xml_0_8.gemfile - 33365105943.6 31 Aug 2026 06:40AM UTC 168
46.88
GitHub Action Run
7 run-4.0-gemfiles/grape_entity.gemfile - 33365105943.7 31 Aug 2026 06:40AM UTC 168
50.15
GitHub Action Run
8 run-4.0-gemfiles/hashie.gemfile - 33365105943.8 31 Aug 2026 06:40AM UTC 168
61.69
GitHub Action Run
9 run-4.0-gemfiles/rails_8_0.gemfile - 33365105943.9 31 Aug 2026 06:40AM UTC 169
95.73
GitHub Action Run
10 run-4.0-gemfiles/multi_json_1_20.gemfile - 33365105943.10 31 Aug 2026 06:40AM UTC 168
47.48
GitHub Action Run
11 run-3.3-gemfiles/rack_3_0.gemfile - 33365105943.11 31 Aug 2026 06:40AM UTC 168
95.73
GitHub Action Run
12 run-4.0-gemfiles/grape_swagger.gemfile - 33365105943.12 31 Aug 2026 06:40AM UTC 168
55.2
GitHub Action Run
13 run-4.0-gemfiles/rack_2_2.gemfile - 33365105943.13 31 Aug 2026 06:40AM UTC 168
95.69
GitHub Action Run
14 run-3.3-gemfiles/rails_8_1.gemfile - 33365105943.14 31 Aug 2026 06:40AM UTC 169
95.73
GitHub Action Run
15 run-3.4-gemfiles/rack_3_1.gemfile - 33365105943.15 31 Aug 2026 06:40AM UTC 168
95.73
GitHub Action Run
16 run-4.0-Gemfile - 33365105943.16 31 Aug 2026 06:40AM UTC 168
95.73
GitHub Action Run
17 run-3.3-gemfiles/rack_3_1.gemfile - 33365105943.17 31 Aug 2026 06:40AM UTC 168
95.73
GitHub Action Run
18 run-3.3-Gemfile - 33365105943.18 31 Aug 2026 06:40AM UTC 168
95.73
GitHub Action Run
19 run-4.0-gemfiles/dry_validation.gemfile - 33365105943.19 31 Aug 2026 06:40AM UTC 168
57.85
GitHub Action Run
20 run-4.0-gemfiles/multi_json.gemfile - 33365105943.20 31 Aug 2026 06:40AM UTC 168
47.45
GitHub Action Run
21 run-3.3-gemfiles/rails_7_2.gemfile - 33365105943.21 31 Aug 2026 06:40AM UTC 169
95.73
GitHub Action Run
22 run-4.0-gemfiles/rack_3_0.gemfile - 33365105943.22 31 Aug 2026 06:40AM UTC 168
95.73
GitHub Action Run
23 run-3.4-gemfiles/rack_3_0.gemfile - 33365105943.23 31 Aug 2026 06:40AM UTC 168
95.73
GitHub Action Run
24 run-4.0-gemfiles/rails_8_1.gemfile - 33365105943.24 31 Aug 2026 06:40AM UTC 169
95.73
GitHub Action Run
25 run-4.0-gemfiles/multi_xml.gemfile - 33365105943.25 31 Aug 2026 06:40AM UTC 168
46.84
GitHub Action Run
26 run-4.0-gemfiles/rails_7_2.gemfile - 33365105943.26 31 Aug 2026 06:41AM UTC 169
95.73
GitHub Action Run
27 run-3.3-gemfiles/rack_3_2.gemfile - 33365105943.27 31 Aug 2026 06:40AM UTC 168
95.73
GitHub Action Run
28 run-3.4-gemfiles/rails_8_0.gemfile - 33365105943.28 31 Aug 2026 06:40AM UTC 169
95.73
GitHub Action Run
29 run-3.4-gemfiles/rails_7_2.gemfile - 33365105943.29 31 Aug 2026 06:40AM UTC 169
95.73
GitHub Action Run
30 run-3.3-gemfiles/rack_2_2.gemfile - 33365105943.30 31 Aug 2026 06:40AM UTC 168
95.69
GitHub Action Run
31 run-4.0-gemfiles/rack_3_1.gemfile - 33365105943.31 31 Aug 2026 06:40AM UTC 168
95.73
GitHub Action Run
32 run-3.4-Gemfile - 33365105943.32 31 Aug 2026 06:40AM UTC 168
95.73
GitHub Action Run
Source Files on build 33365105943
  • Tree
  • List 169
  • 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 #33365105943
  • 4b32ecce on github
  • Prev Build on master (#33322439088)
  • Next Build on master (#33412721482)
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