Sha256: 18eb15f2ce0c00c4a1e2754806290f0558c977505a44d9973e46b333885dfa25

Contents?: true

Size: 569 Bytes

Versions: 2

Compression:

Stored size: 569 Bytes

Contents

require 'rake/testtask'
require 'rake/rdoctask'

def command?(command)
  system("type #{command} > /dev/null")
end

#
# Tests
#

task :default => :test

if command? :turn
  desc "Run tests"
  task :test do
    suffix = "-n #{ENV['TEST']}" if ENV['TEST']
    sh "turn test/*_test.rb #{suffix}"
  end
else
  Rake::TestTask.new do |t|
    t.libs << 'lib'
    t.pattern = 'test/**/*_test.rb'
    t.verbose = false
  end
end

#
# Gems
#

begin
  require 'mg'
  MG.new("resque-meta.gemspec")
rescue LoadError
  warn "mg not available."
  warn "Install it with: gem i mg"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
resque-meta-1.0.1 Rakefile
resque-meta-1.0.0 Rakefile