Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ea2d2ae7fb
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (31 sloc) 0.93 kb
require 'rake/testtask'
require 'rake/rdoctask'
spec = Gem::Specification.load(File.expand_path("uuid.gemspec", File.dirname(__FILE__)))
desc "Default Task"
task :default => :test
desc "Run all test cases"
Rake::TestTask.new do |test|
test.verbose = true
test.test_files = ['test/*.rb']
test.warning = 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
Jump to Line
Something went wrong with that request. Please try again.