elastomer-client 3.1.1 → 3.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: 900eb1195a08a9969b4e7f4565cffecdbe708e48
4
- data.tar.gz: a509b8be56e561d48c40e308a5c7886d9ba1ce0e
3
+ metadata.gz: 739a7083a0d3f2499f70d7940e067caf82584f63
4
+ data.tar.gz: 97f9ba36db36aa1da06f9648962b9f80d76e5e1b
5
5
  SHA512:
6
- metadata.gz: 03f8c87cf315cd325bebe44e1fc01ed4d887cbbff374be50a6610f79aaffd8ffcbf0c2e7039f00d1c4f9abd6c58ecb0550414c014e3ab0a48e8f773f4d705738
7
- data.tar.gz: 46e183c77bb89b5c9dd040f5f3766fd5a8c8a534c31ccb828ed3aa5bab0c984649a3876bde35b3ba1f1f0129d2e336793a6abd6444e570a370dbddcb6c6741c8
6
+ metadata.gz: c914b6adc53461678ee18f84b83856e241f2af4de326514c191c5898a53580e91f947cc74bcad6f95d9b3e71093e017efc815e5d1992b07b5d03e3856e7f24df
7
+ data.tar.gz: 5d43ee3e85f1ba7a18ec0772d7a9b0935070549f1484c3aa5a8941d611963dbb265ec7034629633f50582821849152df3d8e7e79dd0e1c72ac5bb87b3a7185ea
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.add_dependency "addressable", "~> 2.5"
23
23
  spec.add_dependency "faraday", "~> 0.8"
24
+ spec.add_dependency "faraday_middleware", "~> 0.12"
24
25
  spec.add_dependency "multi_json", "~> 1.12"
25
26
  spec.add_dependency "semantic", "~> 1.6"
26
27
 
@@ -1,5 +1,6 @@
1
1
  require "addressable/template"
2
2
  require "faraday"
3
+ require "faraday_middleware"
3
4
  require "multi_json"
4
5
  require "semantic"
5
6
 
@@ -113,8 +114,10 @@ module Elastomer
113
114
  # Returns a Faraday::Connection
114
115
  def connection
115
116
  @connection ||= Faraday.new(url) do |conn|
116
- conn.request(:encode_json)
117
117
  conn.response(:parse_json)
118
+ # Request compressed responses from ES and decompress them
119
+ conn.use(:gzip)
120
+ conn.request(:encode_json)
118
121
  conn.request(:opaque_id) if @opaque_id
119
122
  conn.request(:limit_size, max_request_size: max_request_size) if max_request_size
120
123
 
@@ -1,5 +1,5 @@
1
1
  module Elastomer
2
- VERSION = "3.1.1"
2
+ VERSION = "3.1.2"
3
3
 
4
4
  def self.version
5
5
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastomer-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Pease
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-02-24 00:00:00.000000000 Z
12
+ date: 2018-06-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: addressable
@@ -39,6 +39,20 @@ dependencies:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0.8'
42
+ - !ruby/object:Gem::Dependency
43
+ name: faraday_middleware
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '0.12'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '0.12'
42
56
  - !ruby/object:Gem::Dependency
43
57
  name: multi_json
44
58
  requirement: !ruby/object:Gem::Requirement
@@ -326,7 +340,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
326
340
  version: '0'
327
341
  requirements: []
328
342
  rubyforge_project:
329
- rubygems_version: 2.6.11
343
+ rubygems_version: 2.6.13
330
344
  signing_key:
331
345
  specification_version: 4
332
346
  summary: A library for interacting with Elasticsearch