From 6fff421710fa41715a98078fb61cb7f2fe656455 Mon Sep 17 00:00:00 2001 From: Zachary Scott Date: Mon, 4 Nov 2013 20:37:51 -0500 Subject: [PATCH] test against mongoid ~> 3.1.0 with rails ~> 4.0.0 --- Rakefile | 4 ++-- gemfiles/mongoid_31.gemfile | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 gemfiles/mongoid_31.gemfile diff --git a/Rakefile b/Rakefile index 7b477f6..1021afa 100644 --- a/Rakefile +++ b/Rakefile @@ -13,7 +13,7 @@ end task :default => "spec:all" namespace :spec do - %w(active_record_edge active_record_40 active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_30 mongoid_24 mongo_mapper sinatra_13 sinatra_14).each do |gemfile| + %w(active_record_edge active_record_40 active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_31 mongoid_30 mongoid_24 mongo_mapper sinatra_13 sinatra_14).each do |gemfile| desc "Run Tests against #{gemfile}" task gemfile do sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet" @@ -23,7 +23,7 @@ namespace :spec do desc "Run Tests against all ORMs" task :all do - %w(active_record_edge active_record_40 active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_30 mongoid_24 mongo_mapper sinatra_13 sinatra_14).each do |gemfile| + %w(active_record_edge active_record_40 active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_31 mongoid_30 mongoid_24 mongo_mapper sinatra_13 sinatra_14).each do |gemfile| sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet" sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake spec" end diff --git a/gemfiles/mongoid_31.gemfile b/gemfiles/mongoid_31.gemfile new file mode 100644 index 0000000..59d48b6 --- /dev/null +++ b/gemfiles/mongoid_31.gemfile @@ -0,0 +1,12 @@ +source 'https://rubygems.org' + +gem 'railties', '~> 4.0.0' +gem 'mongoid', '~> 3.1.0' +gem 'rspec-rails', '>= 2.0' +gem 'origin' +gem 'moped' +gem 'nokogiri' +gem 'xpath' +gem 'mime-types' + +gemspec :path => '../'