Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: e5dea37ec4
Fetching contributors…

Cannot retrieve contributors at this time

72 lines (59 sloc) 1.925 kB
require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/packagetask'
require 'rake/gempackagetask'
$:.unshift(File.dirname(__FILE__) + "/lib")
require 'treemap'
CLEAN.include FileList['test/*.html', 'test/*.png', 'test/*.svg']
CLEAN.include 'docs'
PKG_NAME = 'ruby-treemap'
PKG_VERSION = Treemap::VERSION
desc 'list available tasks'
task :default do
puts "Run 'rake --tasks' for the list of available tasks"
end
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'docs'
rdoc.title = "RubyTreemap"
rdoc.options << "--all"
rdoc.options << "-S"
rdoc.options << "-N"
rdoc.options << "--main=README"
rdoc.rdoc_files.include("README", "EXAMPLES", "TODO", "ChangeLog", "lib/*.rb", "lib/**/*.rb")
end
desc "Run unit tests"
Rake::TestTask.new do |t|
t.libs << "test"
begin
require 'RMagick'
t.pattern = 'test/tc_*.rb'
rescue LoadError
t.test_files = ['tc_color.rb','tc_html.rb']
end
t.verbose = true
end
spec = Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = PKG_NAME
s.summary = "Treemap visualization in ruby"
s.description = %q{Treemap visualization in ruby}
s.version = PKG_VERSION
s.author = "Andrew Bruno"
s.email = "aeb@qnot.org"
s.homepage = "http://rubytreemap.rubyforge.org/"
s.has_rdoc = true
s.extra_rdoc_files = [ "README", "EXAMPLES" ]
s.rdoc_options = [ "--main", "README" ]
s.requirements << 'none'
s.require_path = 'lib'
s.autorequire = 'treemap'
s.files = [ "Rakefile", "TODO", "EXAMPLES", "README", "ChangeLog", "COPYING"]
s.files = s.files + Dir.glob( "lib/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
s.files = s.files + Dir.glob( "test/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
end
Rake::GemPackageTask.new(spec) do |p|
p.need_tar = true
end
Jump to Line
Something went wrong with that request. Please try again.