- Remove warning related
CircuitSwitch.open?
without close_if_reach_limit
option.
- GUI has been released!
If you are on Rails, add the following to your config/routes.rb
and access /circuit_switch
.
Rails.application.routes.draw do
mount CircuitSwitch::Engine => 'circuit_switch'
end
- Fix bug
if
stop_report_if_reach_limit
options don't receive false
.
- Fix to report error with stacktrace.
- Fix not to update run count when run isn't executable.
- Be able to choice to notify
CircuitSwitch::CalledNotification
or String
.
Improve config/initializers/circuit_switch.rb
like following.
CircuitSwitch.configure do |config|
- config.reporter = ->(message) { Bugsnag.notify(message) }
+ config.reporter = ->(message, error) { Bugsnag.notify(error) }
- Modify
key
to unique by default.
To migrate, run next.
rails generate circuit_switch:migration circuit_switch make_key_unique
rails db:migrate
- Fix to save switch when block for
CircuitSwitch.run
raises error.
- Add
key_column_name
to configuration for aliasing circuit_switches.key
.
- Declare dependent on ActiveSupport instead of implicitly dependent.
- Add
initially_closed
option to run
and open?
.
- Add
key
argument for easy handling for human more than caller.
To migrate, run next.
rails generate circuit_switch:migration circuit_switch add_key
rails db:migrate
- Modify log level from warn to info when default value for
close_if_reach_limit
is used.
- Suppress warning that ivar is not initialized.
- Modify default value of
CircuitSwitch.run
argument close_if_reach_limit
from true to false.
- Modify
CircuitSwitch.open?
receives same arguments as CircuitSwitch.run
- Fix bug due_date is not set.