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 +4 -4
- data/README.md +10 -2
- data/lib/circuitbox/circuit_breaker.rb +1 -1
- data/lib/circuitbox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d76522a6fa77c9f707fdec676e5e1f85269f4f07
|
4
|
+
data.tar.gz: 6ec1f0e24a71c79422cd34aac919387950dafb98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
115
|
+
circuit_store.store(storage_key(:asleep), true, expires: option_value(:sleep_window))
|
116
116
|
half_open!
|
117
117
|
was_open!
|
118
118
|
end
|
data/lib/circuitbox/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|