Sha256: 69f8384f868b785968f744eda46f6440937c099049d7174e1350692c949f066d

Contents?: true

Size: 1.08 KB

Versions: 4

Compression:

Stored size: 1.08 KB

Contents

# encoding: UTF-8
# !/usr/bin/env ruby

require "rubygems"
require "rake/testtask"
require "rubygems/package_task"
require "rdoc/task"
require "fileutils"

GEM_NAME = "free-image"

# Read the spec file
spec = Gem::Specification.load("#{GEM_NAME}.gemspec")

# Setup generic gem
Gem::PackageTask.new(spec) do |pkg|
  pkg.package_dir = 'pkg'
  pkg.need_tar    = false
end

# RDoc Task
desc "Generate rdoc documentation"
RDoc::Task.new("rdoc") do |rdoc|
  rdoc.rdoc_dir = 'doc'
  rdoc.title    = "FreeImage"
  # Show source inline with line numbers
  rdoc.options << "--line-numbers"
  # Use Hanna - this only works with RDoc 3.1 or greater
  rdoc.generator = 'hanna'
  # Make the readme file the start page for the generated html
  rdoc.main = 'cookbook.rdoc'
  rdoc.rdoc_files = FileList['HISTORY',
                             'LICENSE',
                             '*.rdoc',
                             'lib/**/*.rb']
end

desc "Setup Cookbook"
task :cookbook => :rdoc do
  FileUtils.cp_r("test/images", "doc/cookbook")
end

# Test Task
Rake::TestTask.new do |t|
  t.libs << "test"
  t.verbose = true
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
free-image-0.6.2 Rakefile
free-image-0.6.1 Rakefile
free-image-0.6.0 Rakefile
free-image-0.5.0 Rakefile