forked from tyler/trie
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
36 lines (32 loc) · 1.05 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
require 'rake'
require 'spec/rake/spectask'
require 'rake/rdoctask'
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "fast_trie"
s.email = "[email protected]"
s.homepage = "http://github.com/tyler/trie"
s.description = "Ruby Trie based on libdatrie. (1.9 support)"
s.summary = "Ruby Trie based on libdatrie. (1.9 support)"
s.authors = ["Tyler McMullen"]
s.extensions = ['ext/trie/extconf.rb']
s.require_paths = ['ext','lib']
s.files = FileList["[A-Z]*.*", "{lib,spec,ext}/**/*"]
s.has_rdoc = true
s.rdoc_options = ['--title', 'Trie', '--line-numbers', '--op', 'rdoc', '--main', 'ext/trie/trie.c']
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install jeweler"
end
Spec::Rake::SpecTask.new do |t|
t.spec_files = 'spec/**/*_spec.rb'
end
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Trie'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('ext/trie/trie.c')
end
task :default => :spec