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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c6b07f3a4ff45646003524dd8c483f31d49185b2
4
- data.tar.gz: c4e417932338e8fe22624f5b572bab6f4a3dd5ec
2
+ SHA256:
3
+ metadata.gz: 492a926d29184ab953032e7c2f217a4fe43040dacde8b063dba27693ceb6ad22
4
+ data.tar.gz: 5e9080ff2bbe18661f8605a69bf440c70fcaa85b3fd2964259ad548f2f5baffd
5
5
  SHA512:
6
- metadata.gz: b8257eabc0b61fd10041dc417193a97af45bea3bd4d8ec36d8b215fde63fcb7fe30e17f18da1424a903a61984de62425c45be08820baebe2ab1e54b6b4b0e377
7
- data.tar.gz: fe7bea04096fe10efffb537c4d50ec92befad0151171ed751519c3fb794bf393400edd7703f03b45d15ef895852297806d04ec416c4c65e4a1eff8c2b54ec975
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
- [![Build Status](https://semaphoreapp.com/api/v1/projects/3e3b69a9-7606-49d9-a9e1-acea22b026c4/277528/badge.png)](https://semaphoreapp.com/500px/ruby-service-client)
4
+ [![Build Status](https://semaphoreci.com/api/v1/500px/px-service-client/branches/master/badge.svg)](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
 
@@ -62,7 +62,9 @@ module Px::Service::Client
62
62
  params: query,
63
63
  body: body,
64
64
  headers: headers,
65
- timeout: timeout)
65
+ timeout: timeout,
66
+ params_encoding: :rack,
67
+ )
66
68
 
67
69
  start_time = Time.now
68
70
  logger.debug "Making request #{method.to_s.upcase} #{uri}" if logger
@@ -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
- handler.on_failure(state)
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)
@@ -1,7 +1,7 @@
1
1
  module Px
2
2
  module Service
3
3
  module Client
4
- VERSION = "2.0.8"
4
+ VERSION = "2.0.10"
5
5
  end
6
6
  end
7
7
  end
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.8
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: 2017-05-25 00:00:00.000000000 Z
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.6.8
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