Sha256: 5de086ca5200a5f388c9fe19376c929915db2fd8bfbbda87c047ddf071b547ee
Contents?: true
Size: 955 Bytes
Versions: 1
Compression:
Stored size: 955 Bytes
Contents
# # Setup # require 'rake/testtask' $LOAD_PATH.unshift 'lib' require 'resque/tasks' def command?(command) system("type #{command} > /dev/null 2>&1") end # # Tests # task :default => :test desc "Run the test suite" task :test do rg = command?(:rg) Dir['test/**/*_test.rb'].each do |f| ruby(f) end end if command? :kicker desc "Launch Kicker (like autotest)" task :kicker do puts "Kicking... (ctrl+c to cancel)" exec "kicker -e rake test lib examples" end end # # Install # task :install => [ 'dtach:install' ] # # Documentation # begin require 'sdoc_helpers' rescue LoadError end # # Publishing # desc "Push a new version to Gemcutter" task :publish do require 'resque/version' sh "gem build resque.gemspec" sh "gem push resque-#{Resque::Version}.gem" sh "git tag v#{Resque::Version}" sh "git push origin v#{Resque::Version}" sh "git push origin master" sh "git clean -fd" exec "rake pages" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resque-igo-1.12.8 | Rakefile |