require 'rubygems' require 'rake' require 'rake/clean' require 'rake/gempackagetask' require 'rake/rdoctask' require 'rake/testtask' spec = Gem::Specification.new do |s| s.name = 'cloudmade-wu' s.version = '0.1.2' s.has_rdoc = true s.extra_rdoc_files = ['README', 'LICENSE'] s.summary = 'Custom CloudMade Ruby API with Route class renamed to avoid conflicts' s.description = s.summary s.author = 'MarcAliasGus' s.email = 'marc_alias_gus@hotmail.com' s.homepage = 'https://github.com/MarcAliasGus' # s.executables = ['your_executable_here'] s.files = %w(LICENSE README Rakefile) + Dir.glob("{bin,lib,spec}/**/*") s.require_path = "lib" s.bindir = "bin" end Rake::GemPackageTask.new(spec) do |p| p.gem_spec = spec p.need_tar = true p.need_zip = true end Rake::RDocTask.new do |rdoc| files =['README', 'LICENSE', 'lib/**/*.rb'] rdoc.rdoc_files.add(files) rdoc.main = "README" # page to start on rdoc.title = "CloudMadeAPI Docs" rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder rdoc.options << '--line-numbers' end Rake::TestTask.new do |t| t.test_files = FileList['test/test*.rb'] end