Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (17 sloc) 478 Bytes
#!/usr/bin/env rake
require 'bundler/gem_tasks'
require 'rake/testtask'
desc 'Rebuild the README with the latest usage from einhorn'
task :readme do
Dir.chdir(File.dirname(__FILE__))
readme = File.read('README.md.in')
usage = `bin/einhorn -h`
readme.gsub!('[[usage]]', usage)
File.open('README.md', 'w') {|f| f.write(readme)}
end
Rake::TestTask.new do |t|
t.libs = ["lib"]
# t.warning = true
t.verbose = true
t.test_files = FileList['test/unit/**/*.rb']
end
Something went wrong with that request. Please try again.