elastic-transport 8.1.1 → 8.1.3
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/license.yml +1 -1
- data/.github/workflows/tests.yml +3 -3
- data/CHANGELOG.md +12 -0
- data/lib/elastic/transport/client.rb +0 -1
- data/lib/elastic/transport/meta_header.rb +0 -2
- data/lib/elastic/transport/transport/response.rb +2 -3
- data/lib/elastic/transport/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0528484d88479954777f01b3d005be41608713eeda4eb757f223b37dcf4de63
|
4
|
+
data.tar.gz: 0351a6d3a75eb9b0df9899a177a26f92666df9422acca5d0b87fb63f87cd625a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29f63fc511e913532c87e2ff56db0fd2af466ddc07aac40345e4130691d93e6823f4450ed9cb6b1d50c12a41183a2c9e12f6678129541ef8408cd5894bac544c
|
7
|
+
data.tar.gz: d8c965dfb93c49ce3b44ed802b82e853d1a6049d49b0b3e3426cd2f6ce9e37385bf1536212ec024159d6efdd25f60b58a90afe864972e7c0a4247c5a075b372a
|
data/.github/workflows/tests.yml
CHANGED
@@ -14,10 +14,10 @@ jobs:
|
|
14
14
|
strategy:
|
15
15
|
fail-fast: false
|
16
16
|
matrix:
|
17
|
-
ruby: [ '2.7', '3.0', '3.1', 'jruby-9.3', 'jruby-9.4' ]
|
17
|
+
ruby: [ '2.7', '3.0', '3.1', '3.2', '3.3', 'jruby-9.3', 'jruby-9.4' ]
|
18
18
|
runs-on: ubuntu-latest
|
19
19
|
steps:
|
20
|
-
- uses: actions/checkout@
|
20
|
+
- uses: actions/checkout@v3
|
21
21
|
- name: Increase system limits
|
22
22
|
run: |
|
23
23
|
sudo swapoff -a
|
@@ -26,7 +26,7 @@ jobs:
|
|
26
26
|
sudo sysctl -w vm.max_map_count=262144
|
27
27
|
- uses: elastic/elastic-github-actions/elasticsearch@master
|
28
28
|
with:
|
29
|
-
stack-version: 8.
|
29
|
+
stack-version: 8.12-SNAPSHOT
|
30
30
|
security-enabled: false
|
31
31
|
- uses: ruby/setup-ruby@v1
|
32
32
|
with:
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
## 8.1.3
|
2
|
+
|
3
|
+
Tested versions of Ruby: (MRI) 2.7, 3.0, 3.1, 3.2, 3.3, JRuby 9.3 and JRuby 9.4
|
4
|
+
|
5
|
+
- Removes unneccessary `require 'base64'` found thanks to warning in Ruby 3.3. So this removes the warning too if you were using Ruby 3.3.
|
6
|
+
|
7
|
+
## 8.1.2
|
8
|
+
|
9
|
+
Backports the following fix from 8.2:
|
10
|
+
|
11
|
+
- Fixes enforcing UTF-8 in Response body, causing an error when the string is frozen, particularly when using webmock. [issue #63](https://github.com/elastic/elastic-transport-ruby/issues/63)
|
12
|
+
|
1
13
|
## 8.1.1
|
2
14
|
|
3
15
|
Backports the following updates from 8.2:
|
@@ -19,8 +19,7 @@ module Elastic
|
|
19
19
|
module Transport
|
20
20
|
module Transport
|
21
21
|
# Wraps the response from Elasticsearch.
|
22
|
-
# It provides `body`, `status` and `headers` methods
|
23
|
-
# access the keys directly.
|
22
|
+
# It provides `body`, `status` and `headers` methods
|
24
23
|
class Response
|
25
24
|
attr_reader :status, :body, :headers
|
26
25
|
|
@@ -29,7 +28,7 @@ module Elastic
|
|
29
28
|
# @param headers [Hash] Response headers
|
30
29
|
def initialize(status, body, headers = {})
|
31
30
|
@status, @body, @headers = status, body, headers
|
32
|
-
@body = body.force_encoding('UTF-8') if body.respond_to?(:force_encoding)
|
31
|
+
@body = body.force_encoding('UTF-8') if body.respond_to?(:force_encoding) && !body.frozen?
|
33
32
|
end
|
34
33
|
end
|
35
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elastic-transport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.1.
|
4
|
+
version: 8.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karel Minarik
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2024-01-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: multi_json
|
@@ -392,7 +392,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
392
392
|
- !ruby/object:Gem::Version
|
393
393
|
version: '0'
|
394
394
|
requirements: []
|
395
|
-
rubygems_version: 3.
|
395
|
+
rubygems_version: 3.5.3
|
396
396
|
signing_key:
|
397
397
|
specification_version: 4
|
398
398
|
summary: Low level Ruby client for Elastic services.
|