<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,7 @@
 == master
 
+* Fix machines failing to generate graphs when run from Merb tasks
+
 == 0.7.0 / 2009-04-04
 
 * Add #{attribute}_event for automatically firing events when the object's action is called</diff>
      <filename>CHANGELOG.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -21,6 +21,10 @@ namespace :state_machine do
     task :rails =&gt; [:environment, 'state_machine:draw']
     
     desc 'Draws a set of state machines using GraphViz for a Merb application.  Target class with CLASS=x,y,z; Font name with FONT=x; Image format with FORMAT=x; Orientation with ORIENTATION=x'
-    task :merb =&gt; [:merb_env, 'state_machine:draw']
+    task :merb =&gt; [:merb_env] do
+      # Fix ruby-graphviz being incompatible with Merb's process title
+      $0 = 'rake'
+      Rake::Task['state_machine:draw'].invoke
+    end
   end
 end</diff>
      <filename>tasks/state_machine.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8ac8707d1c86d1f3fa1e0762e9b68b3a6a435a62</id>
    </parent>
  </parents>
  <author>
    <name>Aaron Pfeifer</name>
    <email>aaron.pfeifer@gmail.com</email>
  </author>
  <url>http://github.com/pluginaweek/state_machine/commit/b4b65d3416d619b80a158956cc440beada387d69</url>
  <id>b4b65d3416d619b80a158956cc440beada387d69</id>
  <committed-date>2009-04-05T05:56:43-07:00</committed-date>
  <authored-date>2009-04-05T05:56:43-07:00</authored-date>
  <message>Fix machines failing to generate graphs when run from Merb tasks</message>
  <tree>f96d70027e8250e2068f23959480455e5b043ac9</tree>
  <committer>
    <name>Aaron Pfeifer</name>
    <email>aaron.pfeifer@gmail.com</email>
  </committer>
</commit>
