Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

99 lines (67 sloc) 1.579 kb
require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/packagetask'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'rake/testtask'
#$: << 'lib'
load 'rufus-tokyo.gemspec'
load 'lib/rufus/tokyo.rb'
#
# tasks
CLEAN.include('pkg', 'html', 'rdoc')
task :default => [ :clean, :repackage ]
#
# TESTING
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.test_files = FileList['test/test.rb']
t.verbose = true
end
#
# PACKAGING
Rake::GemPackageTask.new($gemspec) do |pkg|
#pkg.need_tar = true
end
Rake::PackageTask.new('rufus-tokyo', Rufus::Tokyo::VERSION) do |pkg|
pkg.need_zip = true
pkg.package_files = FileList[
'Rakefile',
'*.txt',
'lib/**/*',
'test/**/*'
].to_a
#pkg.package_files.delete("MISC.txt")
class << pkg
def package_name
"#{@name}-#{@version}-src"
end
end
end
#
# DOCUMENTATION
#ALLISON=`allison --path`
ALLISON='/Library/Ruby/Gems/1.8/gems/allison-2.0.3/lib/allison.rb'
Rake::RDocTask.new do |rd|
rd.main = 'README.txt'
rd.rdoc_dir = 'html/rufus-tokyo'
rd.rdoc_files.include(
'README.txt',
'CHANGELOG.txt',
'LICENSE.txt',
'CREDITS.txt',
'lib/**/*.rb')
rd.title = 'rufus-tokyo rdoc'
rd.options << '-N' # line numbers
rd.options << '-S' # inline source
rd.template = ALLISON if File.exist?(ALLISON)
end
#
# WEBSITE
task :upload_website => [ :clean, :rdoc ] do
account = 'jmettraux@rubyforge.org'
webdir = '/var/www/gforge-projects/rufus'
sh "rsync -azv -e ssh html/rufus-tokyo #{account}:#{webdir}/"
end
Jump to Line
Something went wrong with that request. Please try again.