/
Rakefile
47 lines (35 loc) · 1009 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#-*- mode: ruby -*-
require 'rubygems'
require 'cucumber'
require 'cucumber/rake/task'
require 'fileutils'
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "features --format pretty"
end
task :default => [:features]#[ :clean, :features, :minispec]
# task :minispec => [:compile] do
# require 'bundler/setup'
# require 'minitest/autorun'
# $LOAD_PATH << "spec"
# Dir['spec/*_spec.rb'].each { |f| require File.basename(f.sub(/.rb$/, '')) }
# end
task :clean do
FileUtils.rm_rf('target')
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