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

stripe / stripe-ruby / 3393
96%
master: 97%

Build:
Build:
LAST BUILD BRANCH: HEAD
DEFAULT BRANCH: master
Ran 19 Aug 2019 11:44PM UTC
Jobs 5
Files 97
Run time 3min
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

pending completion
3393

push

travis-ci

brandur
Do better bookkeeping when tracking state in `Thread.current`

This is largely just another cleanup patch, but does a couple main
things:

* Hoists the `last_response` value into thread state. This is a very
  minor nicety, but effectively makes `StripeClient` fully thread-safe,
  which seems like a minor nicety. Two calls to `#request` to the same
  `StripeObject` can now be executed on two different threads and their
  results won't interfere with each other.

* Moves state off one-off `Thread.current` keys and into a single one
  for the whole client which stores a new simple type of record called
  `ThreadContext`. Again, this doesn't change much, but adds some minor
  type safety and lets us document each field we expect to have in a
  thread's context.

1849 of 1925 relevant lines covered (96.05%)

2441.2 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3393.1 (2.3) 19 Aug 2019 11:44PM UTC 0
96.16
Travis Job 3393.1
2 3393.2 (2.4) 19 Aug 2019 11:44PM UTC 0
96.16
Travis Job 3393.2
3 3393.3 (2.5) 19 Aug 2019 11:44PM UTC 0
96.16
Travis Job 3393.3
4 3393.4 (2.6) 19 Aug 2019 11:44PM UTC 0
96.13
Travis Job 3393.4
5 3393.5 (jruby-9.2.7.0) 19 Aug 2019 11:47PM UTC 0
0.0
Travis Job 3393.5
Source Files on build 3393
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3393
  • 03efb942 on github
  • Prev Build on brandur-thread-state (#3391)
  • Next Build on brandur-thread-state (#3396)
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