<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>README</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -7,8 +7,7 @@
 		&lt;cfargument name=&quot;transitionTable&quot; type=&quot;struct&quot; required=&quot;true&quot; /&gt;
 		&lt;cfscript&gt;
 			instance.name = arguments.name;
-			// Use an ArrayList rather than a normal array so it will be passed by reference, not value
-			arguments.transitionTable[arguments.name] = createObject(&quot;component&quot;, &quot;target.StateTransitionCollection&quot;).init();
+			arguments.transitionTable[arguments.name] = createObject(&quot;component&quot;, &quot;shade.StateTransitionCollection&quot;).init();
 			instance.transitions = arguments.transitionTable[arguments.name];
 		&lt;/cfscript&gt;			
 		&lt;cfreturn this /&gt;
@@ -21,29 +20,13 @@
 		&lt;cfset var local = structNew() /&gt;
 		 
 		&lt;cfloop list=&quot;#arguments.from#&quot; index=&quot;local.from&quot;&gt;
-			&lt;cfset local.transition = createObject(&quot;component&quot;, &quot;target.StateTransition&quot;).init(local.from, arguments.to, arguments.guard) /&gt;
+			&lt;cfset local.transition = createObject(&quot;component&quot;, &quot;shade.StateTransition&quot;).init(local.from, arguments.to, arguments.guard) /&gt;
 			&lt;cfset instance.transitions.add(local.transition) /&gt;
 		&lt;/cfloop&gt;
 		
 		&lt;cfreturn this /&gt;
 	&lt;/cffunction&gt;
 	
-	&lt;!--- &lt;cffunction name=&quot;getNextStates&quot; access=&quot;public&quot; output=&quot;false&quot;&gt;
-		&lt;cfargument name=&quot;obj&quot; required=&quot;true&quot; /&gt;
-		&lt;cfset var i = 1 /&gt;
-		&lt;cfset var next = arrayNew(1) /&gt;
-		&lt;cfset var transition = &quot;&quot; /&gt;
-		
-		&lt;cfset instance.transitions.reset() /&gt;		
-		&lt;cfloop condition=&quot;instance.transitions.hasNext()&quot;&gt;
-			&lt;cfset transition = instance.transitions.next() /&gt;
-			&lt;cfif transition.getFromState() eq obj.getCurrentState()&gt;
-				&lt;cfset arrayAppend(next, transition) /&gt;
-			&lt;/cfif&gt;
-		&lt;/cfloop&gt;
-		&lt;cfreturn next /&gt;
-	&lt;/cffunction&gt; ---&gt;
-	
 	&lt;cffunction name=&quot;fire&quot; access=&quot;public&quot; output=&quot;false&quot;&gt;
 		&lt;cfargument name=&quot;obj&quot; type=&quot;any&quot; required=&quot;true&quot; /&gt;
 		&lt;cfset var i = 1 /&gt;
@@ -71,40 +54,5 @@
 	&lt;cffunction name=&quot;getTransitions&quot; access=&quot;public&quot; returntype=&quot;string&quot; output=&quot;false&quot;&gt;
 		&lt;cfreturn instance.name /&gt;
 	&lt;/cffunction&gt;
-
-&lt;!---
-        class Event
-          attr_reader :name
-          attr_reader :transitions
-          attr_reader :opts
-
-          def initialize(name, opts, transition_table, &amp;block)
-            @name = name.to_sym
-            @transitions = transition_table[@name] = []
-            instance_eval(&amp;block) if block
-            @opts = opts
-            @opts.freeze
-            @transitions.freeze
-            freeze
-          end
-          
-          def next_states(record)
-            @transitions.select { |t| t.from == record.current_state }
-          end
-          
-          def fire(record)
-            next_states(record).each do |transition|
-              break true if transition.perform(record)
-            end
-          end
-          
-          def transitions(trans_opts)
-            Array(trans_opts[:from]).each do |s|
-              @transitions &lt;&lt; SupportingClasses::StateTransition.new(trans_opts.merge({:from =&gt; s.to_sym}))
-            end
-          end
-        end
-      end
----&gt;
 	
 &lt;/cfcomponent&gt;
\ No newline at end of file</diff>
      <filename>Event.cfc</filename>
    </modified>
    <modified>
      <diff>@@ -25,14 +25,14 @@
 	
 	&lt;cffunction name=&quot;addState&quot; access=&quot;private&quot; output=&quot;false&quot;&gt;
 		&lt;cfargument name=&quot;name&quot; type=&quot;string&quot; required=&quot;true&quot; /&gt;
-		&lt;cfset var state = createObject(&quot;component&quot;, &quot;target.State&quot;).init(arguments.name) /&gt;
+		&lt;cfset var state = createObject(&quot;component&quot;, &quot;shade.State&quot;).init(arguments.name) /&gt;
 		&lt;cfset instance.states[arguments.name] = state /&gt;
 		&lt;cfreturn state /&gt;
 	&lt;/cffunction&gt;
 	
 	&lt;cffunction name=&quot;addEvent&quot; access=&quot;private&quot; output=&quot;false&quot;&gt;
 		&lt;cfargument name=&quot;name&quot; type=&quot;string&quot; required=&quot;true&quot; /&gt;
