Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tests for ActiveRecord 3.0, 3.1, 3.2, 4.0 via Appraisal #25

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
rvm:
- 1.9.3
- 2.0.0

gemfile:
- gemfiles/3.0.gemfile
- gemfiles/3.1.gemfile
- gemfiles/3.2.gemfile
- gemfiles/4.0.gemfile
19 changes: 19 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
appraise "3.0" do
gem "activerecord", "~> 3.0.20"
gem "validates_existence", :path => "../"
end

appraise "3.1" do
gem "activerecord", "~> 3.1.12"
gem "validates_existence", :path => "../"
end

appraise "3.2" do
gem "activerecord", "~> 3.2.15"
gem "validates_existence", :path => "../"
end

appraise "4.0" do
gem "activerecord", "~> 4.0.0"
gem "validates_existence", :path => "../"
end
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source "https://rubygems.org"

gemspec

90 changes: 90 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
PATH
remote: .
specs:
validates_existence (0.9.1)
activerecord (>= 3.0.0)
jeweler
validates_existence

GEM
remote: https://rubygems.org/
specs:
activemodel (4.0.0)
activesupport (= 4.0.0)
builder (~> 3.1.0)
activerecord (4.0.0)
activemodel (= 4.0.0)
activerecord-deprecated_finders (~> 1.0.2)
activesupport (= 4.0.0)
arel (~> 4.0.0)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.0)
i18n (~> 0.6, >= 0.6.4)
minitest (~> 4.2)
multi_json (~> 1.3)
thread_safe (~> 0.1)
tzinfo (~> 0.3.37)
addressable (2.3.5)
appraisal (1.0.0.beta1)
bundler
rake
thor (~> 0.18.1)
arel (4.0.1)
atomic (1.1.14)
builder (3.1.4)
faraday (0.8.8)
multipart-post (~> 1.2.0)
git (1.2.6)
github_api (0.10.1)
addressable
faraday (~> 0.8.1)
hashie (>= 1.2)
multi_json (~> 1.4)
nokogiri (~> 1.5.2)
oauth2
hashie (2.0.5)
highline (1.6.20)
httpauth (0.2.0)
i18n (0.6.5)
jeweler (1.8.8)
builder
bundler (~> 1.0)
git (>= 1.2.5)
github_api (= 0.10.1)
highline (>= 1.6.15)
nokogiri (= 1.5.10)
rake
rdoc
json (1.8.1)
jwt (0.1.8)
multi_json (>= 1.5)
minitest (4.7.5)
multi_json (1.8.2)
multi_xml (0.5.5)
multipart-post (1.2.0)
nokogiri (1.5.10)
oauth2 (0.9.2)
faraday (~> 0.8)
httpauth (~> 0.2)
jwt (~> 0.1.4)
multi_json (~> 1.0)
multi_xml (~> 0.5)
rack (~> 1.2)
rack (1.5.2)
rake (10.1.0)
rdoc (4.0.1)
json (~> 1.4)
sqlite3 (1.3.7)
thor (0.18.1)
thread_safe (0.1.3)
atomic
tzinfo (0.3.38)

PLATFORMS
ruby

DEPENDENCIES
appraisal (>= 1.0.0.beta)
minitest (~> 4.0)
sqlite3
validates_existence!
19 changes: 8 additions & 11 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require "rubygems"
require "rake"
require "rake/testtask"
require "rake/clean"
Expand All @@ -17,22 +18,18 @@ begin
jewel.description = "A library for validating model association existence."
jewel.authors = ["Tanel Suurhans", "Tarmo Lehtpuu"]
jewel.files = FileList["rails/*.rb", "lib/**/*.rb", "*.rb", "MIT-LICENCE", "README.markdown"]
jewel.add_dependency "active_record"
jewel.add_dependency "activerecord", ">= 3.0.0"
jewel.add_development_dependency "appraisal", ">= 1.0.0.beta"
jewel.add_development_dependency "minitest", "~> 4.0"
jewel.add_development_dependency "sqlite3"
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end

Rake::TestTask.new(:test_rails3) do |t|
Rake::TestTask.new(:test) do |t|
t.libs << "lib"
t.libs << "test/rails3"
t.pattern = "test/rails3/**/*_test.rb"
t.verbose = true
end

Rake::TestTask.new(:test_rails31) do |t|
t.libs << "lib"
t.libs << "test/rails31"
t.pattern = "test/rails31/**/*_test.rb"
t.libs << "test"
t.pattern = "test/**/*_test.rb"
t.verbose = true
end
8 changes: 8 additions & 0 deletions gemfiles/3.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activerecord", "~> 3.0.20"
gem "validates_existence", :path=>"../"

gemspec :path=>".././"
83 changes: 83 additions & 0 deletions gemfiles/3.0.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
PATH
remote: ..
specs:
validates_existence (0.9.1)
activerecord (>= 3.0.0)
jeweler
validates_existence

