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.
- checksums.yaml +4 -4
- data/lib/consul/mutex.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de1243cec2e00c0c4eb3a4928e2bbaf5af7d2a49
|
4
|
+
data.tar.gz: 72c7c4f9351bb77cfdbc78bf8bbc62a422b92d7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dc347c3bc43be2c9089f125f5b7b236d371bdef80f04e6706e2ecab0b0f7a8974b75aa874578e04c7de51368c6ced2a13d56939206503e5c87de2cfa3a1a2a2
|
7
|
+
data.tar.gz: 676f1794550330f9dc2c11d57de74b6badac63ecc8e661da44bf0dc86d6d5f53758f2485a00dd5c4c0bc49097a942c105edec2bac6e3f7671bdc2c6216211607
|
data/lib/consul/mutex.rb
CHANGED
@@ -385,7 +385,13 @@ class Consul::Mutex
|
|
385
385
|
|
386
386
|
def consul_connection
|
387
387
|
begin
|
388
|
-
Net::HTTP.start(
|
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.
|
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
|
+
date: 2015-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nesty
|