lhc 9.3.0 → 9.3.1

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: 4c7d1ebc28ca92627c9828b98adffdf9e57cd41e
4
- data.tar.gz: f69dcd78f74648df6cf81189743fce7e9b78e2ee
3
+ metadata.gz: c3f92e8dd5634d8c872c163c93cab915fec1e1db
4
+ data.tar.gz: 5e063d4778bb14549190bd34f2912a2d52b029e0
5
5
  SHA512:
6
- metadata.gz: beb8f74e3901b68de00d2d2c3ebc9874666aee0dac0eaef6d49a16482f1d82a45cf6f47e9aad98ae0ffc60cc5784a7c04d7865acc95a90e68a3e681d31fe52fd
7
- data.tar.gz: 1df77507930a88568ef63e9fab8f62ee9a09440b7d8d1b2502f703652d22d7cfe15b423612bc7a11233cd6731bb0c18c64d87809a4bc59e7452e94afae1ad8bb
6
+ metadata.gz: 8eeb31b81d5bf54d4fec86f620669bb7c3c4440faeeadcc583eea3264e059d517adbeac66828b169db44affaeb288d4b4eae8859df7d1254988a8efbe1526706
7
+ data.tar.gz: c67c6a0a53dcbf1b0d13c6c664946826564f29d067ef11ed574bd23f7ecaaf182fd5777c59f8503909a02767933c71ffe1e4dd6e805968608306ba2fc2dc9376
data/lib/lhc/response.rb CHANGED
@@ -34,12 +34,12 @@ class LHC::Response
34
34
 
35
35
  # Provides response time in seconds
36
36
  def time
37
- time_ms * 1000
37
+ raw.time || 0
38
38
  end
39
39
 
40
40
  # Provides response time in milliseconds
41
41
  def time_ms
42
- raw.time || 0
42
+ time * 1000
43
43
  end
44
44
 
45
45
  def timeout?
data/lib/lhc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module LHC
2
- VERSION ||= '9.3.0'
2
+ VERSION ||= '9.3.1'
3
3
  end
@@ -8,12 +8,12 @@ describe LHC::Response do
8
8
 
9
9
  it 'provides response time in seconds' do
10
10
  response = LHC::Response.new(raw_response, nil)
11
- expect(response.time).to eq time * 1000
11
+ expect(response.time).to eq time
12
12
  end
13
13
 
14
14
  it 'provides response time in miliseconds' do
15
15
  response = LHC::Response.new(raw_response, nil)
16
- expect(response.time_ms).to eq time
16
+ expect(response.time_ms).to eq time * 1000
17
17
  end
18
18
  end
19
19
  end
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: 9.3.0
4
+ version: 9.3.1
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-06-15 00:00:00.000000000 Z
11
+ date: 2018-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport