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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7e6c023546d3d900cfc768aa27568630c971a63
4
- data.tar.gz: 8c79aa4fd98de90af2094ab2afc12d0103f250a8
3
+ metadata.gz: 66d5287fe6ca9cdae5e2ef70bc52c5939ec52145
4
+ data.tar.gz: ce58b813cff0edd45056fe517abb3e3443d11ce7
5
5
  SHA512:
6
- metadata.gz: 70839991a9756bf2e1d9998c00c98edd7250a801642382d8dc60f066858fe3f0a5913806f78e1b526cc5a8b7ab92551e2d9aca873ba5c44e72dc1641c67b5236
7
- data.tar.gz: bb5417987898e0bad131a26187c71aba113fe81564952f1787c9e71ede33e8b59fadb6cc30463ccb13e4a6f7527be42620558a1a8a4cc47c827b64332471db9d
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
@@ -1,3 +1,3 @@
1
1
  module OverallRequestTimes
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  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.1
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-07-31 00:00:00.000000000 Z
11
+ date: 2015-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday