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

ruby-grape / grape / 3722 / 4
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 07 Jan 2020 09:19PM UTC
Files 157
Run time 8s
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

06 Jan 2020 04:22AM UTC coverage: 98.959% (-0.007%) from 98.966%
2.7.0, gemfiles/rails_edge.gemfile

push

travis-ci

dblock
delete a reversible stackable values class (#1953)

* delete a reversible stackable values class

The reversible stackable values object was initialized for every endpoint,
however, it is only needed for keeping rescue handlers. The idea is
simple, handlers defined "closer" to an endpoint have higher priority.
That test https://github.com/ruby-grape/grape/blob/master/spec/grape/api_spec.rb#L3215-L3232
demonstrates how it works.

In our project rescue handlers are defined at the top level, so almost every
endpoint keeps the unused object.

The mentioned behavior is easy to achieve with the stackable values object and
the `reverse_each` method. Thus, endpoints keeps less objects and
have less code to be maintained.

Besides that, there are a few other simple performance optimizations.

12828 of 12963 relevant lines covered (98.96%)

28.3 hits per line

Source Files on job 3722.4 (2.7.0, gemfiles/rails_edge.gemfile)
  • Tree
  • List 0
  • Changed 5
  • Source Changed 4
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3663
  • Travis Job 3722.4
  • 9f786adb on github
  • Prev Job for 2.7.0, gemfiles/rails_edge.gemfile on master (#3716.4)
  • Next Job for 2.7.0, gemfiles/rails_edge.gemfile on master (#3734.6)
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

© 2025 Coveralls, Inc