require 'bundler/gem_tasks' require File.join([File.dirname(__FILE__),'lib','cocoapods_packager.rb']) def specs(dir) FileList["spec/#{dir}/*_spec.rb"].shuffle.join(' ') end desc 'Runs all the specs' task :spec do sh "bundle exec bacon #{specs('**')}" end task :build do sh "gem build cocoapods-packager-qcloud.gemspec" end task :install => [:build] do sh "gem install cocoapods-packager-qcloud-*.gem" sh "rm -rf cocoapods-packager-qcloud-*.gem" end task :publish => [:build] do sh "gem push cocoapods-packager-qcloud-*.gem" sh "rm -rf cocoapods-packager-qcloud-*.gem" end task :default => :spec