-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
39 lines (35 loc) · 1.16 KB
/
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
$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
require 'taglob'
require 'rubygems'
require 'hoe'
require 'spec/rake/spectask'
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "taglob"
s.summary = "Dir.taglob selects tagged Ruby files"
s.email = "[email protected]"
s.homepage = "http://scudco.github.com/taglob"
s.description = "Tagging for Ruby files"
s.authors = ["Adam Anderson"]
s.files = FileList["[A-Z]*", "{bin,generators,lib,spec}/**/*"]
s.executables = ['taglob']
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
s.has_rdoc = true
s.rdoc_options = ["--main", "README.txt"]
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
desc "Run all examples"
Spec::Rake::SpecTask.new('spec') do |t|
t.spec_files = FileList['spec/*.rb']
end
desc "Run all examples with RCov"
Spec::Rake::SpecTask.new('rcov') do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.libs << File.join(File.dirname(__FILE__), 'lib')
t.rcov = true
t.rcov_dir = 'artifacts'
t.rcov_opts = ['--exclude', 'spec']
end