Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 171 lines (139 sloc) 9.125 kb
7bca32db » obrie
2008-06-28 Convert to a more sane CHANGELOG format using rdoc
1 == master
45197b00 » obrie
2007-04-01 Remove tasks that are no longer being used.
2
d6fbdcc1 » obrie
2009-02-10 Allow states to be drawn as ellipses to accommodate long names
3 * Allow states to be drawn as ellipses to accommodate long names
a75a2820 » obrie
2009-02-09 Fix rake tasks not being registered in Rails/Merb applications [#11 s…
4 * Fix rake tasks not being registered in Rails/Merb applications
1475acf8 » obrie
2009-02-07 Never automatically define machine attribute accessors when using an …
5 * Never automatically define machine attribute accessors when using an integration
6
04f28ff0 » obrie
2009-01-11 Fix 0.5.0 release date
7 == 0.5.0 / 2009-01-11
ddc8d1a6 » obrie
2009-01-11 Tag 0.5.0 release
8
45bc27fb » obrie
2009-01-11 Add missing changelog message for to_name / from_name additions in tr…
9 * Add to_name and from_name to transition objects
7f7fc4a1 » obrie
2009-01-11 Add nicely formatted #inspect for transitions
10 * Add nicely formatted #inspect for transitions
762906a7 » obrie
2009-01-10 Fix ActiveRecord integrations failing when the database doesn't exist…
11 * Fix ActiveRecord integrations failing when the database doesn't exist yet
b9d0ccc4 » obrie
2009-01-10 Add support for customizing the actual stored value for a state
12 * Fix states not being drawn in GraphViz graphs in the correct order
13 * Add nicely formatted #inspect for states and events
14 * Simplify machine context-switching
15 * Store events/states in enumerable node collections
16 * No longer allow subclasses to change the integration
17 * Move fire! action logic into the Event class (no longer calls fire action on the object)
18 * Allow states in subclasses to have different values
19 * Recommend that all states be referenced as symbols instead of strings
20 * All states must now be named (and can be associated with other value types)
21 * Add support for customizing the actual stored value for a state
670ac78c » obrie
2008-12-30 Add compatibility with Ruby 1.9+
22 * Add compatibility with Ruby 1.9+
23
ba6dfeb1 » obrie
2008-12-28 Tag 0.4.3 release
24 == 0.4.3 / 2008-12-28
25
bae9e169 » obrie
2008-12-28 Allow dm-observer integration to be optional
26 * Allow dm-observer integration to be optional
82a5135b » obrie
2008-12-28 Fix non-lambda callbacks not working for DataMapper/Sequel
27 * Fix non-lambda callbacks not working for DataMapper/Sequel
28
faef3429 » obrie
2008-12-28 Tag 0.4.2 release
29 == 0.4.2 / 2008-12-28
30
a8bf1c9d » obrie
2008-12-28 Fix graphs not being drawn the same way consistently
31 * Fix graphs not being drawn the same way consistently
b8de3a79 » obrie
2008-12-20 Add support for sharing transitions across multiple events
32 * Add support for sharing transitions across multiple events
db88b6fa » obrie
2008-12-20 Add support for state-driven behavior
33 * Add support for state-driven behavior
d71fedbe » obrie
2008-12-18 Simplify initialize hooks, requiring super to be called instead
34 * Simplify initialize hooks, requiring super to be called instead
cfa7757d » obrie
2008-12-17 Add :namespace option for generated state predicates / event methods
35 * Add :namespace option for generated state predicates / event methods
36
20352349 » obrie
2008-12-16 Tag 0.4.1 release
37 == 0.4.1 / 2008-12-16
38
977c9777 » obrie
2008-12-16 Fix nil states not being handled properly in guards, known states, or…
39 * Fix nil states not being handled properly in guards, known states, or visualizations
40 * Fix the same node being used for different dynamic states in GraphViz output
41 * Always include initial state in the list of known states even if it's dynamic
42 * Use consistent naming scheme for dynamic states in GraphViz output
43 * Allow blocks to be directly passed into machine class
198570ea » obrie
2008-12-15 Fix attribute predicates not working on attributes that represent col…
44 * Fix attribute predicates not working on attributes that represent columns in ActiveRecord
45
5d5b3d27 » obrie
2008-12-14 Tag 0.4.0 release
46 == 0.4.0 / 2008-12-14
47
146afff4 » obrie
2008-12-14 Remove the PluginAWeek namespace
48 * Remove the PluginAWeek namespace
48d83dfb » obrie
2008-12-14 Add generic attribute predicate (e.g. "#{attribute}?(state_name)") an…
49 * Add generic attribute predicate (e.g. "#{attribute}?(state_name)") and state predicates (e.g. "#{state}?")
b68d4bda » obrie
2008-12-14 Add Sequel support
50 * Add Sequel support
06e8e845 » obrie
2008-12-12 Fix aliasing :initialize on ActiveRecord models causing warnings when…
51 * Fix aliasing :initialize on ActiveRecord models causing warnings when the environment is reloaded
c3d532f5 » obrie
2008-12-12 Fix ActiveRecord state machines trying to query the database on unmig…
52 * Fix ActiveRecord state machines trying to query the database on unmigrated models
bee135e2 » obrie
2008-12-10 Fix initial states not getting set when the current value is an empty…
53 * Fix initial states not getting set when the current value is an empty string [Aaron Gibralter]
6f25124e » jashmenn
2008-12-09 Add rake tasks for generating graphviz files for state machines
54 * Add rake tasks for generating graphviz files for state machines [Nate Murray]
ef3eb0cb » obrie
2008-12-08 Fix initial state not being included in list of known states
55 * Fix initial state not being included in list of known states
2269c93d » Pete Forde
2008-12-07 Add other_states directive for defining additional states not referen…
56 * Add other_states directive for defining additional states not referenced in transitions or callbacks [Pete Forde]
bbd3a98f » obrie
2008-12-07 Add next_#{event}_transition for getting the next transition that wou…
57 * Add next_#{event}_transition for getting the next transition that would be performed if the event were invoked
fab942fe » obrie
2008-12-07 Add missing CHANGELOG comments
58 * Add the ability to override the pluralized name of an attribute for creating scopes
59 * Add the ability to halt callback chains by: throw :halt
8f17ce06 » obrie
2008-12-07 Clarify CHANGELOG comments
60 * Add support for dynamic to states in transitions (e.g. :to => lambda {Time.now})
307ac8eb » obrie
2008-12-07 Re-design to be library-agnostic (define state machines on any Ruby c…
61 * Add support for using real blocks in before_transition/after_transition calls instead of using the :do option
62 * Add DataMapper support
63 * Include states referenced in transition callbacks in the list of a machine's known states
64 * Only generate the known states for a machine on demand, rather than calculating beforehand
8f17ce06 » obrie
2008-12-07 Clarify CHANGELOG comments
65 * Add the ability to skip state change actions during a transition (e.g. vehicle.ignite(false))
307ac8eb » obrie
2008-12-07 Re-design to be library-agnostic (define state machines on any Ruby c…
66 * Add the ability for the state change action (e.g. +save+ for ActiveRecord) to be configurable
67 * Allow state machines to be defined on *any* Ruby class, not just ActiveRecord (removes all external dependencies)
68 * Refactor transitions, guards, and callbacks for better organization/design
8f17ce06 » obrie
2008-12-07 Clarify CHANGELOG comments
69 * Use a class containing the transition context in callbacks, rather than an ordered list of each individual attribute
f379ba96 » obrie
2008-11-15 Add missing owner from changelog message
70 * Add without_#{attribute} named scopes (opposite of the existing with_#{attribute} named scopes) [Sean O'Brien]
c7d4cfa5 » obrie
2008-11-15 Add changelog message for without_#{attribute} named scopes
71
6d213798 » obrie
2008-10-26 Tag 0.3.1 release
72 == 0.3.1 / 2008-10-26
73
a6eb537b » obrie
2008-10-26 Fix the initial state not getting set when the state attribute is mas…
74 * Fix the initial state not getting set when the state attribute is mass-assigned but protected
a3cbd330 » obrie
2008-10-04 Change how the base module is included to prevent namespacing conflicts
75 * Change how the base module is included to prevent namespacing conflicts
76
ba3975ed » obrie
2008-09-07 Tag 0.3.0 release
77 == 0.3.0 / 2008-09-07
78
6a94afcc » obrie
2008-09-07 MAJOR REWRITE! Replace all before/after_exit/enter/loopback callback …
79 * No longer allow additional arguments to be passed into event actions
80 * Add support for can_#{event}? for checking whether an event can be fired based on the current state of the record
81 * Don't use callbacks for performing transitions
82 * Fix state machines in subclasses not knowing what states/events/transitions were defined by superclasses
83 * Replace all before/after_exit/enter/loopback callback hooks and :before/:after options for events with before_transition/after_transition callbacks, e.g.
84
85 before_transition :from => 'parked', :do => :lock_doors # was before_exit :parked, :lock_doors
86 after_transition :on => 'ignite', :do => :turn_on_radio # was event :ignite, :after => :turn_on_radio do
87
e5426640 » obrie
2008-07-10 Always save when an event is fired even if it results in a loopback
88 * Always save when an event is fired even if it results in a loopback [Jürgen Strobel]
af5d9ad1 » obrie
2008-07-09 Ensure initial state callbacks are invoked in the proper order when a…
89 * Ensure initial state callbacks are invoked in the proper order when an event is fired on a new record
e5426640 » obrie
2008-07-10 Always save when an event is fired even if it results in a loopback
90 * Add before_loopback and after_loopback hooks [Jürgen Strobel]
4dabe2c3 » obrie
2008-07-09 Add before_loopback and after_loopback hooks
91
179ce54f » obrie
2008-07-05 Add more descriptive exceptions
92 == 0.2.1 / 2008-07-05
93
94 * Add more descriptive exceptions
95 * Assume the default state attribute is "state" if one is not provided
7f1b4d67 » obrie
2008-07-03 Add :except_from option for transitions if you want to blacklist states
96 * Add :except_from option for transitions if you want to blacklist states
26d60afa » obrie
2008-07-03 Add PluginAWeek::StateMachine::Machine#states
97 * Add PluginAWeek::StateMachine::Machine#states
98 * Add PluginAWeek::StateMachine::Event#transitions
b90d731c » obrie
2008-07-03 Allow creating transitions with no from state (effectively allowing t…
99 * Allow creating transitions with no from state (effectively allowing the transition for *any* from state)
100 * Reduce the number of objects created for each transition
101
b3b009b1 » obrie
2008-06-29 Add a non-bang version of events (e.g. park) that will return a boole…
102 == 0.2.0 / 2008-06-29
103
104 * Add a non-bang version of events (e.g. park) that will return a boolean value for success
105 * Raise an exception if the bang version of events are used (e.g. park!) and no transition is successful
106 * Change callbacks to act a little more like ActiveRecord
107 * Avoid using string evaluation for dynamic methods
108
7bca32db » obrie
2008-06-28 Convert to a more sane CHANGELOG format using rdoc
109 == 0.1.1 / 2008-06-22
6cf38df7 » obrie
2008-06-22 Tag 0.1.1 release
110
111 * Remove log files from gems
112
7bca32db » obrie
2008-06-28 Convert to a more sane CHANGELOG format using rdoc
113 == 0.1.0 / 2008-05-05
f3565041 » obrie
2008-05-04 Completely rewritten from scratch
114
115 * Completely rewritten from scratch
116 * Renamed to state_machine
117 * Removed database dependencies
118 * Removed models in favor of an attribute-agnostic design
119 * Use ActiveSupport::Callbacks instead of eval_call
120 * Remove dry_transaction_rollbacks dependencies
121 * Added functional tests
122 * Updated documentation
123
7bca32db » obrie
2008-06-28 Convert to a more sane CHANGELOG format using rdoc
124 == 0.0.1 / 2007-09-26
26b00dee » obrie
2007-09-25 Add dependency on custom_callbacks
125
5ad4f6cb » obrie
2007-09-26 Prepare release dates/versions
126 * Add dependency on custom_callbacks
b5066674 » obrie
2007-09-21 Move test fixtures out of the test application root directory
127 * Move test fixtures out of the test application root directory
128 * Improve documentation
129 * Remove the StateExtension module in favor of adding singleton methods to the stateful class
307fe93e » obrie
2007-08-16 Convert dos newlines to unix newlines
130 * Convert dos newlines to unix newlines
cbd2a5a5 » obrie
2007-07-29 Fix error message when a given event can't be found in the database.
131 * Fix error message when a given event can't be found in the database
c140b975 » obrie
2007-07-28 Add before_#{action} and #{action} callbacks when an event is performed.
132 * Add before_#{action} and #{action} callbacks when an event is performed
133 * All state and event callbacks can now explicitly return false in order to cancel the action
134 * Refactor ActiveState callback creation
135 * Refactor unit tests so that they use mock classes instead of themselves
12a93d43 » obrie
2007-07-27 Allow force_reload option to be set in the state association.
136 * Allow force_reload option to be set in the state association
137 * Don't save the entire model when updating the state_id
90c67868 » obrie
2007-07-27 Raise exception if a class tries to define a state more than once.
138 * Raise exception if a class tries to define a state more than once
139 * Add tests for PluginAWeek::Has::States::ActiveState
140 * Refactor active state/active event creation
141 * Fix owner_type not being set correctly in active states/events of subclasses
982f2f8a » obrie
2007-07-26 Allow subclasses to override the initial state.
142 * Allow subclasses to override the initial state
ea865516 » obrie
2007-07-26 Fix problem with migrations using default null when column cannot be …
143 * Fix problem with migrations using default null when column cannot be null
172f646a » obrie
2007-07-26 Moved deadline support into a separate plugin (has_state_deadlines).
144 * Moved deadline support into a separate plugin (has_state_deadlines).
145 * Added many more unit tests.
146 * Simplified many of the interfaces for maintainability.
147 * Added support for turning off recording state changes.
148 * Removed the short_description and long_description columns, in favor of an optional human_name column.
149 * Fixed not overriding the correct equality methods in the StateTransition class.
150 * Added to_sym to State and Event.
151 * State#name and Event#name now return the string version of the name instead of the symbol version.
152 * 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.
153 * Updated manual rollbacks to use the new Rails edge api (ActiveRecord::Rollback exception).
154 * Moved StateExtension class into a separate file in order to help keep the has_state files clean.
155 * Renamed InvalidState and InvalidEvent exceptions to StateNotFound and EventNotFound in order to follow the ActiveRecord convention (i.e. RecordNotFound).
156 * Added StateNotActive and EventNotActive exceptions to help differentiate between states which don't exist and states which weren't defined in the class.
157 * Added support for defining callbacks like so:
7bca32db » obrie
2008-06-28 Convert to a more sane CHANGELOG format using rdoc
158
172f646a » obrie
2007-07-26 Moved deadline support into a separate plugin (has_state_deadlines).
159 def before_exit_parked
160 end
161
162 def after_enter_idling
163 end
164
165 * Added support for defining callbacks using class methods:
7bca32db » obrie
2008-06-28 Convert to a more sane CHANGELOG format using rdoc
166
172f646a » obrie
2007-07-26 Moved deadline support into a separate plugin (has_state_deadlines).
167 before_exit_parked :fasten_seatbelt
168
169 * Added event callbacks after the transition has occurred (e.g. after_park)
170 * State callbacks no longer receive any of the arguments that were provided in the event action
307fe93e » obrie
2007-08-16 Convert dos newlines to unix newlines
171 * Updated license to include our names.
Something went wrong with that request. Please try again.