mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
adds clean and prep rake tasks to make gem releases easier
This commit is contained in:
parent
36b7175f54
commit
0022b64826
1 changed files with 15 additions and 0 deletions
15
Rakefile
15
Rakefile
|
@ -48,3 +48,18 @@ rescue LoadError
|
|||
end
|
||||
|
||||
task :default => [:spec, :features]
|
||||
|
||||
|
||||
desc "Cleans the project of any tmp file that should not be included in the gemspec."
|
||||
task :clean do
|
||||
["examples/config/database.yml", "examples/db/activerecord_one.db", "examples/db/activerecord_two.db", "examples/db/datamapper_default.db",
|
||||
"examples/db/datamapper_one.db", "examples/db/datamapper_two.db"].each do |f|
|
||||
FileUtils.rm_f(f)
|
||||
end
|
||||
%w[*.sqlite3 *.log].each do |pattern|
|
||||
`find . -name "#{pattern}" -delete`
|
||||
end
|
||||
end
|
||||
|
||||
desc "Cleans the dir and builds the gem"
|
||||
task :prep => [:clean, :gemspec, :build]
|
||||
|
|
Loading…
Reference in a new issue