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

ruby-grape / grape / 33117902786
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: rubocop-mutable-constant-recursive
DEFAULT BRANCH: master
Ran 27 Aug 2026 09:23PM 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

27 Aug 2026 09:23PM UTC coverage: 96.996% (+0.007%) from 96.989%
33117902786

Pull #2862

github

ericproulx
Rename the desc `default` key to `default_response`

grape-swagger reads a route's default response as `route.default_response`
(GrapeSwagger::Endpoint#default_code_from_route), but grape's `desc` DSL
writes the key as `default` and never defined that reader, so the call
resolved through BaseRoute's options bag to nil. A default response
declared the way grape's README documents it was silently never
documented:

    desc('Delete a widget') { default code: 'default', message: 'boom' }
    # => route.options.keys      == [:description, :default]
    # => route.default_response  == nil

`default` was also the one name in ApiDescription::DSL_METHODS that
could not be delegated to the options bag at all, being `Hash#default`.

Rename the DSL method and the route reader to `default_response`, the
name grape-swagger already asks for, and keep `default` working as a
deprecated alias on both sides — plus the `desc 'x', default:` keyword,
which warns and is still read. The route reader accepts either key, as
`success` and `failure` do for their own two spellings.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Pull Request #2862: Rename the desc `default` key to `default_response`

1243 of 1334 branches covered (93.18%)

Branch coverage included in aggregate %.

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

3891 of 3959 relevant lines covered (98.28%)

27029.44 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.4-gemfiles/rack_3_0.gemfile - 33117902786.1 27 Aug 2026 09:24PM UTC 167
95.74
GitHub Action Run
2 run-3.4-gemfiles/rails_7_2.gemfile - 33117902786.2 27 Aug 2026 09:24PM UTC 168
95.75
GitHub Action Run
3 run-4.0-gemfiles/rails_7_2.gemfile - 33117902786.3 27 Aug 2026 09:23PM UTC 168
95.75
GitHub Action Run
4 run-3.4-Gemfile - 33117902786.4 27 Aug 2026 09:24PM UTC 167
95.74
GitHub Action Run
5 run-3.3-gemfiles/rails_8_1.gemfile - 33117902786.5 27 Aug 2026 09:23PM UTC 168
95.75
GitHub Action Run
6 run-4.0-gemfiles/rack_3_0.gemfile - 33117902786.6 27 Aug 2026 09:23PM UTC 167
95.74
GitHub Action Run
7 run-4.0-gemfiles/multi_json_1_20.gemfile - 33117902786.7 27 Aug 2026 09:24PM UTC 167
47.34
GitHub Action Run
8 run-3.4-gemfiles/rack_3_1.gemfile - 33117902786.8 27 Aug 2026 09:23PM UTC 167
95.74
GitHub Action Run
9 run-3.3-gemfiles/rails_8_0.gemfile - 33117902786.9 27 Aug 2026 09:23PM UTC 168
95.75
GitHub Action Run
10 run-4.0-gemfiles/multi_json.gemfile - 33117902786.10 27 Aug 2026 09:23PM UTC 167
47.3
GitHub Action Run
11 run-4.0-gemfiles/rack_2_2.gemfile - 33117902786.11 27 Aug 2026 09:23PM UTC 167
95.71
GitHub Action Run
12 run-3.4-gemfiles/rack_3_2.gemfile - 33117902786.12 27 Aug 2026 09:23PM UTC 167
95.74
GitHub Action Run
13 run-3.3-gemfiles/rack_3_1.gemfile - 33117902786.13 27 Aug 2026 09:23PM UTC 167
95.74
GitHub Action Run
14 run-4.0-gemfiles/rack_3_1.gemfile - 33117902786.14 27 Aug 2026 09:24PM UTC 167
95.74
GitHub Action Run
15 run-4.0-gemfiles/rails_8_1.gemfile - 33117902786.15 27 Aug 2026 09:23PM UTC 168
95.75
GitHub Action Run
16 run-3.4-gemfiles/rack_2_2.gemfile - 33117902786.16 27 Aug 2026 09:23PM UTC 167
95.71
GitHub Action Run
17 run-3.3-gemfiles/rack_2_2.gemfile - 33117902786.17 27 Aug 2026 09:23PM UTC 167
95.71
GitHub Action Run
18 run-4.0-gemfiles/rails_8_0.gemfile - 33117902786.18 27 Aug 2026 09:24PM UTC 168
95.75
GitHub Action Run
19 run-3.4-gemfiles/rails_8_1.gemfile - 33117902786.19 27 Aug 2026 09:23PM UTC 168
95.75
GitHub Action Run
20 run-3.3-Gemfile - 33117902786.20 27 Aug 2026 09:23PM UTC 167
95.74
GitHub Action Run
21 run-4.0-gemfiles/hashie.gemfile - 33117902786.21 27 Aug 2026 09:23PM UTC 167
61.72
GitHub Action Run
22 run-3.3-gemfiles/rails_7_2.gemfile - 33117902786.22 27 Aug 2026 09:24PM UTC 168
95.75
GitHub Action Run
23 run-4.0-gemfiles/dry_validation.gemfile - 33117902786.23 27 Aug 2026 09:23PM UTC 167
57.75
GitHub Action Run
24 run-3.4-gemfiles/rails_8_0.gemfile - 33117902786.24 27 Aug 2026 09:23PM UTC 168
95.75
GitHub Action Run
25 run-4.0-gemfiles/multi_xml_0_8.gemfile - 33117902786.25 27 Aug 2026 09:23PM UTC 167
46.78
GitHub Action Run
26 run-4.0-gemfiles/grape_entity.gemfile - 33117902786.26 27 Aug 2026 09:23PM UTC 167
49.97
GitHub Action Run
27 run-3.3-gemfiles/rack_3_2.gemfile - 33117902786.27 27 Aug 2026 09:23PM UTC 167
95.74
GitHub Action Run
28 run-4.0-Gemfile - 33117902786.28 27 Aug 2026 09:24PM UTC 167
95.74
GitHub Action Run
29 run-4.0-gemfiles/rack_3_2.gemfile - 33117902786.29 27 Aug 2026 09:24PM UTC 167
95.74
GitHub Action Run
30 run-3.3-gemfiles/rack_3_0.gemfile - 33117902786.30 27 Aug 2026 09:23PM UTC 167
95.74
GitHub Action Run
31 run-4.0-gemfiles/grape_swagger.gemfile - 33117902786.31 27 Aug 2026 09:24PM UTC 167
55.25
GitHub Action Run
32 run-4.0-gemfiles/multi_xml.gemfile - 33117902786.32 27 Aug 2026 09:23PM UTC 167
46.74
GitHub Action Run
Source Files on build 33117902786
  • 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 #33117902786
  • Pull Request #2862
  • PR Base - route-default-reads-description-key (#33117012556)
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