Sha256: 4f44f04c1fb9cee5f0f92d27db5136382f6b192b0f8218d1d14589b96e73786b
Contents?: true
Size: 808 Bytes
Versions: 2
Compression:
Stored size: 808 Bytes
Contents
require 'rake/testtask' Rake::TestTask.new do |t| t.libs << 'test' end desc "Run tests" task :test => :test namespace :gem do desc "build" task :build do puts %x[rm -rf *.gem] puts %x[gem build *.gemspec] end desc "install" task :install do puts %x[gem install *.gem] puts %x[rm -rf *.gem] end desc "release" task :release do gems = Dir.glob("*.gem").length puts gems raise "0 or > 1 gem in directory; aborting!" if gems != 1 puts %x[gem push *.gem] puts %x[rm -rf *.gem] end desc "build & install" task :build_and_install do Rake::Task["gem:build"].invoke Rake::Task["gem:install"].invoke end desc "build & release" task :build_and_release do Rake::Task["gem:build"].invoke Rake::Task["gem:release"].invoke end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
poly-cms-0.1.0 | Rakefile |
owl-cms-0.1.5 | Rakefile |