elastic-transport 8.1.0 → 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: 388aaaffda8babdfb8466e6aef816ed63bc520b56c7cb4f09964a23a1ab73854
4
- data.tar.gz: 2bdc179dba8822d690bc1a1b41b9766996f5a39cf8d8b8d7fa1bc03662cdcc97
3
+ metadata.gz: 5f977afd217e311b260201a62db8a2a2a672441c105a24a01d57dca297589c03
4
+ data.tar.gz: 4c10a784bc750400d6461095c7ff82a37efbc0d5968726f9776488b19b33c97a
5
5
  SHA512:
6
- metadata.gz: 45f117b13be213d5b85a17b1df2ecbafcc14fa566f7beda6bd39be8e26b4e5611f80b1d1bd5f3e0f9e35c726721f70e05c479ae112f9e2da97d2d21ff3af676a
7
- data.tar.gz: 9b6d8a1fcc73da9676a309b11860640d6194bed392b1cdd91b4ef8b0ba407de11a8500f542efa588aa3f0a03c31dbef9e374f380c018fe297527ee486540a8b0
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
@@ -1,25 +1,23 @@
1
- name: main tests
1
+ name: 8.1 tests
2
2
  on:
3
3
  push:
4
4
  branches:
5
- - main
5
+ - 8.1
6
6
  pull_request:
7
7
  branches:
8
- - main
8
+ - 8.1
9
9
  jobs:
10
- test:
11
- name: 'Main tests'
10
+ test-ruby:
12
11
  env:
13
12
  TEST_ES_SERVER: http://localhost:9250
14
13
  PORT: 9250
15
14
  strategy:
16
15
  fail-fast: false
17
16
  matrix:
18
- ruby: [ '2.7', '3.0', '3.1', 'jruby-9.3' ]
19
- es_version: ['8.2-SNAPSHOT', '8.3-SNAPSHOT', '8.4-SNAPSHOT']
17
+ ruby: [ '2.7', '3.0', '3.1', '3.2', 'jruby-9.3', 'jruby-9.4' ]
20
18
  runs-on: ubuntu-latest
21
19
  steps:
22
- - uses: actions/checkout@v2
20
+ - uses: actions/checkout@v3
23
21
  - name: Increase system limits
24
22
  run: |
25
23
  sudo swapoff -a
@@ -28,7 +26,7 @@ jobs:
28
26
  sudo sysctl -w vm.max_map_count=262144
29
27
  - uses: elastic/elastic-github-actions/elasticsearch@master
30
28
  with:
31
- stack-version: ${{ matrix.es_version }}
29
+ stack-version: 8.9-SNAPSHOT
32
30
  security-enabled: false
33
31
  - uses: ruby/setup-ruby@v1
34
32
  with:
@@ -45,42 +43,4 @@ jobs:
45
43
  run: bundle exec rake test:spec
46
44
  - name: integration tests
47
45
  run: bundle exec rake test:integration
48
- test-faraday1:
49
- name: 'Test Faraday 1'
50
- env:
51
- TEST_ES_SERVER: http://localhost:9250
52
- PORT: 9250
53
- strategy:
54
- fail-fast: false
55
- matrix:
56
- ruby: [ '2.7', '3.0', '3.1', 'jruby-9.3' ]
57
- es_version: ['8.3.0-SNAPSHOT']
58
- runs-on: ubuntu-latest
59
- steps:
60
- - uses: actions/checkout@v2
61
- - name: Increase system limits
62
- run: |
63
- sudo swapoff -a
64
- sudo sysctl -w vm.swappiness=1
65
- sudo sysctl -w fs.file-max=262144
66
- sudo sysctl -w vm.max_map_count=262144
67
- - uses: elastic/elastic-github-actions/elasticsearch@master
68
- with:
69
- stack-version: ${{ matrix.es_version }}
70
- security-enabled: false
71
- - uses: ruby/setup-ruby@v1
72
- with:
73
- ruby-version: ${{ matrix.ruby }}
74
- - name: Build and test with Rake
75
- run: |
76
- sudo apt-get update
77
- sudo apt-get install libcurl4-openssl-dev
78
- ruby -v
79
- gem install bundler
80
- BUNDLE_GEMFILE=./Gemfile-faraday1.gemfile bundle install
81
- - name: faraday1 unit tests
82
- run: BUNDLE_GEMFILE=./Gemfile-faraday1.gemfile bundle exec rake test:faraday1:unit
83
- - name: specs
84
- run: BUNDLE_GEMFILE=./Gemfile-faraday1.gemfile bundle exec rake test:faraday1:spec
85
- - name: integration tests
86
- run: BUNDLE_GEMFILE=./Gemfile-faraday1.gemfile bundle exec rake test:faraday1:integration
46
+
data/.gitignore CHANGED
@@ -5,7 +5,7 @@
5
5
  .bundle
