elasticsearch-transport 7.11.0 → 7.11.1

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: 6e2f0e5d372dfa4495b762d82a182fab89c57fa56b7c62649587843dea8c2faf
4
- data.tar.gz: f9d02a71dec534954eb87f1a777b1410578d378b15454193295aca9dfcaf5586
3
+ metadata.gz: a61db52575ad4a8669cbef5e60e6f90607f82155206c85e9e473835dfa35e0e5
4
+ data.tar.gz: e8d2f1899f4ebf17cfafdfee98174f86ba52633f04d8fadd30ec9b4d31457546
5
5
  SHA512:
6
- metadata.gz: 625ac145cc74529c6a383309e6a2ee0729bf57f2858b2dc7d769f79025cf925256b9c5a531be52e070a419d3ed7efd525474eb8781aca87caad7b7fffa21c6e0
7
- data.tar.gz: 683c674b9778ff15d2d82ac05d667e05944e897be3e0deebaf7277dbdaf837d5df2ad17ff9b4fb91b75f4b162a229e1ac8c9b6eee419c717db2a7e2e7668531f
6
+ metadata.gz: 0ca54a9d0f096d1f8675ea7ef4d84da517f34ffeea31c9ce72f3c4a9257cfab33d6548582490ff7f87708a0ff3bc25a29c907274870d2ea22df34d7585c6d59e
7
+ data.tar.gz: 854a17c7995ceede84fa87f73ccb7fafd8d57a8ff400429e8877258bd00e7cadbc69562400af8d682cb195b51599867bfce2fc84db151d3bff45c846844b188b
@@ -267,6 +267,8 @@ module Elasticsearch
267
267
  {hc: HTTPClient::VERSION}
268
268
  when :net_http_persistent
269
269
  {np: Net::HTTP::Persistent::VERSION}
270
+ else
271
+ {}
270
272
  end
271
273
  )
272
274
  elsif defined?(Transport::HTTP::Curb) && @transport_class == Transport::HTTP::Curb
@@ -17,6 +17,6 @@
17
17
 
18
18
  module Elasticsearch
19
19
  module Transport
20
- VERSION = '7.11.0'.freeze
20
+ VERSION = '7.11.1'.freeze
21
21
  end
22
22
  end
@@ -150,6 +150,17 @@ describe Elasticsearch::Transport::Client do
150
150
  end
151
151
  end
152
152
  end
153
+
154
+ context 'using other' do
155
+ let(:adapter) { :some_other_adapter }
156
+
157
+ it 'sets adapter in the meta header' do
158
+ require 'net/http/persistent'
159
+ Faraday::Adapter.register_middleware some_other_adapter: Faraday::Adapter::NetHttpPersistent
160
+ expect(headers['x-elastic-client-meta']).to match(regexp)
161
+ expect(headers).to include('x-elastic-client-meta' => meta_header)
162
+ end
163
+ end
153
164
  end
154
165
 
155
166
  if defined?(JRUBY_VERSION)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-transport
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.11.0
4
+ version: 7.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karel Minarik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-10 00:00:00.000000000 Z
11
+ date: 2021-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json