Sha256: 8ff51136e9ad271b4e41c6c7f1bdaac460597a884a728aed1351a38cd5f19008

Contents?: true

Size: 513 Bytes

Versions: 5

Compression:

Stored size: 513 Bytes

Contents

require 'bundler/setup'
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'appraisal'

RSpec::Core::RakeTask.new(:spec)

task :default => :all

desc 'Test the plugin under all supported Rails versions.'
task :all do |t|
  exec('bundle exec appraisal rspec')
end

task :perf do
  require 'protector'

  Bundler.require

  %w(ActiveRecord DataMapper Mongoid Sequel).each do |a|
    if (a.constantize rescue nil)
      load "perf/perf_helpers/boot.rb"
      Perf.load a.underscore
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
protector-0.7.7 Rakefile
protector-0.7.6 Rakefile
protector-0.7.4 Rakefile
protector-0.7.3 Rakefile
protector-0.7.2 Rakefile