<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,6 +4,7 @@
 
 == ruote-web - 0.9.19    not yet released
 
+- patch #21432 : bootstrap_dev_db.rake enhancement by Scott Conrad.
 - todo  #21419 : removed direct dependency on json gem, relying on whatever
                  is present (activesupport or json).
 - patch #21338 : better shutdown for Mongrel by Torsten Schoenebaum.</diff>
      <filename>CHANGELOG.txt</filename>
    </modified>
    <modified>
      <diff>@@ -16,6 +16,9 @@ John Mettraux ( project lead ( john &gt;at&lt; openwfe.org ) )
 Contributors
 ------------
 
+Scott Conrad (bootstrap_dev_db.rake enhancements)
+Torsten Schoenebaum - better engine.stop for Mongrel
+Scott Sproule (form action issue on Glassfish)
 Arjan van Bentem (patches)
 Amedeo Paglione (patches)
 Juan Pedro Paredes (patches)
@@ -37,8 +40,6 @@ Donators
 Feedback
 --------
 
-Torsten Schoenebaum - better engine.stop for Mongrel
-Scott Sproule (form action issue on Glassfish)
 emiliojge (subprocess graph issues)
 Jim Jin (store modification bug report)
 Shivakumar Gopalakrishnan</diff>
      <filename>CREDITS.txt</filename>
    </modified>
    <modified>
      <diff>@@ -18,7 +18,7 @@
 
 (assumes you're using MySQL on a Unix system)
 
-    sudo gem install -y json_pure atom-tools
+    sudo gem install -y atom-tools
 
     git clone git://github.com/jmettraux/ruote-web.git
 
@@ -41,7 +41,7 @@ if Rails on your system is not a 2.0.x one, you might want to freeze a local Rai
 
     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 'bootstrap_dev_db' step).
 
 
 == run it</diff>
      <filename>README.txt</filename>
    </modified>
    <modified>
      <diff>@@ -1,32 +1,32 @@
 #
 #--
-# Copyright (c) 2007, John Mettraux, OpenWFE.org
+# 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.
 #++
 #
@@ -52,7 +52,7 @@ class ActivityController &lt; ApplicationController
     format = params[:format]
 
     feed = $openwferu_engine.ac['activityFeedService'].get_feed(
-        participant_regex, 
+        participant_regex,
         :upon =&gt; upon,
         :feed_uri =&gt; request.request_uri,
         :format =&gt; format)</diff>
      <filename>app/controllers/activity_controller.rb</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.
 #++
 #</diff>
      <filename>app/controllers/workitems_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 ActionController::Routing::Routes.draw do |map|
   # The priority is based upon order of creation: first created -&gt; highest priority.
-  
+
   # Sample of regular route:
   # map.connect 'products/:id', :controller =&gt; 'catalog', :action =&gt; 'view'
   # Keep in mind you can assign values other than :controller and :action
@@ -9,7 +9,7 @@ ActionController::Routing::Routes.draw do |map|
   # map.purchase 'products/:id/purchase', :controller =&gt; 'catalog', :action =&gt; 'purchase'
   # This route can be invoked with purchase_url(:id =&gt; product.id)
 
-  # You can have the root of your site routed by hooking up '' 
+  # You can have the root of your site routed by hooking up ''
   # -- just remember to delete public/index.html.
   # map.connect '', :controller =&gt; &quot;welcome&quot;
   map.connect '', :controller =&gt; 'login'</diff>
      <filename>config/routes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,11 +8,13 @@ require 'fileutils'
 #
 task :bootstrap_dev_db do
 
-  db = &quot;densha_development&quot;
-  db_admin_user = &quot;root&quot;
+  db = 'densha_development'
+  db_admin_user = 'root'
+  db_user = 'densha'
 
-  sh 'mysql -u '+db_admin_user+' -p -e &quot;drop database '+db+'&quot;'
-  sh 'mysql -u '+db_admin_user+' -p -e &quot;create database '+db+' CHARACTER SET utf8 COLLATE utf8_general_ci&quot;'
+  sh &quot;mysql -u #{db_admin_user} -p -e \&quot;drop database if exists #{db}\&quot;&quot;
+  sh &quot;mysql -u #{db_admin_user} -p -e \&quot;create database #{db} CHARACTER SET utf8 COLLATE utf8_general_ci\&quot;&quot;
+  sh &quot;mysql -u #{db_admin_user} -p -e \&quot;grant all privileges on #{db}.* to '#{db_user}'@'localhost' identified by '#{db_user}'\&quot;&quot;
 
   #sh &quot;rake db:migrate VERSION=-1&quot;
   sh &quot;rake db:migrate&quot;</diff>
      <filename>lib/tasks/bootstrap_dev_db.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3fb70e99496651927e217169c0fae716262ee490</id>
    </parent>
  </parents>
  <author>
    <name>John Mettraux</name>
    <email>jmettraux@gmail.com</email>
  </author>
  <url>http://github.com/jmettraux/ruote-web/commit/07ab92bb1df99011c7f27b4fa153b86a0abf8461</url>
  <id>07ab92bb1df99011c7f27b4fa153b86a0abf8461</id>
  <committed-date>2008-08-04T17:04:04-07:00</committed-date>
  <authored-date>2008-08-04T17:04:04-07:00</authored-date>
  <message>patch #21432 : bootstrap_dev_db.rake enhancement by Scott Conrad.

(as well as removing some trailing white spaces)</message>
  <tree>5ba433c12c422ab0de7e82ebe277fd93ac6b0a65</tree>
  <committer>
    <name>John Mettraux</name>
    <email>jmettraux@gmail.com</email>
  </committer>
</commit>
