forked from notahat/machinist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
45 lines (36 loc) · 1003 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
require 'rubygems'
require 'bundler'
Bundler.setup
require 'rake'
require 'rspec/core/rake_task'
require 'rake/rdoctask'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "machinist"
gem.summary = "Fixtures aren't fun. Machinist is."
gem.email = "pete@notahat.com"
gem.homepage = "http://github.com/notahat/machinist"
gem.authors = ["Pete Yandell"]
gem.has_rdoc = false
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end
RSpec::Core::RakeTask.new
RSpec::Core::RakeTask.new(:rcov) do |spec|
spec.rcov = true
spec.rcov_opts = ['--exclude', 'spec', '--exclude', '.rvm']
end
desc 'Run the specs.'
task :default => :spec
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.title = 'Machinist'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('lib')
end
task :notes do
system "grep -n -r 'FIXME\\|TODO' lib spec"
end