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 +4 -4
- data/elastomer-client.gemspec +1 -0
- data/lib/elastomer/client.rb +4 -1
- data/lib/elastomer/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 739a7083a0d3f2499f70d7940e067caf82584f63
|
4
|
+
data.tar.gz: 97f9ba36db36aa1da06f9648962b9f80d76e5e1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c914b6adc53461678ee18f84b83856e241f2af4de326514c191c5898a53580e91f947cc74bcad6f95d9b3e71093e017efc815e5d1992b07b5d03e3856e7f24df
|
7
|
+
data.tar.gz: 5d43ee3e85f1ba7a18ec0772d7a9b0935070549f1484c3aa5a8941d611963dbb265ec7034629633f50582821849152df3d8e7e79dd0e1c72ac5bb87b3a7185ea
|
data/elastomer-client.gemspec
CHANGED
@@ -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
|
|
data/lib/elastomer/client.rb
CHANGED
@@ -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
|
|
data/lib/elastomer/version.rb
CHANGED
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.
|
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-
|
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.
|
343
|
+
rubygems_version: 2.6.13
|
330
344
|
signing_key:
|
331
345
|
specification_version: 4
|
332
346
|
summary: A library for interacting with Elasticsearch
|