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

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

Build:
Build:
LAST BUILD BRANCH: HEAD
DEFAULT BRANCH: master
Ran 19 Aug 2019 09:43PM 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
3387

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.

1847 of 1923 relevant lines covered (96.05%)

2441.4 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3387.1 (2.3) 19 Aug 2019 09:43PM UTC 0
96.15
Travis Job 3387.1
2 3387.2 (2.4) 19 Aug 2019 09:43PM UTC 0
96.15
Travis Job 3387.2
3 3387.3 (2.5) 19 Aug 2019 09:43PM UTC 0
96.16
Travis Job 3387.3
4 3387.4 (2.6) 19 Aug 2019 09:43PM UTC 0
96.13
Travis Job 3387.4
5 3387.5 (jruby-9.2.7.0) 19 Aug 2019 09:46PM UTC 0
0.0
Travis Job 3387.5
Source Files on build 3387
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3387
  • 8f81e6a9 on github
  • Next Build on brandur-thread-state (#3391)
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