Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

decouple AR, DM, mongoid, and mongo_mapper gems from development_depe…

…ndency into independent Gemfiles so we can test each of them separately
  • Loading branch information...
commit cc5a5a85263dbfdbd9f091987eab398874ab792c 1 parent 854d04a
@amatsuda authored
View
1  .gitignore
@@ -2,6 +2,7 @@
.bundle
.idea
Gemfile.lock
+gemfiles/*.lock
pkg/*
doc
View
16 Rakefile
@@ -11,6 +11,22 @@ end
task :default => :spec
+namespace :spec do
+ %w(active_record_32 data_mapper_12 mongoid mongo_mapper).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"
+ end
+ end
+
+ task :all do
+ %w(active_record_32 data_mapper_12 mongoid mongo_mapper).each do |gemfile|
+ sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
+ sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake spec"
+ end
+ end
+end
+
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
View
7 gemfiles/active_record_32.gemfile
@@ -0,0 +1,7 @@
+source :rubygems
+
+gem 'railties', '>= 3.2.3'
+gem 'activerecord', '>= 3.2.3', :require => 'active_record'
+gem 'rspec-rails', '>= 2.0'
+
+gemspec :path => '../'
View
12 gemfiles/data_mapper_12.gemfile
@@ -0,0 +1,12 @@
+source :rubygems
+
+gem 'railties', '>= 3.2.3'
+gem 'dm-core', '>= 1.2.0'
+gem 'dm-migrations', '>= 1.2.0'
+gem 'dm-aggregates', '>= 1.2.0'
+gem 'dm-transactions', '>= 1.2.0'
+gem 'dm-active_model', '>= 1.2.0'
+gem 'dm-sqlite-adapter', '>= 1.2.0'
+gem 'rspec-rails', '>= 2.0'
+
+gemspec :path => '../'
View
7 gemfiles/mongo_mapper.gemfile
@@ -0,0 +1,7 @@
+source :rubygems
+
+gem 'railties', '>= 3.2.3'
+gem 'mongo_mapper', '>= 0.11.0'
+gem 'rspec-rails', '>= 2.0'
+
+gemspec :path => '../'
View
7 gemfiles/mongoid.gemfile
@@ -0,0 +1,7 @@
+source :rubygems
+
+gem 'railties', '>= 3.2.3'
+gem 'mongoid', '>= 2.4.0'
+gem 'rspec-rails', '>= 2.0'
+
+gemspec :path => '../'
View
20 kaminari.gemspec
@@ -21,25 +21,15 @@ Gem::Specification.new do |s|
s.licenses = ['MIT']
- %w{ activesupport actionpack railties }.each do |gem|
- s.add_dependency gem, ['>= 3.0.0']
- end
+ s.add_dependency 'activesupport', ['>= 3.0.0']
+ s.add_dependency 'actionpack', ['>= 3.0.0']
+
s.add_development_dependency 'bundler', ['>= 1.0.0']
+ s.add_development_dependency 'rake', ['>= 0']
s.add_development_dependency 'sqlite3', ['>= 0']
- %w{ activerecord activemodel }.each do |gem|
- s.add_development_dependency gem, ['>= 3.0.0']
- end
+ s.add_development_dependency 'tzinfo', ['>= 0']
s.add_development_dependency 'sinatra', ['>= 1.3']
- s.add_development_dependency 'mongoid', ['>= 2']
- s.add_development_dependency 'mongo_mapper', ['>= 0.9']
- s.add_development_dependency 'dm-core', ['>= 1.1.0']
- s.add_development_dependency 'dm-migrations', ['>= 1.1.0']
- s.add_development_dependency 'dm-aggregates', ['>= 1.1.0']
- s.add_development_dependency 'dm-transactions', ['>= 1.1.0']
- s.add_development_dependency 'dm-active_model', ['>= 1.1.0']
- s.add_development_dependency 'dm-sqlite-adapter', ['>= 1.1.0']
s.add_development_dependency 'rspec', ['>= 0']
- s.add_development_dependency 'rspec-rails', ['>= 0']
s.add_development_dependency 'rr', ['>= 0']
s.add_development_dependency 'capybara', ['>= 1.0']
s.add_development_dependency 'database_cleaner', ['>= 0']
Please sign in to comment.
Something went wrong with that request. Please try again.