Sha256: 111fdb46b8a143d3c677030baacff2648f736cd6399f027428be7ec0144105b0

Contents?: true

Size: 1.76 KB

Versions: 18

Compression:

Stored size: 1.76 KB

Contents

require 'rubygems'
require 'rake'

begin
  require 'bueller'
  Bueller::Tasks.new
rescue LoadError
  puts "Bueller not available. Install it with: gem install technicalpickles-bueller -s http://gems.github.com"
end

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.pattern = 'test/**/*_test.rb'
  test.verbose = false
end

begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |test|
    test.libs << 'test'
    test.pattern = 'test/**/*_test.rb'
    test.verbose = true
  end
rescue LoadError
  task :rcov do
    abort "RCov is not available. In order to run rcov, you must: gem install spicycode-rcov"
  end
end


task :default => :test

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "existing-project-with-version"
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

# Rubyforge documentation task
begin
  require 'rake/contrib/sshpublisher'
  namespace :rubyforge do
    
    desc "Release gem and RDoc documentation to RubyForge"
    task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
    
    namespace :release do
      desc "Publish RDoc to RubyForge."
      task :docs => [:rdoc] do
        require 'yaml'
        config = YAML.load(
            File.read(File.expand_path('~/.rubyforge/user-config.yml'))
        )

        host = "#{config['username']}@rubyforge.org"
        remote_dir = "/var/www/gforge-projects/existing-project-with-version/"
        local_dir = 'rdoc'

        Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
      end
    end
  end
rescue LoadError
  puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
end

Version data entries

18 entries across 9 versions & 1 rubygems

Version Path
bueller-0.0.9 spec/fixtures/existing-project/Rakefile
bueller-0.0.9 spec/fixtures/existing-project-with-version-constant/Rakefile
bueller-0.0.8 spec/fixtures/existing-project/Rakefile
bueller-0.0.8 spec/fixtures/existing-project-with-version-constant/Rakefile
bueller-0.0.7 spec/fixtures/existing-project-with-version-constant/Rakefile
bueller-0.0.7 spec/fixtures/existing-project/Rakefile
bueller-0.0.6 spec/fixtures/existing-project/Rakefile
bueller-0.0.6 spec/fixtures/existing-project-with-version-constant/Rakefile
bueller-0.0.5 spec/fixtures/existing-project-with-version-constant/Rakefile
bueller-0.0.5 spec/fixtures/existing-project/Rakefile
bueller-0.0.4 spec/fixtures/existing-project/Rakefile
bueller-0.0.4 spec/fixtures/existing-project-with-version-constant/Rakefile
bueller-0.0.3 spec/fixtures/existing-project/Rakefile
bueller-0.0.3 spec/fixtures/existing-project-with-version-constant/Rakefile
bueller-0.0.2 spec/fixtures/existing-project-with-version-constant/Rakefile
bueller-0.0.2 spec/fixtures/existing-project/Rakefile
bueller-0.0.1 spec/fixtures/existing-project/Rakefile
bueller-0.0.1 spec/fixtures/existing-project-with-version-constant/Rakefile