public
Description: A small IRC bot framework.
Homepage:
Clone URL: git://github.com/david/minibot.git
minibot / Rakefile
100644 28 lines (21 sloc) 0.578 kb
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
require 'rubygems'
require 'rake/gempackagetask'
require 'spec/rake/spectask'
 
load 'minibot.gemspec'
 
Rake::GemPackageTask.new(SPEC) do |pkg|
  pkg.gem_spec = SPEC
end
 
task :install => [:package] do
  sh %{sudo gem install pkg/#{GEM}-#{VERSION}}
end
 
desc "Run all specs"
Spec::Rake::SpecTask.new('spec') do |t|
  t.spec_files = FileList['spec/**/*.rb']
  t.spec_opts = %w{--color}
end
 
desc "Run all specs with rcov"
Spec::Rake::SpecTask.new('spec:rcov') do |t|
  t.spec_files = FileList['spec/**/*.rb']
  t.rcov = true
  t.rcov_opts = %w{--exclude spec --text-summary}
end