elasticsearch 8.11.2 → 8.12.0
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/version.rb +1 -1
- data/lib/elasticsearch.rb +2 -4
- data/spec/unit/api_key_spec.rb +0 -1
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ffdf98a4abe8b2e85aa549da5ebef6bd2b764cc0ba67f91610725e3625ea0ff
|
4
|
+
data.tar.gz: 1d1c03c279e320109f91b826d3da8588ea52d6477922a161161dc47edad39f6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccbe65b2567c38963368f3e9f1a61341ee27df357f15d549de28363c3065017d48cfe8ced36a5da66822c0ac93338171f966066d0c01e6cbef2db1c30901a169
|
7
|
+
data.tar.gz: 97929bf43cd44f390d1b4e85dffcab839c9a728114c5b82ebebedb21e7ffe110d3fdbd727fe52c123ae60dcd25fc732b559515a0d0dfc8ff5a9f05d163064687
|
data/elasticsearch.gemspec
CHANGED
@@ -46,9 +46,9 @@ 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.11.2'
|
50
49
|
|
51
|
-
s.
|
50
|
+
s.add_dependency 'elasticsearch-api', '8.12.0'
|
51
|
+
|
52
52
|
s.add_development_dependency 'bundler'
|
53
53
|
s.add_development_dependency 'byebug' unless defined?(JRUBY_VERSION) || defined?(Rubinius)
|
54
54
|
s.add_development_dependency 'pry'
|
data/lib/elasticsearch.rb
CHANGED
@@ -111,8 +111,7 @@ module Elasticsearch
|
|
111
111
|
|
112
112
|
def setup_cloud_host(cloud_id, user, password, port)
|
113
113
|
name = cloud_id.split(':')[0]
|
114
|
-
|
115
|
-
cloud_url, elasticsearch_instance = base64_decoded.split('$')
|
114
|
+
cloud_url, elasticsearch_instance = Base64.decode64(cloud_id.gsub("#{name}:", '')).split('$')
|
116
115
|
|
117
116
|
if cloud_url.include?(':')
|
118
117
|
url, port = cloud_url.split(':')
|
@@ -154,8 +153,7 @@ module Elasticsearch
|
|
154
153
|
# Credentials is the base64 encoding of id and api_key joined by a colon
|
155
154
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html
|
156
155
|
def encode(api_key)
|
157
|
-
|
158
|
-
[credentials].pack('m0')
|
156
|
+
Base64.strict_encode64([api_key[:id], api_key[:api_key]].join(':'))
|
159
157
|
end
|
160
158
|
|
161
159
|
def elasticsearch_validation_request
|
data/spec/unit/api_key_spec.rb
CHANGED
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.12.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: 2024-
|
11
|
+
date: 2024-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: elastic-transport
|
@@ -30,28 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 8.
|
33
|
+
version: 8.12.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.
|
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: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
40
|
+
version: 8.12.0
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: bundler
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|