Sha256: 0ca6ee2dd5c3c0cf9cb4bb462535d4c09fb00c0839d46d4e3a60eae742cbe531
Contents?: true
Size: 1.09 KB
Versions: 5
Compression:
Stored size: 1.09 KB
Contents
require 'config/requirements' require 'config/hoe' # setup Hoe + all gem configuration Dir['tasks/**/*.rake'].each { |rake| load rake } desc "Clean tmp directory" task :clean_tmp do |t| %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 "Generate gemspec" task :gemspec => [:spec, :clean_tmp, :"manifest:refresh", :local_deploy, :clean_pkg] do |t| res = %x[rake debug_gem] res = res.split("\n")[1..-1].join("\n") ::File.open("#{GEM_NAME.downcase}.gemspec", "w+") do |f| f << res end end desc "Generate gemspec for github" task :gh => [:gemspec] do filepath = ::File.join(::File.dirname(__FILE__), "poolparty.gemspec") data = open(filepath).read spec = eval("$SAFE = 3\n#{data}") yml = YAML.dump spec File.open(filepath, "w+") do |f| f << yml end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
auser-poolparty-0.2.22 | Rakefile |
auser-poolparty-0.2.23 | Rakefile |
auser-poolparty-0.2.24 | Rakefile |
auser-poolparty-0.2.25 | Rakefile |
auser-poolparty-0.2.26 | Rakefile |