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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3562cbc3649cbc0d31da2e7faee31cbe96f30db7
4
- data.tar.gz: e240ec6462028d8974d6a95d91b8c28d8ca03d0b
3
+ metadata.gz: 04d01d53019744035c4c7e174ca7059ee76fd256
4
+ data.tar.gz: 1b1d4951867ba4a4b1014c72a6076cee08553e63
5
5
  SHA512:
6
- metadata.gz: 608eedf73312f1352967bca6095d3e27f5ca18e0d451e4b7565d409d16d151c4f2847dd2de55e5c3a5c608e91b6785c01d544dbe2eee2ccc6af67d1d6945b2a0
7
- data.tar.gz: 9745194573be861ef07697e29c61e9cfbaff61607f46b15fd0e27d3190f8ac428607f96f932ffaea0576d1ea3348b68c662d80ef5ad95da30399dfeb98a2ac6d
6
+ metadata.gz: 443bd19a591d6f770de0b313e045583d495525df7fa06d94940f6137dcbbe9efce2e369f1bacb74470c269e9fa415ad9b1e1e78b3c6762b5d66baa1b78eac49f
7
+ data.tar.gz: ea17b7749b17fb5adf63a59ee10fe7361a517d8231eac057c98f1013e1e6cd90d0fd1f8fd10f7b95e7bbb259f8896736cc5d9039852f6b901425ef69ce0d512c
data/.gitignore CHANGED
@@ -10,3 +10,4 @@
10
10
  *.swp
11
11
  *.swo
12
12
  *.db
13
+ *.gem
@@ -1,4 +1,4 @@
1
1
  require_relative "elasticsearch/transport/transport/http/aws"
2
2
  module AwsEsTransport
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
@@ -2,5 +2,5 @@ require 'faraday'
2
2
  require_relative 'aws_v4_signer_impl'
3
3
 
4
4
  module FaradayMiddleware
5
- Faraday::Request.register_middleware :aws_v4_signer => lambda { AwsV4Signer }
5
+ Faraday::Request.register_middleware aws_v4_signer: lambda { AwsV4Signer }
6
6
  end
@@ -63,23 +63,25 @@ module Elasticsearch
63
63
  credentials = Aws::CredentialProviderChain.new(credential_config).resolve
64
64
 
65
65
  Connections::Collection.new \
66
- :connections => hosts.map { |host|
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::Connection.new(url, (options[:transport_options] || {})) do |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
- :host => host,
79
- :connection => aes_connection
80
+ host: host,
81
+ connection: aes_connection
80
82
  },
81
- :selector_class => options[:selector_class],
82
- :selector => options[:selector]
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.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-20 00:00:00.000000000 Z
11
+ date: 2015-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler