forked from laserlemon/vestal_versions
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
45 lines (40 loc) · 1.26 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
40
41
42
43
44
45
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rcov/rcovtask'
require 'rake/rdoctask'
begin
require 'jeweler'
Jeweler::Tasks.new do |g|
g.name = 'vestal_versions'
g.summary = %(Keep a DRY history of your ActiveRecord models' changes)
g.description = %(Keep a DRY history of your ActiveRecord models' changes)
g.email = 'steve@laserlemon.com'
g.homepage = 'http://github.com/laserlemon/vestal_versions'
g.authors = %w(laserlemon)
g.add_dependency 'activerecord', '>= 2.1.0'
g.add_development_dependency 'shoulda'
g.add_development_dependency 'mocha'
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts 'Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler'
end
Rake::TestTask.new do |t|
t.libs = %w(test)
t.pattern = 'test/**/*_test.rb'
end
Rcov::RcovTask.new do |t|
t.libs = %w(test)
t.pattern = 'test/**/*_test.rb'
end
task :test => :check_dependencies
task :default => :test
Rake::RDocTask.new do |r|
version = File.exist?('VERSION') ? File.read('VERSION') : nil
r.rdoc_dir = 'rdoc'
r.title = ['vestal_versions', version].compact.join(' ')
r.options << '--line-numbers' << '--inline-source'
r.rdoc_files.include('README*')
r.rdoc_files.include('lib/**/*.rb')
end