elasticsearch 8.10.0 → 8.11.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
  SHA256:
3
- metadata.gz: 01703b098a99215d5b9b9591ed0e978843b55314b9dfa2d8fcf4abeebbd7dd1e
4
- data.tar.gz: 907bf243f4dbc446d962b4055e80a08688b2a28c0fe3a087c8c4e8b648600380
3
+ metadata.gz: '0863941afcbf869fc63bbc909947da855ad9d23aeacd8631fbbb31028e494d3e'
4
+ data.tar.gz: 331064a5091a85cbc79f6ef1182c23383b3467501867ae6130864b6e92c664ca
5
5
  SHA512:
6
- metadata.gz: 0c1f8db8b41885f95e07b12e28f7d402c2695cb2497d0e1de348918c0f0ca7740731dfad4770bd3319e9df2c216b23e00e73ba4ca51e5be2686ee86f4b3b4889
7
- data.tar.gz: 4e770597919914ff503d30c3a81bfa38d0361d626eb04e75a7168728baf402ea479bc7a84febde17abf1e7ca85f0a6efdafde429f2d28755966e2ddb06383334
6
+ metadata.gz: dd080574649cbdb377e37d51b59f5974fcda6e728051077de83b6c3baa12b85df6c19f7b7454127db163ae35786624de33334f3f742fc7b94b8abda4832c5f17
7
+ data.tar.gz: fe3c174be073f739d409c08394638cc8ff518be2fbb1b01faa677ccfea26f08be63e3f7a137932c5a7b4624e1cdb947e1a8032aa8b17e1caa0f346c3ba1c048a
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,10 @@ 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.1'
51
+ s.add_dependency 'base64'
50
52
 
51
53
  s.add_development_dependency 'bundler'
52
54
  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.1'.freeze
20
20
  end
data/lib/elasticsearch.rb CHANGED
@@ -18,6 +18,7 @@
18
18
  require 'elasticsearch/version'
19
19
  require 'elastic/transport'
20
20
  require 'elasticsearch/api'
21
+ require 'base64'
21
22
 
22
23
  module Elasticsearch
23
24
  NOT_ELASTICSEARCH_WARNING = 'The client noticed that the server is not Elasticsearch and we do not support this unknown product.'.freeze
@@ -59,7 +60,11 @@ module Elasticsearch
59
60
  super
60
61
  elsif name == :perform_request
61
62
  # The signature for perform_request is:
62
- # method, path, params, body, headers
63
+ # method, path, params, body, headers, opts
64
+ # The last arg is opts, which shouldn't be sent when `perform_request` is called
65
+ # directly. Check if :endpoint is a key, which means it's the extra identifier
66
+ # used for OpenTelemetry.
67
+ args.pop if args[-1].is_a?(Hash) && args[-1][:endpoint]
63
68
  if (opaque_id = args[2]&.delete(:opaque_id))
64
69
  headers = args[4] || {}
65
70
  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.1
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-25 00:00:00.000000000 Z
14
12
  dependencies:
15
13
  - !ruby/object:Gem::Dependency
16
14
  name: elastic-transport
@@ -18,28 +16,42 @@ 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.1
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.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: base64
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
43
55
  - !ruby/object:Gem::Dependency
44
56
  name: bundler
45
57
  requirement: !ruby/object:Gem::Requirement
@@ -184,7 +196,7 @@ description: 'Ruby integrations for Elasticsearch (client, API, etc.)
184
196
 
185
197
  '
186
198
  email:
187
- - clients-team@elastic.co
199
+ - client-libs@elastic.co
188
200
  executables:
189
201
  - elastic_ruby_console
190
202
  extensions: []
@@ -241,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
241
253
  - !ruby/object:Gem::Version
242
254
  version: '0'
243
255
  requirements: []
244
- rubygems_version: 3.4.19
256
+ rubygems_version: 3.5.3
245
257
  signing_key:
246
258
  specification_version: 4
247
259
  summary: Ruby integrations for Elasticsearch