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

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

Build:
Build:
LAST BUILD BRANCH: HEAD
DEFAULT BRANCH: master
Ran 17 Aug 2019 12:23AM CUT
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
3366

push

travis-ci

brandur
Reset connections when connection-changing configuration changes

Adds a few basic features around connection and connection manager
management:

* `clear` on connection manager, which calls `finish` on each active
  connection and then disposes of it.

* A centralized cross-thread tracking system for connection managers in
  `StripeClient` and `clear_all_connection_managers` which clears all
  known connection managers across all threads in a thread-safe way.

The addition of these allow us to modify the implementation of some of
our configuration on `Stripe` so that it can reset all currently open
connections when its value changes.

This fixes a currently problem with the library whereby certain
configuration must be set before the first request or it remains fixed
on any open connections. For example, if `Stripe.proxy` is set after a
request is made from the library, it has no effect because the proxy
must have been set when the connection was originally being initialized.

The impetus for getting this out is that I noticed that we will need
this internally in a few places when we're upgrading to stripe-ruby V5.
Those spots used to be able to hack around the unavailability of this
feature by just accessing the Faraday connection directly and resetting
state on it, but in V5 `StripeClient#conn` is gone, and that's no longer
possible.

1852 of 1928 relevant lines covered (96.06%)

2433.28 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3366.1 (2.3) 17 Aug 2019 12:23AM CUT 0
96.16
Travis Job 3366.1
2 3366.2 (2.4) 17 Aug 2019 12:23AM CUT 0
96.16
Travis Job 3366.2
3 3366.3 (2.5) 17 Aug 2019 12:23AM CUT 0
96.17
Travis Job 3366.3
4 3366.4 (2.6) 17 Aug 2019 12:23AM CUT 0
96.14
Travis Job 3366.4
5 3366.5 (jruby-9.2.7.0) 17 Aug 2019 12:26AM CUT 0
0.0
Travis Job 3366.5
Source Files on build 3366
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
No data available in table
Showing 0 to 0 of 0 entries
  • Previous
  • Next
  • Back to Repo
  • Travis Build #3366
  • bffbb03c on github
  • Prev Build on brandur-clearable-connections (#3364)
  • Next Build on brandur-clearable-connections (#3379)
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