elastic-transport 8.1.1 → 8.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c45579654af5263b19d9ed8a814727d7d63fa3c4ecb3e1313adcffe6b5f9e185
4
- data.tar.gz: 278b4e2bf242cf1acf9cea3f9bb297b45a5517c3f9f38921484913e337afa4c3
3
+ metadata.gz: 5f977afd217e311b260201a62db8a2a2a672441c105a24a01d57dca297589c03
4
+ data.tar.gz: 4c10a784bc750400d6461095c7ff82a37efbc0d5968726f9776488b19b33c97a
5
5
  SHA512:
6
- metadata.gz: '078d4316c2ea7222c02905522389c47494c049a35b0b924d76afeeb340517d3f85fc6824294870dc7399884581233c1564424cae33f6381d21476a4f39758b91'
7
- data.tar.gz: bd074dd0d1eeca808efe02e48bfc40232d12b7923e077352e1dc72749e030a85c9b16112d836506fce7cef076dfedd7d3d5f44659598b68ebb7fc00bf68f4a83
6
+ metadata.gz: 29e8f88f113b5322a40bd26f32adfb4712ea8274ac7b3520ee2f366fb48db8e223da353264cace594c0567614ec589180046fbfe1f89c8157e2643a93478ff83
7
+ data.tar.gz: d1e142bd3b71f246bfb56100d5e61d8d8e70360502eaa1e2071b848367b5f56f1020dba78f69aa38524a011ba0d7b96c18085aa37195e033fcf8aad3cbd6e990
@@ -4,7 +4,7 @@ jobs:
4
4
  build:
5
5
  runs-on: ubuntu-latest
6
6
  steps:
7
- - uses: actions/checkout@v2
7
+ - uses: actions/checkout@v3
8
8
  - uses: ruby/setup-ruby@v1
9
9
  with:
10
10
  ruby-version: 3
@@ -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', 'jruby-9.3', 'jruby-9.4' ]
18
18
  runs-on: ubuntu-latest
19
19
  steps:
20
- - uses: actions/checkout@v2
20
+ - uses: actions/checkout@v3
21
21
  - name: Increase system limits
22
22
  run: |
23
23
  sudo swapoff -a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 8.1.2
2
+
3
+ Backports the following fix from 8.2:
4
+
5
+ - 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)
6
+
1
7
  ## 8.1.1
2
8
 
3
9
  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, but you can treat is as a hash and
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
@@ -17,6 +17,6 @@
17
17
 
18
18
  module Elastic
19
19
  module Transport
20
- VERSION = '8.1.1'.freeze
20
+ VERSION = '8.1.2'.freeze
21
21
  end
22
22
  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.1
4
+ version: 8.1.2
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: 2023-07-05 00:00:00.000000000 Z
13
+ date: 2023-08-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json