Skip to content

Commit

Permalink
! Fix version requirement for gem airbrake
Browse files Browse the repository at this point in the history
* Test against for 2 major supported versions of gem `airbrake`
  • Loading branch information
PikachuEXE committed Jan 4, 2016
1 parent d1b25c4 commit 89c21e2
Show file tree
Hide file tree
Showing 13 changed files with 95 additions and 19 deletions.
15 changes: 10 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ rvm:
- 2.3.0
- ruby-head
gemfile:
- gemfiles/rails_3_2.gemfile
- gemfiles/rails_4_0.gemfile
- gemfiles/rails_4_1.gemfile
- gemfiles/rails_4_2.gemfile
- gemfiles/rails_5_0.gemfile
- gemfiles/rails_3_2_and_airbrake_3.gemfile
- gemfiles/rails_4_0_and_airbrake_3.gemfile
- gemfiles/rails_4_1_and_airbrake_3.gemfile
- gemfiles/rails_4_2_and_airbrake_3.gemfile
- gemfiles/rails_5_0_and_airbrake_3.gemfile
- gemfiles/rails_3_2_and_airbrake_4.gemfile
- gemfiles/rails_4_0_and_airbrake_4.gemfile
- gemfiles/rails_4_1_and_airbrake_4.gemfile
- gemfiles/rails_4_2_and_airbrake_4.gemfile
- gemfiles/rails_5_0_and_airbrake_4.gemfile
matrix:
fast_finish: true
allow_failures:
Expand Down
52 changes: 39 additions & 13 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,23 +1,49 @@
appraise "rails_3_2" do
version = "~> 3.2.20"
gem 'activesupport', version
appraise "rails_3_2_and_airbrake_3" do
gem 'activesupport', "~> 3.2.20"
gem 'airbrake', "~> 3.1"
end

appraise "rails_4_0" do
version = "~> 4.0.12"
gem 'activesupport', version
appraise "rails_4_0_and_airbrake_3" do
gem 'activesupport', "~> 4.0.12"
gem 'airbrake', "~> 3.1"
end

appraise "rails_4_1" do
version = "~> 4.1.8"
gem 'activesupport', version
appraise "rails_4_1_and_airbrake_3" do
gem 'activesupport', "~> 4.1.8"
gem 'airbrake', "~> 3.1"
end

appraise "rails_4_2" do
version = "~> 4.2.0"
gem 'activesupport', version
appraise "rails_4_2_and_airbrake_3" do
gem 'activesupport', "~> 4.2.0"
gem 'airbrake', "~> 3.1"
end

appraise "rails_5_0" do
appraise "rails_5_0_and_airbrake_3" do
gem 'activesupport', ">= 5.0.0.beta1", "<= 5.1"
gem 'airbrake', "~> 3.1"
end

appraise "rails_3_2_and_airbrake_4" do
gem 'activesupport', "~> 3.2.20"
gem 'airbrake', "~> 4.0"
end

appraise "rails_4_0_and_airbrake_4" do
gem 'activesupport', "~> 4.0.12"
gem 'airbrake', "~> 4.0"
end

appraise "rails_4_1_and_airbrake_4" do
gem 'activesupport', "~> 4.1.8"
gem 'airbrake', "~> 4.0"
end

appraise "rails_4_2_and_airbrake_4" do
gem 'activesupport', "~> 4.2.0"
gem 'airbrake', "~> 4.0"
end

appraise "rails_5_0_and_airbrake_4" do
gem 'activesupport', ">= 5.0.0.beta1", "<= 5.1"
gem 'airbrake', "~> 4.0"
end
2 changes: 1 addition & 1 deletion execute_with_rescue_with_airbrake.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]

spec.add_dependency "execute_with_rescue", "~> 0.0", ">= 0.0.1"
spec.add_dependency "airbrake", ">= 3.1", "<= 5"
spec.add_dependency "airbrake", ">= 3.1", "< 5"

spec.add_development_dependency "bundler", "~> 1.5"
spec.add_development_dependency "rake"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
source "https://rubygems.org"

gem "activesupport", "~> 3.2.20"
gem "airbrake", "~> 3.1"

gemspec :path => "../"
8 changes: 8 additions & 0 deletions gemfiles/rails_3_2_and_airbrake_4.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 "activesupport", "~> 3.2.20"
gem "airbrake", "~> 4.0"

gemspec :path => "../"
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
source "https://rubygems.org"

gem "activesupport", "~> 4.0.12"
gem "airbrake", "~> 3.1"

gemspec :path => "../"
8 changes: 8 additions & 0 deletions gemfiles/rails_4_0_and_airbrake_4.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 "activesupport", "~> 4.0.12"
gem "airbrake", "~> 4.0"

gemspec :path => "../"
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
source "https://rubygems.org"

gem "activesupport", "~> 4.1.8"
gem "airbrake", "~> 3.1"

gemspec :path => "../"
8 changes: 8 additions & 0 deletions gemfiles/rails_4_1_and_airbrake_4.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 "activesupport", "~> 4.1.8"
gem "airbrake", "~> 4.0"

gemspec :path => "../"
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
source "https://rubygems.org"

gem "activesupport", "~> 4.2.0"
gem "airbrake", "~> 3.1"

gemspec :path => "../"
8 changes: 8 additions & 0 deletions gemfiles/rails_4_2_and_airbrake_4.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 "activesupport", "~> 4.2.0"
gem "airbrake", "~> 4.0"

gemspec :path => "../"
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
source "https://rubygems.org"

gem "activesupport", ">= 5.0.0.beta1", "<= 5.1"
gem "airbrake", "~> 3.1"

gemspec :path => "../"
8 changes: 8 additions & 0 deletions gemfiles/rails_5_0_and_airbrake_4.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 "activesupport", ">= 5.0.0.beta1", "<= 5.1"
gem "airbrake", "~> 4.0"

gemspec :path => "../"

0 comments on commit 89c21e2

Please sign in to comment.