elasticsearch 8.14.0 → 8.16.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: 829c510c4fb0664f58d4be87a7d0d8eed2906b68e659f63b33a7e082cba6c1ee
4
- data.tar.gz: bafb973a40c4eda2a5de4fb0abe5a7f4308efbe8105f531545953a405d2cb83f
3
+ metadata.gz: 32cd6c6f02b68199e9e021fc628d7336525284f7111dda9dc82f1cd9600447f1
4
+ data.tar.gz: a7f3660149d1bdab70ce54402bacd81d715f470206adec898908d54e71879c9c
5
5
  SHA512:
6
- metadata.gz: 4c98e9e0c6cc219b281da17019021ce7bd7e28120c9390b05dd71550bf2527c99570002f779f504f10820effe1fc2cd0b2824213bb445184fb7b77eabc69532b
7
- data.tar.gz: 6178b702bd1077554debcf12783ffd1cda149c507c87284cbe60028a0f06fe0db8f2c140f3c29fd19fca23ec456012087ff25f6dcec34553e63d550146248ede
6
+ metadata.gz: 62e4e89c10b02281131710598fdc483c8e10ddb6d927b5ce311a1a44043b9dbf2bbd13e542281113a45d066a5a85522960acc2736672bb4d853151fd07ce06fa
7
+ data.tar.gz: cef1f6fb061b12efa6ca0bc60ed334d57bd17b8f2d64b86eae205743e5b51a631beb44b1391d99590336c79eff175b44b3d406baeb23dbbb4ece6b42aa94c240
@@ -46,8 +46,8 @@ Gem::Specification.new do |s|
46
46
  s.required_ruby_version = '>= 2.5'
47
47
 
48
48
  s.add_dependency 'elastic-transport', '~> 8.3'
49
- s.add_dependency 'elasticsearch-api', '8.14.0'
50
-
49
+ s.add_dependency 'elasticsearch-api', '8.16.0'
50
+
51
51
  s.add_development_dependency 'base64'
52
52
  s.add_development_dependency 'bundler'
53
53
  s.add_development_dependency 'debug' unless defined?(JRUBY_VERSION)
@@ -16,5 +16,5 @@
16
16
  # under the License.
17
17
 
18
18
  module Elasticsearch
19
- VERSION = '8.14.0'.freeze
19
+ VERSION = '8.16.0'.freeze
20
20
  end
data/lib/elasticsearch.rb CHANGED
@@ -160,6 +160,7 @@ module Elasticsearch
160
160
 
161
161
  def sent_user_agent?(arguments)
162
162
  return unless (headers = arguments&.[](:transport_options)&.[](:headers))
163
+
163
164
  !!headers.keys.detect { |h| h =~ /user-?_?agent/ }
164
165
  end
165
166
 
@@ -14,7 +14,9 @@
14
14
  # KIND, either express or implied. See the License for the
15
15
  # specific language governing permissions and limitations
16
16
  # under the License.
17
+
17
18
  require 'spec_helper'
19
+ require 'uri'
18
20
 
19
21
  ELASTICSEARCH_URL = ENV['TEST_ES_SERVER'] || "http://localhost:#{(ENV['PORT'] || 9200)}"
20
22
  raise URI::InvalidURIError unless ELASTICSEARCH_URL =~ /\A#{URI::DEFAULT_PARSER.make_regexp}\z/
@@ -14,12 +14,12 @@
14
14
  # KIND, either express or implied. See the License for the
15
15
  # specific language governing permissions and limitations
16
16
  # under the License.
17
+ ELASTICSEARCH_URL = ENV['TEST_ES_SERVER'] || "http://localhost:#{(ENV['PORT'] || 9200)}"
18
+ raise URI::InvalidURIError unless ELASTICSEARCH_URL =~ /\A#{URI::DEFAULT_PARSER.make_regexp}\z/
17
19
 
18
20
  require 'spec_helper'
19
21
  require 'logger'
20
-
21
- ELASTICSEARCH_URL = ENV['TEST_ES_SERVER'] || "http://localhost:#{(ENV['PORT'] || 9200)}"
22
- raise URI::InvalidURIError unless ELASTICSEARCH_URL =~ /\A#{URI::DEFAULT_PARSER.make_regexp}\z/
22
+ require 'uri'
23
23
 
24
24
  context 'Elasticsearch client' do
25
25
  let(:logger) { Logger.new($stderr) }
@@ -36,12 +36,12 @@ if ENV['TEST_WITH_OTEL'] == 'true'
36
36
  end
37
37
 
38
38
  after do
39
- client.delete(index: 'myindex', id: 1); rescue
39
+ client.delete(index: 'myindex', id: 1); rescue
40
40
  end
41
41
 
42
42
  context 'when a request is instrumented' do
43
43
  it 'sets the span name to the endpoint id' do
44
- client.search(body: { query: { match: {a: 1} } })
44
+ client.search(body: { query: { match: { a: 1 } } })
45
45
  expect(span.name).to eq 'search'
46
46
  end
47
47
 
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.14.0
4
+ version: 8.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic Client Library Maintainers
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-06 00:00:00.000000000 Z
11
+ date: 2024-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: elastic-transport
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 8.14.0
33
+ version: 8.16.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.14.0
40
+ version: 8.16.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: base64
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -241,7 +241,7 @@ metadata:
241
241
  changelog_uri: https://github.com/elastic/elasticsearch-ruby/blob/main/CHANGELOG.md
242
242
  source_code_uri: https://github.com/elastic/elasticsearch-ruby/tree/main
243
243
  bug_tracker_uri: https://github.com/elastic/elasticsearch-ruby/issues
244
- post_install_message:
244
+ post_install_message:
245
245
  rdoc_options:
246
246
  - "--charset=UTF-8"
247
247
  require_paths:
@@ -257,8 +257,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
257
257
  - !ruby/object:Gem::Version
258
258
  version: '0'
259
259
  requirements: []
260
- rubygems_version: 3.5.9
261
- signing_key:
260
+ rubygems_version: 3.5.20
261
+ signing_key:
262
262
  specification_version: 4
263
263
  summary: Ruby integrations for Elasticsearch
264
264
  test_files: