Sha256: d92e12e4ea79c89aa60f232e63da9d82a4d87fa97e65b3ea1efc8ff9fea1ed54

Contents?: true

Size: 767 Bytes

Versions: 6

Compression:

Stored size: 767 Bytes

Contents

# frozen_string_literal: true

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 :coverage do
  ENV["COVERAGE"] = "true"
end

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

Rake::Task[:spec].enhance do
  require "simplecov"
  require "coveralls"

  Coveralls::SimpleCov::Formatter.new.format(SimpleCov.result)
end

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

task default: ([:coverage] + ADAPTERS + [:adapter] + [:rubocop])

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
internal-affairs-1.2.0 Rakefile
internal-affairs-1.1.2 Rakefile
internal-affairs-1.1.1 Rakefile
internal-affairs-1.1.0 Rakefile
internal-affairs-1.0.1 Rakefile
internal-affairs-1.0.0 Rakefile