elasticsearch-transport 7.4.0 → 7.5.0.pre.pre
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21a62e456641b47890ba970a2ffd2df64346ed1c3c593919908b97e32e857212
|
4
|
+
data.tar.gz: 5b82a3a297bdc205f9924740fe1406108029006b70e45d23ae3a715807db2b3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ac3c06442693def097698d14419a5fe7dc8ca28c3ab7e1c9091873cee5f4676ed9d040125d573fd4b024859d9b8328bafc102d8aaf618d6fbf52d18f80c6fc1
|
7
|
+
data.tar.gz: c67de903514ccc7a256da3732bb266183f6a39748c6973ecd5144347002b2be73f4470d500a70182fd0c7ec8410d402c8b7a03cc2e1dc310eba9e897e0c99b54
|
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
s.required_ruby_version = '>= 1.9'
|
28
28
|
|
29
29
|
s.add_dependency "multi_json"
|
30
|
-
s.add_dependency "faraday"
|
30
|
+
s.add_dependency "faraday", '>= 0.14', "< 1"
|
31
31
|
|
32
32
|
if defined?(RUBY_VERSION) && RUBY_VERSION < '1.9'
|
33
33
|
s.add_dependency "system_timer"
|
@@ -112,7 +112,7 @@ module Elasticsearch
|
|
112
112
|
@arguments[:randomize_hosts] ||= false
|
113
113
|
@arguments[:transport_options] ||= {}
|
114
114
|
@arguments[:http] ||= {}
|
115
|
-
@options[:http]
|
115
|
+
@options[:http] ||= {}
|
116
116
|
|
117
117
|
@seeds = extract_cloud_creds(@arguments)
|
118
118
|
@seeds ||= __extract_hosts(@arguments[:hosts] ||
|
@@ -5,11 +5,8 @@
|
|
5
5
|
require 'spec_helper'
|
6
6
|
|
7
7
|
describe Elasticsearch::Transport::Transport::Base do
|
8
|
-
|
9
8
|
context 'when a host is printed in a logged message' do
|
10
|
-
|
11
9
|
shared_examples_for 'a redacted string' do
|
12
|
-
|
13
10
|
let(:client) do
|
14
11
|
Elasticsearch::Transport::Client.new(arguments)
|
15
12
|
end
|
@@ -20,6 +17,7 @@ describe Elasticsearch::Transport::Transport::Base do
|
|
20
17
|
|
21
18
|
it 'does not include the password in the logged string' do
|
22
19
|
expect(logger).not_to receive(:error).with(/secret_password/)
|
20
|
+
|
23
21
|
expect {
|
24
22
|
client.cluster.stats
|
25
23
|
}.to raise_exception(Faraday::ConnectionFailed)
|
@@ -34,7 +32,6 @@ describe Elasticsearch::Transport::Transport::Base do
|
|
34
32
|
end
|
35
33
|
|
36
34
|
context 'when the user and password are provided as separate arguments' do
|
37
|
-
|
38
35
|
let(:arguments) do
|
39
36
|
{ hosts: 'fake',
|
40
37
|
logger: logger,
|
@@ -46,9 +43,8 @@ describe Elasticsearch::Transport::Transport::Base do
|
|
46
43
|
end
|
47
44
|
|
48
45
|
context 'when the user and password are provided in the string URI' do
|
49
|
-
|
50
46
|
let(:arguments) do
|
51
|
-
{ hosts: '
|
47
|
+
{ hosts: 'https://test:secret_password@fake_local_elasticsearch',
|
52
48
|
logger: logger }
|
53
49
|
end
|
54
50
|
|
@@ -56,9 +52,8 @@ describe Elasticsearch::Transport::Transport::Base do
|
|
56
52
|
end
|
57
53
|
|
58
54
|
context 'when the user and password are provided in the URI object' do
|
59
|
-
|
60
55
|
let(:arguments) do
|
61
|
-
{ hosts: URI.parse('
|
56
|
+
{ hosts: URI.parse('https://test:secret_password@fake_local_elasticsearch'),
|
62
57
|
logger: logger }
|
63
58
|
end
|
64
59
|
|
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.
|
4
|
+
version: 7.5.0.pre.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karel Minarik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -30,14 +30,20 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
33
|
+
version: '0.14'
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '1'
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
41
|
- - ">="
|
39
42
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
43
|
+
version: '0.14'
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '1'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: bundler
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -349,7 +355,7 @@ dependencies:
|
|
349
355
|
description: 'Ruby client for Elasticsearch. See the `elasticsearch` gem for full
|
350
356
|
integration.
|
351
357
|
|
352
|
-
|
358
|
+
'
|
353
359
|
email:
|
354
360
|
- karel.minarik@elasticsearch.org
|
355
361
|
executables: []
|
@@ -413,9 +419,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
413
419
|
version: '1.9'
|
414
420
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
415
421
|
requirements:
|
416
|
-
- - "
|
422
|
+
- - ">"
|
417
423
|
- !ruby/object:Gem::Version
|
418
|
-
version:
|
424
|
+
version: 1.3.1
|
419
425
|
requirements: []
|
420
426
|
rubygems_version: 3.0.6
|
421
427
|
signing_key:
|