]> gitweb.michael.orlitzky.com - mailshears.git/commitdiff
Add a Rakefile.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 7 Oct 2013 13:16:29 +0000 (09:16 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 7 Oct 2013 13:16:29 +0000 (09:16 -0400)
Rakefile [new file with mode: 0644]

diff --git a/Rakefile b/Rakefile
new file mode 100644 (file)
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