Permalink
Newer
Older
100644 23 lines (19 sloc) 534 Bytes
May 23, 2010
1
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
2
require "bundler/version"
3
require "shoulda/tasks"
4
require 'lib/plancast'
May 23, 2010
6
require "rake/testtask"
7
Rake::TestTask.new(:test) do |test|
May 23, 2010
8
test.ruby_opts = ["-rubygems"] if defined? Gem
9
test.libs << "lib" << "test"
10
test.pattern = "test/**/*_test.rb"
11
end
May 23, 2010
12
May 23, 2010
13
desc "Build the gem"
May 23, 2010
14
task :build do
15
system "gem build plancast.gemspec"
16
end
May 23, 2010
17
May 23, 2010
18
desc "Build and release the gem"
May 23, 2010
19
task :release => :build do
20
system "gem push plancast-#{Plancast::VERSION}.gem"
21
end
May 23, 2010
22
23
task :default => :test