Sha256: 2c1caf37c092ecb536817a67314c9e6e28cb8804949a24743e91879dc2dac789
Contents?: true
Size: 1.09 KB
Versions: 3
Compression:
Stored size: 1.09 KB
Contents
require 'rdoc/task' require 'rake/contrib/sshpublisher' require 'rspec/core/rake_task' task :default => :spec desc "Run all specs" RSpec::Core::RakeTask.new do |t| t.pattern = "spec/**/*_test.rb" end Rake::RDocTask.new do |rd| rd.main = "README" rd.rdoc_files.include("README", "lib/**/*.rb") rd.rdoc_files.exclude("**/jamis.rb") rd.template = File.expand_path(File.dirname(__FILE__) + "/lib/jamis.rb") rd.options << '--line-numbers' << '--inline-source' end RUBYFORGE_USERNAME = "jameskilton" PROJECT_WEB_PATH = "/var/www/gforge-projects/rbplusplus/rbgccxml" namespace :web do desc "Put the website together" task :build => :rdoc do unless File.directory?("publish") mkdir "publish" end sh "cp -r html/* publish/" end # As part of the rbplusplus project, this just goes in a subfolder desc "Update the website" task :upload => "web:build" do |t| Rake::SshDirPublisher.new("#{RUBYFORGE_USERNAME}@rubyforge.org", PROJECT_WEB_PATH, "publish").upload end desc "Clean up generated web files" task :clean => ["clobber_rdoc"] do rm_rf "publish" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rbgccxml-1.0.4 | Rakefile |
rbgccxml-1.0.3 | Rakefile |
rbgccxml-1.0.2 | Rakefile |