<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -211,3 +211,8 @@ desc &quot;Print Sequel version&quot;
 task :version do
   puts VERS.call
 end
+
+desc &quot;Check syntax of all .rb files&quot;
+task :check_syntax do
+  Dir['**/*.rb'].each{|file| print `#{ENV['RUBY'] || :ruby} -c #{file} | fgrep -v &quot;Syntax OK&quot;`}
+end</diff>
      <filename>Rakefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b266da554cf3122fbbc5a3fb0236d74d2414e8a6</id>
    </parent>
  </parents>
  <author>
    <name>Jeremy Evans</name>
    <email>code@jeremyevans.net</email>
  </author>
  <url>http://github.com/jeremyevans/sequel/commit/5fa47bd26ccb1cd32779b6168a048884f5664c0c</url>
  <id>5fa47bd26ccb1cd32779b6168a048884f5664c0c</id>
  <committed-date>2009-10-06T14:55:36-07:00</committed-date>
  <authored-date>2009-10-06T14:55:36-07:00</authored-date>
  <message>Add check_syntax rake task for checking the syntax of .rb files

Hopefully this will allow catching issues similar to the MSSQL
ruby 1.9 incompatibility.  There's probably a better way of
determining the ruby interpreter, but the way I coded it, it
uses ENV['RUBY'] or just 'ruby'. Usage:

  RUBY=ruby19 rake check_syntax</message>
  <tree>475bade6a742d2374e7e6b647e623443b1321394</tree>
  <committer>
    <name>Jeremy Evans</name>
    <email>code@jeremyevans.net</email>
  </committer>
</commit>
