circuitbox 1.0.1 → 1.0.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: 67e86e361f680d3126d73362bb0b04e9695c0342
4
- data.tar.gz: 332af80b292855390775a86ce54425568887b8c0
3
+ metadata.gz: d76522a6fa77c9f707fdec676e5e1f85269f4f07
4
+ data.tar.gz: 6ec1f0e24a71c79422cd34aac919387950dafb98
5
5
  SHA512:
6
- metadata.gz: dac132c1af33c6fca055f0592cc8ee810bbaf0dd5bbc6355c21614ba2f89b7b50fea9a828e3be2d825e93546f0cfab28329b021e9fad326be4e0bb3c05fa3808
7
- data.tar.gz: 6aaa4ca349c64b79a7c2ce018f748b14996d0c16ae9c7fe12a09d8ffa97a25f732c8cfd8124a6a1729db26ad8fa6e755935a2bd215bbad3400fd974a2e9b24b5
6
+ metadata.gz: a981649408dcbd732c63cfa90793169427c43bbc4ef6e6dc4d45291a74fd95dbe44224ec096947d478fbd0d2e44e4e63bcc3362287f046cedf7110b3bb5ace85
7
+ data.tar.gz: 1c9e9ddc9419cb80e6a99fca710d4a314c7a615fe315df7201a6063147d00296b931d540a8185968cd715fe310df2c5f625474a784e5e2e60c34630ef521eb86
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
- ![Build Status](https://travis-ci.org/yammer/circuitbox.svg)
2
-
3
1
  # Circuitbox
4
2
 
3
+ [![Build Status](https://travis-ci.org/yammer/circuitbox.svg?branch=master)](https://travis-ci.org/yammer/circuitbox) [![Gem Version](https://badge.fury.io/rb/circuitbox.svg)](https://badge.fury.io/rb/circuitbox)
4
+
5
5
  Circuitbox is a Ruby circuit breaker gem. It protects your application from failures of it's service dependencies. It wraps calls to external services and monitors for failures in one minute intervals. Once more than 10 requests have been made with a 50% failure rate, Circuitbox stops sending requests to that failing service for one minute. This helps your application gracefully degrade.
6
6
  Resources about the circuit breaker pattern:
7
7
  * [http://martinfowler.com/bliki/CircuitBreaker.html](http://martinfowler.com/bliki/CircuitBreaker.html)
@@ -297,6 +297,14 @@ c.use Circuitbox::FaradayMiddleware, open_circuit: lambda { |response| response.
297
297
  ## CHANGELOG
298
298
  ### version next
299
299
 
300
+ ### v1.0.2
301
+ - Fix timeout issue [#51](https://github.com/yammer/circuitbox/issues/51)
302
+ [sebastian-juliu](https://github.com/sebastian-julius)
303
+
304
+ ### v1.0.1
305
+ - Fix Rails integration, as version 1.0.0 removed the rails tasks integration, but missed
306
+ removing the related railtie.
307
+
300
308
  ### v1.0.0
301
309
  - support for cross process circuitbreakers by swapping the circuitbreaker store for a
302
310
  `Moneta` supported key value store.
@@ -112,7 +112,7 @@ class Circuitbox
112
112
  def open!
113
113
  log_event :open
114
114
  logger.debug "[CIRCUIT] opening #{service} circuit"
115
- circuit_store.store(storage_key(:asleep), true, expires_in: option_value(:sleep_window).seconds)
115
+ circuit_store.store(storage_key(:asleep), true, expires: option_value(:sleep_window))
116
116
  half_open!
117
117
  was_open!
118
118
  end
@@ -1,3 +1,3 @@
1
1
  class Circuitbox
2
- VERSION='1.0.1'
2
+ VERSION='1.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: circuitbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fahim Ferdous
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-19 00:00:00.000000000 Z
11
+ date: 2016-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler