<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>LICENSE.txt</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -28,20 +28,20 @@
     rake data:populate
 
 
-The 'bootstrap_dev_db' step assumes that your database admin user is named &quot;root&quot; (and it will ask for the password of that user two times).
+The 'data:bootstrap' step assumes that your database admin user is named &quot;root&quot; (and it will ask for the password of that user two times).
 
 If you want to install the dependencies (rufus and ruote) as ruby gems, you can run
 
     rake ruote:gem_install
 
-instead of &quot;rake install_workflow_engine&quot;. (this won't install the 'bleeding edge' engine but the 'stable' one packaged in a gem.
+instead of &quot;rake ruote:install&quot;. (this won't install the 'bleeding edge' engine but the 'stable' one packaged in a gem.
 
 
 if Rails on your system is not a 2.0.x one, you might want to freeze a local Rails :
 
     cd ruote-web &amp;&amp; rake rails:freeze:edge TAG=rel_2-0-2
 
-That will install Rails 2.0.2 under ruote-web/vendor/rails (maybe you will to do that before the 'bootstrap_dev_db' step).
+That will install Rails 2.0.2 under ruote-web/vendor/rails (maybe you will to do that before the 'data:bootstrap' step).
 
 
 == run it</diff>
      <filename>README.txt</filename>
    </modified>
    <modified>
      <diff>@@ -11,3 +11,32 @@ require 'tasks/rails'
 
 #require 'vlad'
 #Vlad.load 'config/deploy.rb'
+
+
+desc &quot;packages a 'distribution' of ruote-rest&quot;
+task :distribute do
+
+  pk = &quot;ruote-web-0.9.19&quot;
+  dest = &quot;pkg/#{pk}&quot;
+
+  rm_r(dest) if File.exist?(dest)
+
+  mkdir_p dest
+  files = %w{
+    Rakefile config lib public test app script db vendor
+  }
+  %w{ LICENSE CREDITS README CHANGELOG }.each { |t| files &lt;&lt; &quot;#{t}.txt&quot; }
+  files.each do |src|
+    cp_r src, dest
+    puts &quot;copied #{src}&quot;
+  end
+
+  chdir dest do
+    sh 'rake ruote:get_from_github'
+    mkdir 'log'
+  end
+  chdir 'pkg' do
+    sh &quot;jar cvf #{pk}.zip #{pk}&quot;
+  end
+end
+</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -2,31 +2,31 @@
 #--
 # Copyright (c) 2007-2008, John Mettraux, OpenWFE.org
 # All rights reserved.
-# 
-# Redistribution and use in source and binary forms, with or without 
+#
+# Redistribution and use in source and binary forms, with or without
 # modification, are permitted provided that the following conditions are met:
-# 
+#
 # . Redistributions of source code must retain the above copyright notice, this
-#   list of conditions and the following disclaimer.  
-# 
-# . Redistributions in binary form must reproduce the above copyright notice, 
-#   this list of conditions and the following disclaimer in the documentation 
+#   list of conditions and the following disclaimer.
+#
+# . Redistributions in binary form must reproduce the above copyright notice,
+#   this list of conditions and the following disclaimer in the documentation
 #   and/or other materials provided with the distribution.
-# 
+#
 # . Neither the name of the &quot;OpenWFE&quot; nor the names of its contributors may be
 #   used to endorse or promote products derived from this software without
 #   specific prior written permission.
-# 
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; 
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
-# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot;
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 # POSSIBILITY OF SUCH DAMAGE.
 #++
 #
@@ -46,11 +46,11 @@ class WorklistController &lt; ApplicationController
 
   def index
 
-    @users = User.find(:all)
-    @groups = Group.find(:all)
-    @storepermissions = StorePermission.find(:all)
-    @stores = WiStore.find(:all)
-    @launchpermissions = LaunchPermission.find(:all)
+  @users = User.find(:all)
+  @groups = Group.find(:all)
+  @storepermissions = StorePermission.find(:all)
+  @stores = WiStore.find(:all)
+  @launchpermissions = LaunchPermission.find(:all)
   end
 
   #
@@ -58,18 +58,18 @@ class WorklistController &lt; ApplicationController
   #
   def delete
 
-    oid = params[:id]
-    klassname = params[:klass]
-    klass = to_class(klassname)
+  oid = params[:id]
+  klassname = params[:klass]
+  klass = to_class(klassname)
 
-    o = klass.find(oid)
+  o = klass.find(oid)
 
-    $openwferu_engine.unregister_participant(o.regex) if klass == WiStore
+  $openwferu_engine.unregister_participant(o.regex) if klass == WiStore
 
-    o.destroy \
-        unless (klass == User and o.name == &quot;admin&quot;)
+  o.destroy \
+    unless (klass == User and o.name == &quot;admin&quot;)
 
-    render_updated_records klassname
+  render_updated_records klassname
   end
 
   #
@@ -77,22 +77,22 @@ class WorklistController &lt; ApplicationController
   #
   def add
 
-    klassname = params[:klass]
-    klass = to_class(klassname)
+  klassname = params[:klass]
+  klass = to_class(klassname)
 
-    params.delete :klass
-    params.delete :action
-    params.delete :controller
+  params.delete :klass
+  params.delete :action
+  params.delete :controller
 
-    o = klass.new
-    params.each do |k, v|
-      o.send(&quot;#{k}=&quot;.intern, v.strip)
-    end
-    o.save!
+  o = klass.new
+  params.each do |k, v|
+    o.send(&quot;#{k}=&quot;.intern, v.strip)
+  end
+  o.save!
 
-    handle_new_participant(o) if klass == WiStore
+  handle_new_participant(o) if klass == WiStore
 
-    render_updated_records klassname
+  render_updated_records klassname
   end
 
   #
@@ -101,110 +101,110 @@ class WorklistController &lt; ApplicationController
   #
   def upload
 
-    pdef = params[:process_definition]
-    fname = ensure_pdef_fname pdef
+  pdef = params[:process_definition]
+  fname = ensure_pdef_fname pdef
 
-    if fname
+  if fname
 
-        File.open(fname, &quot;w&quot;) do |f|
-            f.write(pdef.read)
-        end
+    File.open(fname, &quot;w&quot;) do |f|
+      f.write(pdef.read)
+    end
 
-        lp = LaunchPermission.new
-        lp.groupname = params[:groupname].strip
-        lp.url = fname[6..-1]
-        lp.save!
+    lp = LaunchPermission.new
+    lp.groupname = params[:groupname].strip
+    lp.url = fname[6..-1]
+    lp.save!
 
-        flash[:notice] = &quot;added process definition and launch permission&quot;
+    flash[:notice] = &quot;added process definition and launch permission&quot;
 
-    else
+  else
 
-        flash[:notice] = &quot;cannot accept file &quot;
-        flash[:notice] += pdef.original_filename unless pdef == ''
-    end
+    flash[:notice] = &quot;cannot accept file &quot;
+    flash[:notice] += pdef.original_filename unless pdef == ''
+  end
 
-    redirect_to :action =&gt; &quot;index&quot;
+  redirect_to :action =&gt; &quot;index&quot;
   end
 
   protected
 
-    PDEF_PATH = 'public/process_definitions'
+  PDEF_PATH = 'public/process_definitions'
 
-    WADMIN_CLASSES = {
-      &quot;User&quot; =&gt; User, 
-      &quot;Group&quot; =&gt; Group, 
-      &quot;LaunchPermission&quot; =&gt; LaunchPermission, 
-      &quot;WiStore&quot; =&gt; WiStore, 
-      &quot;StorePermission&quot; =&gt; StorePermission
-    }
+  WADMIN_CLASSES = {
+    &quot;User&quot; =&gt; User,
+    &quot;Group&quot; =&gt; Group,
+    &quot;LaunchPermission&quot; =&gt; LaunchPermission,
+    &quot;WiStore&quot; =&gt; WiStore,
+    &quot;StorePermission&quot; =&gt; StorePermission
+  }
 
-    #
-    # Avoiding an 'eval'
-    #
-    def to_class (classname)
+  #
+  # Avoiding an 'eval'
+  #
+  def to_class (classname)
 
-      WADMIN_CLASSES[classname]
-    end
+    WADMIN_CLASSES[classname]
+  end
 
-    #
-    # Renders only the category of items that were changed.
-    #
-    def render_updated_records (klassname)
+  #
+  # Renders only the category of items that were changed.
+  #
+  def render_updated_records (klassname)
 
-      klass = to_class(klassname)
+    klass = to_class(klassname)
 
-      records = klass.find(:all)
+    records = klass.find(:all)
 
-      render :update do |page|
+    render :update do |page|
 
-        page.replace_html(
-          &quot;worklist_#{klassname}&quot;, 
-          :partial =&gt; &quot;index_#{klassname.downcase}s&quot;,
-          :locals =&gt; { :records =&gt; records })
-      end
+    page.replace_html(
+      &quot;worklist_#{klassname}&quot;,
+      :partial =&gt; &quot;index_#{klassname.downcase}s&quot;,
+      :locals =&gt; { :records =&gt; records })
     end
+  end
 
-    #
-    # Registers the new participant in the engine.
-    #
-    def handle_new_participant (store)
+  #
+  # Registers the new participant in the engine.
+  #
+  def handle_new_participant (store)
 
-        $openwferu_engine.register_participant(
-            store.regex,
-            OpenWFE::Extras::ActiveStoreParticipant.new(store.name))
-    end
+    $openwferu_engine.register_participant(
+      store.regex,
+      OpenWFE::Extras::ActiveStoreParticipant.new(store.name))
+  end
 
-    #
-    # ensures the pdef filename won't override any already present process
-    # definitions.
-    #
-    def ensure_pdef_fname (pdef)
+  #
+  # ensures the pdef filename won't override any already present process
+  # definitions.
+  #
+  def ensure_pdef_fname (pdef)
 
-        return nil if pdef == ''
+    return nil if pdef == ''
 
-        fname = pdef.original_filename
+    fname = pdef.original_filename
 
-        i = fname.rindex(&quot;/&quot;)
-        fname = fname[i+1..-1] if i
+    i = fname.rindex(&quot;/&quot;)
+    fname = fname[i+1..-1] if i
 
-        return nil unless fname.match(/.*\.(rb|xml)/)
+    return nil unless fname.match(/.*\.(rb|xml)/)
 
-        p = PDEF_PATH + &quot;/&quot; + fname
+    p = PDEF_PATH + &quot;/&quot; + fname
 
-        return p unless File.exist?(p)
+    return p unless File.exist?(p)
 
-        i = 0
-        loop do
+    i = 0
+    loop do
 
-            p = &quot;#{PDEF_PATH}/#{i}#{fname}&quot;
+      p = &quot;#{PDEF_PATH}/#{i}#{fname}&quot;
 
-            return p unless File.exist?(p)
+      return p unless File.exist?(p)
 
-            i+= 1
+      i+= 1
 
-            return nil if i == 1000
-        end
+      return nil if i == 1000
     end
+  end
 
 end
 </diff>
      <filename>app/controllers/worklist_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -21,16 +21,16 @@ if $0 =~ /script\/server/ and RAILS_ENV == 'development'
   users = User.find(:all)
 
   if users.size &lt; 1
-      puts
-      puts
-      puts &quot; * no initial data *&quot;
-      puts
-      puts &quot;consider running&quot;
-      puts
-      puts &quot;    rake bootstrap_dev_db&quot;
-      puts &quot;    rake populate_dev_db&quot;
-      puts
-      puts
+    puts
+    puts
+    puts &quot; * no initial data *&quot;
+    puts
+    puts &quot;consider running&quot;
+    puts
+    puts &quot;    rake data:bootstrap&quot;
+    puts &quot;    rake data:populate&quot;
+    puts
+    puts
   end
 end
 </diff>
      <filename>config/openwferu_engine.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,15 +8,15 @@ namespace :data do
   #
   task :change_admin_passwd =&gt; :environment do
 
-      pass = ARGV.find do |arg|
-          arg.match(/^PASS=.*/)
-      end
+    pass = ARGV.find do |arg|
+        arg.match(/^PASS=.*/)
+    end
 
-      pass = pass[5..-1]
+    pass = pass[5..-1]
 
-      u = User.find_by_name &quot;admin&quot;
-      u.password = pass
-      u.save!
+    u = User.find_by_name &quot;admin&quot;
+    u.password = pass
+    u.save!
   end
 
 </diff>
      <filename>lib/tasks/data.rake</filename>
    </modified>
    <modified>
      <diff>@@ -10,23 +10,23 @@ namespace :ruote do
   # but not both
   #
 
-  #
-  # Installs under vendor/ the latest source of OpenWFEru (and required
-  # subprojects).
-  #
-  task :install do
+  desc &quot;Installs under vendor/ the latest source of OpenWFEru (and required subprojects).&quot;
+  task :install =&gt; :get_from_github do
+
+    sh 'sudo gem install --no-rdoc --no-ri rogue_parser'
+    sh 'sudo gem install --no-rdoc --no-ri atom-tools'
+  end
+
+  task :get_from_github do
 
-    FileUtils.mkdir &quot;tmp&quot; unless File.exists?(&quot;tmp&quot;)
+    mkdir 'tmp' unless File.exists?('tmp')
 
-    rm_r 'vendor/ruote'
-    rm_r 'vendor/rufus'
-    mkdir 'vendor' unless File.exist?('vendor')
+    rm_r 'vendor/openwfe' if File.exists?('vendor/openwfe')
+    rm_r 'vendor/rufus' if File.exists?('vendor/rufus')
+    mkdir 'vendor' unless File.exists?('vendor')
 
     RUFUSES.each { |e| git_clone(e) }
     git_clone 'ruote'
-
-    #sh &quot;sudo gem install json_pure rogue_parser&quot;
-    #sh &quot;sudo gem install rogue_parser&quot;
   end
 
   def git_clone (elt)
@@ -34,7 +34,7 @@ namespace :ruote do
     chdir 'tmp' do
       sh &quot;git clone git://github.com/jmettraux/#{elt}.git&quot;
     end
-    cp_r &quot;tmp/#{elt}/lib/*&quot;, 'vendor/'
+    cp_r &quot;tmp/#{elt}/lib/.&quot;, 'vendor/'
     rm_r &quot;tmp/#{elt}&quot;
   end
 
@@ -47,6 +47,7 @@ namespace :ruote do
 
     GEMS &lt;&lt; 'ruote'
     #GEMS &lt;&lt; 'rogue_parser'
+    GEMS &lt;&lt; 'atom-tools'
 
     sh &quot;sudo gem install --no-rdoc --no-ri #{GEMS.join(' ')}&quot;
 </diff>
      <filename>lib/tasks/ruote.rake</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,6 @@
   &lt;/description&gt;
   &lt;sequence&gt;
     &lt;set field=&quot;message&quot; value=&quot;hello world !&quot; /&gt;
-    &lt;sleep for=&quot;30s&quot; /&gt;
     &lt;participant ref=&quot;alpha&quot; /&gt;
     &lt;participant ref=&quot;bravo&quot; /&gt;
   &lt;/sequence&gt;</diff>
      <filename>public/process_definitions/simple_sequence_1.xml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8b64e2af24a1595f8c203ae15434330a98e50e8c</id>
    </parent>
  </parents>
  <author>
    <name>John Mettraux</name>
    <email>jmettraux@gmail.com</email>
  </author>
  <url>http://github.com/jmettraux/ruote-web/commit/d7471523bbbfb9bf1605d4b11bc9a0a9412595f1</url>
  <id>d7471523bbbfb9bf1605d4b11bc9a0a9412595f1</id>
  <committed-date>2008-09-03T00:57:30-07:00</committed-date>
  <authored-date>2008-09-03T00:57:30-07:00</authored-date>
  <message>introduced the 'distribute' task</message>
  <tree>398515833a5330e4244bf74557fb5ea884644704</tree>
  <committer>
    <name>John Mettraux</name>
    <email>jmettraux@gmail.com</email>
  </committer>
</commit>
