Permalink
Browse files

Project cleaning

  • Loading branch information...
1 parent 6f11a26 commit c48b82a9c479e33df69b160dbc0119d3a22ed9af @mperham mperham committed Nov 21, 2010
Showing with 11 additions and 14 deletions.
  1. +8 −13 Rakefile
  2. +3 −1 example23/Rakefile
View
@@ -1,24 +1,19 @@
+require 'fileutils'
+include FileUtils::Verbose
+
require 'rake/testtask'
Rake::TestTask.new do |t|
t.verbose = true
- t.libs << 'test' << 'rails'
+ t.libs << 'test'
t.test_files = FileList['test/*_test.rb']
end
-task :gemspec => [:clean]
task :clean do
- FileUtils.rm_f Dir['*.gem']
- FileUtils.rm_f Dir['test/*.db']
- FileUtils.rm_rf 'coverage'
-end
-
-desc "Install gem locally"
-task :installer do
- sh "gem install data_fabric-*.gem"
-end
+ rm_f Dir['*.gem']
+ rm_f Dir['test/*.db']
+ rm_rf 'coverage'
-task :gem do
- sh "gem build data_fabric.gemspec"
+ puts `cd example23 ; rake app:clean`
end
task :default => :test
View
@@ -55,8 +55,10 @@ namespace :app do
end
task :clean do
+ rm_rf 'log'
rm_rf 'vendor/gems/data_fabric-1.0.0'
- rm_f 'db/*.sqlite3'
+ rm_rf Dir['db/*.sqlite3']
+ rm_f 'db/schema.rb'
end
task :migrate do

0 comments on commit c48b82a

Please sign in to comment.