elasticsearch 6.8.2 → 6.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/elasticsearch.gemspec +2 -2
- data/lib/elasticsearch.rb +13 -0
- data/lib/elasticsearch/version.rb +1 -1
- data/test/integration/client_integration_test.rb +4 -0
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b60d190c579bec3f57158afae9b4655f37194b8839609b1aab07afbbec4a130a
|
4
|
+
data.tar.gz: e8bf615bd8000d13198a35a04d90cf040464f23e390152f6e58d4a32e8160c46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 769b91c8f319b83c46bd6230b0291ab7a23728d666b9d4633350848fc79575cf08c041bc58001a4e420ab7e9a5e4fbf735e17b103123de20f12353ad683ad5fd
|
7
|
+
data.tar.gz: 7c949b714b6c0b16315b7bf04dd71eb68b0745ae59982c3eeae240f459b259f4bfdd3f21670fe18fe9dd73255cca2b5c00f1bed87a0360ffcd2f7b51089b5b03
|
data/elasticsearch.gemspec
CHANGED
@@ -26,8 +26,8 @@ Gem::Specification.new do |s|
|
|
26
26
|
s.rdoc_options = ['--charset=UTF-8']
|
27
27
|
|
28
28
|
s.required_ruby_version = '>= 2.4'
|
29
|
-
s.add_dependency 'elasticsearch-api', '6.8.
|
30
|
-
s.add_dependency 'elasticsearch-transport', '6.8.
|
29
|
+
s.add_dependency 'elasticsearch-api', '6.8.3'
|
30
|
+
s.add_dependency 'elasticsearch-transport', '6.8.3'
|
31
31
|
|
32
32
|
s.add_development_dependency 'ansi'
|
33
33
|
s.add_development_dependency 'bundler'
|
data/lib/elasticsearch.rb
CHANGED
@@ -14,3 +14,16 @@ module Elasticsearch
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
17
|
+
module Elastic
|
18
|
+
# If the version is X.X.X.pre/alpha/beta, use X.X.Xp for the meta-header:
|
19
|
+
def self.client_meta_version
|
20
|
+
regexp = /^([0-9]+\.[0-9]+\.[0-9]+)\.?([a-z0-9.-]+)?$/
|
21
|
+
match = Elasticsearch::VERSION.match(regexp)
|
22
|
+
return "#{match[1]}p" if match[2]
|
23
|
+
|
24
|
+
Elasticsearch::VERSION
|
25
|
+
end
|
26
|
+
|
27
|
+
# Constant for elasticsearch-transport meta-header
|
28
|
+
META_HEADER_SERVICE_VERSION = [:es, client_meta_version].freeze
|
29
|
+
end
|
@@ -57,6 +57,10 @@ module Elasticsearch
|
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
+
should 'report the right meta header' do
|
61
|
+
headers = @client.transport.connections.first.connection.headers
|
62
|
+
assert_match /^es=#{Elasticsearch::VERSION}/, headers['x-elastic-client-meta']
|
63
|
+
end
|
60
64
|
end
|
61
65
|
end
|
62
66
|
end
|
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: 6.8.
|
4
|
+
version: 6.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karel Minarik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: elasticsearch-api
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 6.8.
|
19
|
+
version: 6.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: 6.8.
|
26
|
+
version: 6.8.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: elasticsearch-transport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 6.8.
|
33
|
+
version: 6.8.3
|
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: 6.8.
|
40
|
+
version: 6.8.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: ansi
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -270,7 +270,7 @@ dependencies:
|
|
270
270
|
version: '0'
|
271
271
|
description: 'Ruby integrations for Elasticsearch (client, API, etc.)
|
272
272
|
|
273
|
-
'
|
273
|
+
'
|
274
274
|
email:
|
275
275
|
- karel.minarik@elasticsearch.org
|
276
276
|
executables: []
|
@@ -315,7 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
315
315
|
- !ruby/object:Gem::Version
|
316
316
|
version: '0'
|
317
317
|
requirements: []
|
318
|
-
rubygems_version: 3.1.
|
318
|
+
rubygems_version: 3.1.4
|
319
319
|
signing_key:
|
320
320
|
specification_version: 4
|
321
321
|
summary: Ruby integrations for Elasticsearch
|