Sha256: 36bdf13f61d6688ff99f19858af5696ff76fd1addf296ed89a115b26e582bcf2

Contents?: true

Size: 952 Bytes

Versions: 6

Compression:

Stored size: 952 Bytes

Contents

require "rake/rdoctask"
require "rake/testtask"

spec = Gem::Specification.load(File.expand_path("sitemap.gemspec", File.dirname(__FILE__)))

desc "Default: run sitemap unit tests."
task :default => :test

desc "Test the sitemap plugin."
Rake::TestTask.new(:test) do |t|
  t.libs << "lib"
  t.pattern = "test/**/*_test.rb"
  t.verbose = true
end

# Create the documentation.
Rake::RDocTask.new do |rdoc|
  rdoc.rdoc_files.include "README.rdoc", "lib/**/*.rb"
  rdoc.options = spec.rdoc_options
end

desc "Push new release to rubyforge and git tag"
task :push do
  sh "git push"
  puts "Tagging version #{spec.version} .."
  sh "git tag v#{spec.version}"
  sh "git push --tag"
  puts "Building and pushing gem .."
  sh "gem build #{spec.name}.gemspec"
  sh "gem push #{spec.name}-#{spec.version}.gem"
end

desc "Install #{spec.name} locally"
task :install do
  sh "gem build #{spec.name}.gemspec"
  sh "gem install #{spec.name}-#{spec.version}.gem"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sitemap-0.2 Rakefile
sitemap-0.2b2 Rakefile
sitemap-0.2b Rakefile
sitemap-0.1 Rakefile
sitemap-0.1b2 Rakefile
sitemap-0.1b Rakefile