stretcher 1.20.1 → 1.20.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1593e9afaf2d5dd9f6e07b92ba1db3cabd413861
4
- data.tar.gz: b5d3512303309e836a03e2cff591a8e18e3b1b80
3
+ metadata.gz: c44afba5a8d36239ef651adde9db165608da1e64
4
+ data.tar.gz: 3ee97e2ebb82e903e98ac6915c7ece8c08f71ff9
5
5
  SHA512:
6
- metadata.gz: ea4270733fe0d805920f9b68787d4d6532009dc4efe98c1af31d90ba30df3736981ba56712d1d0bbed9c95eca99b3c82128b0a4f9cf66cffff3554da93afa655
7
- data.tar.gz: 659c8f763d062e50765be9d93fb74908cd19913dac9c95fb9d2f78c1c185a75208bca30d8170e6222fa36752d687e5c17c54e93df134b63aeb83be3b269e564a
6
+ metadata.gz: c8c459b43fd4cd97e170c7077edef8f4559fc569357a15ba04dc53317aa325f9d87429d476b6b5ced51e1c42decd6049d250d9892ccbbd74932c967079afa939
7
+ data.tar.gz: cc7ae1aedfe7d88eb0f81a973e8588b5e4313125ac32b8c2e01869351a72b21ffc04b7f35db5dd00b86dc0261ee47605afcd3f66d28a5597b370be30410d9b06
@@ -11,7 +11,7 @@ module Stretcher
11
11
 
12
12
  builder.request :multi_json
13
13
 
14
- builder.options[:read_timeout] = options[:read_timeout] || 30
14
+ builder.options[:timeout] = options[:read_timeout] || 30
15
15
  builder.options[:open_timeout] = options[:open_timeout] || 2
16
16
 
17
17
  if faraday_configurator = options[:faraday_configurator]
@@ -1,3 +1,3 @@
1
1
  module Stretcher
2
- VERSION = "1.20.1"
2
+ VERSION = "1.20.2"
3
3
  end
@@ -17,6 +17,12 @@ describe Stretcher::Server do
17
17
  server = Stretcher::Server.new(ES_URL, :log_level => :info)
18
18
  server.logger.level.should == Logger::INFO
19
19
  end
20
+
21
+ it 'sets timeouts from options' do
22
+ server = Stretcher::Server.new(ES_URL, :read_timeout => 5, :open_timeout => 2)
23
+ server.http.options[:timeout].should == 5
24
+ server.http.options[:open_timeout].should == 2
25
+ end
20
26
 
21
27
  it "should support the block friendly 'with_server'" do
22
28
  exposed = nil
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stretcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.20.1
4
+ version: 1.20.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Cholakian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-23 00:00:00.000000000 Z
11
+ date: 2013-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday