lhc 7.3.1 → 7.3.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: bd92ab1bfd15f3516a093944756c6ed93d6c87b6
4
- data.tar.gz: 9f50976aa3e62662e9c882449dd14be7cb47c95a
3
+ metadata.gz: 18ed805164740684c14fcaf8969e36552343716c
4
+ data.tar.gz: 91c29a88668b280d3e7afb5817842eb249bd5789
5
5
  SHA512:
6
- metadata.gz: 798f3a93d443eb1b3a3a65832dd4d5f0c8e3c6fb7fbcbdc3f163deb385fb2101be109345ab86196725bbb06a9487b6e3f752a80d797fbd573a48caa202dafefa
7
- data.tar.gz: 1eba080feaf0757dcb8f8ad182a7ef974e97698f292905ee99327b709d645836f71667401c00ec272ae77fa32110af634a0617cb7c9e59deb0406416be9a9d3a
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: 1 second
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 = 2 # seconds
16
+ LHC::DefaultTimeout.connecttimeout = 3 # seconds
17
17
  ```
@@ -3,7 +3,7 @@ class LHC::DefaultTimeout < LHC::Interceptor
3
3
 
4
4
  config_accessor :timeout, :connecttimeout
5
5
 
6
- CONNECTTIMEOUT = 1 # second
6
+ CONNECTTIMEOUT = 2 # seconds
7
7
  TIMEOUT = 15 # seconds
8
8
 
9
9
  def before_raw_request(request)
data/lib/lhc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module LHC
2
- VERSION ||= '7.3.1'
2
+ VERSION ||= '7.3.2'
3
3
  end
@@ -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: 1)).and_call_original
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.1
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-09 00:00:00.000000000 Z
11
+ date: 2018-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus