Skip to content

Commit

Permalink
Run tests against both Rails 4.0 and 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lautis committed Jun 9, 2014
1 parent a84cba4 commit 18c275d
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.bundle
.config
.yardoc
Gemfile.lock
*emfile.lock
InstalledFiles
_yardoc
coverage
Expand Down
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
language: ruby
gemfile:
- gemfiles/rails_4.0.gemfile
- gemfiles/rails_4.1.gemfile
rvm:
- 1.9.3
- 2.0.0
7 changes: 7 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
appraise "rails-4.0" do
gem 'rails', '~> 4.0.0'
end

appraise "rails-4.1" do
gem 'rails', '~> 4.1.0'
end
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require "rubygems"
require "bundler/setup"
require "bundler/gem_tasks"
require "rake/testtask"

Expand Down
1 change: 1 addition & 0 deletions encrypted_form_fields.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rake"
spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "minitest"
spec.add_development_dependency "appraisal", "~> 1.0"
end
7 changes: 7 additions & 0 deletions gemfiles/rails_4.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rails", "~> 4.0.0"

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

source "https://rubygems.org"

gem "rails", "~> 4.1.0"

gemspec :path => "../"

0 comments on commit 18c275d

Please sign in to comment.