elasticsearch 8.9.0 → 8.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +4 -0
- data/elasticsearch.gemspec +5 -4
- data/lib/elasticsearch/version.rb +1 -1
- data/lib/elasticsearch.rb +5 -1
- data/spec/unit/headers_spec.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e8bbf40a0f2da8710d2f57476fd1658109665e96c8e35b04964a741b626e092
|
4
|
+
data.tar.gz: 423c0ef59ca0a9e471dce78e3c3e0ade5d2830293ec993f5fcd8f0541e92d0ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/elasticsearch.gemspec
CHANGED
@@ -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 = ['
|
26
|
-
s.email = ['
|
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
|
-
|
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)
|
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
|
data/spec/unit/headers_spec.rb
CHANGED
@@ -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,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticsearch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.
|
4
|
+
version: 8.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Elastic Client Library Maintainers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07
|
11
|
+
date: 2023-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: elastic-transport
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '8'
|
19
|
+
version: '8.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '8'
|
26
|
+
version: '8.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: elasticsearch-api
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 8.
|
33
|
+
version: 8.11.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 8.
|
40
|
+
version: 8.11.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -182,7 +182,7 @@ description: 'Ruby integrations for Elasticsearch (client, API, etc.)
|
|
182
182
|
|
183
183
|
'
|
184
184
|
email:
|
185
|
-
-
|
185
|
+
- client-libs@elastic.co
|
186
186
|
executables:
|
187
187
|
- elastic_ruby_console
|
188
188
|
extensions: []
|
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
239
|
- !ruby/object:Gem::Version
|
240
240
|
version: '0'
|
241
241
|
requirements: []
|
242
|
-
rubygems_version: 3.4.
|
242
|
+
rubygems_version: 3.4.19
|
243
243
|
signing_key:
|
244
244
|
specification_version: 4
|
245
245
|
summary: Ruby integrations for Elasticsearch
|