stripe 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/VERSION +1 -1
- data/lib/stripe/stripe_client.rb +2 -1
- data/lib/stripe/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ebe21057dc5a9f40efa023d87f051a648e35adf
|
4
|
+
data.tar.gz: 58b51ca116a229ca288b31f6c316919d180aebe1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1545e053a5614167868b466eff8e1040ca818b646015d2dd41a0c93c0d7df35b830202365a5bb13c47b856392717beae18630892ada855b716b5c434be941f46
|
7
|
+
data.tar.gz: 7e5cd57e3ea0292977a39792f7300b4745df3ae79afed1d4c5eb9a247abc99d22903fab1e54a07ff99bbe68c579fbeb6a1bf1c5783a29699664776ca212ddea8
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 4.0.1 - 2018-11-15
|
4
|
+
* [#699](https://github.com/stripe/stripe-ruby/pull/699) Only send telemetry if `Request-Id` was present in the response
|
5
|
+
|
3
6
|
## 4.0.0 - 2018-11-15
|
4
7
|
* [#698](https://github.com/stripe/stripe-ruby/pull/698) Use persistent connections by default through `Net::HTTP::Persistent`
|
5
8
|
* [#698](https://github.com/stripe/stripe-ruby/pull/698) Drop support for Ruby 2.0 (which we consider a breaking change here)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.0.
|
1
|
+
4.0.1
|
data/lib/stripe/stripe_client.rb
CHANGED
@@ -225,7 +225,8 @@ module Stripe
|
|
225
225
|
resp = yield
|
226
226
|
context = context.dup_from_response(resp)
|
227
227
|
log_response(context, request_start, resp.status, resp.body)
|
228
|
-
|
228
|
+
|
229
|
+
if Stripe.enable_telemetry? && context.request_id
|
229
230
|
request_duration_ms = ((Time.now - request_start) * 1000).to_int
|
230
231
|
@last_request_metrics = StripeRequestMetrics.new(context.request_id, request_duration_ms)
|
231
232
|
end
|
data/lib/stripe/version.rb
CHANGED