Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Setup Appraisals to test against different gems.

  • Loading branch information...
commit f3b4ec3c6f06807d9d9ee68e906aaec05e2197a0 1 parent eed52bc
Bryan Rite bryanrite authored
5 .gitignore
View
@@ -3,8 +3,11 @@
*.swp
**/*.swp
*.gem
-Gemfile.lock
.bundle
+
+gemfiles/*.lock
+Gemfile.lock
+
.rvmrc
.rbenv-version
.ruby-version
26 Appraisals
View
@@ -0,0 +1,26 @@
+appraise "rails 3 activerecord" do
+ gem "activerecord", "~> 3.0.20"
+ gem "supermodel", "~> 0.1.6"
+ gem "with_model", "~> 0.2.5"
+ gem "meta_where"
+
+ gemfile.platforms :jruby do
+ gem "activerecord-jdbcsqlite3-adapter"
+ gem "jdbc-sqlite3"
+ end
+
+ gemfile.platforms :ruby, :mswin, :mingw do
+ gem "sqlite3"
+ end
+end
+
+appraise "rails 3 datamapper" do
+ gem "dm-core", "~> 1.0.2"
+ gem "dm-sqlite-adapter", "~> 1.0.2"
+ gem "dm-migrations", "~> 1.0.2"
+end
+
+appraise "rails 3 mongoid" do
+ gem "bson_ext", "~> 1.1"
+ gem "mongoid", "~> 2.0.0.beta.20"
+end
20 Gemfile
View
@@ -1,23 +1,3 @@
source "https://rubygems.org"
-case ENV["MODEL_ADAPTER"]
-when nil, "active_record"
- # Sqlite for CRuby, Rubinius, including Windows and RubyInstaller
- gem "sqlite3", :platform => [:ruby, :mswin, :mingw]
- # Sqlite for JRuby
- gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
- gem "activerecord", '~> 3.0.20', :require => "active_record"
- gem "with_model", "~> 0.2.5"
- gem "meta_where"
-when "data_mapper"
- gem "dm-core", "~> 1.0.2"
- gem "dm-sqlite-adapter", "~> 1.0.2"
- gem "dm-migrations", "~> 1.0.2"
-when "mongoid"
- gem "bson_ext", "~> 1.1"
- gem "mongoid", "~> 2.0.0.beta.20"
-else
- raise "Unknown model adapter: #{ENV["MODEL_ADAPTER"]}"
-end
-
gemspec
1  cancancan.gemspec
View
@@ -22,6 +22,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'guard-rspec'
s.add_development_dependency 'rails', '~> 3.0.20'
s.add_development_dependency 'supermodel', '~> 0.1.6'
+ s.add_development_dependency 'appraisal', '>= 1.0.0.beta3'
s.rubyforge_project = s.name
s.required_rubygems_version = ">= 1.3.4"
19 gemfiles/rails_3_activerecord.gemfile
View
@@ -0,0 +1,19 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org"
+
+gem "activerecord", "~> 3.0.20"
+gem "supermodel", "~> 0.1.6"
+gem "with_model", "~> 0.2.5"
+gem "meta_where"
+
+platforms :jruby do
+ gem "activerecord-jdbcsqlite3-adapter"
+ gem "jdbc-sqlite3"
+end
+
+platforms :ruby, :mswin, :mingw do
+ gem "sqlite3"
+end
+
+gemspec :path=>".././"
9 gemfiles/rails_3_datamapper.gemfile
View
@@ -0,0 +1,9 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org"
+
+gem "dm-core", "~> 1.0.2"
+gem "dm-sqlite-adapter", "~> 1.0.2"
+gem "dm-migrations", "~> 1.0.2"
+
+gemspec :path=>".././"
8 gemfiles/rails_3_mongoid.gemfile
View
@@ -0,0 +1,8 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org"
+
+gem "bson_ext", "~> 1.1"
+gem "mongoid", "~> 2.0.0.beta.20"
+
+gemspec :path=>".././"
Please sign in to comment.
Something went wrong with that request. Please try again.