elastomer-client 6.3.0 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/dependabot.yaml +2 -0
- data/.github/workflows/main.yml +7 -4
- data/.github/workflows/rubocop.yml +2 -2
- data/CHANGELOG.md +4 -0
- data/README.md +12 -1
- data/docker/compose.yaml +34 -0
- data/lib/elastomer_client/client/rest_api_spec/api_spec_v9_5.rb +9308 -0
- data/lib/elastomer_client/client.rb +7 -0
- data/lib/elastomer_client/version.rb +1 -1
- data/lib/elastomer_client/version_support.rb +8 -1
- data/script/generate-rest-api-spec +3 -0
- data/test/client/native_delete_by_query_test.rb +9 -8
- data/test/client/rest_api_spec/api_spec_test.rb +32 -0
- data/test/client/update_by_query_test.rb +9 -8
- data/test/client_test.rb +23 -0
- data/test/test_helper.rb +12 -0
- data/test/version_support_test.rb +9 -2
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6b3315c51507c8f2c6c2ccb8ab81b3400022fc68816c37cb9f29a654e755e65f
|
|
4
|
+
data.tar.gz: '0427950c98fa067d7590d5580f2013f77112318227e62f85d149ecae12e38af1'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4e602227a7aea7dc6d187f27ee0bf7476347c832f4e665503f6fb26c67cb05f63f711319ae965980ece4a462593cc4b37c9aebf9f4516cdb7bc63176f5cd5094
|
|
7
|
+
data.tar.gz: 34fbbc8e4326e69dcab6028664171651731ca9bf2570e718f368b1c6067ff654aa23b51b565e188d4916295d54dd3c52d2ced3a67ed5d6ec361828aa9a2f216b
|
data/.github/dependabot.yaml
CHANGED
data/.github/workflows/main.yml
CHANGED
|
@@ -13,22 +13,25 @@ jobs:
|
|
|
13
13
|
matrix:
|
|
14
14
|
ruby-version: ['3.2']
|
|
15
15
|
gemfile: ['faraday_1', 'faraday_2']
|
|
16
|
-
ES_VERSION: ['8.18.0']
|
|
16
|
+
ES_VERSION: ['8.18.0', '9.5.6']
|
|
17
17
|
include:
|
|
18
18
|
- ES_VERSION: '8.18.0'
|
|
19
19
|
ES_DOWNLOAD_URL: >-
|
|
20
20
|
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.18.0-linux-x86_64.tar.gz
|
|
21
|
+
- ES_VERSION: '9.5.6'
|
|
22
|
+
ES_DOWNLOAD_URL: >-
|
|
23
|
+
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-9.5.6-linux-x86_64.tar.gz
|
|
21
24
|
env:
|
|
22
25
|
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
|
|
23
26
|
steps:
|
|
24
|
-
- uses: actions/checkout@v4
|
|
25
|
-
- uses: ruby/setup-ruby@v1
|
|
27
|
+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
|
28
|
+
- uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
|
|
26
29
|
with:
|
|
27
30
|
ruby-version: ${{ matrix.ruby-version }}
|
|
28
31
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
|
29
32
|
- name: Cache Elasticsearch
|
|
30
33
|
id: cache-elasticsearch
|
|
31
|
-
uses: actions/cache@v4
|
|
34
|
+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
|
32
35
|
env:
|
|
33
36
|
cache-name: cache-elasticsearch
|
|
34
37
|
with:
|
|
@@ -7,8 +7,8 @@ jobs:
|
|
|
7
7
|
build:
|
|
8
8
|
runs-on: ubuntu-latest
|
|
9
9
|
steps:
|
|
10
|
-
- uses: actions/checkout@v4
|
|
11
|
-
- uses: ruby/setup-ruby@v1
|
|
10
|
+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
|
11
|
+
- uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
|
|
12
12
|
with:
|
|
13
13
|
ruby-version: '3.2'
|
|
14
14
|
bundler-cache: true
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 6.4.0 (2026-11-04)
|
|
2
|
+
- Add Elasticsearch 9.5.6 support while retaining Elasticsearch 8.x support.
|
|
3
|
+
- Keep Elasticsearch timeout errors retryable when returned with HTTP status 429.
|
|
4
|
+
|
|
1
5
|
## 6.3.0 (2026-06-22)
|
|
2
6
|
- Add support for Faraday 2 (now compatible with both Faraday 1.x and 2.x)
|
|
3
7
|
- Drop the deprecated `faraday_middleware` dependency in favor of `faraday-gzip`
|
data/README.md
CHANGED
|
@@ -114,6 +114,7 @@ This client is tested against:
|
|
|
114
114
|
- 5.6
|
|
115
115
|
- 8.13
|
|
116
116
|
- 8.18
|
|
117
|
+
- 9.5.6
|
|
117
118
|
|
|
118
119
|
## Development
|
|
119
120
|
|
|
@@ -140,7 +141,7 @@ script/bootstrap
|
|
|
140
141
|
|
|
141
142
|
### Start an Elasticsearch server in Docker
|
|
142
143
|
|
|
143
|
-
To run ES 5 and ES
|
|
144
|
+
To run ES 5, ES 8, and ES 9:
|
|
144
145
|
```
|
|
145
146
|
docker compose --project-directory docker --profile all up
|
|
146
147
|
```
|
|
@@ -155,6 +156,11 @@ To run only ES 8:
|
|
|
155
156
|
docker compose --project-directory docker --profile es8 up
|
|
156
157
|
```
|
|
157
158
|
|
|
159
|
+
To run only ES 9:
|
|
160
|
+
```
|
|
161
|
+
docker compose --project-directory docker --profile es9 up
|
|
162
|
+
```
|
|
163
|
+
|
|
158
164
|
To run only ES 5:
|
|
159
165
|
```
|
|
160
166
|
docker compose --project-directory docker --profile es5 up
|
|
@@ -162,6 +168,11 @@ docker compose --project-directory docker --profile es5 up
|
|
|
162
168
|
|
|
163
169
|
### Run tests against a version of Elasticsearch
|
|
164
170
|
|
|
171
|
+
ES 9
|
|
172
|
+
```
|
|
173
|
+
ES_PORT=9210 rake test
|
|
174
|
+
```
|
|
175
|
+
|
|
165
176
|
ES 8
|
|
166
177
|
```
|
|
167
178
|
ES_PORT=9208 rake test
|
data/docker/compose.yaml
CHANGED
|
@@ -1,6 +1,34 @@
|
|
|
1
1
|
version: "3"
|
|
2
2
|
|
|
3
3
|
services:
|
|
4
|
+
elasticsearch9.5:
|
|
5
|
+
image: docker.elastic.co/elasticsearch/elasticsearch:9.5.6
|
|
6
|
+
container_name: es9.5
|
|
7
|
+
profiles: ["es9", "all"]
|
|
8
|
+
environment:
|
|
9
|
+
- cluster.name=elastomer9.5
|
|
10
|
+
- bootstrap.memory_lock=true
|
|
11
|
+
- discovery.type=single-node
|
|
12
|
+
- xpack.security.enabled=false
|
|
13
|
+
- xpack.watcher.enabled=false
|
|
14
|
+
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
15
|
+
- node.roles=[master,data,remote_cluster_client]
|
|
16
|
+
ulimits:
|
|
17
|
+
memlock:
|
|
18
|
+
soft: -1
|
|
19
|
+
hard: -1
|
|
20
|
+
nofile:
|
|
21
|
+
soft: 65536
|
|
22
|
+
hard: 65536
|
|
23
|
+
mem_limit: 2g
|
|
24
|
+
cap_add:
|
|
25
|
+
- IPC_LOCK
|
|
26
|
+
volumes:
|
|
27
|
+
- esrepos9:/usr/share/elasticsearch/repos
|
|
28
|
+
- ./elasticsearch8plus.yml:/usr/share/elasticsearch/config/elasticsearch.yml
|
|
29
|
+
ports:
|
|
30
|
+
- 127.0.0.1:${ES_9_PORT:-9210}:9200
|
|
31
|
+
|
|
4
32
|
elasticsearch8.18:
|
|
5
33
|
image: docker.elastic.co/elasticsearch/elasticsearch:8.18.0
|
|
6
34
|
container_name: es8.18
|
|
@@ -85,6 +113,12 @@ services:
|
|
|
85
113
|
- 127.0.0.1:${ES_5_PORT:-9205}:9200
|
|
86
114
|
|
|
87
115
|
volumes:
|
|
116
|
+
esrepos9:
|
|
117
|
+
driver: local
|
|
118
|
+
driver_opts:
|
|
119
|
+
device: tmpfs
|
|
120
|
+
type: tmpfs
|
|
121
|
+
o: size=100m,uid=102,gid=102
|
|
88
122
|
esrepos8:
|
|
89
123
|
driver: local
|
|
90
124
|
driver_opts:
|