elastomer-client 6.2.3 → 6.3.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/workflows/main.yml +4 -1
- data/.gitignore +1 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile +3 -1
- data/elastomer-client.gemspec +2 -2
- data/gemfiles/faraday_1.gemfile +27 -0
- data/gemfiles/faraday_2.gemfile +30 -0
- data/lib/elastomer_client/client/rest_api_spec/api_spec_v8_19.rb +8721 -0
- data/lib/elastomer_client/client.rb +8 -4
- data/lib/elastomer_client/version.rb +1 -1
- data/test/client_test.rb +14 -45
- metadata +17 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7a044892301bedf212dc00b11279d569786b881c3bb652895ec0847b99ae1c61
|
|
4
|
+
data.tar.gz: 757a5d91447de5110abe9809c7de40557eb9a7334d607b6e8ed3914028db641e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 284f0dba094d9f3fec31d9b2f6f2cd9ff74d497a60237d5612e012d361fd471dc153bf9ebb3e8fc0c4677290479f06ab1ef8c8820080d008152721628f0184f5
|
|
7
|
+
data.tar.gz: c887fe41f5e8f5ebc5daf6abdc30c89fe2be490999e9115b0cd17f5d9c3fb6d02934ab5273197a2a2b095d7341d54436e3a88e910e184064d915c0932bb2410c
|
data/.github/workflows/main.yml
CHANGED
|
@@ -12,17 +12,20 @@ jobs:
|
|
|
12
12
|
strategy:
|
|
13
13
|
matrix:
|
|
14
14
|
ruby-version: ['3.2']
|
|
15
|
+
gemfile: ['faraday_1', 'faraday_2']
|
|
15
16
|
ES_VERSION: ['8.18.0']
|
|
16
17
|
include:
|
|
17
18
|
- ES_VERSION: '8.18.0'
|
|
18
19
|
ES_DOWNLOAD_URL: >-
|
|
19
20
|
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.18.0-linux-x86_64.tar.gz
|
|
21
|
+
env:
|
|
22
|
+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
|
|
20
23
|
steps:
|
|
24
|
+
- uses: actions/checkout@v4
|
|
21
25
|
- uses: ruby/setup-ruby@v1
|
|
22
26
|
with:
|
|
23
27
|
ruby-version: ${{ matrix.ruby-version }}
|
|
24
28
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
|
25
|
-
- uses: actions/checkout@v4
|
|
26
29
|
- name: Cache Elasticsearch
|
|
27
30
|
id: cache-elasticsearch
|
|
28
31
|
uses: actions/cache@v4
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## 6.3.0 (2026-06-22)
|
|
2
|
+
- Add support for Faraday 2 (now compatible with both Faraday 1.x and 2.x)
|
|
3
|
+
- Drop the deprecated `faraday_middleware` dependency in favor of `faraday-gzip`
|
|
4
|
+
|
|
5
|
+
## 6.2.4 (2025-10-10)
|
|
6
|
+
- Added support for ES 8.19.3
|
|
7
|
+
|
|
1
8
|
## 6.2.3 (2025-06-06)
|
|
2
9
|
- Added support for ES 8.17.2
|
|
3
10
|
- Added support for ES 8.18.0
|
data/Gemfile
CHANGED
|
@@ -8,6 +8,9 @@ group :development do
|
|
|
8
8
|
gem "activesupport", ">= 7.0"
|
|
9
9
|
gem "bundler", "~> 2.0"
|
|
10
10
|
gem "debug", "~> 1.7"
|
|
11
|
+
# The default bundle resolves Faraday 2.x, where the :retry middleware lives in the
|
|
12
|
+
# faraday-retry gem (it is in core on 1.x). Needed for the retry test; consumers opt in.
|
|
13
|
+
gem "faraday-retry", require: "faraday/retry"
|
|
11
14
|
gem "minitest", "~> 5.17"
|
|
12
15
|
gem "minitest-focus", "~> 1.3"
|
|
13
16
|
gem "rake"
|
|
@@ -17,6 +20,5 @@ group :development do
|
|
|
17
20
|
gem "rubocop-performance", "~> 1.21.0"
|
|
18
21
|
gem "rubocop-rake", "~> 0.6.0"
|
|
19
22
|
gem "simplecov", require: false
|
|
20
|
-
gem "spy", "~> 1.0"
|
|
21
23
|
gem "webmock", "~> 3.5"
|
|
22
24
|
end
|
data/elastomer-client.gemspec
CHANGED
|
@@ -22,8 +22,8 @@ Gem::Specification.new do |spec|
|
|
|
22
22
|
spec.require_paths = ["lib"]
|
|
23
23
|
|
|
24
24
|
spec.add_dependency "addressable", "~> 2.5"
|
|
25
|
-
spec.add_dependency "faraday", ">= 0
|
|
26
|
-
spec.add_dependency "
|
|
25
|
+
spec.add_dependency "faraday", ">= 1.0", "< 3"
|
|
26
|
+
spec.add_dependency "faraday-gzip", ">= 1.0"
|
|
27
27
|
spec.add_dependency "multi_json", "~> 1.12"
|
|
28
28
|
spec.add_dependency "semantic", "~> 1.6"
|
|
29
29
|
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Tests elastomer-client against Faraday 1.x.
|
|
4
|
+
#
|
|
5
|
+
# faraday-gzip works on both Faraday 1.x and 2.x and provides the :gzip request middleware
|
|
6
|
+
# used for response decompression (replacing the deprecated faraday_middleware).
|
|
7
|
+
source "https://rubygems.org"
|
|
8
|
+
|
|
9
|
+
gem "faraday", "~> 1.10"
|
|
10
|
+
|
|
11
|
+
gemspec path: ".."
|
|
12
|
+
|
|
13
|
+
group :development do
|
|
14
|
+
gem "activesupport", ">= 7.0"
|
|
15
|
+
gem "bundler", "~> 2.0"
|
|
16
|
+
gem "debug", "~> 1.7"
|
|
17
|
+
gem "minitest", "~> 5.17"
|
|
18
|
+
gem "minitest-focus", "~> 1.3"
|
|
19
|
+
gem "rake"
|
|
20
|
+
gem "rubocop", "~> 1.63.0"
|
|
21
|
+
gem "rubocop-github", "~> 0.20.0"
|
|
22
|
+
gem "rubocop-minitest", "~> 0.35.0"
|
|
23
|
+
gem "rubocop-performance", "~> 1.21.0"
|
|
24
|
+
gem "rubocop-rake", "~> 0.6.0"
|
|
25
|
+
gem "simplecov", require: false
|
|
26
|
+
gem "webmock", "~> 3.5"
|
|
27
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Tests elastomer-client against Faraday 2.x.
|
|
4
|
+
#
|
|
5
|
+
# This is the configuration the monolith targets after the Faraday 2 upgrade. faraday-gzip
|
|
6
|
+
# provides the :gzip request middleware (response decompression) on Faraday 2.x.
|
|
7
|
+
source "https://rubygems.org"
|
|
8
|
+
|
|
9
|
+
gem "faraday", "~> 2.0"
|
|
10
|
+
|
|
11
|
+
gemspec path: ".."
|
|
12
|
+
|
|
13
|
+
group :development do
|
|
14
|
+
gem "activesupport", ">= 7.0"
|
|
15
|
+
gem "bundler", "~> 2.0"
|
|
16
|
+
gem "debug", "~> 1.7"
|
|
17
|
+
# On Faraday 2.x the :retry middleware lives in the faraday-retry gem (it is in core on
|
|
18
|
+
# 1.x). Consumers opt into retries via a connection block; the suite covers that path.
|
|
19
|
+
gem "faraday-retry", require: "faraday/retry"
|
|
20
|
+
gem "minitest", "~> 5.17"
|
|
21
|
+
gem "minitest-focus", "~> 1.3"
|
|
22
|
+
gem "rake"
|
|
23
|
+
gem "rubocop", "~> 1.63.0"
|
|
24
|
+
gem "rubocop-github", "~> 0.20.0"
|
|
25
|
+
gem "rubocop-minitest", "~> 0.35.0"
|
|
26
|
+
gem "rubocop-performance", "~> 1.21.0"
|
|
27
|
+
gem "rubocop-rake", "~> 0.6.0"
|
|
28
|
+
gem "simplecov", require: false
|
|
29
|
+
gem "webmock", "~> 3.5"
|
|
30
|
+
end
|