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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e387c7b3d7b8dcded5cc22edd5b99f7930c3434f
4
- data.tar.gz: 6316ec0e749191593429b3ad839045196869b50b
3
+ metadata.gz: 6ebe21057dc5a9f40efa023d87f051a648e35adf
4
+ data.tar.gz: 58b51ca116a229ca288b31f6c316919d180aebe1
5
5
  SHA512:
6
- metadata.gz: 9aa93b90808be8411c01818a55bcff5bf8ad645107da23469267b087c5594c2ffd11ec1f25638394dcaa75662a41c37361792e084a3c9b07d69e19de638f53cf
7
- data.tar.gz: 22390b6f5e797a283f93707dc631b25d15ce264bf78751efb8a1442a04c68266f0ed4f59eacf8a36bbe3f57577bbb138e6dec51823ba4d99f839aed6a974cdf6
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.0
1
+ 4.0.1
@@ -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
- if Stripe.enable_telemetry?
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "4.0.0".freeze
4
+ VERSION = "4.0.1".freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe