-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This MR bumps up the ruby and gems for api_error_handler and test rails apps. - Changes ruby min version for api_error_handler to >=2.5, as ruby 2.3.8 is no longer maintained. This also opens up for the possibility of using the gem with ruby 3.0 - Removes rails_4_test_app as rails 4 is no longer actively maintained - Bumps rails_6_test_app versions. Now runs in travis with ruby 2.5, 2.7, 3.0 - Bumps rails_5_test_app gemfile to use ruby 2.5.1 and new version of rails, which fixes the mimemagic issues. - Updates travis.yml matrix test to test out the new versions - Fixes rubocop offenses due to version update - Fixes issues with XML serialization in the xml_spec.rb
- Loading branch information
Showing
74 changed files
with
240 additions
and
1,467 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,36 @@ | ||
--- | ||
sudo: false | ||
language: ruby | ||
before_install: | ||
- gem update --system | ||
- gem install bundler | ||
install: bundle install --jobs=3 --retry=3 | ||
cache: bundler | ||
branches: | ||
only: | ||
- master | ||
matrix: | ||
jobs: | ||
include: | ||
- rvm: 2.3.8 | ||
gemfile: ./rails_4_test_app/Gemfile | ||
script: cd rails_4_test_app && bundle exec rspec | ||
- rvm: 2.3.8 | ||
- rvm: 2.5.1 | ||
gemfile: ./rails_5_test_app/Gemfile | ||
script: cd rails_5_test_app && bundle exec rspec | ||
- rvm: 2.5.1 | ||
gemfile: ./rails_6_test_app/Gemfile | ||
script: cd rails_6_test_app && bundle exec rspec | ||
- rvm: 2.3.8 | ||
- rvm: 2.7.2 | ||
gemfile: ./rails_6_test_app/Gemfile | ||
script: cd rails_6_test_app && bundle exec rspec | ||
- rvm: 3.0.0 | ||
gemfile: ./rails_6_test_app/Gemfile | ||
script: cd rails_6_test_app && bundle exec rspec | ||
- rvm: 2.7.2 | ||
gemfile: Gemfile | ||
script: bundle exec rubocop | ||
- rvm: 2.7.2 | ||
gemfile: Gemfile | ||
script: bundle exec rspec | ||
- rvm: 3.0.0 | ||
gemfile: Gemfile | ||
script: bundle exec rubocop | ||
- rvm: 2.3.8 | ||
- rvm: 3.0.0 | ||
gemfile: Gemfile | ||
script: bundle exec rspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec| | |
spec.version = ApiErrorHandler::VERSION | ||
spec.authors = ["James Stonehill"] | ||
spec.email = ["[email protected]"] | ||
spec.required_ruby_version = "~> 2.3" | ||
spec.required_ruby_version = ">= 2.5" | ||
|
||
spec.summary = <<~SUMMARY | ||
A gem that helps you easily handle exceptions in your Rails API and return | ||
|
@@ -35,12 +35,13 @@ Gem::Specification.new do |spec| | |
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.require_paths = ["lib"] | ||
|
||
spec.add_dependency "activesupport", ">= 4.0" | ||
spec.add_dependency "actionpack", ">= 4.0" | ||
spec.add_dependency "activesupport", ">= 5.0" | ||
spec.add_dependency "actionpack", ">= 5.0" | ||
spec.add_dependency "rack", ">= 1.0" | ||
|
||
spec.add_development_dependency "bundler", "~> 2.0" | ||
spec.add_development_dependency "rake", "~> 10.0" | ||
spec.add_development_dependency "rspec-rails", "~> 3.0" | ||
spec.add_development_dependency "rubocop", "~> 0.74.0" | ||
spec.add_development_dependency "rake", "~> 13.0" | ||
spec.add_development_dependency "rspec-rails", "~> 3.9" | ||
spec.add_development_dependency "rubocop", "~> 0.80.0" | ||
spec.add_development_dependency "pry-byebug" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
Oops, something went wrong.