-		&lt;cfset var event = createObject(&quot;component&quot;, &quot;target.Event&quot;).init(arguments.name, instance.transitionTable) /&gt;
+		&lt;cfset var event = createObject(&quot;component&quot;, &quot;shade.Event&quot;).init(arguments.name, instance.transitionTable) /&gt;
 		&lt;cfset instance.eventTable[arguments.name] = event /&gt;
 		&lt;cfreturn event /&gt;
 	&lt;/cffunction&gt;</diff>
      <filename>StateMachine.cfc</filename>
    </modified>
    <modified>
      <diff>@@ -79,39 +79,4 @@
 		&lt;cfset instance.from = arguments.from /&gt;
 	&lt;/cffunction&gt;
 	
-&lt;!---
-        class StateTransition
-          attr_reader :from, :to, :opts
-          
-          def initialize(opts)
-            @from, @to, @guard = opts[:from], opts[:to], opts[:guard]
-            @opts = opts
-          end
-          
-          def guard(obj)
-            @guard ? obj.send(:run_transition_action, @guard) : true
-          end
-
-          def perform(record)
-            return false unless guard(record)
-            loopback = record.current_state == to
-            states = record.class.read_inheritable_attribute(:states)
-            next_state = states[to]
-            old_state = states[record.current_state]
-          
-            next_state.entering(record) unless loopback
-          
-            record.update_attribute(record.class.state_column, to.to_s)
-          
-            next_state.entered(record) unless loopback
-            old_state.exited(record) unless loopback
-            true
-          end
-          
-          def ==(obj)
-            @from == obj.from &amp;&amp; @to == obj.to
-          end
-        end
----&gt;
-	
 &lt;/cfcomponent&gt;
\ No newline at end of file</diff>
      <filename>StateTransition.cfc</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-&lt;cfcomponent displayname=&quot;StateTransitionCollection&quot; extends=&quot;target.CollectionBase&quot; output=&quot;false&quot;&gt;
+&lt;cfcomponent displayname=&quot;StateTransitionCollection&quot; extends=&quot;shade.CollectionBase&quot; output=&quot;false&quot;&gt;
 	
 	&lt;cffunction name=&quot;init&quot; access=&quot;public&quot; output=&quot;false&quot;&gt;
 		&lt;cfset super.init() /&gt;			
@@ -18,7 +18,7 @@
 	&lt;cffunction name=&quot;getTransitionsFromState&quot; access=&quot;public&quot; output=&quot;false&quot;&gt;
 		&lt;cfargument name=&quot;state&quot; type=&quot;string&quot; required=&quot;true&quot; /&gt;
 		&lt;cfset var i = 1 /&gt;
-		&lt;cfset var fromState = createObject(&quot;component&quot;, &quot;target.StateTransitionCollection&quot;).init() /&gt;
+		&lt;cfset var fromState = createObject(&quot;component&quot;, &quot;shade.StateTransitionCollection&quot;).init() /&gt;
 		&lt;cfset var transition = &quot;&quot; /&gt;
 		
 		&lt;cfset reset() /&gt;</diff>
      <filename>StateTransitionCollection.cfc</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,8 @@
-&lt;cfcomponent displayname=&quot;ConversationState&quot; extends=&quot;target.StateMachine&quot; output=&quot;false&quot;&gt;
+&lt;cfcomponent displayname=&quot;ConversationState&quot; extends=&quot;shade.StateMachine&quot; output=&quot;false&quot;&gt;
 	&lt;cfset instance = structNew() /&gt;
 	
 	&lt;cffunction name=&quot;init&quot; access=&quot;public&quot; returntype=&quot;any&quot; output=&quot;false&quot;&gt;
-		&lt;cfargument name=&quot;conversation&quot; type=&quot;target.test.Conversation&quot; required=&quot;true&quot; /&gt;		
+		&lt;cfargument name=&quot;conversation&quot; type=&quot;shade.test.Conversation&quot; required=&quot;true&quot; /&gt;		
 		&lt;cfset super.init(arguments.conversation, 'needingAttention', 'MyState') /&gt;
 		&lt;cfreturn this /&gt;
 	&lt;/cffunction&gt;</diff>
      <filename>test/ConversationState.cfc</filename>
    </modified>
    <modified>
      <diff>@@ -2,8 +2,8 @@
 
 	&lt;cffunction name=&quot;setup&quot; returntype=&quot;void&quot; access=&quot;public&quot;&gt;
 		&lt;cfscript&gt;
-			original = createObject(&quot;component&quot;, &quot;target.test.Conversation&quot;).init();
-			conversation = createObject( &quot;component&quot;, &quot;target.test.ConversationState&quot; ).init(original);
+			original = createObject(&quot;component&quot;, &quot;shade.test.Conversation&quot;).init();
+			conversation = createObject( &quot;component&quot;, &quot;shade.test.ConversationState&quot; ).init(original);
 		&lt;/cfscript&gt;
 	&lt;/cffunction&gt;
 	</diff>
      <filename>test/StateMachineTest.cfc</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5d7f1b18043b115e833efa42b66a40b05e288f8a</id>
    </parent>
  </parents>
  <author>
    <name>Ryan Wood</name>
    <email>ryan.wood@gmail.com</email>
  </author>
  <url>http://github.com/ryanwood/shade/commit/b336ed32deeb1f7a7410b1ad692e363d88624a07</url>
  <id>b336ed32deeb1f7a7410b1ad692e363d88624a07</id>
  <committed-date>2008-07-18T06:55:00-07:00</committed-date>
  <authored-date>2008-07-18T06:55:00-07:00</authored-date>
  <message>Updated project name to shade. Added README</message>
  <tree>74a08c1230716112e0a86d86d2f157126bca4af6</tree>
  <committer>
    <name>Ryan Wood</name>
    <email>ryan.wood@gmail.com</email>
  </committer>
</commit>
