require 'rubygems' require 'rake' require 'rake/clean' require 'rake/gempackagetask' require 'rake/rdoctask' require 'rake/testtask' PKG_NAME = 'leaves' PKG_VERSION = '0.1.0' PKG_FILES = FileList[ '[A-Z]*', 'lib/**/*' ] spec = Gem::Specification.new do |s| s.name = PKG_NAME s.version = PKG_VERSION s.files = PKG_FILES s.add_dependency('rake', '>= 0.7.3') s.add_dependency('vstudioide', '>= 0.1.0') s.add_dependency('win32rc', '>= 0.1.0') s.add_dependency('xcodeide', '>= 0.1.1') s.author = "Jared Hanson" s.email = "jaredhanson@gmail.com" s.homepage = "http://leaves.rubyforge.org/" s.rubyforge_project = "leaves" s.summary = "A collection of useful Rake tasks." end Rake::GemPackageTask.new(spec) do |pkg| pkg.gem_spec = spec end Rake::RDocTask.new do |rdoc| rdoc.rdoc_dir = 'doc' rdoc.rdoc_files.include('README') rdoc.rdoc_files.include('lib/leaves/**/*.rb') end Rake::TestTask.new do |test| test.libs << "test" test.test_files = FileList['test/test_suite.rb'] end