forked from perfectline/validates_existence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
38 lines (34 loc) · 1.23 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
require "rake"
require "rake/testtask"
require "rake/rdoctask"
require "rake/gempackagetask"
require "rake/clean"
desc "Default: run unit tests."
task :default => :test
begin
require "jeweler"
Jeweler::Tasks.new do |jewel|
jewel.name = "validates_existence"
jewel.summary = "Validates Rails model belongs_to association existence."
jewel.email = %w([email protected] [email protected])
jewel.homepage = "http://github.com/perfectline/validates_existence/tree/master"
jewel.description = "A library for validating model association existence."
jewel.authors = ["Tanel Suurhans", "Tarmo Lehtpuu"]
jewel.files = FileList["rails/*.rb", "lib/**/*.rb", "*.rb", "MIT-LICENCE", "README.markdown"]
jewel.add_dependency "active_record"
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
Rake::TestTask.new(:test_rails3) do |t|
t.libs << "lib"
t.libs << "test/rails3"
t.pattern = "test/rails3/**/*_test.rb"
t.verbose = true
end
Rake::TestTask.new(:test_rails31) do |t|
t.libs << "lib"
t.libs << "test/rails31"
t.pattern = "test/rails31/**/*_test.rb"
t.verbose = true
end