Sha256: c3c6c1b9e37ce06d5ab605a3424bb9017d584bed6befcc56c275d7ad0961952a

Contents?: true

Size: 1.54 KB

Versions: 9

Compression:

Stored size: 1.54 KB

Contents

desc 'Preps the gem for a new release'
task :prep_for_release do
  require 'rio'
  Rake::Task['manifest:refresh'].invoke
  gemspec = %x[rake debug_gem]
  lines = gemspec.split("\n")
  rio('twitter.gemspec') < lines[1, lines.length-1].join("\n")
end

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 => [:website_generate, :install_gem]

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 => [:clean, :package] do
  sh "#{'sudo ' unless Hoe::WINDOZE }gem install pkg/*.gem --no-rdoc --no-ri"
end

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

namespace :files do
  task :copy do
    files = File.read(File.join(File.dirname(__FILE__), '..', 'Manifest.txt')).split("\n")
    %x[echo '#{files.inspect}' | pbcopy]
  end
end

Version data entries

9 entries across 9 versions & 6 rubygems

Version Path
anthonycrumley-twitter-0.3.8 tasks/deployment.rake
dschn-twitter-0.3.7.1 tasks/deployment.rake
dschn-twitter-0.3.7.2 tasks/deployment.rake
dustin-twitter-0.3.7 tasks/deployment.rake
handcrafted-twitter-0.4.0 tasks/deployment.rake
jnunemaker-twitter-0.3.6 tasks/deployment.rake
jnunemaker-twitter-0.3.7 tasks/deployment.rake
pjdavis-twitter-0.3.8 tasks/deployment.rake
pjdavis-twitter-0.3.9 tasks/deployment.rake