Sha256: 4d144b5acc589c919f30ac8d0fcd695150f41b9a98188f10afbe0a049170abcf

Contents?: true

Size: 1.88 KB

Versions: 12

Compression:

Stored size: 1.88 KB

Contents

require 'rake/clean'
require 'rake/gempackagetask'
require 'hanna/rdoctask'
require 'rake/testtask'
require 'shoulda/tasks'
require 'rake/runtest'
require 'monkeyspecdoc'  # http://jgre.org/2008/09/03/monkeyspecdoc/
require 'fileutils'
include FileUtils
 
task :default => :test


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

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

version = @spec.version

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

task :release => [ "publish:gem", :clean, "publish:rdoc" ] do
  $: << File.join(File.dirname(__FILE__), 'lib')
  require "rudy"
  abort if Drydock.debug?
end

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 ==================================

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

#about 'Public release to rubyforge'
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('Rudyfile')  # why is the formatting f'd?
	t.rdoc_files.include('bin/*')
	t.rdoc_files.include('lib/**/*.rb')
end

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



Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
solutious-rudy-0.9.1 Rakefile
solutious-rudy-0.9.2 Rakefile
solutious-rudy-0.9.3 Rakefile
solutious-rudy-0.9.4 Rakefile
rudy-0.9.5.004 Rakefile
rudy-0.9.5.003 Rakefile
rudy-0.9.5.002 Rakefile
rudy-0.9.5 Rakefile
rudy-0.9.4 Rakefile
rudy-0.9.3 Rakefile
rudy-0.9.2 Rakefile
rudy-0.9.1 Rakefile