-
Notifications
You must be signed in to change notification settings - Fork 10
/
Rakefile
33 lines (30 loc) · 945 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
require 'rubygems'
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "mite.cmd"
gem.executables = "mite"
gem.summary = "A simple command line interface for basic mite tasks."
gem.email = "[email protected]"
gem.homepage = "http://github.com/Overbryd/mite.cmd"
gem.description = "A simple command line interface for mite, a sleek time tracking webapp."
gem.authors = ["Lukas Rieder"]
end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
task :spec do
spec_files = Dir.glob('spec/**/*_spec.rb').join(' ')
sh "spec #{spec_files} --format specdoc --color"
end
task :default => :spec
task :rcov do
sh "rake run_rcov && open coverage/index.html"
end
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:run_rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
end