<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,7 @@
 *Edge*
 
+* Added a RedCloth::VERSION.to_s and .== methods so you can puts and compare RedCloth::VERSION just like in previous RedCloth releases.
+
 * Fixed HTML block ending tags terminating blocks prematurely. #22
 
 </diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,7 @@ require 'optparse'
 require 'redcloth'
 
 if %w(--version -v).include? ARGV.first
-  puts &quot;#{RedCloth::NAME} #{RedCloth::VERSION::STRING}&quot;
+  puts &quot;#{RedCloth::NAME} #{RedCloth::VERSION}&quot;
   exit(0)
 end
 </diff>
      <filename>bin/redcloth</filename>
    </modified>
    <modified>
      <diff>@@ -27,7 +27,7 @@ module RedCloth::Formatters
     alias_method :notextile, :ignore
     
     def redcloth_version(opts)
-      p(:text =&gt; &quot;#{opts[:prefix]}#{RedCloth::VERSION::STRING}&quot;)
+      p(:text =&gt; &quot;#{opts[:prefix]}#{RedCloth::VERSION}&quot;)
     end
 
     def inline_redcloth_version(opts)</diff>
      <filename>lib/redcloth/formatters/base.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,6 +8,16 @@ module RedCloth
     STRING = [MAJOR, MINOR, TINY].join('.')
     TAG = &quot;REL_#{[MAJOR, MINOR, TINY, RELEASE_CANDIDATE].compact.join('_')}&quot;.upcase.gsub(/\.|-/, '_')
     FULL_VERSION = &quot;#{[MAJOR, MINOR, TINY, RELEASE_CANDIDATE].compact.join('.')}&quot;
+    
+    class &lt;&lt; self
+      def to_s
+        STRING
+      end
+      
+      def ==(arg)
+        STRING == arg
+      end
+    end
   end
   
   NAME = &quot;RedCloth&quot;</diff>
      <filename>lib/redcloth/version.rb</filename>
    </modified>
    <modified>
      <diff>@@ -15,6 +15,11 @@ class TestParser &lt; Test::Unit::TestCase
     assert RedCloth::VERSION.const_defined?(&quot;STRING&quot;)
   end
   
+  def test_redcloth_version_to_s
+    assert_equal RedCloth::VERSION::STRING, RedCloth::VERSION.to_s
+    assert RedCloth::VERSION == RedCloth::VERSION::STRING
+  end
+  
   def test_badly_formatted_table_does_not_segfault
     assert_match /td/, RedCloth.new(%Q{| one | two |\nthree | four |}).to_html
   end</diff>
      <filename>test/test_parser.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b3edfd77569de14361f8c67000a680c81ccd3f77</id>
    </parent>
  </parents>
  <author>
    <name>Jason Garber</name>
    <email>jg@jasongarber.com</email>
  </author>
  <url>http://github.com/jgarber/redcloth/commit/b098bdbaa3eefbc6060e36b95208ef9dc3391a63</url>
  <id>b098bdbaa3eefbc6060e36b95208ef9dc3391a63</id>
  <committed-date>2008-07-29T07:23:47-07:00</committed-date>
  <authored-date>2008-07-29T07:23:47-07:00</authored-date>
  <message>Added a RedCloth::VERSION.to_s and .== methods so you can puts and compare RedCloth::VERSION just like in previous RedCloth releases. [#26 state:resolved]</message>
  <tree>2c9d425594370d52e1be10387a54da9a4a3f42b3</tree>
  <committer>
    <name>Jason Garber</name>
    <email>jg@jasongarber.com</email>
  </committer>
</commit>
