Sha256: 5899796eaf513de7df00880a53f319ff84839c41689ca712e014b01e0853765f

Contents?: true

Size: 1.12 KB

Versions: 60

Compression:

Stored size: 1.12 KB

Contents

#
# Setup
#

load 'lib/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

60 entries across 60 versions & 4 rubygems

Version Path
classiccms-0.3.4 vendor/bundle/gems/resque-1.20.0/Rakefile
classiccms-0.3.3 vendor/bundle/gems/resque-1.20.0/Rakefile
classiccms-0.3.2 vendor/bundle/gems/resque-1.20.0/Rakefile
classiccms-0.3.1 vendor/bundle/gems/resque-1.20.0/Rakefile
classiccms-0.3.0 vendor/bundle/gems/resque-1.20.0/Rakefile
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/resque-1.20.0/Rakefile
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/resque-1.20.0/Rakefile
resque-1.20.0 Rakefile
resque-1.19.0 Rakefile
resque-1.18.6 Rakefile
steini-resque-1.18.5 Rakefile
resque-1.18.5 Rakefile
resque-1.18.4 Rakefile
resque-1.18.3 Rakefile
resque-1.18.2 Rakefile
resque-1.18.1 Rakefile
resque-1.18.0 Rakefile
resque-1.17.1 Rakefile
resque-1.17.0 Rakefile
resque-1.16.1 Rakefile