Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (18 sloc) 0.789 kB
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
Jump to Line
Something went wrong with that request. Please try again.