-
Notifications
You must be signed in to change notification settings - Fork 7
/
Rakefile
39 lines (33 loc) · 1.26 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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 = "[email protected] or [email protected]"
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