forked from kanwei/algorithms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
22 lines (18 loc) · 789 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'rubygems'
require 'rake/extensiontask'
require 'rspec/core/rake_task'
require 'bundler/gem_tasks'
Rake::ExtensionTask.new('algorithms/string') { |ext| ext.name = "CString" }
Rake::ExtensionTask.new('containers/deque') { |ext| ext.name = "CDeque" }
Rake::ExtensionTask.new('containers/bst') { |ext| ext.name = "CBst" }
Rake::ExtensionTask.new('containers/rbtree_map') { |ext| ext.name = "CRBTreeMap" }
Rake::ExtensionTask.new('containers/splaytree_map') { |ext| ext.name = "CSplayTreeMap" }
RSpec::Core::RakeTask.new
if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
task :default => [:spec]
else
task :default => [:compile, :spec]
end
task :rdoc do
`rdoc -f hanna --main algorithms.rb -t "Ruby Algorithms and Containers Documentation"`
end