Sha256: 32598d73b71e59e5d1b437f09af5c1485fc10b84b6fc1aaf4da36e237fb943fe

Contents?: true

Size: 1.35 KB

Versions: 10

Compression:

Stored size: 1.35 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] 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

10 entries across 10 versions & 1 rubygems

Version Path
auser-poolparty-0.2.35 Rakefile
auser-poolparty-0.2.36 Rakefile
auser-poolparty-0.2.37 Rakefile
auser-poolparty-0.2.38 Rakefile
auser-poolparty-0.2.39 Rakefile
auser-poolparty-0.2.40 Rakefile
auser-poolparty-0.2.41 Rakefile
auser-poolparty-0.2.42 Rakefile
auser-poolparty-0.2.44 Rakefile
auser-poolparty-0.2.45 Rakefile