-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
23 lines (21 loc) · 1016 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
task :default do |t|
options = "--colour"
files = FileList['spec/**/*_spec.rb'].map{|f| f.sub(%r{^spec/},'') }
exit system("cd spec && spec #{options} #{files}") ? 0 : 1
end
begin
require 'jeweler'
project_name = 'has_and_belongs_to_many_with_deferred_save'
Jeweler::Tasks.new do |gem|
gem.name = project_name
gem.summary = "Make ActiveRecord defer/postpone saving the records you add to an habtm (has_and_belongs_to_many) association until you call model.save, allowing validation in the style of normal attributes."
gem.email = "[email protected]"
gem.homepage = "http://github.com/TylerRick/has_and_belongs_to_many_with_deferred_save"
gem.authors = ["Tyler Rick", "Alessio Caiazza"]
gem.add_dependency('activerecord')
gem.add_development_dependency('rspec')
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end