benchmark-http 0.4.0 → 0.4.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
  SHA256:
3
- metadata.gz: 8fa297bdc5b677aebbec579cd6203089f9dea29a7289c152e3f566e7c9c3dfa1
4
- data.tar.gz: '06639d78c8d2940180df73f7be506edd5726e68e5babf315dd2e1b8a5eb26c16'
3
+ metadata.gz: 1625f8f1020143962b31ab0679b8f4cea690be24949c6fe0e817eaa037306f7f
4
+ data.tar.gz: 9b150d7a0d74fac848189be89ebe07ebf03054c807b44f6d5e6b711346b04ef0
5
5
  SHA512:
6
- metadata.gz: 151b5ed6d27ae3106a81d7124f55151cda5e95b9c7146ce91c5d872d9a0a92c13f3a0402be339e3b924f6b563923693ce26d694a7b5fc2e7fdb8381d409ab208
7
- data.tar.gz: 53425bbc728769c89c543836d19de7a442af736eee75081a418b817b461e5247c863d2e1c7266ed00288ac5bdd8369f13214674968b659dc34eb833c2b13056e
6
+ metadata.gz: 68b6c1febe152b72c0f4770d5945979e2e3c9e1659960d4f957b53392d24e748ffaba21608f8c07ee074984329be39b9b872619a9d25698e29a756680d7d0dd4
7
+ data.tar.gz: e0e9ff390b4ce56dee3558a6f81307e3344ae87b687e99d02cc52932b6437ad661ad03252d93ea8bfbc81a98e7ee62122dcd4912dc98c4b8ed3f3eb6e2fbc876
@@ -90,7 +90,7 @@ module Benchmark
90
90
  request_uri = url.request_uri
91
91
 
92
92
  response = timeout(10) do
93
- client.head(request_uri)
93
+ client.head(request_uri).tap(&:read)
94
94
  end
95
95
 
96
96
  log("HEAD", url, response)
@@ -129,7 +129,7 @@ module Benchmark
129
129
  ensure
130
130
  @count -= 1
131
131
 
132
- if @count == 0
132
+ if @count == 0 and end_time
133
133
  @total_time += end_time - @start_time
134
134
  @start_time = nil
135
135
  end
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Benchmark
22
22
  module HTTP
23
- VERSION = "0.4.0"
23
+ VERSION = "0.4.1"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benchmark-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-07 00:00:00.000000000 Z
11
+ date: 2018-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-io