breakers 0.3.0 → 0.4.0

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
- SHA1:
3
- metadata.gz: '086e5a8e0f98f738f42273aabe0aed311c596189'
4
- data.tar.gz: 0127a2aadc6348e561a6312c8a3af22123635f92
2
+ SHA256:
3
+ metadata.gz: f3f0fe57f169c943767204654e3a06cc0bfa1b5d94d5526b2b9a17277b7dddca
4
+ data.tar.gz: 2c2d30d44317fa7ebeb595b6dee476327b93a9d34466de1c25136c48b3201505
5
5
  SHA512:
6
- metadata.gz: 0beafbd85ff5b55a4eb29854ddcdb3b0d0d17e5835cd4866cbb4aecabf29088eb2a0db5768af91704819baceb206470a5c6ebdc570f2f6b032d83f03d72fdbbe
7
- data.tar.gz: 87748536ebe84b4de04b6732c310268011e37a7628a6dabe245d0ce28e9d5afd5d0e42d6a9fd61a7ab2ff221237eab9ffe06be758583f6f39223cead728641bb
6
+ metadata.gz: 97f7d582d247487f891990c0283b191fb3a34f3340bcb61d36dd3bb999a8cb0831d920dee3f172b250a2e2405ac323a7cadf9df6f041f2ec85a309c185b1554f
7
+ data.tar.gz: c0a1271baf89a686198968c6153c2e6f3eee5eb044faef715623d389bc6d640290ca633ef55d096562ac20dad79cf827e0520bb167fdaf3b9110c8413afc29e4
@@ -54,7 +54,7 @@ module Breakers
54
54
  def handle_request(service:, request_env:, current_outage: nil)
55
55
  start_time = Time.now
56
56
  return @app.call(request_env).on_complete do |response_env|
57
- response_env[:duration] = Time.now - start_time
57
+ response_env[:duration] = (Time.now - start_time) * 1000
58
58
  if response_env.status >= 500
59
59
  handle_error(
60
60
  service: service,
@@ -1,3 +1,3 @@
1
1
  module Breakers
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.4.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: breakers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aubrey Holland
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-05 00:00:00.000000000 Z
11
+ date: 2020-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -215,8 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
215
215
  - !ruby/object:Gem::Version
216
216
  version: '0'
217
217
  requirements: []
218
- rubyforge_project:
219
- rubygems_version: 2.6.14.4
218
+ rubygems_version: 3.1.4
220
219
  signing_key:
221
220
  specification_version: 4
222
221
  summary: Handle outages to backend systems with a Faraday middleware