<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/awesomeness/text_helper.rb</filename>
    </added>
    <added>
      <filename>lib/awesomeness/trailing_slash.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1 @@
 require 'awesomeness'
-if defined? ActionController::AbstractRequest.new.url
-  ActionController::Base.send :include, CollectiveIdea::ActionController::TrailingSlash
-end
\ No newline at end of file</diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,83 +3,3 @@ Dir[File.dirname(__FILE__) + &quot;/awesomeness/**/*.rb&quot;].each {|f| require f }
 if RAILS_ENV == 'test'
   Dir[File.dirname(__FILE__) + &quot;/test/**/*.rb&quot;].each {|f| require f }
 end
-
-# Disambiguate URLs by removing trailing slashes
-# Idea from http://fleetingideas.com/post/6539239
-# This version works with query strings.
-module CollectiveIdea #:nodoc:
-  module ActionController
-    module TrailingSlash #:nodoc:
-      def self.included(base) #:nodoc:
-        base.before_filter :remove_trailing_slash
-        base.send :include, InstanceMethods
-      end
-
-      module InstanceMethods
-        private
-        def remove_trailing_slash
-          url = request.url.sub(/(.+)\/(\?.+)?$/, '\1\2')
-          if request.request_uri.length &gt; 1 &amp;&amp; url != request.url
-            headers['Status'] = '301 Moved Permanently'
-            redirect_to url and return false
-          end
-        end
-      end
-    end
-  end
-end
-
-module ActionView
-  module Helpers
-    module TextHelper
-      
-      # Awesome truncate
-      # First regex truncates to the length, plus the rest of that word, if any.
-      # Second regex removes any trailing whitespace or punctuation (except ;).
-      # Unlike the regular truncate method, this avoids the problem with cutting
-      # in the middle of an entity ex.: truncate(&quot;this &amp;amp; that&quot;,9)  =&gt; &quot;this &amp;am...&quot;
-      # though it will not be the exact length.
-      def awesome_truncate(text, length = 30, truncate_string = &quot;&#8230;&quot;)
-        return if text.nil?
-        l = length - truncate_string.chars.length
-        text.chars.length &gt; length ? text[/\A.{#{l}}\w*\;?/m][/.*[\w\;]/m] + truncate_string : text
-      end
-      
-      def truncate_with_title(text, length = 30, truncate_string = &quot;&#8230;&quot;)
-        if text.chars.length &gt; length
-          content_tag :span, truncate(text), :title =&gt; text
-        else
-          text
-        end
-      end
-      
-      # Better versions of standard truncate and excerpt
-      def truncate_with_better_default(text, length = 30, truncate_string = &quot;&#8230;&quot;)
-        truncate_without_better_default(text, length, truncate_string)
-      end      
-      alias_method_chain :truncate, :better_default
-      
-      def excerpt_with_better_default(text, phrase, radius = 100, excerpt_string = &quot;&#8230;&quot;)
-        excerpt_without_better_default(text, phrase, radius, excerpt_string)
-      end
-      alias_method_chain :excerpt, :better_default
-      
-      # Widon't
-      # We use this method instead of String#widont directly because textilize is often called with nil.
-      # This duplicates textilize's solution of returning the empty string if blank.
-      def widont(text)
-        text.blank? ? '' : text.widont
-      end
-      
-      def textilize_with_widont(text)
-        textilize_without_widont widont(text)
-      end
-      alias_method_chain :textilize, :widont
-      
-      def textilize_without_paragraph_with_widont(text)
-        textilize_without_paragraph_without_widont widont(text)
-      end
-      alias_method_chain :textilize_without_paragraph, :widont
-    end
-  end
-end
\ No newline at end of file</diff>
      <filename>lib/awesomeness.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,11 +5,14 @@
 # don't do a fresh checkout, just svn update
 set :deploy_via, :remote_cache
 
-after &quot;deploy:update_code&quot;, &quot;deploy:web:disable&quot;
-after &quot;deploy:restart&quot;,     &quot;deploy:web:enable&quot;
-after &quot;deploy:start&quot;,       &quot;deploy:web:enable&quot;
-after &quot;deploy&quot;,             &quot;deploy:cleanup&quot;
-after &quot;deploy:migrations&quot;,  &quot;deploy:cleanup&quot;
+after  &quot;deploy:update_code&quot;, &quot;deploy:web:disable&quot;
+before &quot;deploy:stop&quot;,        &quot;deploy:web:disable&quot;
+before &quot;deploy:restart&quot;,     &quot;deploy:web:disable&quot;
+after  &quot;deploy:restart&quot;,     &quot;deploy:web:enable&quot;
+after  &quot;deploy:start&quot;,       &quot;deploy:web:enable&quot;
+
+after  &quot;deploy&quot;,             &quot;deploy:cleanup&quot;
+after  &quot;deploy:migrations&quot;,  &quot;deploy:cleanup&quot;
 
 load 'logs'
 load 'backup'</diff>
      <filename>recipies/awesomeness.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c7439e7ddac4c339aa16a7a7963ec8988fe007e4</id>
    </parent>
  </parents>
  <author>
    <name>Brandon Keepers</name>
    <email>brandon@collectiveidea.com</email>
  </author>
  <url>http://github.com/collectiveidea/awesomeness/commit/90dc9ef699015653fcffdbf84ba5343ed989c034</url>
  <id>90dc9ef699015653fcffdbf84ba5343ed989c034</id>
  <committed-date>2007-09-14T14:20:29-07:00</committed-date>
  <authored-date>2007-09-14T14:20:29-07:00</authored-date>
  <message>cap 2 fixes and general cleanup</message>
  <tree>e83ee814fd1781ad9e3f8d408bb13f19dd07a300</tree>
  <committer>
    <name>Brandon Keepers</name>
    <email>brandon@collectiveidea.com</email>
  </committer>
</commit>
