Sha256: 6158492126d9ba821d57146925bacfbf5a44d98f1a205c0900d0839b5886aa10

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

# Rakefile for File::Tail      -*- ruby -*-

require 'rake/gempackagetask'
require 'rbconfig'

include Config

PKG_NAME = 'term-ansicolor'
PKG_VERSION = File.read('VERSION').chomp
PKG_FILES = Dir.glob("**/*").delete_if { |item|
  item.include?("CVS") or item.include?("pkg")
}

desc "Installing library"
task :install  do
  ruby 'install.rb'
end

desc "Making rdoc documentation"
task :doc do
  ruby 'make_doc.rb'
end

task :clean do
  rm_rf 'doc'
end

spec = Gem::Specification.new do |s|
  s.name = 'term-ansicolor'
  s.version = PKG_VERSION
  s.summary = "Ruby library that colors strings using ANSI escape sequences"
  s.description = ""

  s.files = PKG_FILES

  s.require_path = 'lib'                         # Use these for libraries.

  s.has_rdoc = true
  s.rdoc_options <<
      '--title' <<  'Term::ANSIColor' <<
      '--inline-source' <<
      '--line-numbers'

  s.author = "Florian Frank"
  s.email = "flori@ping.de"
  s.homepage = "http://term-ansicolor.rubyforge.org"
  s.rubyforge_project = "term-ansicolor"
end

Rake::GemPackageTask.new(spec) do |pkg|
  pkg.need_tar = true
  pkg.package_files += PKG_FILES
end

task :release => [:clean, :package ]
  # vim: set et sw=2 ts=2:

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
term-ansicolor-1.0.3 Rakefile