rack-reqorder 0.4.5 → 0.4.6

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: 8aaa33de9cc216e66802198be6c4eb3aafbbc453
4
- data.tar.gz: e9a69f17188d9776f42948acda236d7142262b24
3
+ metadata.gz: 4cab88349aeef35a9e5760fd13f3932461d1f7ce
4
+ data.tar.gz: e68d3ca8006f017f316899d9c6b3f71b95fcfcfd
5
5
  SHA512:
6
- metadata.gz: fabe83231f9d66330649e883396393ead00db6af977367d3e7483afb951d4d162f1150d3b8bb24e5caf2c59dd97d25711f19134a4d9c716c4de79403b6c3de13
7
- data.tar.gz: 598a5706b6e18aec2a3ce8d0e4ddb3071ca3c4053b687bd60347eb861e78f9962ac8c348c68da01ddae1b6be8a97a2b18a1a4af1125126a45ce3c81dc529cced
6
+ metadata.gz: d0b01473c631dbaba64bd037c185d16fa90185cc7db87687fcccff6e42186b3d437e8867cea022c646ad10aa698a82bac16008e8273d0375eeb92c8b71305f37
7
+ data.tar.gz: 147923cd75bde1e4b3cd05fa1ad0deeeef1c7bdf187821be29cf1a8e7d4b2146e73c90edf6be4445a55eb85977acb20b3dbeeae873aa317e5fd576290fade923
@@ -19,11 +19,13 @@ module Rack::Reqorder
19
19
  ensure
20
20
  response_time = Time.now.to_f - start
21
21
 
22
- save_statistics(
23
- rack_request: rack_request,
24
- rack_response: response,
25
- response_time: response_time
26
- )
22
+ if response
23
+ save_statistics(
24
+ rack_request: rack_request,
25
+ rack_response: response,
26
+ response_time: response_time
27
+ )
28
+ end
27
29
  end
28
30
 
29
31
  return [status, headers, body]
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Reqorder
3
- VERSION = "0.4.5"
3
+ VERSION = "0.4.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-reqorder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filippos Vasilakis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-10-14 00:00:00.000000000 Z
12
+ date: 2015-10-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler