Sha256: 14f13bc488035f3f2421a825da3b13e145f0d59d1899f0d89be0d51470fdc5de

Contents?: true

Size: 964 Bytes

Versions: 11

Compression:

Stored size: 964 Bytes

Contents

#!/usr/bin/env rake
# encoding: utf-8

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec) do |spec|
  spec.pattern = FileList['spec/**/*_spec.rb']
end

task :default => "spec:all"
gemfiles = %w(active_record_32 active_record_4 active_record_4_1_1)

namespace :spec do
  desc "Run Tests against all ORMs"
  task :all do
    gemfiles.each do |gemfile|
      sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
      sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake spec"
    end
  end
end

begin
  require 'rdoc/task'

  Rake::RDocTask.new do |rdoc|
    require 'query_report/version'

    rdoc.rdoc_dir = 'rdoc'
    rdoc.title = "Query report #{QueryReport::VERSION}"
    rdoc.rdoc_files.include('README*')
    rdoc.rdoc_files.include('lib/**/*.rb')
  end
rescue LoadError
  puts 'RDocTask is not supported on this VM and platform combination.'
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
query_report-1.2.1 Rakefile
query_report-1.2.0 Rakefile
query_report-1.1.6 Rakefile
query_report-1.1.5 Rakefile
query_report-1.1.4 Rakefile
query_report-1.1.3 Rakefile
query_report-1.1.2 Rakefile
query_report-1.1.1 Rakefile
query_report-1.1.0 Rakefile
query_report-1.0.26 Rakefile
query_report-1.0.25 Rakefile