Sha256: 60a29f336930711021b60c2cbe6cf47ffa36d49490e9984af1de30f9cfbb9c4b

Contents?: true

Size: 926 Bytes

Versions: 38

Compression:

Stored size: 926 Bytes

Contents

desc "Alias to gem:release"
task :release => 'gem:release'

desc "Alias to gem:install"
task :install => 'gem:install'

desc "Alias to gem:build"
task :gem => 'gem:build'

namespace :gem do
  gem_file = "#{NAME}-#{VERSION}.gem"

  desc "(Re-)Build gem"
  task :build do
    puts "Remove existing gem package"
    rm_rf PKG_PATH
    puts "Build new gem package"
    system "gem build #{NAME}.gemspec"
    puts "Move built gem to package dir"
    mkdir_p PKG_PATH
    mv gem_file, PKG_PATH
  end

  desc "Cleanup already installed gem(s)"
  task :cleanup do
    puts "Cleaning up installed gem(s)"
    system "gem cleanup #{NAME}"
  end

  desc "Build and install gem"
  task :install => :build do
    system "gem install #{PKG_PATH}/#{gem_file}"
  end

  desc "Build and push gem to Gemcutter"
  task :release => [:build, 'git:tag'] do
    puts "Pushing gem to Gemcutter"
    system "gem push #{PKG_PATH}/#{gem_file}"
  end
end

Version data entries

38 entries across 38 versions & 7 rubygems

Version Path
evented-spec-1.0.0.beta1 tasks/gem.rake
evented-spec-0.9.0 tasks/gem.rake
evented-spec-0.4.1 tasks/gem.rake
evented-spec-0.4.0 tasks/gem.rake
ivanvanderbyl-amqp-0.6.13.1 tasks/gem.rake
amqp-spec-0.3.8 tasks/gem.rake
amqp-spec-0.3.7 tasks/gem.rake
amqp-spec-0.3.6 tasks/gem.rake
amqp-spec-0.3.5 tasks/gem.rake
amqp-spec-0.3.4 tasks/gem.rake
amqp-spec-0.3.3 tasks/gem.rake
amqp-spec-0.3.2 tasks/gem.rake
amqp-spec-0.3.1 tasks/gem.rake
amqp-spec-0.3.0 tasks/gem.rake
zmqp-0.0.1 tasks/gem.rake
arvicco-amqp-0.6.13 tasks/gem.rake
amqp-spec-0.2.7 tasks/gem.rake
arvicco-amqp-0.6.11 tasks/gem.rake
arvicco-amqp-0.6.10 tasks/gem.rake
amqp-spec-0.2.6 tasks/gem.rake