http_instrumentation 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2deee15a4609f8d50a706613af0805d53bc54beaf3e17f65b68f17c17453fed9
4
- data.tar.gz: a3a76bc88fe4a5b799b59a807ac665dcd4b6f52f280236f7b8b804425a01846f
3
+ metadata.gz: 8c62a0d7cd2f490aab2e2dfda4ca18b6cfe794cc013e65862b1e5e0984a121e7
4
+ data.tar.gz: be98556c0d7c90633278f6eae1688a0b9e07ddf5ad0065122ef7aefc6b36adb2
5
5
  SHA512:
6
- metadata.gz: 932361a2de24b64de68929b61379e1d8f01acce64f3f03070070ccfb9da8a369329c7703f84f774e236c69a2343dde4c5a6add5fd21add2db9025cdde3515a7b
7
- data.tar.gz: fa77a297e489a26894c6f49961a5f057bfb239385a93d96b0252892db411922e9e2c75d0abb9de663fe059d883d9e07f06a043ae27b7704a4e868c97a49d4eb8
6
+ metadata.gz: 7239288a4d4ec3ab8545d0bacc37c47cd3eeb7be7786c1434bcc1fca2f7bb717597fd13319573a107acf0be8bf5cce79c2caa89ba1b30ec7a560efcc05fae05b
7
+ data.tar.gz: 2b2020627f1ea45b8707827115f18337fa5fb42b11e673ff4078bd96241a8f495f9dba70fa38a7c21911d2692b05d19692ddd8042bc685d547caf549f64acbad
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## 1.0.3
8
+
9
+ ### Fixed
10
+ - The excon instrumentation now reads the connection defaults from `Excon::Connection#data` instead of the deprecated `#connection` alias, so building the event payload no longer emits a deprecation warning on current versions of the gem. The `#connection` accessor is still used as a fallback for older versions.
11
+
7
12
  ## 1.0.2
8
13
 
9
14
  ### Fixed
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.3
@@ -32,6 +32,4 @@ Gem::Specification.new do |spec|
32
32
  spec.required_ruby_version = ">= 2.6"
33
33
 
34
34
  spec.add_dependency "activesupport", ">= 4.2"
35
-
36
- spec.add_development_dependency "bundler"
37
35
  end
@@ -33,10 +33,12 @@ module HTTPInstrumentation
33
33
  info = params
34
34
  # Merge connection defaults under the per-request params so the
35
35
  # request values win.
36
- if respond_to?(:connection)
37
- info = connection.merge(params)
38
- elsif respond_to?(:data)
36
+ # #data is the current accessor; #connection is a deprecated alias
37
+ # kept only for older versions of the gem.
38
+ if respond_to?(:data)
39
39
  info = data.merge(params)
40
+ elsif respond_to?(:connection)
41
+ info = connection.merge(params)
40
42
  end
41
43
 
42
44
  scheme = info[:scheme]&.downcase
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_instrumentation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Durand
@@ -23,20 +23,6 @@ dependencies:
23
23
  - - ">="
24
24
  - !ruby/object:Gem::Version
25
25
  version: '4.2'
26
- - !ruby/object:Gem::Dependency
27
- name: bundler
28
- requirement: !ruby/object:Gem::Requirement
29
- requirements:
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: '0'
33
- type: :development
34
- prerelease: false
35
- version_requirements: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: '0'
40
26
  email:
41
27
  - bbdurand@gmail.com
42
28
  executables: []