Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (29 sloc) 768 Bytes
# -*- mode: ruby -*-
task :default => [ :spec ]
task :spec do
require 'rubygems'
begin
require 'minitest'
rescue LoadError
end
require 'minitest/autorun'
$LOAD_PATH << "spec"
Dir['spec/*_spec.rb'].each { |f| require File.expand_path(f).sub(/.rb$/, '') }
end
task :headers do
require 'rubygems'
require 'copyright_header'
s = Gem::Specification.load( Dir["*gemspec"].first )
args = {
:license => s.license,
:copyright_software => s.name,
:copyright_software_description => s.description,
:copyright_holders => s.authors,
:copyright_years => [Time.now.year],
:add_path => 'lib',
:output_dir => './'
}
command_line = CopyrightHeader::CommandLine.new( args )
command_line.execute
end
# vim: syntax=Ruby
Something went wrong with that request. Please try again.