1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/Rakefile

25 lines
537 B
Text
Raw Normal View History

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]
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")
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
end