aws-es-transport 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/aws_es_transport.rb +1 -1
- data/lib/aws_v4_signer.rb +1 -1
- data/lib/elasticsearch/transport/transport/http/aws.rb +8 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04d01d53019744035c4c7e174ca7059ee76fd256
|
4
|
+
data.tar.gz: 1b1d4951867ba4a4b1014c72a6076cee08553e63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 443bd19a591d6f770de0b313e045583d495525df7fa06d94940f6137dcbbe9efce2e369f1bacb74470c269e9fa415ad9b1e1e78b3c6762b5d66baa1b78eac49f
|
7
|
+
data.tar.gz: ea17b7749b17fb5adf63a59ee10fe7361a517d8231eac057c98f1013e1e6cd90d0fd1f8fd10f7b95e7bbb259f8896736cc5d9039852f6b901425ef69ce0d512c
|
data/.gitignore
CHANGED
data/lib/aws_es_transport.rb
CHANGED
data/lib/aws_v4_signer.rb
CHANGED
@@ -63,23 +63,25 @@ module Elasticsearch
|
|
63
63
|
credentials = Aws::CredentialProviderChain.new(credential_config).resolve
|
64
64
|
|
65
65
|
Connections::Collection.new \
|
66
|
-
:
|
66
|
+
connections: hosts.map { |host|
|
67
67
|
host[:protocol] = host[:scheme] || DEFAULT_PROTOCOL
|
68
68
|
host[:port] ||= DEFAULT_PORT
|
69
69
|
url = __full_url(host)
|
70
|
-
aes_connection = ::Faraday
|
70
|
+
aes_connection = ::Faraday.new(url, (options[:transport_options] || {})) do |faraday|
|
71
71
|
faraday.request :aws_v4_signer,
|
72
72
|
credentials: credentials,
|
73
73
|
service_name: 'es',
|
74
74
|
region: region
|
75
|
+
|
76
|
+
faraday.adapter :net_http
|
75
77
|
end
|
76
78
|
|
77
79
|
Connections::Connection.new \
|
78
|
-
:
|
79
|
-
:
|
80
|
+
host: host,
|
81
|
+
connection: aes_connection
|
80
82
|
},
|
81
|
-
:
|
82
|
-
:
|
83
|
+
selector_class: options[:selector_class],
|
84
|
+
selector: options[:selector]
|
83
85
|
end
|
84
86
|
|
85
87
|
# Returns an array of implementation specific connection errors.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-es-transport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cary Dunn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|