State Machine v1.2.0 Release Notes

Release Date: 2013-03-30 // over 8 years ago
    • ๐Ÿ‘ Allow multiple whitelisted / blacklisted :to states when definining transitions
    • ๐Ÿ›  Fix event attributes not being processed when saved via association autosaving
    • ๐Ÿ›  Fix Mongoid integration not setting initial state attributes properly for associations
    • Completely rewrite ORM action hooks to behave more consistently across the board
    • ๐Ÿ”„ Change transitions to be executed the same whether using ORM save actions or not
    • ๐Ÿ›  Fix around_transition callbacks not being executed properly in ORM integrations
    • ๐Ÿ›  Fix additional transitions not being able to be fired in transition callbacks
    • โž• Add documentation on the order in which transition callbacks run within ORM integrations
    • โšก๏ธ Update README to include a topic on explicit vs. implicit event transitions [Nathan Long]
    • ๐Ÿ›  Fix around_transition pausing not being marked as unsupported for rubinius [Daniel Huckstep]
    • ๐Ÿ›  Fix all / any / same matchers not being able to be used in :from / :to options in transitions and callbacks
    • ๐Ÿ›  Fix ActiveModel locale paths not being loaded properly under certain JRuby environments [Brad Heller]
    • Remove dependency on the validation_class_methods plugin for Sequel 2.12.0+ [Casey Howard]
    • โœ‚ Remove dependency on command-line git binaries from within the gemspec
    • ๐Ÿ›  Fix deprecation warnings on ruby-graphviz 1.0.3+
    • โšก๏ธ Update minimum required ruby-graphviz version to 0.9.17
    • ๐Ÿ›  Fix aliased fields in Mongoid 2.4.0+ not being automatically detected
    • โž• Add Mongoid 3.0.0+ support
    • ๐Ÿ›  Fix scopes getting generated multiple times when the singular / plural machine names are the same but of a different type (symbol vs. string)
    • โž• Add initial support for ActiveRecord / ActiveModel 4.0.0 beta
    • ๐Ÿ›  Fix static initial states always being set even when the state has already been initialized in non-ORM integrations
    • โš  Generate a warning when the ORM's backend and state_machine define conflicting initial states for an attribute
    • ๐Ÿ›  Fix all Ruby warnings
    • ๐Ÿ›  Fix callbacks not working for methods that respond via method_missing [Balwant Kane]
    • ๐Ÿ›  Fix observer callbacks being run when disabled in ActiveModel / ActiveRecord integrations
    • โž• Add YARD integration for autogenerating documentation / embedding visualizations of state machines
    • ๐Ÿ‘ Allow states / events to be drawn with their human name instead of their internal name

Previous changes from v1.1.2

    • ๐Ÿ›  Fix states not being initialized properly on ActiveRecord 3.2+