mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
support AR 3.1
This commit is contained in:
parent
97d5f926f3
commit
72339b3178
2 changed files with 9 additions and 2 deletions
4
Rakefile
4
Rakefile
|
@ -12,7 +12,7 @@ end
|
|||
task :default => :spec
|
||||
|
||||
namespace :spec do
|
||||
%w(active_record_32 data_mapper_12 mongoid_24 mongo_mapper sinatra).each do |gemfile|
|
||||
%w(active_record_32 active_record_31 data_mapper_12 mongoid_24 mongo_mapper sinatra).each do |gemfile|
|
||||
task gemfile do
|
||||
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
|
||||
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake -t spec"
|
||||
|
@ -20,7 +20,7 @@ namespace :spec do
|
|||
end
|
||||
|
||||
task :all do
|
||||
%w(active_record_32 data_mapper_12 mongoid_24 mongo_mapper sinatra).each do |gemfile|
|
||||
%w(active_record_32 active_record_31 data_mapper_12 mongoid_24 mongo_mapper sinatra).each do |gemfile|
|
||||
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
|
||||
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake spec"
|
||||
end
|
||||
|
|
7
gemfiles/active_record_31.gemfile
Normal file
7
gemfiles/active_record_31.gemfile
Normal file
|
@ -0,0 +1,7 @@
|
|||
source :rubygems
|
||||
|
||||
gem 'railties', '>= 3.1.5'
|
||||
gem 'activerecord', '>= 3.1.5', :require => 'active_record'
|
||||
gem 'rspec-rails', '>= 2.0'
|
||||
|
||||
gemspec :path => '../'
|
Loading…
Reference in a new issue