traxor 0.1.14 → 0.1.15

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: f7e644afc68fb318da43bec6e34a9a4f6662fcf7cacf116a94d39e10ba172452
4
- data.tar.gz: 16db21962c34d7d84db4b7aff652be9272e095cb3e205d31fdea8f8a0d7b793d
3
+ metadata.gz: 9e4da239d870978c6eff4d74f12d9b2f2dd498b1746ff66aadf7f78b6b24b9f7
4
+ data.tar.gz: bcbfd72fab4d42c3c791740ee48066de99ae5df571d89b1114d6d03841f31587
5
5
  SHA512:
6
- metadata.gz: b54e4ccbe47465d45e4e4d31cff7485cdfca76f520bc5e8922f19fd936ffc4b874d006746cd45c6d0d4100a0e467f91a80a6e7fb6578a6affe2bf13887cb15f8
7
- data.tar.gz: d22e7c0713f62730e30ad4afbe575a72a9dca698370a458673744395875fec3dd0c9471b27f24110b940a7d36daca96e8a820bd357dd36553de617c366023438
6
+ metadata.gz: 1b013ac839338b084e7f939e27ead2c4107449e6c2a36272e05208b428b63fdda5504e5c641f28fec56b33bad908b7047353aa2020cc69eb5e10fe424c742d99
7
+ data.tar.gz: 83353eee51881dd5f1b2faac734427415a0746c7d8c322ee634c2875e4cc87492323acd1664d979814ea7e570eaa0462a3c73e5a9ae2737665f6d5235fd7081c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- traxor (0.1.14)
4
+ traxor (0.1.15)
5
5
  activesupport
6
6
 
7
7
  GEM
@@ -11,10 +11,14 @@ module Traxor
11
11
  :request_start_at
12
12
 
13
13
  def self.time_before
14
+ return 0 unless pre_start_at
15
+
14
16
  pre_finish_at.to_f - pre_start_at.to_f
15
17
  end
16
18
 
17
19
  def self.time_after
20
+ return 0 unless post_start_at
21
+
18
22
  post_finish_at.to_f - post_start_at.to_f
19
23
  end
20
24
 
@@ -23,10 +27,14 @@ module Traxor
23
27
  end
24
28
 
25
29
  def self.request_total
30
+ return 0 unless pre_start_at
31
+
26
32
  (post_finish_at.to_f - pre_start_at.to_f) * 1_000
27
33
  end
28
34
 
29
35
  def self.request_queue_total
36
+ return 0 unless request_start_at
37
+
30
38
  (pre_start_at.to_f - request_start_at.to_f) * 1_000
31
39
  end
32
40
  end
@@ -1,3 +1,3 @@
1
1
  module Traxor
2
- VERSION = '0.1.14'.freeze
2
+ VERSION = '0.1.15'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: traxor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Hansen