forked from democrats/client_side_validations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
67 lines (56 loc) · 2.02 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
require 'rubygems'
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "client_side_validations"
gem.summary = %Q{Client Side Validations}
gem.description = %Q{Client Side Validations for Rails 2.x and 3.x}
gem.email = "[email protected]"
gem.homepage = "http://github.com/dnclabs/client_side_validations"
gem.authors = ["Brian Cardarella"]
gem.add_dependency 'validation_reflection-active_model', ' 0.3.1'
gem.add_dependency 'json', '1.4.3'
gem.files = Dir.glob("lib/**/*") + Dir.glob("javascript/lib/**/*") + Dir.glob("generators/**/*") + %w(LICENSE README.markdown)
gem.test_files = []
gem.add_development_dependency 'jspec'
gem.add_development_dependency 'rspec'
gem.add_development_dependency 'actionpack', '3.0.0'
gem.add_development_dependency 'activerecord', '3.0.0'
gem.add_development_dependency 'bson_ext', '1.0.4'
gem.add_development_dependency 'mongoid', '2.0.0.beta.17'
gem.add_development_dependency 'crack'
gem.add_development_dependency 'bourne'
gem.add_development_dependency 'rack-test'
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
desc 'RSpec tests'
task :rspec do
system('rake orm')
puts 'ActionView 2.x'
system('spec spec/action_view_2_spec.rb')
puts 'ActionView 3.x'
system('spec spec/action_view_3_spec.rb')
puts 'Middleware'
system('spec spec/middleware_spec.rb')
puts 'Options'
system('spec spec/options_spec.rb')
end
desc 'Run the test suite against ree-1.8.7-2010.01 and 1.9.2-p0'
task :multitest do
system('rvm ree-1.8.7-2010.01@client_side_validations,1.9.2-p0@client_side_validations rake rspec')
end
desc 'ORM Specs'
task :orm do
puts 'ActiveRecord 2.x'
system('spec spec/active_record_2_spec.rb')
puts 'ActiveModel 3.x'
system('spec spec/active_model_3_spec.rb')
end
desc 'Default: the full test suite.'
task :default do
system('rake rspec')
end