Permalink
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (27 sloc) 867 Bytes
require 'rake'
require 'rake/testtask'
task :default => "test:units"
namespace :test do
desc "Runs the unit tests for perennial"
Rake::TestTask.new("units") do |t|
t.pattern = 'test/*_test.rb'
t.libs << 'test'
t.verbose = true
end
end
task :gemspec do
require 'rubygems'
require File.join(File.dirname(__FILE__), "lib", "<%= @application_path %>")
spec = Gem::Specification.new do |s|
s.name = '<%= @application_path %>'
s.email = ''
s.homepage = ''
s.authors = ["YOUR NAME"]
s.version = <%= @application_module %>::VERSION
s.summary = ""
s.files = FileList["{bin,vendor,lib,test}/**/*"].to_a
s.platform = Gem::Platform::RUBY
s.add_dependency "Sutto-perennial", ">= <%= Perennial::VERSION %>"
end
File.open("<%= @application_path %>.gemspec", "w+") { |f| f.puts spec.to_ruby }
end