-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
44 lines (37 loc) · 1.34 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
40
41
42
43
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rubygems'
Rake::TestTask.new do |t|
t.test_files = FileList['test/unit/*_test.rb']
t.verbose = true
end
ActiveRecordVersions = %w(3.2.2 3.1.1 3.0.10 2.3.14)
desc "Run all tests, for all tested versions of ActiveRecord"
task :all_tests do
ActiveRecordVersions.each do |ar_version|
cmd = "ACTIVE_RECORD_VERSION=#{ar_version} rake test"
puts cmd
puts `cd . && #{cmd}`
puts
end
end
task :default => :all_tests
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "sample_models"
gem.homepage = "http://github.com/fhwang/sample_models"
gem.license = "MIT"
gem.summary = %Q{A library for making it extremely fast for Rails developers to set up and save ActiveRecord instances when writing test cases}
gem.description = %Q{
A library for making it extremely fast for Rails developers to set up and save ActiveRecord instances when writing test cases. It aims to:
* meet all your validations automatically
* only make you specify the attributes you care about
* give you a rich set of features so you can specify associated values as concisely as possible
* do this with as little configuration as possible
}
gem.email = "francis.hwang@profitably.com"
gem.authors = ["Francis Hwang"]
# dependencies defined in Gemfile
end
Jeweler::RubygemsDotOrgTasks.new