<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -16,8 +16,6 @@
 #   License: http://www.opensource.org/licenses/mit-license.php
 #
 
-require 'rubygems'
-require 'activesupport'
 small_words = %w(a an and as at but by en for if in of on or the to v[.]? via vs[.]?)
 
 #define regexps
@@ -34,7 +32,7 @@ while(input_line = gets) do
       part.gsub!(WORDS_WHERE_THE_SECOND_CHAR_IS_LOWERCASE) do
         match = $1          
         if (match !~ WORDS_CONTAINING_A_PERIOD and match =~ WORDS_WHERE_THE_SECOND_CHAR_IS_LOWERCASE)
-          match = match.downcase.titleize
+          match = match.downcase.capitalize
         end
         
         if match =~ SMALL_WORDS
@@ -45,12 +43,12 @@ while(input_line = gets) do
       
       # If the first word in the title is a small word, then capitalise it:
       part.gsub!(FIRST_WORD_IS_A_SMALL_WORD) do
-        $1 + $2.titleize
+        $1 + $2.capitalize
       end
              
       # If the last word in the title is a small word, then capitalise it:
       part.gsub!(LAST_WORD_IS_A_SMALL_WORD) do
-        $1.titleize + $2
+        $1.capitalize + $2
       end
       part 
     end.join</diff>
      <filename>title_case.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7606f8e24ac0a074c6c8ece4c4f7e543dd9be554</id>
    </parent>
  </parents>
  <author>
    <name>Sam Aaron</name>
    <email>samaaron@gmail.com</email>
  </author>
  <url>http://github.com/samaaron/titlecase-rb/commit/9b9b2b66a5c1978d48acb5ecfdad7c0e48586eb8</url>
  <id>9b9b2b66a5c1978d48acb5ecfdad7c0e48586eb8</id>
  <committed-date>2008-05-21T23:59:27-07:00</committed-date>
  <authored-date>2008-05-21T23:59:27-07:00</authored-date>
  <message>removed dependence on activesupport</message>
  <tree>67cadf39795a71419bc762e4da53868f16eb30c8</tree>
  <committer>
    <name>Sam Aaron</name>
    <email>samaaron@gmail.com</email>
  </committer>
</commit>
