2014-10-30 16:42:44 -04:00
|
|
|
require 'bundler'
|
|
|
|
Bundler::GemHelper.install_tasks
|
2007-12-30 14:35:44 -05:00
|
|
|
|
2014-10-31 12:30:26 -04:00
|
|
|
require 'rake/testtask'
|
|
|
|
|
|
|
|
Rake::TestTask.new(:test) do |t|
|
|
|
|
t.libs << 'lib'
|
|
|
|
t.libs << 'test'
|
|
|
|
t.pattern = 'test/**/test_*.rb'
|
|
|
|
t.verbose = true
|
|
|
|
end
|
|
|
|
|
2014-10-30 16:42:44 -04:00
|
|
|
specname = "arel.gemspec"
|
|
|
|
deps = `git ls-files`.split("\n") - [specname]
|
2009-05-16 21:13:32 -04:00
|
|
|
|
2014-10-30 16:42:44 -04:00
|
|
|
file specname => deps do
|
2014-11-25 16:54:12 -05:00
|
|
|
files = ["History.txt", "MIT-LICENSE.txt", "README.markdown"] + `git ls-files -- lib`.split("\n")
|
2010-09-24 19:45:02 -04:00
|
|
|
|
2014-10-30 16:42:44 -04:00
|
|
|
require 'erb'
|
|
|
|
|
|
|
|
File.open specname, 'w:utf-8' do |f|
|
|
|
|
f.write ERB.new(File.read("#{specname}.erb")).result(binding)
|
|
|
|
end
|
2009-09-20 12:12:55 -04:00
|
|
|
end
|