soundcloud/simple_circuit_breaker — pull request #1 by juliusv (2012-11-13 16:30:13+00:00)
Title: Fix circuit behavior for non-consecutive failures.

This fixes handling for non-consecutive failures, which should not cause
the circuit to open. Upon every successul block execution, it now resets
the failure counter to 0. That also means that the "half_open" state
becomes completely unneeded and the "tripped?" check becomes much
simpler and easier to understand as a result.