Skip to content

Commit

Permalink
Add 'appraisal' to test for Rails 4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Hoofman committed Apr 17, 2015
1 parent dac9985 commit 2069f03
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,3 +5,4 @@ Gemfile.lock
*.swp
*.gem
pkg
+/gemfiles/*.lock
20 changes: 20 additions & 0 deletions Appraisals
@@ -0,0 +1,20 @@
# Install gems for all appraisal definitions:
#
# $ appraisal install
#
# To run tests on different versions:
#
# $ appraisal activesupport_x.x rspec spec

[
[ '3.2', '~> 3.2.0' ],
[ '4.0', '~> 4.0.0' ],
[ '4.1', '~> 4.1.0' ],
[ '4.2', '~> 4.2.0' ],
].each do |ver_name, ver_req|
# Note: for the rake task to work, these definition names must be the same as the corresponding
# filename produced in "gemfiles/", i.e. all characters must be in this set: [A-Za-z0-9_.]
appraise "activesupport_#{ver_name}" do
gem 'activesupport', ver_req
end
end
3 changes: 2 additions & 1 deletion add_http_header.gemspec
Expand Up @@ -18,7 +18,8 @@ Gem::Specification.new do |spec|

spec.add_runtime_dependency 'activesupport', '>= 0'

spec.add_development_dependency 'rspec', '~> 2.8.0'
spec.add_development_dependency 'rspec', '~> 2.99'
spec.add_development_dependency 'bundler', '~> 1.7'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'appraisal'
end
7 changes: 7 additions & 0 deletions gemfiles/activesupport_3.2.gemfile
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activesupport", "~> 3.2.0"

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

source "https://rubygems.org"

gem "activesupport", "~> 4.0.0"

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

source "https://rubygems.org"

gem "activesupport", "~> 4.1.0"

gemspec :path => "../"
7 changes: 7 additions & 0 deletions gemfiles/activesupport_4.2.gemfile
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activesupport", "~> 4.2.0"

gemspec :path => "../"

0 comments on commit 2069f03

Please sign in to comment.