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

ruby-grape / grape / 26964087978
97%

Build:
DEFAULT BRANCH: master
Ran 04 Jun 2026 04:09PM UTC
Jobs 30
Files 166
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

04 Jun 2026 04:09PM UTC coverage: 96.839%. Remained the same
26964087978

push

github

web-flow
Build the cookie jar only on use and drop its deferral Proc (#2757)

Two related steps that make the response-cookie path lazy at the request
boundary:

- `build_response_cookies` runs on every request and went through
  `cookies` -> `request.cookies`, materializing the `Grape::Cookies` jar
  even when the handler never touched a cookie. Gate it on a new
  `Grape::Request#cookies?` predicate (true only once the jar exists),
  so a cookie-free request allocates no jar at all.

- With the jar now built only when a cookie is actually read or written,
  its `-> { rack_cookies }` deferral Proc no longer earns its keep: any
  access immediately forces the parse, and a write (`[]=`) always did.
  Parse `rack_cookies` eagerly in the constructor and replace the
  `is_a?(Proc)` lazy reader with a plain `attr_reader`, dropping the
  closure allocation and the per-access branch.

The `ActiveSupport::HashWithIndifferentAccess` wrapping is unchanged --
it backs Grape's string/symbol-indifferent cookie access.

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

1114 of 1205 branches covered (92.45%)

Branch coverage included in aggregate %.

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

3543 of 3604 relevant lines covered (98.31%)

23211.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/grape_entity.gemfile - 26964087978.1 04 Jun 2026 04:09PM UTC 165
50.32
GitHub Action Run
2 run-4.0-gemfiles/dry_validation.gemfile - 26964087978.2 04 Jun 2026 04:09PM UTC 165
58.38
GitHub Action Run
3 run-3.4-gemfiles/rails_7_2.gemfile - 26964087978.3 04 Jun 2026 04:09PM UTC 166
95.65
GitHub Action Run
4 run-4.0-gemfiles/multi_xml.gemfile - 26964087978.4 04 Jun 2026 04:09PM UTC 165
37.14
GitHub Action Run
5 run-4.0-gemfiles/multi_json.gemfile - 26964087978.5 04 Jun 2026 04:09PM UTC 165
37.14
GitHub Action Run
6 run-3.3-gemfiles/rack_2_2.gemfile - 26964087978.6 04 Jun 2026 04:10PM UTC 165
95.61
GitHub Action Run
7 run-3.4-gemfiles/rack_2_2.gemfile - 26964087978.7 04 Jun 2026 04:09PM UTC 165
95.61
GitHub Action Run
8 run-4.0-gemfiles/grape_swagger.gemfile - 26964087978.8 04 Jun 2026 04:10PM UTC 165
55.32
GitHub Action Run
9 run-3.3-gemfiles/rack_3_2.gemfile - 26964087978.9 04 Jun 2026 04:10PM UTC 165
95.65
GitHub Action Run
10 run-3.3-gemfiles/rails_8_0.gemfile - 26964087978.10 04 Jun 2026 04:10PM UTC 166
95.65
GitHub Action Run
11 run-3.3-gemfiles/rack_3_0.gemfile - 26964087978.11 04 Jun 2026 04:09PM UTC 165
95.65
GitHub Action Run
12 run-4.0-gemfiles/hashie.gemfile - 26964087978.12 04 Jun 2026 04:10PM UTC 165
62.52
GitHub Action Run
13 run-3.3-Gemfile - 26964087978.13 04 Jun 2026 04:09PM UTC 165
95.65
GitHub Action Run
14 run-4.0-gemfiles/rack_3_1.gemfile - 26964087978.14 04 Jun 2026 04:10PM UTC 165
95.65
GitHub Action Run
15 run-3.4-gemfiles/rack_3_1.gemfile - 26964087978.15 04 Jun 2026 04:09PM UTC 165
95.65
GitHub Action Run
16 run-4.0-gemfiles/rails_7_2.gemfile - 26964087978.16 04 Jun 2026 04:10PM UTC 166
95.65
GitHub Action Run
17 run-3.4-Gemfile - 26964087978.17 04 Jun 2026 04:10PM UTC 165
95.65
GitHub Action Run
18 run-3.4-gemfiles/rack_3_0.gemfile - 26964087978.18 04 Jun 2026 04:10PM UTC 165
95.65
GitHub Action Run
19 run-3.3-gemfiles/rails_7_2.gemfile - 26964087978.19 04 Jun 2026 04:09PM UTC 166
95.65
GitHub Action Run
20 run-4.0-gemfiles/rack_3_0.gemfile - 26964087978.20 04 Jun 2026 04:09PM UTC 165
95.65
GitHub Action Run
21 run-4.0-gemfiles/rails_8_0.gemfile - 26964087978.21 04 Jun 2026 04:10PM UTC 166
95.65
GitHub Action Run
22 run-3.4-gemfiles/rails_8_1.gemfile - 26964087978.22 04 Jun 2026 04:09PM UTC 166
95.65
GitHub Action Run
23 run-4.0-gemfiles/rack_3_2.gemfile - 26964087978.23 04 Jun 2026 04:09PM UTC 165
95.65
GitHub Action Run
24 run-4.0-Gemfile - 26964087978.24 04 Jun 2026 04:09PM UTC 165
95.65
GitHub Action Run
25 run-3.4-gemfiles/rack_3_2.gemfile - 26964087978.25 04 Jun 2026 04:10PM UTC 165
95.65
GitHub Action Run
26 run-4.0-gemfiles/rack_2_2.gemfile - 26964087978.26 04 Jun 2026 04:10PM UTC 165
95.61
GitHub Action Run
27 run-3.3-gemfiles/rails_8_1.gemfile - 26964087978.27 04 Jun 2026 04:09PM UTC 166
95.65
GitHub Action Run
28 run-4.0-gemfiles/rails_8_1.gemfile - 26964087978.28 04 Jun 2026 04:09PM UTC 166
95.65
GitHub Action Run
29 run-3.4-gemfiles/rails_8_0.gemfile - 26964087978.29 04 Jun 2026 04:09PM UTC 166
95.65
GitHub Action Run
30 run-3.3-gemfiles/rack_3_1.gemfile - 26964087978.30 04 Jun 2026 04:09PM UTC 165
95.65
GitHub Action Run
Source Files on build 26964087978
  • Tree
  • List 166
  • 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 #26964087978
  • d79a12b4 on github
  • Prev Build on master (#26819478808)
  • Next Build on master (#27306538704)
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