consul-mutex 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/consul/mutex.rb +7 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d64e6fc94c986f3481a2cf2506ca47e402bf99a7
4
- data.tar.gz: 611916533a35389a788a74f107d1cda31d6578ed
3
+ metadata.gz: de1243cec2e00c0c4eb3a4928e2bbaf5af7d2a49
4
+ data.tar.gz: 72c7c4f9351bb77cfdbc78bf8bbc62a422b92d7c
5
5
  SHA512:
6
- metadata.gz: 4cf822d9f092c0aa64cbf86520e3dcea79b8f842313ceee15c711c7b17c08406fcd220381de35be58842e38207c3ba47cf0ba806b654249f1e02c30a36212202
7
- data.tar.gz: e0f212d4e799a63cc4626bb364b42623191540ddc77d9c76aae4a39ab2d5dfc2c61a26727db76585fb6a8396321c9c0662e37ea21102e2c33c98ff4099125ce4
6
+ metadata.gz: 1dc347c3bc43be2c9089f125f5b7b236d371bdef80f04e6706e2ecab0b0f7a8974b75aa874578e04c7de51368c6ced2a13d56939206503e5c87de2cfa3a1a2a2
7
+ data.tar.gz: 676f1794550330f9dc2c11d57de74b6badac63ecc8e661da44bf0dc86d6d5f53758f2485a00dd5c4c0bc49097a942c105edec2bac6e3f7671bdc2c6216211607
@@ -385,7 +385,13 @@ class Consul::Mutex
385
385
 
386
386
  def consul_connection
387
387
  begin
388
- Net::HTTP.start(@consul_url.host, @consul_url.port, :use_ssl => @consul_url.scheme == 'https') do |http|
388
+ Net::HTTP.start(
389
+ @consul_url.host,
390
+ @consul_url.port,
391
+ :use_ssl => @consul_url.scheme == 'https',
392
+ :read_timeout => 86400,
393
+ :ssl_timeout => 86400
394
+ ) do |http|
389
395
  yield http
390
396
  end
391
397
  rescue Timeout::Error
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: consul-mutex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Palmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-30 00:00:00.000000000 Z
11
+ date: 2015-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nesty