px-service-client 2.0.8 → 2.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/README.md +1 -1
- data/lib/px/service/client/base.rb +3 -1
- data/lib/px/service/client/circuit_breaker.rb +3 -1
- data/lib/px/service/client/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 492a926d29184ab953032e7c2f217a4fe43040dacde8b063dba27693ceb6ad22
|
|
4
|
+
data.tar.gz: 5e9080ff2bbe18661f8605a69bf440c70fcaa85b3fd2964259ad548f2f5baffd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce42287217054c783329edfa4b858f375403c3f88c2d5984991945d6be68143815212384a9c972deeab5dc9f5a5f197c783db4d8722091f112632b82c0d51221
|
|
7
|
+
data.tar.gz: 07b83e2ff9f15c8ef47df20b7fa34ad89edc98ee51b236e3f646c544cfe17d6d9c6a253a703c6796bf9999b817104a623d43d08a267468366e86443b17759c7f
|
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
px-service-client
|
|
2
2
|
=================
|
|
3
3
|
|
|
4
|
-
[](https://semaphoreci.com/500px/px-service-client)
|
|
5
5
|
|
|
6
6
|
A set of modules to add common functionality to a Ruby service client
|
|
7
7
|
|
|
@@ -56,7 +56,9 @@ module Px::Service::Client
|
|
|
56
56
|
config.statsd_client.increment("breakers.fail.count", tags: stats_tags)
|
|
57
57
|
config.statsd_client.increment("breakers.tripped.count", tags: stats_tags) if circuit_state.closed?
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
# as this code may be executed after context switch, we want to
|
|
60
|
+
# check the state again
|
|
61
|
+
handler.on_failure(state) unless handler.is_tripped(state)
|
|
60
62
|
else
|
|
61
63
|
config.statsd_client.increment("breakers.reset.count", tags: stats_tags) unless circuit_state.closed?
|
|
62
64
|
handler.on_success(state)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: px-service-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Micacchi
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2019-03-30 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: will_paginate
|
|
@@ -261,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
261
261
|
version: '0'
|
|
262
262
|
requirements: []
|
|
263
263
|
rubyforge_project:
|
|
264
|
-
rubygems_version: 2.
|
|
264
|
+
rubygems_version: 2.7.9
|
|
265
265
|
signing_key:
|
|
266
266
|
specification_version: 4
|
|
267
267
|
summary: Common service client behaviours for Ruby applications
|