Sha256: a29eb0e5f01ed111516896ddf5738718b2337752407fba3a3e672334c9b5f9d7

Contents?: true

Size: 698 Bytes

Versions: 11

Compression:

Stored size: 698 Bytes

Contents

require 'bundler/gem_helper'
Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'

ADAPTERS = %w(mysql2 postgresql sqlite3).freeze

ADAPTERS.each do |adapter|
  desc "Run RSpec code examples for #{adapter} adapter"
  RSpec::Core::RakeTask.new(adapter => "#{adapter}:adapter")

  namespace adapter do
    task :adapter do
      ENV['ADAPTER'] = adapter
    end
  end
end

task :adapter do
  ENV['ADAPTER'] = nil
end

require 'rubocop/rake_task'
RuboCop::RakeTask.new

if ENV['APPRAISAL_INITIALIZED'] || ENV['CI']
  tasks = ADAPTERS + [:adapter]
  tasks += [:rubocop] unless ENV['CI']

  task default: tasks
else
  require 'appraisal'
  Appraisal::Task.new
  task default: :appraisal
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
delayed-0.5.5 Rakefile
delayed-0.5.4 Rakefile
delayed-0.5.3 Rakefile
delayed-0.5.2 Rakefile
delayed-0.5.1 Rakefile
delayed-0.5.0 Rakefile
delayed-0.4.0 Rakefile
delayed-0.3.0 Rakefile
delayed-0.2.0 Rakefile
delayed-0.1.1 Rakefile
delayed-0.1.0 Rakefile