Sha256: c078b0877278cb75ea7a3d568019c77333f8088422e48ff7cea96be963938544

Contents?: true

Size: 698 Bytes

Versions: 2

Compression:

Stored size: 698 Bytes

Contents

require "yard"

spec = Gem::Specification.load(Dir["*.gemspec"].first)

desc "Build the Gem"
task :build do
  sh "gem build #{spec.name}.gemspec"
end

desc "Install #{spec.name} locally"
task :install=>:build do
  sudo = "sudo" unless File.writable?( Gem::ConfigMap[:bindir])
  sh "#{sudo} gem install #{spec.name}-#{spec.version}.gem"
end

desc "Push new release to gemcutter and git tag"
task :push=>["build"] 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 push #{spec.name}-#{spec.version}.gem"
end

YARD::Rake::YardocTask.new do |doc|
  doc.files = FileList["lib/**/*.rb"]
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
resque-forker-1.2.1 Rakefile
resque-forker-1.2.0 Rakefile