Sha256: cc976bda0746627624ff19fbca70e12172ed6cc18e53b4f461ba729b65ddb980

Contents?: true

Size: 1.77 KB

Versions: 37

Compression:

Stored size: 1.77 KB

Contents

require 'rubygems'
require 'rake/clean'
require 'rake/gempackagetask'
require 'hanna/rdoctask'
require 'fileutils'
include FileUtils
 
task :default => :test
 
# SPECS ===============================================================
 
desc 'Run specs with unit test style output'
task :test do |t|
  sh "ruby test/*_test.rb"
end

desc 'Run bin/example and tryouts'
task :tryouts do |t|
  sh "ruby bin/example"
end

# PACKAGE =============================================================

name = "drydock"
load "#{name}.gemspec"

version = @spec.version

Rake::GemPackageTask.new(@spec) do |p|
  p.need_tar = true if RUBY_PLATFORM !~ /mswin/
end

task :release => [ :rdoc, :package ]

task :install => [ :rdoc, :package ] do
	sh %{sudo gem install pkg/#{name}-#{version}.gem}
end

task :uninstall => [ :clean ] do
	sh %{sudo gem uninstall #{name}}
end


# Rubyforge Release / Publish Tasks ==================================

desc 'Publish website to rubyforge'
task 'publish:rdoc' => 'doc/index.html' do
  sh "scp -rp doc/* rubyforge.org:/var/www/gforge-projects/#{name}/"
end

task 'publish:gem' => [:package] do |t|
  sh <<-end
    rubyforge add_release -o Any -a CHANGES.txt -f -n README.rdoc #{name} #{name} #{@spec.version} pkg/#{name}-#{@spec.version}.gem &&
    rubyforge add_file -o Any -a CHANGES.txt -f -n README.rdoc #{name} #{name} #{@spec.version} pkg/#{name}-#{@spec.version}.tgz 
  end
end


Rake::RDocTask.new do |t|
	t.rdoc_dir = 'doc'
	t.title    = @spec.summary
	t.options << '--line-numbers' << '-A cattr_accessor=object'
	t.options << '--charset' << 'utf-8'
	t.rdoc_files.include('LICENSE.txt')
	t.rdoc_files.include('README.rdoc')
	t.rdoc_files.include('CHANGES.txt')
	t.rdoc_files.include('bin/*')
	t.rdoc_files.include('lib/*.rb')
end

CLEAN.include [ 'pkg', '*.gem', '.config', 'doc' ]



Version data entries

37 entries across 37 versions & 3 rubygems

Version Path
bone-0.2.3 vendor/drydock-0.6.8/Rakefile
bone-0.2.2 vendor/drydock-0.6.8/Rakefile
bone-0.2.1 vendor/drydock-0.6.8/Rakefile
drydock-0.6.7 Rakefile
drydock-0.6.8 Rakefile
drydock-0.6.6 Rakefile
drydock-0.6.3 Rakefile
drydock-0.6.2 Rakefile
drydock-0.6.1 Rakefile
drydock-0.5.2 Rakefile
drydock-0.5.6 Rakefile
drydock-0.5.1 Rakefile
drydock-0.5.5 Rakefile
drydock-0.6.5 Rakefile
drydock-0.6.0 Rakefile
drydock-0.5.3 Rakefile
drydock-0.5.4 Rakefile