Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 78 lines (63 sloc) 3.719 kb
7bca32d @obrie Convert to a more sane CHANGELOG format using rdoc
obrie authored
1 == master
45197b0 @obrie Remove tasks that are no longer being used.
obrie authored
2
26d60af @obrie Add PluginAWeek::StateMachine::Machine#states
obrie authored
3 * Add PluginAWeek::StateMachine::Machine#states
4 * Add PluginAWeek::StateMachine::Event#transitions
b90d731 @obrie Allow creating transitions with no from state (effectively allowing t…
obrie authored
5 * Allow creating transitions with no from state (effectively allowing the transition for *any* from state)
6 * Reduce the number of objects created for each transition
7
b3b009b @obrie Add a non-bang version of events (e.g. park) that will return a boole…
obrie authored
8 == 0.2.0 / 2008-06-29
9
10 * Add a non-bang version of events (e.g. park) that will return a boolean value for success
11 * Raise an exception if the bang version of events are used (e.g. park!) and no transition is successful
12 * Change callbacks to act a little more like ActiveRecord
13 * Avoid using string evaluation for dynamic methods
14
7bca32d @obrie Convert to a more sane CHANGELOG format using rdoc
obrie authored
15 == 0.1.1 / 2008-06-22
6cf38df @obrie Tag 0.1.1 release
obrie authored
16
17 * Remove log files from gems
18
7bca32d @obrie Convert to a more sane CHANGELOG format using rdoc
obrie authored
19 == 0.1.0 / 2008-05-05
f356504 @obrie Completely rewritten from scratch
obrie authored
20
21 * Completely rewritten from scratch
22 * Renamed to state_machine
23 * Removed database dependencies
24 * Removed models in favor of an attribute-agnostic design
25 * Use ActiveSupport::Callbacks instead of eval_call
26 * Remove dry_transaction_rollbacks dependencies
27 * Added functional tests
28 * Updated documentation
29
7bca32d @obrie Convert to a more sane CHANGELOG format using rdoc
obrie authored
30 == 0.0.1 / 2007-09-26
26b00de @obrie Add dependency on custom_callbacks
obrie authored
31
5ad4f6c @obrie Prepare release dates/versions
obrie authored
32 * Add dependency on custom_callbacks
b506667 @obrie Move test fixtures out of the test application root directory
obrie authored
33 * Move test fixtures out of the test application root directory
34 * Improve documentation
35 * Remove the StateExtension module in favor of adding singleton methods to the stateful class
307fe93 @obrie Convert dos newlines to unix newlines
obrie authored
36 * Convert dos newlines to unix newlines
cbd2a5a @obrie Fix error message when a given event can't be found in the database.
obrie authored
37 * Fix error message when a given event can't be found in the database
c140b97 @obrie Add before_#{action} and #{action} callbacks when an event is performed.
obrie authored
38 * Add before_#{action} and #{action} callbacks when an event is performed
39 * All state and event callbacks can now explicitly return false in order to cancel the action
40 * Refactor ActiveState callback creation
41 * Refactor unit tests so that they use mock classes instead of themselves
12a93d4 @obrie Allow force_reload option to be set in the state association.
obrie authored
42 * Allow force_reload option to be set in the state association
43 * Don't save the entire model when updating the state_id
90c6786 @obrie Raise exception if a class tries to define a state more than once.
obrie authored
44 * Raise exception if a class tries to define a state more than once
45 * Add tests for PluginAWeek::Has::States::ActiveState
46 * Refactor active state/active event creation
47 * Fix owner_type not being set correctly in active states/events of subclasses
982f2f8 @obrie Allow subclasses to override the initial state.
obrie authored
48 * Allow subclasses to override the initial state
ea86551 @obrie Fix problem with migrations using default null when column cannot be …
obrie authored
49 * Fix problem with migrations using default null when column cannot be null
172f646 @obrie Moved deadline support into a separate plugin (has_state_deadlines).
obrie authored
50 * Moved deadline support into a separate plugin (has_state_deadlines).
51 * Added many more unit tests.
52 * Simplified many of the interfaces for maintainability.
53 * Added support for turning off recording state changes.
54 * Removed the short_description and long_description columns, in favor of an optional human_name column.
55 * Fixed not overriding the correct equality methods in the StateTransition class.
56 * Added to_sym to State and Event.
57 * State#name and Event#name now return the string version of the name instead of the symbol version.
58 * Added State#human_name and Event#human_name to automatically figure out what the human name is if it isn't specified in the table.
59 * Updated manual rollbacks to use the new Rails edge api (ActiveRecord::Rollback exception).
60 * Moved StateExtension class into a separate file in order to help keep the has_state files clean.
61 * Renamed InvalidState and InvalidEvent exceptions to StateNotFound and EventNotFound in order to follow the ActiveRecord convention (i.e. RecordNotFound).
62 * Added StateNotActive and EventNotActive exceptions to help differentiate between states which don't exist and states which weren't defined in the class.
63 * Added support for defining callbacks like so:
7bca32d @obrie Convert to a more sane CHANGELOG format using rdoc
obrie authored
64
172f646 @obrie Moved deadline support into a separate plugin (has_state_deadlines).
obrie authored
65 def before_exit_parked
66 end
67
68 def after_enter_idling
69 end
70
71 * Added support for defining callbacks using class methods:
7bca32d @obrie Convert to a more sane CHANGELOG format using rdoc
obrie authored
72
172f646 @obrie Moved deadline support into a separate plugin (has_state_deadlines).
obrie authored
73 before_exit_parked :fasten_seatbelt
74
75 * Added event callbacks after the transition has occurred (e.g. after_park)
76 * State callbacks no longer receive any of the arguments that were provided in the event action
307fe93 @obrie Convert dos newlines to unix newlines
obrie authored
77 * Updated license to include our names.
Something went wrong with that request. Please try again.