elastic-enterprise-search 7.14.0 → 7.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ci/jobs/{elastic+enterprise-search-ruby+master.yml → elastic+enterprise-search-ruby+main.yml} +4 -4
- data/.github/compatibility/Gemfile +23 -0
- data/.github/workflows/compatibility.yml +20 -0
- data/CONTRIBUTING.md +1 -1
- data/README.md +1 -1
- data/docs/guide/overview.asciidoc +3 -3
- data/docs/guide/release_notes/714.asciidoc +12 -0
- data/elastic-enterprise-search.gemspec +1 -1
- data/lib/elastic/enterprise-search/client.rb +12 -1
- data/lib/elastic/enterprise-search/version.rb +1 -1
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 862dd17061e11215dd63c1be695e9757f06acc7f09ef6fc0d55719dcd174f213
|
4
|
+
data.tar.gz: 3ebefa23f22d0a4cb002d9ad533d88810ba3ed2053028c7678487a7e478cf4f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1b0a6cce0c8e8615ee8bd4dba0c8e339b76c8870831fc19f494c9d976b0f8f4529a80fb735201995f0f09b9f70c0f5ae6a47e88a5ca5171fb9515d401d1d3c7
|
7
|
+
data.tar.gz: 1fcb83403aaaf344fabe4363573022ddcd0156b6095eef6759e58bbf2592df279251df96065b7ff80cdca193a4e08cef1247827ad4ca9ca42dc96e81cd6b7d5b
|
data/.ci/jobs/{elastic+enterprise-search-ruby+master.yml → elastic+enterprise-search-ruby+main.yml}
RENAMED
@@ -1,12 +1,12 @@
|
|
1
1
|
---
|
2
2
|
- job:
|
3
|
-
name: elastic+enterprise-search-ruby+
|
4
|
-
display-name: 'elastic / enterprise-search-ruby #
|
5
|
-
description: Testing the enterprise-search-ruby
|
3
|
+
name: elastic+enterprise-search-ruby+main
|
4
|
+
display-name: 'elastic / enterprise-search-ruby # main'
|
5
|
+
description: Testing the enterprise-search-ruby main branch.
|
6
6
|
junit_results: "*-junit.xml"
|
7
7
|
parameters:
|
8
8
|
- string:
|
9
9
|
name: branch_specifier
|
10
|
-
default: refs/heads/
|
10
|
+
default: refs/heads/main
|
11
11
|
description: the Git branch specifier to build (<branchName>, <tagName>,
|
12
12
|
<commitId>, etc.)
|
@@ -0,0 +1,23 @@
|
|
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
|
+
|
18
|
+
# frozen_string_literal: true
|
19
|
+
|
20
|
+
source 'https://rubygems.org'
|
21
|
+
|
22
|
+
gem 'elasticsearch', ENV['es-version']
|
23
|
+
gem 'elastic-enterprise-search', path: File.expand_path('../../', __dir__)
|
@@ -0,0 +1,20 @@
|
|
1
|
+
name: Compatibility with Elasticsearch
|
2
|
+
on: [push, pull_request]
|
3
|
+
|
4
|
+
jobs:
|
5
|
+
elasticsearch:
|
6
|
+
env:
|
7
|
+
ES_VERSION: ${{ matrix.es_version }}
|
8
|
+
strategy:
|
9
|
+
matrix:
|
10
|
+
es_version: [ 7.11, 7.12, 7.13, 7.14, 7.15 ]
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v2
|
14
|
+
- uses: ruby/setup-ruby@v1
|
15
|
+
with:
|
16
|
+
ruby-version: 3.0
|
17
|
+
- name: Build Gemfile with Elasticsearch gem
|
18
|
+
run: |
|
19
|
+
ruby -v
|
20
|
+
cd ./.github/compatibility/ && bundle
|
data/CONTRIBUTING.md
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
3. Rebase your changes. Update your local repository with the most recent code
|
24
24
|
from the main `enterprise-search-ruby` repository and rebase your branch
|
25
|
-
on top of the latest `
|
25
|
+
on top of the latest `main` branch. All of your changes will be squashed
|
26
26
|
into a single commit so don't worry about pushing multiple times.
|
27
27
|
|
28
28
|
4. Submit a pull request. Push your local changes to your forked repository
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Elastic Enterprise Search Client
|
2
2
|
|
3
|
-
![build](https://github.com/elastic/enterprise-search-ruby/workflows/
|
3
|
+
![build](https://github.com/elastic/enterprise-search-ruby/workflows/main/badge.svg)
|
4
4
|
![rubocop](https://github.com/elastic/enterprise-search-ruby/workflows/rubocop/badge.svg)
|
5
5
|
[![Ruby Style Guide](https://img.shields.io/badge/code_style-rubocop-brightgreen.svg)](https://github.com/rubocop-hq/rubocop)
|
6
6
|
|
@@ -6,7 +6,7 @@ This is the official Ruby client for Elastic Enterprise Search.
|
|
6
6
|
[discrete]
|
7
7
|
=== Compatibility
|
8
8
|
|
9
|
-
Current development happens in the
|
9
|
+
Current development happens in the main branch.
|
10
10
|
|
11
11
|
The library is compatible with all Elastic Enterprise Search versions since `7.x` but you **have to use a matching major version**:
|
12
12
|
|
@@ -14,11 +14,11 @@ For **Elastic Enterprise Search 7.0** and later, use the major version 7 (`7.x.y
|
|
14
14
|
|
15
15
|
[discrete]
|
16
16
|
=== HTTP Library
|
17
|
-
This library uses https://github.com/elastic/elasticsearch-ruby/tree/
|
17
|
+
This library uses https://github.com/elastic/elasticsearch-ruby/tree/main/elasticsearch-transport[elasticsearch-transport], the low-level Ruby client for connecting to an Elasticsearch cluster - also used in the official https://github.com/elastic/elasticsearch-ruby[Elasticsearch Ruby Client].
|
18
18
|
|
19
19
|
All requests, if successful, will return an `Elasticsearch::Transport::Transport::Response` instance. You can access the response `body`, `headers` and `status`.
|
20
20
|
|
21
|
-
`elasticsearch-transport` defines a https://github.com/elasticsearch/elasticsearch-ruby/blob/
|
21
|
+
`elasticsearch-transport` defines a https://github.com/elasticsearch/elasticsearch-ruby/blob/main/elasticsearch-transport/lib/elasticsearch/transport/transport/errors.rb[number of exception classes] for various client and server errors, as well as unsuccessful HTTP responses, making it possible to rescue specific exceptions with desired granularity. More details https://github.com/elastic/elasticsearch-ruby/tree/main/elasticsearch-transport#exception-handling[here]. You can find the full documentation for `elasticsearch-transport` at https://rubydoc.info/gems/elasticsearch-transport[RubyDoc].
|
22
22
|
|
23
23
|
The clients pass different options to transport, you can check them out https://rubydoc.info/github/elastic/enterprise-search-ruby/Elastic/EnterpriseSearch/Client[on RubyDocs].
|
24
24
|
|
@@ -1,4 +1,16 @@
|
|
1
1
|
[[release_notes_714]]
|
2
|
+
=== 7.14 Release notes
|
3
|
+
|
4
|
+
[discrete]
|
5
|
+
[[release_notes_7141]]
|
6
|
+
=== 7.14.1 Release notes
|
7
|
+
|
8
|
+
==== Dependency fix
|
9
|
+
|
10
|
+
Updates dependency on `elasticsearch-transport` to be more open. At least 7.11 is required, but this way it can be used with different versions of the `elasticsearch` gem (bigger than or equal to `7.11`) in the same project, without a conflict in `elasticsearch-transport`. When instantiating transport, we now check if version is `< 7.14` so we use the right class.
|
11
|
+
|
12
|
+
[discrete]
|
13
|
+
[[release_notes_7140]]
|
2
14
|
=== 7.14.0 Release notes
|
3
15
|
|
4
16
|
[discrete]
|
@@ -47,7 +47,7 @@ Gem::Specification.new do |s|
|
|
47
47
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
48
48
|
s.require_paths = ['lib']
|
49
49
|
|
50
|
-
s.add_dependency 'elasticsearch-transport', '
|
50
|
+
s.add_dependency 'elasticsearch-transport', '>= 7.11'
|
51
51
|
s.add_runtime_dependency 'jwt', '>= 1.5', '< 3.0'
|
52
52
|
s.add_development_dependency 'awesome_print'
|
53
53
|
s.add_development_dependency 'byebug' unless defined?(JRUBY_VERSION)
|
@@ -67,7 +67,7 @@ module Elastic
|
|
67
67
|
|
68
68
|
def transport
|
69
69
|
@options[:transport] ||
|
70
|
-
|
70
|
+
transport_klass.new(
|
71
71
|
host: host,
|
72
72
|
log: log,
|
73
73
|
logger: logger,
|
@@ -110,6 +110,17 @@ module Elastic
|
|
110
110
|
|
111
111
|
@options[:host]
|
112
112
|
end
|
113
|
+
|
114
|
+
private
|
115
|
+
|
116
|
+
def transport_klass
|
117
|
+
case Elasticsearch::Transport::VERSION
|
118
|
+
when /7\.1[123]/
|
119
|
+
Elasticsearch::Client
|
120
|
+
else
|
121
|
+
Elasticsearch::Transport::Client
|
122
|
+
end
|
123
|
+
end
|
113
124
|
end
|
114
125
|
end
|
115
126
|
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elastic-enterprise-search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.14.
|
4
|
+
version: 7.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fernando Briano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: elasticsearch-transport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 7.
|
19
|
+
version: '7.11'
|
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: 7.
|
26
|
+
version: '7.11'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: jwt
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -165,7 +165,7 @@ files:
|
|
165
165
|
- ".ci/functions/wait-for-container.sh"
|
166
166
|
- ".ci/jobs/defaults.yml"
|
167
167
|
- ".ci/jobs/elastic+enterprise-search-ruby+7.10.0.beta.1.yml"
|
168
|
-
- ".ci/jobs/elastic+enterprise-search-ruby+
|
168
|
+
- ".ci/jobs/elastic+enterprise-search-ruby+main.yml"
|
169
169
|
- ".ci/jobs/elastic+enterprise-search-ruby+pull-request.yml"
|
170
170
|
- ".ci/make.sh"
|
171
171
|
- ".ci/run-elasticsearch.sh"
|
@@ -175,7 +175,9 @@ files:
|
|
175
175
|
- ".ci/run-tests"
|
176
176
|
- ".ci/test-matrix.yml"
|
177
177
|
- ".github/check_license_headers.rb"
|
178
|
+
- ".github/compatibility/Gemfile"
|
178
179
|
- ".github/license-header.txt"
|
180
|
+
- ".github/workflows/compatibility.yml"
|
179
181
|
- ".github/workflows/license.yml"
|
180
182
|
- ".github/workflows/rubocop.yml"
|
181
183
|
- ".github/workflows/testing.yml"
|
@@ -386,7 +388,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
386
388
|
- !ruby/object:Gem::Version
|
387
389
|
version: '0'
|
388
390
|
requirements: []
|
389
|
-
rubygems_version: 3.2.
|
391
|
+
rubygems_version: 3.2.22
|
390
392
|
signing_key:
|
391
393
|
specification_version: 4
|
392
394
|
summary: Official API client for Elastic Enterprise Search
|