Sha256: 72cbaa3d1a68218b23403b1cb9d0947f6e3a11bfc89e9ddffcb614970d8279de

Contents?: true

Size: 890 Bytes

Versions: 38

Compression:

Stored size: 890 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
    system "gem push #{PKG_PATH}/#{gem_file}"
  end
end

Version data entries

38 entries across 38 versions & 3 rubygems

Version Path
win-0.3.16 tasks/gem.rake
win_gui-0.2.10 tasks/gem.rake
win_gui-0.2.9 tasks/gem.rake
win_gui-0.2.5 tasks/gem.rake
win-0.3.11 tasks/gem.rake
win_gui-0.2.3 tasks/gem.rake
win-0.3.8 tasks/gem.rake
win-0.3.7 tasks/gem.rake
win-0.3.6 tasks/gem.rake
win_gui-0.2.1 tasks/gem.rake
my_scripts-0.1.10 tasks/gem.rake
my_scripts-0.1.9 tasks/gem.rake
win-0.3.5 tasks/gem.rake
win_gui-0.2.0 tasks/gem.rake
my_scripts-0.1.8 tasks/gem.rake
my_scripts-0.1.7 tasks/gem.rake
my_scripts-0.1.5 tasks/gem.rake
win-0.3.3 tasks/gem.rake