Skip to content

Commit

Permalink
Adding Appraisal Gem Support to test multiple Rails versions, initial…
Browse files Browse the repository at this point in the history
…ly checking for regressions on 3.1 , 3.2 and 4.0
  • Loading branch information
rposborne committed Aug 9, 2013
1 parent 7613d89 commit ef5ba01
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ rvm:
- 2.0.0
- rbx-19mode
- jruby-19mode
gemfile:
#- gemfiles/rails3.0.gemfile
- gemfiles/rails3.1.gemfile
- gemfiles/rails3.2.gemfile
- gemfiles/rails4.0.gemfile
19 changes: 19 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# appraise "rails3.0" do
# gem "rails", "~> 3.0.15"
# gem "mailboxer", :path => "../"
# end

appraise "rails3.1" do
gem "rails", "~> 3.1.6"
gem "mailboxer", :path => "../"
end

appraise "rails3.2" do
gem "rails", "~> 3.2.6"
gem "mailboxer", :path => "../"
end

appraise "rails4.0" do
gem "rails", ">=4.0.0"
gem "mailboxer", :path => "../"
end
4 changes: 4 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
require 'rubygems'
require 'bundler/setup'

require "bundler/gem_tasks"

require 'appraisal'
require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
Expand Down
8 changes: 8 additions & 0 deletions gemfiles/rails3.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "rails", "~> 3.0.15"
gem "mailboxer", :path=>"../"

gemspec :path=>"../"
8 changes: 8 additions & 0 deletions gemfiles/rails3.1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "rails", "~> 3.1.6"
gem "mailboxer", :path=>"../"

gemspec :path=>"../"
8 changes: 8 additions & 0 deletions gemfiles/rails3.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "rails", "~> 3.2.6"
gem "mailboxer", :path=>"../"

gemspec :path=>"../"
8 changes: 8 additions & 0 deletions gemfiles/rails4.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "rails", ">=4.0.0"
gem "mailboxer", :path=>"../"

gemspec :path=>"../"
1 change: 1 addition & 0 deletions mailboxer.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Gem::Specification.new do |s|
end
# Specs
s.add_development_dependency('rspec-rails', '>= 2.6.1')
s.add_development_dependency("appraisal")
# Fixtures
#if RUBY_VERSION >= '1.9.2'
# s.add_development_dependency('factory_girl', '>= 3.0.0')
Expand Down

0 comments on commit ef5ba01

Please sign in to comment.