Sha256: 8d7933aab75f58e1e8a161a5d51590d6025f70e494d5c2c617a6e3504a0c33bd
Contents?: true
Size: 1.58 KB
Versions: 3
Compression:
Stored size: 1.58 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| %x[rm #{File.dirname(__FILE__)}/Manifest.txt; 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 "Generate a new manifest and a new gem" task :build_local_gem => [:clean_tmp, :spec, :clean_pkg, :"manifest:refresh", :package] desc "Generate gemspec" task :gemspec => [:spec, :clean_tmp, :"manifest:refresh", :local_deploy] 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, :ghgem] 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 desc "Generate github gemspec and latest gem" task :ghgem => [:local_deploy] do `mv #{::File.expand_path(::File.dirname(__FILE__))}/pkg/*.gem #{::File.expand_path(::File.dirname(__FILE__))}/pkg/poolparty-latest.gem` `git add pkg/poolparty-latest.gem -f` end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
auser-poolparty-0.2.46 | Rakefile |
auser-poolparty-0.2.47 | Rakefile |
auser-poolparty-0.2.48 | Rakefile |