Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 136 lines (111 sloc) 7.577 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
977c977 @obrie Fix nil states not being handled properly in guards, known states, or…
obrie authored
3 * Fix nil states not being handled properly in guards, known states, or visualizations
4 * Fix the same node being used for different dynamic states in GraphViz output
5 * Always include initial state in the list of known states even if it's dynamic
6 * Use consistent naming scheme for dynamic states in GraphViz output
7 * Allow blocks to be directly passed into machine class
198570e @obrie Fix attribute predicates not working on attributes that represent col…
obrie authored
8 * Fix attribute predicates not working on attributes that represent columns in ActiveRecord
9
5d5b3d2 @obrie Tag 0.4.0 release
obrie authored
10 == 0.4.0 / 2008-12-14
11
146afff @obrie Remove the PluginAWeek namespace
obrie authored
12 * Remove the PluginAWeek namespace
48d83df @obrie Add generic attribute predicate (e.g. "#{attribute}?(state_name)") an…
obrie authored
13 * Add generic attribute predicate (e.g. "#{attribute}?(state_name)") and state predicates (e.g. "#{state}?")
b68d4bd @obrie Add Sequel support
obrie authored
14 * Add Sequel support
06e8e84 @obrie Fix aliasing :initialize on ActiveRecord models causing warnings when…
obrie authored
15 * Fix aliasing :initialize on ActiveRecord models causing warnings when the environment is reloaded
c3d532f @obrie Fix ActiveRecord state machines trying to query the database on unmig…
obrie authored
16 * Fix ActiveRecord state machines trying to query the database on unmigrated models
bee135e @obrie Fix initial states not getting set when the current value is an empty…
obrie authored
17 * Fix initial states not getting set when the current value is an empty string [Aaron Gibralter]
6f25124 @jashmenn Add rake tasks for generating graphviz files for state machines
jashmenn authored
18 * Add rake tasks for generating graphviz files for state machines [Nate Murray]
ef3eb0c @obrie Fix initial state not being included in list of known states
obrie authored
19 * Fix initial state not being included in list of known states
2269c93 Add other_states directive for defining additional states not referen…
Pete Forde authored
20 * Add other_states directive for defining additional states not referenced in transitions or callbacks [Pete Forde]
bbd3a98 @obrie Add next_#{event}_transition for getting the next transition that wou…
obrie authored
21 * Add next_#{event}_transition for getting the next transition that would be performed if the event were invoked
fab942f @obrie Add missing CHANGELOG comments
obrie authored
22 * Add the ability to override the pluralized name of an attribute for creating scopes
23 * Add the ability to halt callback chains by: throw :halt
8f17ce0 @obrie Clarify CHANGELOG comments
obrie authored
24 * Add support for dynamic to states in transitions (e.g. :to => lambda {Time.now})
307ac8e @obrie Re-design to be library-agnostic (define state machines on any Ruby c…
obrie authored
25 * Add support for using real blocks in before_transition/after_transition calls instead of using the :do option
26 * Add DataMapper support
27 * Include states referenced in transition callbacks in the list of a machine's known states
28 * Only generate the known states for a machine on demand, rather than calculating beforehand
8f17ce0 @obrie Clarify CHANGELOG comments
obrie authored
29 * Add the ability to skip state change actions during a transition (e.g. vehicle.ignite(false))
307ac8e @obrie Re-design to be library-agnostic (define state machines on any Ruby c…
obrie authored
30 * Add the ability for the state change action (e.g. +save+ for ActiveRecord) to be configurable
31 * Allow state machines to be defined on *any* Ruby class, not just ActiveRecord (removes all external dependencies)
32 * Refactor transitions, guards, and callbacks for better organization/design
8f17ce0 @obrie Clarify CHANGELOG comments
obrie authored
33 * Use a class containing the transition context in callbacks, rather than an ordered list of each individual attribute
f379ba9 @obrie Add missing owner from changelog message
obrie authored
34 * Add without_#{attribute} named scopes (opposite of the existing with_#{attribute} named scopes) [Sean O'Brien]
c7d4cfa @obrie Add changelog message for without_#{attribute} named scopes
obrie authored
35
6d21379 @obrie Tag 0.3.1 release
obrie authored
36 == 0.3.1 / 2008-10-26
37
a6eb537 @obrie Fix the initial state not getting set when the state attribute is mas…
obrie authored
38 * Fix the initial state not getting set when the state attribute is mass-assigned but protected
a3cbd33 @obrie Change how the base module is included to prevent namespacing conflicts
obrie authored
39 * Change how the base module is included to prevent namespacing conflicts
40
ba3975e @obrie Tag 0.3.0 release
obrie authored
41 == 0.3.0 / 2008-09-07
42
6a94afc @obrie MAJOR REWRITE! Replace all before/after_exit/enter/loopback callback …
obrie authored
43 * No longer allow additional arguments to be passed into event actions
44 * Add support for can_#{event}? for checking whether an event can be fired based on the current state of the record
45 * Don't use callbacks for performing transitions
46 * Fix state machines in subclasses not knowing what states/events/transitions were defined by superclasses
47 * Replace all before/after_exit/enter/loopback callback hooks and :before/:after options for events with before_transition/after_transition callbacks, e.g.
48
49 before_transition :from => 'parked', :do => :lock_doors # was before_exit :parked, :lock_doors
50 after_transition :on => 'ignite', :do => :turn_on_radio # was event :ignite, :after => :turn_on_radio do
51
e542664 @obrie Always save when an event is fired even if it results in a loopback
obrie authored
52 * Always save when an event is fired even if it results in a loopback [Jürgen Strobel]
af5d9ad @obrie Ensure initial state callbacks are invoked in the proper order when a…
obrie authored
53 * Ensure initial state callbacks are invoked in the proper order when an event is fired on a new record
e542664 @obrie Always save when an event is fired even if it results in a loopback
obrie authored
54 * Add before_loopback and after_loopback hooks [Jürgen Strobel]
4dabe2c @obrie Add before_loopback and after_loopback hooks
obrie authored
55
179ce54 @obrie Add more descriptive exceptions
obrie authored
56 == 0.2.1 / 2008-07-05
57
58 * Add more descriptive exceptions
59 * Assume the default state attribute is "state" if one is not provided
7f1b4d6 @obrie Add :except_from option for transitions if you want to blacklist states
obrie authored
60 * Add :except_from option for transitions if you want to blacklist states
26d60af @obrie Add PluginAWeek::StateMachine::Machine#states
obrie authored
61 * Add PluginAWeek::StateMachine::Machine#states
62 * Add PluginAWeek::StateMachine::Event#transitions
b90d731 @obrie Allow creating transitions with no from state (effectively allowing t…
obrie authored
63 * Allow creating transitions with no from state (effectively allowing the transition for *any* from state)
64 * Reduce the number of objects created for each transition
65
b3b009b @obrie Add a non-bang version of events (e.g. park) that will return a boole…
obrie authored
66 == 0.2.0 / 2008-06-29
67
68 * Add a non-bang version of events (e.g. park) that will return a boolean value for success
69 * Raise an exception if the bang version of events are used (e.g. park!) and no transition is successful
70 * Change callbacks to act a little more like ActiveRecord
71 * Avoid using string evaluation for dynamic methods
72
7bca32d @obrie Convert to a more sane CHANGELOG format using rdoc
obrie authored
73 == 0.1.1 / 2008-06-22
6cf38df @obrie Tag 0.1.1 release
obrie authored
74
75 * Remove log files from gems
76
7bca32d @obrie Convert to a more sane CHANGELOG format using rdoc
obrie authored
77 == 0.1.0 / 2008-05-05
f356504 @obrie Completely rewritten from scratch
obrie authored
78
79 * Completely rewritten from scratch
80 * Renamed to state_machine
81 * Removed database dependencies
82 * Removed models in favor of an attribute-agnostic design
83 * Use ActiveSupport::Callbacks instead of eval_call
84 * Remove dry_transaction_rollbacks dependencies
85 * Added functional tests
86 * Updated documentation
87
7bca32d @obrie Convert to a more sane CHANGELOG format using rdoc
obrie authored
88 == 0.0.1 / 2007-09-26
26b00de @obrie Add dependency on custom_callbacks
obrie authored
89
5ad4f6c @obrie Prepare release dates/versions
obrie authored
90 * Add dependency on custom_callbacks
b506667 @obrie Move test fixtures out of the test application root directory
obrie authored
91 * Move test fixtures out of the test application root directory
92 * Improve documentation
93 * Remove the StateExtension module in favor of adding singleton methods to the stateful class
307fe93 @obrie Convert dos newlines to unix newlines
obrie authored
94 * Convert dos newlines to unix newlines
cbd2a5a @obrie Fix error message when a given event can't be found in the database.
obrie authored
95 * 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
96 * Add before_#{action} and #{action} callbacks when an event is performed
97 * All state and event callbacks can now explicitly return false in order to cancel the action
98 * Refactor ActiveState callback creation
99 * 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
100 * Allow force_reload option to be set in the state association
101 * 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
102 * Raise exception if a class tries to define a state more than once
103 * Add tests for PluginAWeek::Has::States::ActiveState
104 * Refactor active state/active event creation
105 * Fix owner_type not being set correctly in active states/events of subclasses
982f2f8 @obrie Allow subclasses to override the initial state.
obrie authored
106 * Allow subclasses to override the initial state
ea86551 @obrie Fix problem with migrations using default null when column cannot be …
obrie authored
107 * 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
108 * Moved deadline support into a separate plugin (has_state_deadlines).
109 * Added many more unit tests.
110 * Simplified many of the interfaces for maintainability.
111 * Added support for turning off recording state changes.
112 * Removed the short_description and long_description columns, in favor of an optional human_name column.
113 * Fixed not overriding the correct equality methods in the StateTransition class.
114 * Added to_sym to State and Event.
115 * State#name and Event#name now return the string version of the name instead of the symbol version.
116 * 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.
117 * Updated manual rollbacks to use the new Rails edge api (ActiveRecord::Rollback exception).
118 * Moved StateExtension class into a separate file in order to help keep the has_state files clean.
119 * Renamed InvalidState and InvalidEvent exceptions to StateNotFound and EventNotFound in order to follow the ActiveRecord convention (i.e. RecordNotFound).
120 * Added StateNotActive and EventNotActive exceptions to help differentiate between states which don't exist and states which weren't defined in the class.
121 * Added support for defining callbacks like so:
7bca32d @obrie Convert to a more sane CHANGELOG format using rdoc
obrie authored
122
172f646 @obrie Moved deadline support into a separate plugin (has_state_deadlines).
obrie authored
123 def before_exit_parked
124 end
125
126 def after_enter_idling
127 end
128
129 * Added support for defining callbacks using class methods:
7bca32d @obrie Convert to a more sane CHANGELOG format using rdoc
obrie authored
130
172f646 @obrie Moved deadline support into a separate plugin (has_state_deadlines).
obrie authored
131 before_exit_parked :fasten_seatbelt
132
133 * Added event callbacks after the transition has occurred (e.g. after_park)
134 * 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
135 * Updated license to include our names.
Something went wrong with that request. Please try again.