<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,16 +1,22 @@
 require 'digest/md5'
 
-begin
-  require 'redgreen'
-  mc_use_color = true
-rescue LoadError
-  mc_use_color = false
+module MCColor
+  COLORS = { :clear =&gt; 0, :red =&gt; 31, :green =&gt; 32, :yellow =&gt; 33 }
+  def self.color(color)
+    &quot;\e[#{COLORS[color.to_sym]}m&quot;
+  end
+  def self.colorize(color_name, str)
+    color(color_name) + str + color(:clear)
+  end
+  def self.red(str);      colorize(:red, str);      end
+  def self.green(str);    colorize(:green, str);    end
+  def self.yellow(str);   colorize(:yellow, str);   end
 end
 
-if mc_use_color &amp;&amp; !ENV['TM_MODE']
-  def mc_red(str);     Color.red(str);     end
-  def mc_green(str);   Color.green(str);   end
-  def mc_yellow(str);  Color.yellow(str);  end
+unless ENV['TM_MODE']
+  def mc_red(str);     MCColor.red(str);     end
+  def mc_green(str);   MCColor.green(str);   end
+  def mc_yellow(str);  MCColor.yellow(str);  end
 else
   def mc_red(str);     str;  end
   def mc_green(str);   str;  end</diff>
      <filename>lib/migration_concordance.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c30cebe19ee9fd63f4b5396abe6ec1ad1a366f3b</id>
    </parent>
  </parents>
  <author>
    <name>Josh Susser</name>
    <email>josh@hasmanythrough.com</email>
  </author>
  <url>http://github.com/joshsusser/migration_concordance/commit/547a21bc3e665dd740e1ce746e12ed8d36896e88</url>
  <id>547a21bc3e665dd740e1ce746e12ed8d36896e88</id>
  <committed-date>2008-07-10T09:13:13-07:00</committed-date>
  <authored-date>2008-07-10T09:13:13-07:00</authored-date>
  <message>remove dependency on regreen gem (and thus test/unit)</message>
  <tree>8ae13d7d490727d024cb1cd6fe96df50d4063d51</tree>
  <committer>
    <name>Josh Susser</name>
    <email>josh@hasmanythrough.com</email>
  </committer>
</commit>
