Skip to content

Commit 22c900c

Browse files
authored
Bump required_ruby_version to 2.7 (#2743)
* Bump minimum rails version in `sentry-rails` to `5.2.0` * Bump minimum sidekiq version in `sentry-sidekiq` to `5.0` * Cleanup CI
1 parent 328e1d2 commit 22c900c

File tree

16 files changed

+25
-90
lines changed

16 files changed

+25
-90
lines changed

.github/workflows/sentry_rails_test.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -31,36 +31,6 @@ jobs:
3131
ruby_version: ${{ fromJson(inputs.versions) }}
3232
rails_version: [6.1.0, 7.0.0, 7.1.0]
3333
include:
34-
- ruby_version: "2.4"
35-
rails_version: 5.0.0
36-
- ruby_version: "2.4"
37-
rails_version: 5.1.0
38-
- ruby_version: "2.4"
39-
rails_version: 5.2.0
40-
- ruby_version: "2.5"
41-
rails_version: 5.0.0
42-
- ruby_version: "2.5"
43-
rails_version: 5.1.0
44-
- ruby_version: "2.5"
45-
rails_version: 5.2.0
46-
- ruby_version: "2.5"
47-
rails_version: 6.0.0
48-
- ruby_version: "2.5"
49-
rails_version: 6.1.0
50-
- ruby_version: "2.6"
51-
rails_version: 5.0.0
52-
- ruby_version: "2.6"
53-
rails_version: 5.1.0
54-
- ruby_version: "2.6"
55-
rails_version: 5.2.0
56-
- ruby_version: "2.6"
57-
rails_version: 6.0.0
58-
- ruby_version: "2.6"
59-
rails_version: 6.1.0
60-
- ruby_version: "2.7"
61-
rails_version: 5.0.0
62-
- ruby_version: "2.7"
63-
rails_version: 5.1.0
6434
- ruby_version: "2.7"
6535
rails_version: 5.2.0
6636
- ruby_version: "2.7"

.github/workflows/sentry_sidekiq_test.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,6 @@ jobs:
3535
ruby_version: ${{ fromJson(inputs.versions) }}
3636
sidekiq_version: ["5.0", "6.5", "7.0"]
3737
include:
38-
- ruby_version: 2.4
39-
sidekiq_version: 5.0
40-
- ruby_version: 2.5
41-
sidekiq_version: 5.0
42-
- ruby_version: 2.5
43-
sidekiq_version: 6.0
44-
- ruby_version: 2.6
45-
sidekiq_version: 5.0
46-
- ruby_version: 2.6
47-
sidekiq_version: 6.0
4838
- ruby_version: jruby-9.4.12.0
4939
sidekiq_version: 5.0
5040
- ruby_version: jruby-9.4.12.0

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
### Breaking Changes
44

5+
- Drop support for rubies below 2.7 [#2743](https://github.com/getsentry/sentry-ruby/pull/2743)
6+
- Drop support for Rails below 5.2.0
7+
- Drop support for Sidekiq below 5.0
58
- Remove deprecated `config.async` [#1894](https://github.com/getsentry/sentry-ruby/pull/1894)
69
- Remove deprecated `Sentry::Metrics` and `config.metrics` and all metrics related code ([#2729](https://github.com/getsentry/sentry-ruby/pull/2729))
710
- Remove deprecated `config.capture_exception_frame_locals`, use `include_local_variables` instead ([#2730](https://github.com/getsentry/sentry-ruby/pull/2730))

Gemfile.dev

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,9 @@ gem "rake", "~> 12.0"
1010
ruby_version = Gem::Version.new(RUBY_VERSION)
1111

1212
# Development tools
13-
if ruby_version >= Gem::Version.new("2.7.0")
14-
gem "debug", github: "ruby/debug", platform: :ruby
15-
gem "irb"
16-
end
17-
18-
if ruby_version >= Gem::Version.new("2.5")
19-
gem "cgi"
20-
end
13+
gem "debug", github: "ruby/debug", platform: :ruby
14+
gem "irb"
15+
gem "cgi"
2116

2217
if ruby_version >= Gem::Version.new("3.4")
2318
gem "drb"
@@ -40,13 +35,8 @@ gem "simplecov"
4035

4136
# Do not change it without checking that `CI=true COVERAGE=true bundle exec rake`
4237
# passes in all projects
43-
if ruby_version >= Gem::Version.new("2.5")
44-
gem "rexml", "3.4.1"
45-
gem "simplecov-cobertura", "~> 3.0"
46-
else
47-
gem "rexml", "3.2.5"
48-
gem "simplecov-cobertura", "~> 1.4.0"
49-
end
38+
gem "rexml", "3.4.1"
39+
gem "simplecov-cobertura", "~> 3.0"
5040

5141
group :rubocop do
5242
gem "rubocop-rails-omakase"

sentry-delayed_job/Gemfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ gem "sentry-rails", path: "../sentry-rails"
1313
gem "delayed_job"
1414
gem "delayed_job_active_record"
1515

16-
gem "rails", "> 5.0.0"
16+
gem "rails", "> 5.2.0"
1717

1818
platform :jruby do
1919
gem "activerecord-jdbcmysql-adapter"
@@ -22,9 +22,7 @@ end
2222

2323
ruby_version = Gem::Version.new(RUBY_VERSION)
2424

25-
if ruby_version < Gem::Version.new("2.5.0")
26-
gem "sqlite3", "~> 1.3.0", platform: :ruby
27-
elsif ruby_version < Gem::Version.new("3.0.0")
25+
if ruby_version < Gem::Version.new("3.0.0")
2826
gem "sqlite3", "~> 1.6.0", platform: :ruby
2927
elsif ruby_version >= Gem::Version.new("3.0.0") && ruby_version < Gem::Version.new("3.1.0")
3028
gem "sqlite3", "~> 1.7.0", platform: :ruby

sentry-delayed_job/sentry-delayed_job.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
1111
spec.license = 'MIT'
1212

1313
spec.platform = Gem::Platform::RUBY
14-
spec.required_ruby_version = '>= 2.4'
14+
spec.required_ruby_version = '>= 2.7'
1515
spec.extra_rdoc_files = ["README.md", "LICENSE.txt"]
1616
spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples|\.rubocop\.yml)'`.split("\n")
1717

sentry-opentelemetry/sentry-opentelemetry.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
1111
spec.license = 'MIT'
1212

1313
spec.platform = Gem::Platform::RUBY
14-
spec.required_ruby_version = '>= 2.4'
14+
spec.required_ruby_version = '>= 2.7'
1515
spec.extra_rdoc_files = ["README.md", "LICENSE.txt"]
1616
spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples|\.rubocop\.yml)'`.split("\n")
1717

sentry-rails/Gemfile

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ rails_version = ENV.fetch("RAILS_VERSION") do
2121
"8.0"
2222
elsif ruby_version >= Gem::Version.new("3.1")
2323
"7.2"
24-
elsif ruby_version >= Gem::Version.new("2.7")
24+
else
2525
"7.1"
26-
elsif ruby_version >= Gem::Version.new("2.4")
27-
"5.2"
2826
end
2927
end
3028

@@ -42,11 +40,7 @@ elsif rails_version >= Gem::Version.new("7.1.0")
4240
elsif rails_version >= Gem::Version.new("6.1.0")
4341
gem "rspec-rails", "~> 4.0"
4442

45-
if ruby_version >= Gem::Version.new("2.7.0")
46-
gem "sqlite3", "~> 1.7.3", platform: :ruby
47-
else
48-
gem "sqlite3", "~> 1.6.9", platform: :ruby
49-
end
43+
gem "sqlite3", "~> 1.7.3", platform: :ruby
5044
else
5145
gem "psych", "~> 3.0.0"
5246
gem "rspec-rails", "~> 4.0"
@@ -58,12 +52,6 @@ else
5852
end
5953
end
6054

61-
if ruby_version < Gem::Version.new("2.5.0")
62-
# https://github.com/flavorjones/loofah/pull/267
63-
# loofah changed the required ruby version in a patch so we need to explicitly pin it
64-
gem "loofah", "2.20.0"
65-
end
66-
6755
gem "mini_magick"
6856

6957
gem "sprockets-rails"

sentry-rails/sentry-rails.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
1111
spec.license = 'MIT'
1212

1313
spec.platform = Gem::Platform::RUBY
14-
spec.required_ruby_version = '>= 2.4'
14+
spec.required_ruby_version = '>= 2.7'
1515
spec.extra_rdoc_files = ["README.md", "LICENSE.txt"]
1616
spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples|\.rubocop\.yml)'`.split("\n")
1717

@@ -30,6 +30,6 @@ Gem::Specification.new do |spec|
3030
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
3131
spec.require_paths = ["lib"]
3232

33-
spec.add_dependency "railties", ">= 5.0"
33+
spec.add_dependency "railties", ">= 5.2.0"
3434
spec.add_dependency "sentry-ruby", "~> 5.28.0"
3535
end

sentry-resque/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ gem "resque-retry", "~> 1.8"
1414

1515
group :rails do
1616
gem "sentry-rails", path: "../sentry-rails"
17-
gem "rails"
17+
gem "rails", "> 5.2.0"
1818
end

0 commit comments

Comments
 (0)