forked from brunofrank/class-table-inheritance
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
44 lines (40 loc) · 1.28 KB
/
Rakefile
File metadata and controls
44 lines (40 loc) · 1.28 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the class_table_inheritance plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for the class_table_inheritance plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'ClassTableInheritance'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "class-table-inheritance"
gem.summary = <<EOF
ActiveRecord plugin designed to allow simple multiple table (class) inheritance.
EOF
gem.description = <<EOF
ActiveRecord plugin designed to allow simple multiple table (class) inheritance.
EOF
gem.email = "tvdeyen@gmail.com"
gem.homepage = "http://github.com/tvdeyen/class-table-inheritance"
gem.authors = `git log --pretty=format:"%an"`.split("\n").uniq.sort
gem.add_dependency "activerecord", ">=3.0.0"
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available."
puts "Install it with: gem install jeweler"
end