Rakefile in framingham-0.1.20130712221655 vs Rakefile in framingham-0.1.20130719170918
- old
+ new
@@ -7,9 +7,19 @@
Rake::Task[:build].execute
Rake::Task[:test].execute
sh "gem push framingham.gem"
end
+task :upgrade do
+ Rake::Task[:build].execute
+ Rake::Task[:test].execute
+ begin
+ sh "gem uninstall framingham && gem install ./framingham.gem"
+ rescue => exception
+ abort "\033[31merror: did you not sudo? \033[0m"
+ end
+end
+
Rake::TestTask.new { |_|
- _.test_files = FileList['framingham/*_tests.rb']
+ _.test_files = FileList['framingham/tests/*.rb']
_.verbose = true
}