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

stripe / stripe-ruby / 3460 / 5
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 01 Oct 2019 05:03PM UTC
Files 97
Run time 6s
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

01 Oct 2019 04:58PM UTC coverage: 0.0%. Remained the same
jruby-9.2.7.0

push

travis-ci

brandur-stripe
Move to monotonic time for duration calculations (#857)

Drops the use of `Time.now` in favor of using the system's monotonic
clock for various operations that calculate and use elapsed duration.
The latter is preferable because in some cases `Time.now` can be
unstable, like if it's set manually by a system administrator or an NTP
daemon.

I don't expect that the previous code would actually have caused trouble
in the vast majority of normal situations, so I'm not going to backport
anything, but this seems like good hygiene.

For better or worse I had to wrap the monotonic time calls in a new
`Util` function because (1) the normal invocation is long enough to have
caused a lot of overruns on our 80 character line lengths, and (2)
Timecop doesn't stub the monotonic clock, so the `Util` method gives us
a nice place that we can stub on where necessary.

0 of 2036 relevant lines covered (0.0%)

0.0 hits per line

Source Files on job 3460.5 (jruby-9.2.7.0)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3291
  • Travis Job 3460.5
  • 480303c4 on github
  • Prev Job for jruby-9.2.7.0 on master (#3456.5)
  • Next Job for jruby-9.2.7.0 on master (#3461.5)
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