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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e904c281b7b62b0f9ecc9d4ae503f6be4940e00c3f5341f2e6dafb52ee0b0fb6
4
- data.tar.gz: 1658c0968a2f763189836b88cf008641b91d4ce74e1e30692e8c5e136a705858
3
+ metadata.gz: b60d190c579bec3f57158afae9b4655f37194b8839609b1aab07afbbec4a130a
4
+ data.tar.gz: e8bf615bd8000d13198a35a04d90cf040464f23e390152f6e58d4a32e8160c46
5
5
  SHA512:
6
- metadata.gz: c121dfecd1d92b9945bc997fad6700f3541792e759a931fa82682f96ccefc1ab0aa9e025666f9f0e1ec56516561cca17812daa70c07a1af736de60502579eade
7
- data.tar.gz: 698e8980ad33579c0e0749aa232175f60ca56b72169c06353f4777211472a7fa32c0dbd08afdcbcf1876ba3b66844a6ea2f1ceeb6cc2931a156e89b2d8fce2ff
6
+ metadata.gz: 769b91c8f319b83c46bd6230b0291ab7a23728d666b9d4633350848fc79575cf08c041bc58001a4e420ab7e9a5e4fbf735e17b103123de20f12353ad683ad5fd
7
+ data.tar.gz: 7c949b714b6c0b16315b7bf04dd71eb68b0745ae59982c3eeae240f459b259f4bfdd3f21670fe18fe9dd73255cca2b5c00f1bed87a0360ffcd2f7b51089b5b03
@@ -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.2'
30
- s.add_dependency 'elasticsearch-transport', '6.8.2'
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
@@ -3,5 +3,5 @@
3
3
  # See the LICENSE file in the project root for more information
4
4
 
5
5
  module Elasticsearch
6
- VERSION = '6.8.2'
6
+ VERSION = '6.8.3'
7
7
  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.2
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: 2020-04-29 00:00:00.000000000 Z
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.2
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.2
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.2
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.2
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.2
318
+ rubygems_version: 3.1.4
319
319
  signing_key:
320
320
  specification_version: 4
321
321
  summary: Ruby integrations for Elasticsearch