elasticsearch 8.10.0 → 8.12.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: 0ffdf98a4abe8b2e85aa549da5ebef6bd2b764cc0ba67f91610725e3625ea0ff
4
+ data.tar.gz: 1d1c03c279e320109f91b826d3da8588ea52d6477922a161161dc47edad39f6a
5
5
  SHA512:
6
- metadata.gz: 0c1f8db8b41885f95e07b12e28f7d402c2695cb2497d0e1de348918c0f0ca7740731dfad4770bd3319e9df2c216b23e00e73ba4ca51e5be2686ee86f4b3b4889
7
- data.tar.gz: 4e770597919914ff503d30c3a81bfa38d0361d626eb04e75a7168728baf402ea479bc7a84febde17abf1e7ca85f0a6efdafde429f2d28755966e2ddb06383334
6
+ metadata.gz: ccbe65b2567c38963368f3e9f1a61341ee27df357f15d549de28363c3065017d48cfe8ced36a5da66822c0ac93338171f966066d0c01e6cbef2db1c30901a169
7
+ data.tar.gz: 97929bf43cd44f390d1b4e85dffcab839c9a728114c5b82ebebedb21e7ffe110d3fdbd727fe52c123ae60dcd25fc732b559515a0d0dfc8ff5a9f05d163064687
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.12.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.12.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.12.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: 2024-01-17 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.12.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.12.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: []
@@ -241,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
241
239
  - !ruby/object:Gem::Version
242
240
  version: '0'
243
241
  requirements: []
244
- rubygems_version: 3.4.19
242
+ rubygems_version: 3.5.3
245
243
  signing_key:
246
244
  specification_version: 4
247
245
  summary: Ruby integrations for Elasticsearch