lib/circuitbox.rb in circuitbox-0.8.0 vs lib/circuitbox.rb in circuitbox-0.9.0

- old
+ new

@@ -1,16 +1,20 @@ require 'singleton' require 'active_support' require 'logger' require 'timeout' -require "circuitbox/version" +require 'circuitbox/version' require 'circuitbox/memcache_store' require 'circuitbox/railtie' if defined?(Rails) require 'circuitbox/circuit_breaker' require 'circuitbox/notifier' +require 'circuitbox/errors/error' +require 'circuitbox/errors/open_circuit_error' +require 'circuitbox/errors/service_failure_error' + class Circuitbox attr_accessor :circuits, :circuit_store, :stat_store cattr_accessor :configure def self.instance @@ -65,6 +69,6 @@ def self.parameter_to_service_name(param) uri = URI(param.to_s) uri.host.present? ? uri.host : param.to_s end -end \ No newline at end of file +end