elasticsearch 8.10.0 → 8.11.0

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
  SHA256:
3
- metadata.gz: 01703b098a99215d5b9b9591ed0e978843b55314b9dfa2d8fcf4abeebbd7dd1e
4
- data.tar.gz: 907bf243f4dbc446d962b4055e80a08688b2a28c0fe3a087c8c4e8b648600380
3
+ metadata.gz: 8e8bbf40a0f2da8710d2f57476fd1658109665e96c8e35b04964a741b626e092
4
+ data.tar.gz: 423c0ef59ca0a9e471dce78e3c3e0ade5d2830293ec993f5fcd8f0541e92d0ab
5
5
  SHA512:
6
- metadata.gz: 0c1f8db8b41885f95e07b12e28f7d402c2695cb2497d0e1de348918c0f0ca7740731dfad4770bd3319e9df2c216b23e00e73ba4ca51e5be2686ee86f4b3b4889
7
- data.tar.gz: 4e770597919914ff503d30c3a81bfa38d0361d626eb04e75a7168728baf402ea479bc7a84febde17abf1e7ca85f0a6efdafde429f2d28755966e2ddb06383334
6
+ metadata.gz: 9e3d4bb16461d24dd9a26f4b89cf0b3aa8e52c409a9efa3eb795b6b331037bf45ea9c72fc18658c9ec227e6b2ddcbdb56473f64a8f4629443f33143444a40104
7
+ data.tar.gz: 590781bcc65166e649144c3ecbd77659186688d486cee58f9260809f3fb3c411061a536ebeeb24a78e393c0682c7d95b332c67be81760775353dafd5377ae470
data/Gemfile CHANGED
@@ -25,3 +25,7 @@ gemspec
25
25
  if File.exist? File.expand_path('../elasticsearch-api/elasticsearch-api.gemspec', __dir__)
26
26
  gem 'elasticsearch-api', path: File.expand_path('../elasticsearch-api', __dir__), require: false
27
27
  end
28
+
29
+ if ENV['TRANSPORT_VERSION'] == 'main'
30
+ gem 'elastic-transport', git: 'https://github.com/elastic/elastic-transport-ruby.git', branch: 'main'
31
+ end
@@ -22,8 +22,8 @@ require 'elasticsearch/version'
22
22
  Gem::Specification.new do |s|
23
23
  s.name = 'elasticsearch'
24
24
  s.version = Elasticsearch::VERSION
25
- s.authors = ['Karel Minarik', 'Emily Stolfo', 'Fernando Briano']
26
- s.email = ['clients-team@elastic.co']
25
+ s.authors = ['Elastic Client Library Maintainers']
26
+ s.email = ['client-libs@elastic.co']
27
27
  s.summary = 'Ruby integrations for Elasticsearch'
28
28
  s.homepage = 'https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/index.html'
29
29
  s.license = 'Apache-2.0'
@@ -45,8 +45,9 @@ Gem::Specification.new do |s|
45
45
 
46
46
  s.required_ruby_version = '>= 2.5'
47
47
 
48
- s.add_dependency 'elastic-transport', '~> 8'
49
- s.add_dependency 'elasticsearch-api', '8.10.0'
48
+ s.add_dependency 'elastic-transport', '~> 8.3'
49
+
50
+ s.add_dependency 'elasticsearch-api', '8.11.0'
50
51
 
51
52
  s.add_development_dependency 'bundler'
52
53
  s.add_development_dependency 'byebug' unless defined?(JRUBY_VERSION) || defined?(Rubinius)
@@ -16,5 +16,5 @@
16
16
  # under the License.
17
17
 
18
18
  module Elasticsearch
19
- VERSION = '8.10.0'.freeze
19
+ VERSION = '8.11.0'.freeze
20
20
  end
data/lib/elasticsearch.rb CHANGED
@@ -59,7 +59,11 @@ module Elasticsearch
59
59
  super
60
60
  elsif name == :perform_request
61
61
  # The signature for perform_request is:
62
- # method, path, params, body, headers
62
+ # method, path, params, body, headers, opts
63
+ # The last arg is opts, which shouldn't be sent when `perform_request` is called
64
+ # directly. Check if :endpoint is a key, which means it's the extra identifier
65
+ # used for OpenTelemetry.
66
+ args.pop if args[-1].is_a?(Hash) && args[-1][:endpoint]
63
67
  if (opaque_id = args[2]&.delete(:opaque_id))
64
68
  headers = args[4] || {}
65
69
  opaque_id = @opaque_id_prefix ? "#{@opaque_id_prefix}#{opaque_id}" : opaque_id
@@ -26,7 +26,7 @@ describe Elasticsearch::Client do
26
26
  allow(client).to receive(:perform_request) { OpenStruct.new(body: '') }
27
27
  expect { client.search(headers: headers) }.not_to raise_error
28
28
  expect(client).to have_received(:perform_request)
29
- .with('GET', '_search', {}, nil, headers)
29
+ .with('GET', '_search', {}, nil, headers, { endpoint: 'search' })
30
30
  end
31
31
  end
32
32
 
metadata CHANGED
@@ -1,16 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.10.0
4
+ version: 8.11.0
5
5
  platform: ruby
6
6
  authors:
7
- - Karel Minarik
8
- - Emily Stolfo
9
- - Fernando Briano
7
+ - Elastic Client Library Maintainers
10
8
  autorequire:
11
9
  bindir: bin
12
10
  cert_chain: []
13
- date: 2023-09-12 00:00:00.000000000 Z
11
+ date: 2023-11-07 00:00:00.000000000 Z
14
12
  dependencies:
15
13
  - !ruby/object:Gem::Dependency
16
14
  name: elastic-transport
@@ -18,28 +16,28 @@ dependencies:
18
16
  requirements:
19
17
  - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: '8'
19
+ version: '8.3'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
23
  requirements:
26
24
  - - "~>"
27
25
  - !ruby/object:Gem::Version
28
- version: '8'
26
+ version: '8.3'
29
27
  - !ruby/object:Gem::Dependency
30
28
  name: elasticsearch-api
31
29
  requirement: !ruby/object:Gem::Requirement
32
30
  requirements:
33
31
  - - '='
34
32
  - !ruby/object:Gem::Version
35
- version: 8.10.0
33
+ version: 8.11.0
36
34
  type: :runtime
37
35
  prerelease: false
38
36
  version_requirements: !ruby/object:Gem::Requirement
39
37
  requirements:
40
38
  - - '='
41
39
  - !ruby/object:Gem::Version
42
- version: 8.10.0
40
+ version: 8.11.0
43
41
  - !ruby/object:Gem::Dependency
44
42
  name: bundler
45
43
  requirement: !ruby/object:Gem::Requirement
@@ -184,7 +182,7 @@ description: 'Ruby integrations for Elasticsearch (client, API, etc.)
184
182
 
185
183
  '
186
184
  email:
187
- - clients-team@elastic.co
185
+ - client-libs@elastic.co
188
186
  executables:
189
187
  - elastic_ruby_console
190
188
  extensions: []