Sha256: e054e619d76e26183846f3618f881d03450e6be117cfe4c97271bf8f72466147

Contents?: true

Size: 1.26 KB

Versions: 1

Compression:

Stored size: 1.26 KB

Contents

# coding: UTF-8

require 'rake'
require 'rake/testtask'
require 'test/helper'

task :default => [:test_with_active_record, :test_scrooge]

task :test => :default

Rake::TestTask.new( :test_with_active_record ) { |t|
  t.libs << AR_TEST_SUITE << Scrooge::Test.connection() 
  t.test_files = Scrooge::Test.active_record_test_files()
  t.ruby_opts = ["-r #{File.join( File.dirname(__FILE__), 'test', 'setup' )}"]
  t.verbose = true
}

Rake::TestTask.new( :test_scrooge ) { |t|
  t.libs << 'lib'
  t.test_files = Scrooge::Test.test_files()
  t.verbose = true
}

begin
  require 'jeweler'
  Jeweler::Tasks.new do |s|
    s.name = "scrooge"
    s.summary = "Scrooge - Fetch exactly what you need"
    s.email = "lourens@methodmissing.com or sdsykes@gmail.com"
    s.homepage = "http://github.com/methodmissing/scrooge"
    s.description = "An ActiveRecord attribute tracker to ensure production
    Ruby applications only fetch the database content needed to minimize wire traffic
    and reduce conversion overheads to native Ruby types."
    s.authors = ["Lourens Naudé", "Stephen Sykes"]
    s.files = FileList["[A-Z]*", "{lib,test,rails,tasks}/**/*"]
  end
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
methodmissing-scrooge-3.0.0 Rakefile