# -*- encoding: utf-8 -*- # stub: circuit_breaker 1.1.0 ruby lib Gem::Specification.new do |s| s.name = "circuit_breaker".freeze s.version = "1.1.0".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] s.authors = ["Will Sargent".freeze] s.date = "2013-04-13" s.description = "CircuitBreaker is a relatively simple Ruby mixin that will wrap\n a call to a given service in a circuit breaker pattern.\n\n The circuit starts off \"closed\" meaning that all calls will go through.\n However, consecutive failures are recorded and after a threshold is reached,\n the circuit will \"trip\", setting the circuit into an \"open\" state.\n\n In an \"open\" state, every call to the service will fail by raising\n CircuitBrokenException.\n\n The circuit will remain in an \"open\" state until the failure timeout has\n elapsed.\n\n After the failure_timeout has elapsed, the circuit will go into\n a \"half open\" state and the call will go through. A failure will\n immediately pop the circuit open again, and a success will close the\n circuit and reset the failure count.\n\n require 'circuit_breaker'\n class TestService\n\n include CircuitBreaker\n\n def call_remote_service() ...\n\n circuit_method :call_remote_service\n\n # Optional\n circuit_handler do |handler|\n handler.logger = Logger.new(STDOUT)\n handler.failure_threshold = 5\n handler.failure_timeout = 5\n end\n\n # Optional\n circuit_handler_class MyCustomCircuitHandler\n end".freeze s.email = ["will.sargent@gmail.com".freeze] s.extra_rdoc_files = ["History.txt".freeze, "README.txt".freeze] s.files = [".gitignore".freeze, ".rspec".freeze, "Gemfile".freeze, "History.txt".freeze, "README.txt".freeze, "Rakefile".freeze, "circuit_breaker.gemspec".freeze, "lib/circuit_breaker.rb".freeze, "lib/circuit_breaker/circuit_broken_exception.rb".freeze, "lib/circuit_breaker/circuit_handler.rb".freeze, "lib/circuit_breaker/circuit_state.rb".freeze, "lib/circuit_breaker/version.rb".freeze, "spec/circuit_breaker_spec.rb".freeze, "spec/spec_helper.rb".freeze] s.homepage = "http://github.com/wsargent/circuit_breaker".freeze s.rdoc_options = ["--main".freeze, "README.txt".freeze, "--charset=UTF-8".freeze] s.rubygems_version = "3.5.10".freeze s.summary = "CircuitBreaker is a relatively simple Ruby mixin that will wrap a call to a given service in a circuit breaker pattern".freeze s.test_files = ["spec/circuit_breaker_spec.rb".freeze, "spec/spec_helper.rb".freeze] s.specification_version = 3 s.add_runtime_dependency(%q.freeze, [">= 0".freeze]) s.add_development_dependency(%q.freeze, [">= 0".freeze]) s.add_development_dependency(%q.freeze, [">= 0".freeze]) end