<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -224,7 +224,21 @@ Spec::Rake::SpecTask.new do |t|
 end 
 
 task :default =&gt; :spec
-task :spec =&gt; [:compile]
+task :spec =&gt; [:ensure_diff_lcs, :compile]
+
+task :ensure_diff_lcs do
+  # A little insurance against rake on JRuby not passing the error from load-diff-lcs.rb
+  begin
+    require 'diff/lcs'
+  rescue LoadError
+    begin
+      require 'rubygems' unless ENV['NO_RUBYGEMS']
+      require 'diff/lcs'
+    rescue LoadError
+      raise &quot;You must gem install diff-lcs to run the specs.&quot;
+    end
+  end
+end
 
 task :remove_other_platforms do
   Dir[&quot;lib/redcloth_scan.{bundle,so,jar,rb}&quot;].each { |file| rm file }</diff>
      <filename>Rakefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>64eb6a5a06c7048c6b1ed29e37a769a1856d1170</id>
    </parent>
  </parents>
  <author>
    <name>Jason Garber</name>
    <email>jg@jasongarber.com</email>
  </author>
  <url>http://github.com/jgarber/redcloth/commit/a5ff962a02b0702502b13169386becea6cea9dce</url>
  <id>a5ff962a02b0702502b13169386becea6cea9dce</id>
  <committed-date>2009-06-10T07:18:50-07:00</committed-date>
  <authored-date>2009-06-10T07:18:50-07:00</authored-date>
  <message>Fix JRuby 1.3 not passing the warning about missing diff/lcs through (just a cryptic backtrace). [#148 state:resolved]</message>
  <tree>9daa732800b53b9925625fe0444f76c473f1ae65</tree>
  <committer>
    <name>Jason Garber</name>
    <email>jg@jasongarber.com</email>
  </committer>
</commit>