6
6
  .config
7
7
  .yardoc
8
- Gemfile*.lock
8
+ Gemfile.lock
9
9
  InstalledFiles
10
10
  _yardoc
11
11
  coverage
data/CHANGELOG.md CHANGED
@@ -1,10 +1,24 @@
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
+
7
+ ## 8.1.1
8
+
9
+ Backports the following updates from 8.2:
10
+
11
+ - Refactors `apply_headers` in base and manticore implementation: When passing in an object to the initializer, `apply_headers` would mutate this object and in certain conditions, this would raise `RuntimeError` in JRuby 9.3 and `ConcurrencyError` in JRuby 9.4. This update clones the options object instead.
12
+ - Fixes [issue #44](https://github.com/elastic/elastic-transport-ruby/issues/44), raising `Elastic::Transport::Transport::Error` instead of `Faraday::ConnectionFailed` (or any other Faraday error class) when a host is unreachable.
13
+ - Fixes parsing ipv4 addresses like `inet[/127.0.0.1:9200]` in sniffer, [issue #48](https://github.com/elastic/elastic-transport-ruby/issues/48). [Pull Request](https://github.com/elastic/elastic-transport-ruby/pull/49) by [@robbat2](https://github.com/robbat2), thank you!
14
+
1
15
  ## 8.1.0
2
16
 
3
17
  Adds support for Faraday version 2. From [Faraday's Upgrading guide](https://github.com/lostisland/faraday/blob/main/UPGRADING.md#faraday-20), the main change is the adapters have moved:
4
18
 
5
19
  > With this release, we've officially moved all adapters, except for the net_http one, out of Faraday. What that means, is that they won't be available out-of-the-box anymore, and you'll instead need to add them to your Gemfile.
6
20
  > If you just use the default net_http adapter, then you don't need to do anything!
7
- > Otherwise, add the corresponding adapter gem to your Gemfile (e.g. faraday-net_http_persistent). Then, simply require them after you require faraday.
21
+ > Otherwise, add the corresponding adapter gem to your Gemfile (e.g. faraday-net_http_persistent). Then, simply require them after you require faraday.
8
22
 
9
23
  We're now supporting Faraday v2 and Faraday v1. The adapters were removed as development dependency in the gemspec and added to the Gemfile. A new file `Gemfile-faraday1.gemfile` was added to run tests with version `1.x` of Faraday too.
10
24
 
data/Gemfile CHANGED
@@ -20,11 +20,15 @@ source 'https://rubygems.org'
20
20
  # Specify your gem's dependencies in elasticsearch-transport.gemspec
21
21
  gemspec
22
22
 
23
+ if File.exist? File.expand_path('../elasticsearch-api/elasticsearch-api.gemspec', __dir__)
24
+ gem 'elasticsearch-api', path: File.expand_path('../elasticsearch-api', __dir__), require: false
25
+ end
26
+
27
+ if File.exist? File.expand_path('../elasticsearch/elasticsearch.gemspec', __dir__)
28
+ gem 'elasticsearch', path: File.expand_path('../elasticsearch', __dir__), require: false
29
+ end
30
+
23
31
  group :development, :test do
24
- gem 'faraday-httpclient'
25
- gem 'faraday-net_http_persistent'
26
- gem 'faraday-patron' unless defined? JRUBY_VERSION
27
- gem 'faraday-typhoeus'
28
32
  gem 'rspec'
29
33
  if defined?(JRUBY_VERSION)
30
34
  gem 'pry-nav'