forked from bastien/zidian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
executable file
·30 lines (26 loc) · 971 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
require 'rubygems'
require 'rake'
require 'rake/rdoctask'
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "zidian"
gemspec.summary = "Chinese dictionary"
gemspec.description = "Chinese dictionary using the CEDICT word list"
gemspec.email = "[email protected]"
gemspec.homepage = "https://github.com/bastien/zidian"
gemspec.authors = ["Bastien Vaucher"]
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
desc 'Generate documentation for the Zidian gem.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Zidian'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.mkd')
rdoc.rdoc_files.include('lib/**/*.rb')
end
Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }