Sha256: 0f53ad16b08a19e57e9788f3cb29593e55b88ca451939798492ab5e9a8958376

Contents?: true

Size: 1.25 KB

Versions: 6

Compression:

Stored size: 1.25 KB

Contents

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 sds@switchstep.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

6 entries across 6 versions & 1 rubygems

Version Path
methodmissing-scrooge-2.0.0 Rakefile
methodmissing-scrooge-2.1.0 Rakefile
methodmissing-scrooge-2.2.0 Rakefile
methodmissing-scrooge-2.2.1 Rakefile
methodmissing-scrooge-2.2.2 Rakefile
methodmissing-scrooge-2.2.3 Rakefile