Releases: gocardless/statesman
Releases · gocardless/statesman
v3.0.0
Breaking changes
- Drop support for Rails < 4.2
- Drop support for Ruby < 2.2
For details on our compatibility policy, see docs/COMPATIBILITY.md
.
Changes
- Better handling of custom transition association names (patch by @greysteil)
- Add foreign keys to transition table generator (patch by @greysteil)
- Support partial indexes in transition table update generator (patch by @kenchan0130)
Bugfix
Machine#transition_to error handling, Generators for namespaced classes
Additions
- Generators now handle namespaced classes (patch by @hrmrebecca)
Changes
Machine#transition_to
now only swallows Statesman generated errors. An exception in your guard or callback will no longer be caught by Statesman (patch by @paulspringett)
AR Scopes, after_initialize
Add after_commit callback
Additions
- Adds after_commit flag to after_transition for callbacks to be executed after the transaction has been
committed on the ActiveRecord adapter. These callbacks will still be executed on non transactional adapters.
Ruby 1.9.3 support
Additions
- Adds Ruby 1.9.3 support (patch by @jakehow)
- All Mongo dependent tests are tagged so they can be excluded from test runs
Changes
- Specs now crash immediately if Mongo is not running
v0.1.0
Additions
- Adds Mongoid adapter and generators (patch by @dluxemburg)
Changes
- Replaces
config#transition_class
withStatesman::Adapters::ActiveRecordTransition
mixin. (inspired by @cjbell88) - Renames the active record transition generator from
statesman:transition
tostatesman:active_record_transition
. - Moves to using
require_relative
internally where possible to avoid stomping on application load paths.