overall_request_times 0.2.2 → 0.2.3

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: 66d5287fe6ca9cdae5e2ef70bc52c5939ec52145
4
- data.tar.gz: ce58b813cff0edd45056fe517abb3e3443d11ce7
3
+ metadata.gz: 85f38125fdadfcaaf18b88fd675ba016231d38b2
4
+ data.tar.gz: 67879d926e70ef46437ca591e1d3090d1c89f161
5
5
  SHA512:
6
- metadata.gz: 9629d918bd3755f31e18ac06e987c37f20a8d15d5ca4c20cf342bc9e64927f891e7db03f626e6966a0b131512bda4af78fb04436409290588887e02886e44326
7
- data.tar.gz: 81123b89e6b6f437a1a05421402e9f876ab6d84181275c3264c0436abfb782c5e60b1235fa748274da71f4573bee47a1924b1e57091ab25a5240065de6438152
6
+ metadata.gz: 1f506b42158072a7c141bbd2a48dbce3fca4d44c2fdf0afc36e1aad4a8b6c4fe0e78ab02bb49af622ed030be0ccd44b96c09fcfc36abcd793769b354a299bdfe
7
+ data.tar.gz: 00b60311612f7260ed0ad42aae733dca4dcc50d5002363f066469c9e150bbea1f5e2439fbf7c41be0a3c967d0eb1f01bb38b38fb05e02e38627e718b3ba31ee9
@@ -1,3 +1,3 @@
1
1
  module OverallRequestTimes
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -1,11 +1,12 @@
1
1
  require "overall_request_times/version"
2
- require "overall_request_times/timer"
3
- require "overall_request_times/faraday_middleware"
4
- require "overall_request_times/generic_timer"
5
- require "overall_request_times/rails_middleware"
6
2
  require "overall_request_times/railtie" if defined?(Rails)
7
3
 
8
4
  module OverallRequestTimes
5
+ autoload :Timer, "overall_request_times/timer"
6
+ autoload :FaradayMiddleware, "overall_request_times/faraday_middleware"
7
+ autoload :GenericTimer, "overall_request_times/generic_timer"
8
+ autoload :RailsMiddleware, "overall_request_times/rails_middleware"
9
+
9
10
  def self.wipeout_registry
10
11
  @registry = nil
11
12
  end
@@ -27,6 +28,12 @@ module OverallRequestTimes
27
28
  timer ? timer.total : 0
28
29
  end
29
30
 
31
+ def self.totals
32
+ registry.each_with_object({}) do |(remote_app_name, timer), acc|
33
+ acc[remote_app_name] = timer.total
34
+ end
35
+ end
36
+
30
37
  def self.bm(remote_app_name, &block)
31
38
  start(remote_app_name)
32
39
  begin
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.2
4
+ version: 0.2.3
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-08-24 00:00:00.000000000 Z
11
+ date: 2015-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  version: '0'
139
139
  requirements: []
140
140
  rubyforge_project:
141
- rubygems_version: 2.4.6
141
+ rubygems_version: 2.4.5.1
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: For recording overall times using remote services.