Sha256: fb07845358ea073a4ac5f69dbae38d1421dd4fac98567cb4bda9432e6e03358d

Contents?: true

Size: 1.53 KB

Versions: 22

Compression:

Stored size: 1.53 KB

Contents

desc 'Release the website and new gem version'
task :deploy => [:check_version, :website, :release] do
  puts "Remember to create SVN tag:"
  puts "svn copy svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/trunk " +
    "svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} "
  puts "Suggested comment:"
  puts "Tagging release #{CHANGES}"
end

# desc 'Runs tasks website_generate and install_gem as a local deployment of the gem'
# task :local_deploy => []
desc "Deploy the gem locally"
task :local_deploy => [:website_generate, :build_local_gem, :install_gem_no_doc]

task :check_version do
  unless ENV['VERSION']
    puts 'Must pass a VERSION=x.y.z release version'
    exit
  end
  unless ENV['VERSION'] == VERS
    puts "Please update your version.rb to match the release version, currently #{VERS}"
    exit
  end
end

desc 'Install the package as a gem, without generating documentation(ri/rdoc)'
task :install_gem_no_doc do
  sh "#{'sudo ' unless Hoe::WINDOZE }gem install pkg/*.gem --no-rdoc --no-ri"
end

desc "Ensure .hoerc exists in the homedirectory. Create it if it doesn't"
task :hoerc do
str =<<-EOE
---
publish_on_announce: true
exclude: !ruby/regexp
  /tmp$|\.git$|log$|local/.*\.rb$|Makefile|\.beam$/
EOE
  hoerc_path = ::File.join( ENV["HOME"], ".hoerc" )
  ::File.open(hoerc_path, "w+") {|f| f << str } unless ::File.file?(hoerc_path)
end

namespace :manifest do
  desc 'Recreate Manifest.txt to include ALL files'
  task :refresh => [:hoerc] do
    `rake check_manifest | patch -p0 > Manifest.txt`
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
auser-poolparty-0.2.69 tasks/deployment.rake
auser-poolparty-0.2.70 tasks/deployment.rake
auser-poolparty-0.2.71 tasks/deployment.rake
auser-poolparty-0.2.72 tasks/deployment.rake
auser-poolparty-0.2.74 tasks/deployment.rake
auser-poolparty-0.2.76 tasks/deployment.rake
auser-poolparty-0.2.77 tasks/deployment.rake
auser-poolparty-0.2.78 tasks/deployment.rake
auser-poolparty-0.2.79 tasks/deployment.rake
auser-poolparty-0.2.80 tasks/deployment.rake
auser-poolparty-0.2.81 tasks/deployment.rake
auser-poolparty-0.2.84 tasks/deployment.rake
auser-poolparty-0.2.85 tasks/deployment.rake
auser-poolparty-0.2.88 tasks/deployment.rake
auser-poolparty-0.2.89 tasks/deployment.rake
auser-poolparty-0.2.90 tasks/deployment.rake
auser-poolparty-0.2.91 tasks/deployment.rake
auser-poolparty-0.2.92 tasks/deployment.rake
auser-poolparty-0.2.93 tasks/deployment.rake
auser-poolparty-0.2.94 tasks/deployment.rake