lhc 7.3.1 → 7.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18ed805164740684c14fcaf8969e36552343716c
|
4
|
+
data.tar.gz: 91c29a88668b280d3e7afb5817842eb249bd5789
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69f19962896705b953771eae02ddb21fb5e2a94381704596ff54995f0270a457facaed0096c7d32e36849915bce7d0d7cd8be9f4550d576af3d1b6ea7fae9098
|
7
|
+
data.tar.gz: 2d250a08c0262fdc73be9c75aa338297ebc0696b482ddd801ede63ccc3b41e66c142d7b79ca4c614397a6e7f6f9131ee0c4bea80449b6c94c6722c4e1a907b0f
|
@@ -7,11 +7,11 @@ Applies default timeout values to all requests made in an application, that uses
|
|
7
7
|
```
|
8
8
|
|
9
9
|
`timeout` default: 15 seconds
|
10
|
-
`connecttimeout` default:
|
10
|
+
`connecttimeout` default: 2 seconds
|
11
11
|
|
12
12
|
## Overwrite defaults
|
13
13
|
|
14
14
|
```ruby
|
15
15
|
LHC::DefaultTimeout.timeout = 5 # seconds
|
16
|
-
LHC::DefaultTimeout.connecttimeout =
|
16
|
+
LHC::DefaultTimeout.connecttimeout = 3 # seconds
|
17
17
|
```
|
data/lib/lhc/version.rb
CHANGED
@@ -12,7 +12,7 @@ describe LHC::DefaultTimeout do
|
|
12
12
|
it 'applies default timeouts to all requests made' do
|
13
13
|
stub
|
14
14
|
expect_any_instance_of(Ethon::Easy).to receive(:http_request)
|
15
|
-
.with(anything, anything, hash_including(timeout: 15, connecttimeout:
|
15
|
+
.with(anything, anything, hash_including(timeout: 15, connecttimeout: 2)).and_call_original
|
16
16
|
LHC.get('http://local.ch')
|
17
17
|
end
|
18
18
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lhc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.3.
|
4
|
+
version: 7.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- https://github.com/local-ch/lhc/contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|