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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a044892301bedf212dc00b11279d569786b881c3bb652895ec0847b99ae1c61
4
- data.tar.gz: 757a5d91447de5110abe9809c7de40557eb9a7334d607b6e8ed3914028db641e
3
+ metadata.gz: 6b3315c51507c8f2c6c2ccb8ab81b3400022fc68816c37cb9f29a654e755e65f
4
+ data.tar.gz: '0427950c98fa067d7590d5580f2013f77112318227e62f85d149ecae12e38af1'
5
5
  SHA512:
6
- metadata.gz: 284f0dba094d9f3fec31d9b2f6f2cd9ff74d497a60237d5612e012d361fd471dc153bf9ebb3e8fc0c4677290479f06ab1ef8c8820080d008152721628f0184f5
7
- data.tar.gz: c887fe41f5e8f5ebc5daf6abdc30c89fe2be490999e9115b0cd17f5d9c3fb6d02934ab5273197a2a2b095d7341d54436e3a88e910e184064d915c0932bb2410c
6
+ metadata.gz: 4e602227a7aea7dc6d187f27ee0bf7476347c832f4e665503f6fb26c67cb05f63f711319ae965980ece4a462593cc4b37c9aebf9f4516cdb7bc63176f5cd5094
7
+ data.tar.gz: 34fbbc8e4326e69dcab6028664171651731ca9bf2570e718f368b1c6067ff654aa23b51b565e188d4916295d54dd3c52d2ced3a67ed5d6ec361828aa9a2f216b
@@ -9,3 +9,5 @@ updates:
9
9
  directory: '/'
10
10
  schedule:
11
11
  interval: 'weekly'
12
+ cooldown:
13
+ default-days: 7
@@ -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 8:
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: