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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c45579654af5263b19d9ed8a814727d7d63fa3c4ecb3e1313adcffe6b5f9e185
4
- data.tar.gz: 278b4e2bf242cf1acf9cea3f9bb297b45a5517c3f9f38921484913e337afa4c3
3
+ metadata.gz: a0528484d88479954777f01b3d005be41608713eeda4eb757f223b37dcf4de63
4
+ data.tar.gz: 0351a6d3a75eb9b0df9899a177a26f92666df9422acca5d0b87fb63f87cd625a
5
5
  SHA512:
6
- metadata.gz: '078d4316c2ea7222c02905522389c47494c049a35b0b924d76afeeb340517d3f85fc6824294870dc7399884581233c1564424cae33f6381d21476a4f39758b91'
7
- data.tar.gz: bd074dd0d1eeca808efe02e48bfc40232d12b7923e077352e1dc72749e030a85c9b16112d836506fce7cef076dfedd7d3d5f44659598b68ebb7fc00bf68f4a83
6
+ metadata.gz: 29f63fc511e913532c87e2ff56db0fd2af466ddc07aac40345e4130691d93e6823f4450ed9cb6b1d50c12a41183a2c9e12f6678129541ef8408cd5894bac544c
7
+ data.tar.gz: d8c965dfb93c49ce3b44ed802b82e853d1a6049d49b0b3e3426cd2f6ce9e37385bf1536212ec024159d6efdd25f60b58a90afe864972e7c0a4247c5a075b372a
@@ -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', '3.3', '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
@@ -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.9-SNAPSHOT
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:
@@ -15,7 +15,6 @@
15
15
  # specific language governing permissions and limitations
16
16
  # under the License.
17
17
 
18
- require 'base64'
19
18
  require 'elastic/transport/meta_header'
20
19
 
21
20
  module Elastic
@@ -15,8 +15,6 @@
15
15
  # specific language governing permissions and limitations
16
16
  # under the License.
17
17
 
18
- require 'base64'
19
-
20
18
  module Elastic
21
19
  module Transport
22
20
  # Methods for the Elastic meta header used by Cloud.
@@ -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.3'.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.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: 2023-07-05 00:00:00.000000000 Z
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.4.13
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.