Sha256: a06e78a629e872b11bc4c0c4039d5fff27d029c19e32d7afb0084c7418d7db58

Contents?: true

Size: 1.46 KB

Versions: 6

Compression:

Stored size: 1.46 KB

Contents

require 'config/requirements'
require 'config/jeweler' # setup gem configuration

Dir['tasks/**/*.rake'].each { |rake| load rake }

desc "Clean tmp directory"
task :clean_tmp do |t|
  FileUtils.rm_rf("#{File.dirname(__FILE__)}/Manifest.txt") if ::File.exists?("#{File.dirname(__FILE__)}/Manifest.txt") 
  FileUtils.touch("#{File.dirname(__FILE__)}/Manifest.txt")
  %w(logs tmp).each do |dir|
    FileUtils.rm_rf("#{File.dirname(__FILE__)}/#{dir}") if ::File.exists?("#{File.dirname(__FILE__)}/#{dir}")
  end
end

desc "Remove the pkg directory"
task :clean_pkg do |t|
  %w(pkg).each do |dir|
    FileUtils.rm_rf("#{File.dirname(__FILE__)}/#{dir}") if ::File.exists?("#{File.dirname(__FILE__)}/#{dir}")
  end
end

desc "Packge with timestamp"
task :update_timestamp do
  data = open("PostInstall.txt").read
  str = "Updated at #{Time.now.strftime("%H:%M %D")}"
  
  if data.scan(/Updated at/).empty?
    data = data ^ {:updated_at => str}    
  else
    data = data.gsub(/just installed PoolParty\!(.*)$/, "just installed PoolParty! (#{str})")
  end
  ::File.open("PostInstall.txt", "w+") {|f| f << data }
end

namespace :gem do
  task(:build).prerequisites.unshift :gemspec # Prepend the gemspec generation
  
  desc "Build the gem only if the specs pass"
  task :test_then_build => [:spec, :build]
  
  desc "Build and install the gem only if the specs pass"
  task :test_then_install => [:spec, :install]
end

task :release => [:update_timestamp]

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
auser-poolparty-1.1.1 Rakefile
auser-poolparty-1.1.3 Rakefile
auser-poolparty-1.1.4 Rakefile
auser-poolparty-1.1.5 Rakefile
fairchild-poolparty-1.1.3 Rakefile
fairchild-poolparty-1.1.4 Rakefile