Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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