overall_request_times 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/overall_request_times.rb +5 -0
- data/lib/overall_request_times/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66d5287fe6ca9cdae5e2ef70bc52c5939ec52145
|
4
|
+
data.tar.gz: ce58b813cff0edd45056fe517abb3e3443d11ce7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9629d918bd3755f31e18ac06e987c37f20a8d15d5ca4c20cf342bc9e64927f891e7db03f626e6966a0b131512bda4af78fb04436409290588887e02886e44326
|
7
|
+
data.tar.gz: 81123b89e6b6f437a1a05421402e9f876ab6d84181275c3264c0436abfb782c5e60b1235fa748274da71f4573bee47a1924b1e57091ab25a5240065de6438152
|
@@ -44,4 +44,9 @@ module OverallRequestTimes
|
|
44
44
|
def self.stop(remote_app_name)
|
45
45
|
registry[remote_app_name] && registry[remote_app_name].stop
|
46
46
|
end
|
47
|
+
|
48
|
+
def self.add_duration(remote_app_name, duration_in_seconds)
|
49
|
+
registry[remote_app_name] ||= GenericTimer.new(remote_app_name)
|
50
|
+
registry[remote_app_name].add(duration_in_seconds)
|
51
|
+
end
|
47
52
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: overall_request_times
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Donald Plummer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|