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

28 lines
576 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'
2015-01-01 07:48:38 -05:00
desc "Default Task"
task default: [ :test ]
2014-10-31 12:30:26 -04:00
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
2015-12-27 07:37:35 -05:00
files = ["History.txt", "MIT-LICENSE.txt", "README.md"] + `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