forked from jeremyevans/sequel-impala
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
40 lines (30 loc) · 880 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
require "rake"
require "rake/clean"
require "rake/testtask"
CLEAN.include ["sequel_impala-*.gem", "rdoc"]
desc "Build sequel_impala gem"
task :package=>[:clean] do |p|
sh %{#{FileUtils::RUBY} -S gem build sequel_impala.gemspec}
end
Rake::TestTask.new do |t|
t.libs << "."
t.libs << "spec"
t.test_files = FileList['spec/**/*_test.rb']
t.warning = false
end
task :default => :test
### RDoc
RDOC_DEFAULT_OPTS = ["--quiet", "--line-numbers", "--inline-source", '--title', 'sequel_impala: Sequel support for Impala database']
begin
gem 'rdoc'
gem 'hanna-nouveau'
RDOC_DEFAULT_OPTS.concat(['-f', 'hanna'])
rescue Gem::LoadError
end
RDOC_OPTS = RDOC_DEFAULT_OPTS + ['--main', 'README.rdoc']
require 'rdoc/task'
RDoc::Task.new do |rdoc|
rdoc.rdoc_dir = "rdoc"
rdoc.options += RDOC_OPTS
rdoc.rdoc_files.add %w"README.rdoc CHANGELOG LICENSE lib/**/*.rb"
end