elasticsearch 7.14.0 → 8.0.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +4 -10
- data/{LICENSE → LICENSE.txt} +0 -0
- data/README.md +70 -31
- data/bin/elastic_ruby_console +2 -5
- data/elasticsearch.gemspec +14 -14
- data/lib/elasticsearch/version.rb +1 -1
- data/lib/elasticsearch.rb +96 -31
- data/spec/integration/client_integration_spec.rb +10 -4
- data/spec/spec_helper.rb +8 -3
- data/spec/unit/api_key_spec.rb +101 -0
- data/spec/unit/cloud_credentials_spec.rb +167 -0
- data/spec/unit/custom_transport_implementation_spec.rb +43 -0
- data/spec/unit/elasticsearch_product_validation_spec.rb +14 -209
- data/spec/unit/headers_spec.rb +55 -0
- data/spec/unit/opaque_id_spec.rb +48 -0
- data/spec/unit/wrapper_gem_spec.rb +4 -10
- metadata +31 -23
- data/spec/integration/validation_integration_spec.rb +0 -30
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticsearch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 8.0.0.pre1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karel Minarik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: elastic-transport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 8.0.0.pre2
|
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:
|
26
|
+
version: 8.0.0.pre2
|
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:
|
33
|
+
version: 8.0.0.pre1
|
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:
|
40
|
+
version: 8.0.0.pre1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,16 +84,16 @@ dependencies:
|
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: require-prof
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,11 +188,11 @@ executables:
|
|
188
188
|
extensions: []
|
189
189
|
extra_rdoc_files:
|
190
190
|
- README.md
|
191
|
-
- LICENSE
|
191
|
+
- LICENSE.txt
|
192
192
|
files:
|
193
193
|
- ".gitignore"
|
194
194
|
- Gemfile
|
195
|
-
- LICENSE
|
195
|
+
- LICENSE.txt
|
196
196
|
- README.md
|
197
197
|
- Rakefile
|
198
198
|
- bin/elastic_ruby_console
|
@@ -201,17 +201,21 @@ files:
|
|
201
201
|
- lib/elasticsearch.rb
|
202
202
|
- lib/elasticsearch/version.rb
|
203
203
|
- spec/integration/client_integration_spec.rb
|
204
|
-
- spec/integration/validation_integration_spec.rb
|
205
204
|
- spec/spec_helper.rb
|
205
|
+
- spec/unit/api_key_spec.rb
|
206
|
+
- spec/unit/cloud_credentials_spec.rb
|
207
|
+
- spec/unit/custom_transport_implementation_spec.rb
|
206
208
|
- spec/unit/elasticsearch_product_validation_spec.rb
|
209
|
+
- spec/unit/headers_spec.rb
|
210
|
+
- spec/unit/opaque_id_spec.rb
|
207
211
|
- spec/unit/wrapper_gem_spec.rb
|
208
|
-
homepage: https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/
|
212
|
+
homepage: https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/index.html
|
209
213
|
licenses:
|
210
214
|
- Apache-2.0
|
211
215
|
metadata:
|
212
|
-
homepage_uri: https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/
|
213
|
-
changelog_uri: https://github.com/elastic/elasticsearch-ruby/blob/
|
214
|
-
source_code_uri: https://github.com/elastic/elasticsearch-ruby/tree/
|
216
|
+
homepage_uri: https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/index.html
|
217
|
+
changelog_uri: https://github.com/elastic/elasticsearch-ruby/blob/main/CHANGELOG.md
|
218
|
+
source_code_uri: https://github.com/elastic/elasticsearch-ruby/tree/main
|
215
219
|
bug_tracker_uri: https://github.com/elastic/elasticsearch-ruby/issues
|
216
220
|
post_install_message:
|
217
221
|
rdoc_options:
|
@@ -222,20 +226,24 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
222
226
|
requirements:
|
223
227
|
- - ">="
|
224
228
|
- !ruby/object:Gem::Version
|
225
|
-
version: '2.
|
229
|
+
version: '2.5'
|
226
230
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
227
231
|
requirements:
|
228
|
-
- - "
|
232
|
+
- - ">"
|
229
233
|
- !ruby/object:Gem::Version
|
230
|
-
version:
|
234
|
+
version: 1.3.1
|
231
235
|
requirements: []
|
232
|
-
rubygems_version: 3.2.
|
236
|
+
rubygems_version: 3.2.22
|
233
237
|
signing_key:
|
234
238
|
specification_version: 4
|
235
239
|
summary: Ruby integrations for Elasticsearch
|
236
240
|
test_files:
|
237
241
|
- spec/integration/client_integration_spec.rb
|
238
|
-
- spec/integration/validation_integration_spec.rb
|
239
242
|
- spec/spec_helper.rb
|
243
|
+
- spec/unit/api_key_spec.rb
|
244
|
+
- spec/unit/cloud_credentials_spec.rb
|
245
|
+
- spec/unit/custom_transport_implementation_spec.rb
|
240
246
|
- spec/unit/elasticsearch_product_validation_spec.rb
|
247
|
+
- spec/unit/headers_spec.rb
|
248
|
+
- spec/unit/opaque_id_spec.rb
|
241
249
|
- spec/unit/wrapper_gem_spec.rb
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
-
# license agreements. See the NOTICE file distributed with
|
3
|
-
# this work for additional information regarding copyright
|
4
|
-
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
-
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
-
# not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing,
|
12
|
-
# software distributed under the License is distributed on an
|
13
|
-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
-
# KIND, either express or implied. See the License for the
|
15
|
-
# specific language governing permissions and limitations
|
16
|
-
# under the License.
|
17
|
-
require 'spec_helper'
|
18
|
-
require 'logger'
|
19
|
-
|
20
|
-
describe 'Elasticsearch validation integration' do
|
21
|
-
it 'Validates for Elasticsearch > 7.14' do
|
22
|
-
client = Elasticsearch::Client.new(
|
23
|
-
host: ELASTICSEARCH_URL,
|
24
|
-
logger: Logger.new($stderr)
|
25
|
-
)
|
26
|
-
expect(client.instance_variable_get('@verified')).to be false
|
27
|
-
client.count
|
28
|
-
expect(client.instance_variable_get('@verified')).to be true
|
29
|
-
end
|
30
|
-
end
|