#!/usr/bin/env rake # -*- Ruby -*- require 'rake/gempackagetask' require 'rake/rdoctask' require 'rake/testtask' PKG_VERSION = open(File.join(File.dirname(__FILE__), 'VERSION')) do |f| f.readlines[0].chomp end PKG_NAME = 'debug19' PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" RUBY_FORGE_PROJECT = 'rocky-hacks' RUBY_FORGE_USER = 'rockyb' FILES = FileList[ 'Rakefile', 'VERSION', 'lib/*.rb', 'test/*.rb' ] desc "Create a GNU-style ChangeLog via svn2cl" task :ChangeLog do system("svn2cl --authors=svn2cl_usermap") end # Base GEM Specification default_spec = Gem::Specification.new do |spec| spec.name = "debug19" spec.homepage = "http://rubyforge.org/projects/rocky-hacks/debug19" spec.summary = "Read file with caching" spec.description = <<-EOF LineCache is a module for reading and caching lines. This may be useful for example in a debugger where the same lines are shown many times. EOF spec.version = PKG_VERSION spec.author = "R. Bernstein" spec.email = "rockyb@rubyforge.net" spec.platform = Gem::Platform::RUBY spec.require_path = "lib" spec.files = FILES.to_a spec.required_ruby_version = '>= 1.8.2' spec.date = Time.now spec.rubyforge_project = 'rocky-hacks' # rdoc spec.has_rdoc = true spec.extra_rdoc_files = [] end # Rake task to build the default package Rake::GemPackageTask.new(default_spec) do |pkg| pkg.need_tar = true end