forked from ruport/acts_as_reportable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
63 lines (54 loc) · 1.47 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
require "rake/rdoctask"
require "rake/testtask"
require "rake/gempackagetask"
AAR_VERSION = "1.1.2"
begin
require "rubygems"
rescue LoadError
nil
end
task :default => [:test]
Rake::TestTask.new do |test|
test.libs << "test"
test.test_files = Dir[ "test/*_test.rb" ]
test.verbose = true
end
spec = Gem::Specification.new do |spec|
spec.name = "acts_as_reportable"
spec.version = AAR_VERSION
spec.platform = Gem::Platform::RUBY
spec.summary = "ActiveRecord support for Ruby Reports"
spec.files = Dir.glob("{lib,test}/**/**/*") +
["Rakefile"]
spec.require_path = "lib"
spec.test_files = Dir[ "test/*_test.rb" ]
spec.has_rdoc = true
#spec.extra_rdoc_files = %w{README LICENSE AUTHORS}
spec.rdoc_options << '--title' << 'Ruport Documentation'
spec.add_dependency('ruport', '>= 1.6.0')
spec.author = "Michael Milner"
spec.email = "[email protected]"
spec.rubyforge_project = "ruport"
spec.homepage = "http://rubyreports.org"
spec.description = <<END_DESC
acts_as_reportable provides ActiveRecord support for Ruby Reports
END_DESC
end
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include( "lib/" )
rdoc.main = "README"
rdoc.rdoc_dir = "doc/html"
rdoc.title = "acts_as_reportable Documentation"
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_zip = true
pkg.need_tar = true
end
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |t|
t.test_files = Dir[ "test/*_test.rb" ]
end
rescue LoadError
nil
end