elastic-apm 3.15.0 → 3.15.1

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: ee845be05bcd6dbd56efb3f21372b0abfede8c37b4c7f9580b82ea6a24238fc5
4
- data.tar.gz: 46365fa74214843bc882163c917b429beba61d35f65032f45321ce0e128ecf38
3
+ metadata.gz: 88a5353924a1308c1ab7d5b3701968ccfbe0b03f2ac24372d3d1c4f90b12158c
4
+ data.tar.gz: 8891407bcdb4b5e8251b580e890d5d9f652e11790d5a9e3e2bb1bb378092511b
5
5
  SHA512:
6
- metadata.gz: 821287e4a80cdf707c6bcddb50ff1cf9592e5410c99e09b69dbebbcc4915a9aae968f8bc1704454ad06a964f173e49b8534a5923d059ef4a70417b74b2b285e8
7
- data.tar.gz: 5344fb235b378cff3610c0e49771737ba4c906343025110eb38e277f0cb27a6419e76834baf275ebfb2d59ea8e4b94298b65ebe757dcd7fd9cd0d63727a4fe77
6
+ metadata.gz: 5eb9e1fec293b2008d083a3bc53a8458773c04e96efbe37d170591dda5faa33ef10bcadc980d7423053704fba131575c94ff3d410b8f3ab19311f94717acaade
7
+ data.tar.gz: 037b3327a8b9e2db344301eb001817dc89500a74065f605dc335b1c8ecf51b01a026ea0f4f46ee4326e2fc6eb50202eece5bba64b8c77060c4cd1f62ff69be77
data/CHANGELOG.asciidoc CHANGED
@@ -35,6 +35,15 @@ endif::[]
35
35
  [[release-notes-3.x]]
36
36
  === Ruby Agent version 3.x
37
37
 
38
+ [[release-notes-3.15.1]]
39
+ ==== 3.15.1 (2021-04-06)
40
+
41
+ [float]
42
+ ===== Fixed
43
+
44
+ - AWS S3 spy accepts symbol bucket names {pull}998[#998]
45
+ - AWS S3 spy passing on blocks {pull}998[#998]
46
+
38
47
  [[release-notes-3.15.0]]
39
48
  ==== 3.15.0 (2021-03-22)
40
49
 
@@ -41,13 +41,10 @@ module ElasticAPM
41
41
  end
42
42
 
43
43
  def self.bucket_name(params)
44
- if params[:bucket]
45
- if index = params[:bucket].rindex(AP_REGEX)
46
- params[:bucket][index+1..-1]
47
- else
48
- params[:bucket]
49
- end
50
- end
44
+ return unless (bucket = params[:bucket]&.to_s)
45
+ return bucket unless (index = bucket.rindex(AP_REGEX))
46
+
47
+ bucket[index+1..-1]
51
48
  end
52
49
 
53
50
  def self.accesspoint_region(params)
@@ -85,7 +82,7 @@ module ElasticAPM
85
82
  api.operation_names.each do |operation_name|
86
83
  alias :"#{operation_name}_without_apm" :"#{operation_name}"
87
84
 
88
- define_method(operation_name) do |params = {}, options = {}|
85
+ define_method(operation_name) do |params = {}, options = {}, &block|
89
86
  bucket_name = ElasticAPM::Spies::S3Spy.bucket_name(params)
90
87
  cloud = ElasticAPM::Span::Context::Destination::Cloud.new(
91
88
  region: ElasticAPM::Spies::S3Spy.accesspoint_region(params) || config.region
@@ -109,7 +106,7 @@ module ElasticAPM
109
106
  ) do
110
107
  ElasticAPM::Spies::S3Spy.without_net_http do
111
108
  original_method = method("#{operation_name}_without_apm")
112
- original_method.call(params, options)
109
+ original_method.call(params, options, &block)
113
110
  end
114
111
  end
115
112
  end
@@ -18,5 +18,5 @@
18
18
  # frozen_string_literal: true
19
19
 
20
20
  module ElasticAPM
21
- VERSION = '3.15.0'
21
+ VERSION = '3.15.1'
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic-apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.15.0
4
+ version: 3.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikkel Malmberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-23 00:00:00.000000000 Z
11
+ date: 2021-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -269,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
269
269
  - !ruby/object:Gem::Version
270
270
  version: '0'
271
271
  requirements: []
272
- rubygems_version: 3.1.4
272
+ rubygems_version: 3.1.6
273
273
  signing_key:
274
274
  specification_version: 4
275
275
  summary: The official Elastic APM agent for Ruby