Sha256: b17ab11646aaf897da765db48fa758752852fee3f73fa054bfef083a1da71fe1

Contents?: true

Size: 673 Bytes

Versions: 1

Compression:

Stored size: 673 Bytes

Contents

require 'rake'
require 'rake/testtask'
require 'rdoc/task'
require 'rubygems'
require File.join(File.dirname(__FILE__), 'lib', 'whois', 'version')

desc 'Default: run unit tests.'
task :default => :test

desc 'Test the whois gem.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib' << 'test'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end

Rake::RDocTask.new do |rdoc|
  if File.exist?('VERSION')
    version = File.read('VERSION')
  else
    version = ""
  end

  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'Whois #{version}'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jm81-whois-0.7.0 Rakefile