GEM
remote: https://rubygems.org/
specs:
activemodel (3.0.20)
activesupport (= 3.0.20)
builder (~> 2.1.2)
i18n (~> 0.5.0)
activerecord (3.0.20)
activemodel (= 3.0.20)
activesupport (= 3.0.20)
arel (~> 2.0.10)
tzinfo (~> 0.3.23)
activesupport (3.0.20)
addressable (2.3.5)
appraisal (1.0.0.beta1)
bundler
rake
thor (~> 0.18.1)
arel (2.0.10)
builder (2.1.2)
faraday (0.8.8)
multipart-post (~> 1.2.0)
git (1.2.6)
github_api (0.10.1)
addressable
faraday (~> 0.8.1)
hashie (>= 1.2)
multi_json (~> 1.4)
nokogiri (~> 1.5.2)
oauth2
hashie (2.0.5)
highline (1.6.20)
httpauth (0.2.0)
i18n (0.5.0)
jeweler (1.8.8)
builder
bundler (~> 1.0)
git (>= 1.2.5)
github_api (= 0.10.1)
highline (>= 1.6.15)
nokogiri (= 1.5.10)
rake
rdoc
json (1.8.1)
jwt (0.1.8)
multi_json (>= 1.5)
minitest (4.7.5)
multi_json (1.8.2)
multi_xml (0.5.5)
multipart-post (1.2.0)
nokogiri (1.5.10)
oauth2 (0.9.2)
faraday (~> 0.8)
httpauth (~> 0.2)
jwt (~> 0.1.4)
multi_json (~> 1.0)
multi_xml (~> 0.5)
rack (~> 1.2)
rack (1.5.2)
rake (10.1.0)
rdoc (4.0.1)
json (~> 1.4)
sqlite3 (1.3.7)
thor (0.18.1)
tzinfo (0.3.38)

PLATFORMS
ruby

DEPENDENCIES
activerecord (~> 3.0.20)
appraisal (>= 1.0.0.beta)
minitest (~> 4.0)
sqlite3
validates_existence!
8 changes: 8 additions & 0 deletions gemfiles/3.1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activerecord", "~> 3.1.12"
gem "validates_existence", :path=>"../"

gemspec :path=>".././"
84 changes: 84 additions & 0 deletions gemfiles/3.1.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
PATH
remote: ..
specs:
validates_existence (0.9.1)
activerecord (>= 3.0.0)
jeweler
validates_existence

GEM
remote: https://rubygems.org/
specs:
activemodel (3.1.12)
activesupport (= 3.1.12)
builder (~> 3.0.0)
i18n (~> 0.6)
activerecord (3.1.12)
activemodel (= 3.1.12)
activesupport (= 3.1.12)
arel (~> 2.2.3)
tzinfo (~> 0.3.29)
activesupport (3.1.12)
multi_json (~> 1.0)
addressable (2.3.5)
appraisal (1.0.0.beta1)
bundler
rake
thor (~> 0.18.1)
arel (2.2.3)
builder (3.0.4)
faraday (0.8.8)
multipart-post (~> 1.2.0)
git (1.2.6)
github_api (0.10.1)
addressable
faraday (~> 0.8.1)
hashie (>= 1.2)
multi_json (~> 1.4)
nokogiri (~> 1.5.2)
oauth2
hashie (2.0.5)
highline (1.6.20)
httpauth (0.2.0)
i18n (0.6.5)
jeweler (1.8.8)
builder
bundler (~> 1.0)
git (>= 1.2.5)
github_api (= 0.10.1)
highline (>= 1.6.15)
nokogiri (= 1.5.10)
rake
rdoc
json (1.8.1)
jwt (0.1.8)
multi_json (>= 1.5)
minitest (4.7.5)
multi_json (1.8.2)
multi_xml (0.5.5)
multipart-post (1.2.0)
nokogiri (1.5.10)
oauth2 (0.9.2)
faraday (~> 0.8)
httpauth (~> 0.2)
jwt (~> 0.1.4)
multi_json (~> 1.0)
multi_xml (~> 0.5)
rack (~> 1.2)
rack (1.5.2)
rake (10.1.0)
rdoc (4.0.1)
json (~> 1.4)
sqlite3 (1.3.7)
thor (0.18.1)
tzinfo (0.3.38)

PLATFORMS
ruby

DEPENDENCIES
activerecord (~> 3.1.12)
appraisal (>= 1.0.0.beta)
minitest (~> 4.0)
sqlite3
validates_existence!
8 changes: 8 additions & 0 deletions gemfiles/3.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activerecord", "~> 3.2.15"
gem "validates_existence", :path=>"../"

gemspec :path=>".././"
Loading