From: Michael Orlitzky Date: Mon, 7 Oct 2013 13:16:29 +0000 (-0400) Subject: Add a Rakefile. X-Git-Tag: 0.0.1~78 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=70aeee01ccb126dcfd6ea12f98d9df9c6b3e7a45;p=mailshears.git Add a Rakefile. --- diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..c859ae6 --- /dev/null +++ b/Rakefile @@ -0,0 +1,26 @@ +require 'rake/testtask' + +desc "Clean up generated files" +task :clean do + `rm -f *.gem` +end + + +desc "Build the gem" +task :build => :clean do + `gem build *.gemspec` +end + + +desc "Install the gem locally (user install)" +task :install => :build do + `gem install --user-install *.gem` +end + +Rake::TestTask.new do |t| + t.pattern = 'test/*test.rb' + t.libs << 'test' +end + +desc "Run tests" +task :default => :test