Sha256: bb2e9e56ea15d0ee0546f65b8366ac7b40b36a29a4bef75f9e3e10154354d2ca
Contents?: true
Size: 1.12 KB
Versions: 3
Compression:
Stored size: 1.12 KB
Contents
# # Setup # load 'tasks/redis.rake' $LOAD_PATH.unshift 'lib' require 'resque/tasks' def command?(command) system("type #{command} > /dev/null 2>&1") end # # Tests # require 'rake/testtask' task :default => :test if command?(:rg) desc "Run the test suite with rg" task :test do Dir['test/**/*_test.rb'].each do |f| sh("rg #{f}") end end else Rake::TestTask.new do |test| test.libs << "test" test.test_files = FileList['test/**/*_test.rb'] 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 => [ 'redis: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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
resque-1.16.0 | Rakefile |
resque-1.15.0 | Rakefile |
resque-1.14.0 | Rakefile |