desc "Sync github.com:Paxa/libxlsxwriter to ./libxlsxwriter" task :sync do require 'fileutils' FileUtils.rm_rf("./libxlsxwriter") system("git clone --depth 10 git@github.com:Paxa/libxlsxwriter.git") Dir.chdir("./libxlsxwriter") do system("git show --pretty='format:%cd %h' --date=iso --quiet > version.txt") FileUtils.rm_rf("./.git") end end require 'rake/testtask' Rake::TestTask.new do |test| test.test_files = Dir.glob('test/**/*_test.rb') end #task :default => :test