Skip to content

Commit

Permalink
Updates Testing Matrix
Browse files Browse the repository at this point in the history
* Removes EOL Ruby versions below 3.0
* Removes Rails versions below 5 which are now unsupported
  • Loading branch information
nikz committed Apr 24, 2024
1 parent 7c1fa60 commit 1e78933
Show file tree
Hide file tree
Showing 108 changed files with 20 additions and 1,648 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [2.1, 2.2, 2.3, 2.4, 2.5, 2.6]
rails: [4.2.11]
ruby: [3.0, 3.1, 3.2, 3.3]
rails: [6.1.4]
include:
- ruby: 2.1
rails: 3.2.22.5
- ruby: 2.5
- ruby: 3.0
rails: 6.1.4
- ruby: 2.7
- ruby: 3.1
rails: 6.1.4
- ruby: 3.0
- ruby: 3.2
rails: 6.1.4
- ruby: 3.3
rails: 6.1.4

env:
TESTING_RAILS_VERSION: ${{ matrix.rails }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
Expand Down
23 changes: 10 additions & 13 deletions raygun4ruby.gemspec
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'raygun/version'
require "raygun/version"

TESTING_RAILS_VERSION = ENV.fetch("TESTING_RAILS_VERSION", "4.2.11")
TESTING_RAILS_MAJOR_VERSION = TESTING_RAILS_VERSION.split('.').first.to_i
TESTING_RAILS_VERSION = ENV.fetch("TESTING_RAILS_VERSION", "6.1.4")
TESTING_RAILS_MAJOR_VERSION = TESTING_RAILS_VERSION.split(".").first.to_i

Gem::Specification.new do |spec|
spec.name = "raygun4ruby"
Expand All @@ -15,9 +15,9 @@ Gem::Specification.new do |spec|
spec.summary = %q{This gem provides support for Ruby and Ruby on Rails for the Raygun error reporter}
spec.homepage = "https://raygun.com"
spec.license = "MIT"
spec.required_ruby_version = '>= 2.0'
spec.required_ruby_version = ">= 2.0"

spec.files = `git ls-files | grep -Ev '^(test)'`.split("\n")
spec.files = `git ls-files | grep -Ev "^(test)"`.split("\n")
spec.test_files = `git ls-files -- test/*`.split("\n")

spec.executables = []
Expand All @@ -39,13 +39,10 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "pry"
spec.add_development_dependency "webmock"

spec.add_development_dependency 'rails', "= #{TESTING_RAILS_VERSION}"
spec.add_development_dependency 'sqlite3', "~> #{TESTING_RAILS_MAJOR_VERSION <= 5 ? '1.3.13' : '1.4'}"
if TESTING_RAILS_MAJOR_VERSION == 3
spec.add_development_dependency 'test-unit', '~> 3.0'
end
spec.add_development_dependency 'capybara'
spec.add_development_dependency "rspec-rails", '~> 3.9'
spec.add_development_dependency "rails", "= #{TESTING_RAILS_VERSION}"
spec.add_development_dependency "sqlite3", "~> #{TESTING_RAILS_MAJOR_VERSION <= 5 ? "1.3.13" : "1.4"}"
spec.add_development_dependency "capybara"
spec.add_development_dependency "rspec-rails", "~> 3.9"
spec.add_development_dependency "launchy"
spec.add_development_dependency "simplecov"
end
15 changes: 0 additions & 15 deletions spec/rails_applications/3.2.22.5/.gitignore

This file was deleted.

38 changes: 0 additions & 38 deletions spec/rails_applications/3.2.22.5/Gemfile

This file was deleted.

261 changes: 0 additions & 261 deletions spec/rails_applications/3.2.22.5/README.rdoc

This file was deleted.

Loading

0 comments on commit 1e78933

Please sign in to comment.