Skip to content

Commit 0b7ee8f

Browse files
committed
Remove support for Ruby 3.1 and the aligned JRuby 9.4. Begin adding support for JRuby 10
- rubycritic.gemspec: update minimum Ruby version to 3.2 - .rubocop.yml: update target Ruby version to 3.2 - CI: drop Ruby 3.1 and jruby 9.4 (Ruby 3.1), and convert to testing against jruby 10 - add platform value to the gemspec, and require jar-dependencies version
1 parent 83983c3 commit 0b7ee8f

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,14 @@ jobs:
2828
fail-fast: false
2929
matrix:
3030
ruby-version:
31-
- '3.1'
3231
- '3.2'
3332
- '3.3'
3433
- '3.4'
3534
experimental: [false]
3635
include:
3736
- ruby-version: 'ruby-head'
3837
experimental: true
39-
- ruby-version: 'jruby-9.4'
38+
- ruby-version: 'jruby-10'
4039
experimental: true
4140
steps:
4241
- uses: actions/checkout@v4
@@ -58,15 +57,14 @@ jobs:
5857
fail-fast: false
5958
matrix:
6059
ruby-version:
61-
- '3.1'
6260
- '3.2'
6361
- '3.3'
6462
- '3.4'
6563
experimental: [false]
6664
include:
6765
- ruby-version: 'ruby-head'
6866
experimental: true
69-
- ruby-version: 'jruby-9.4'
67+
- ruby-version: 'jruby-10'
7068
experimental: true
7169
steps:
7270
- uses: actions/checkout@v4
@@ -88,15 +86,14 @@ jobs:
8886
fail-fast: false
8987
matrix:
9088
ruby-version:
91-
- '3.1'
9289
- '3.2'
9390
- '3.3'
9491
- '3.4'
9592
experimental: [false]
9693
include:
9794
- ruby-version: 'ruby-head'
9895
experimental: true
99-
- ruby-version: 'jruby-9.4'
96+
- ruby-version: 'jruby-10'
10097
experimental: true
10198
steps:
10299
- uses: actions/checkout@v4
@@ -118,15 +115,14 @@ jobs:
118115
fail-fast: false
119116
matrix:
120117
ruby-version:
121-
- '3.1'
122118
- '3.2'
123119
- '3.3'
124120
- '3.4'
125121
experimental: [false]
126122
include:
127123
- ruby-version: 'ruby-head'
128124
experimental: true
129-
- ruby-version: 'jruby-9.4'
125+
- ruby-version: 'jruby-10'
130126
experimental: true
131127
steps:
132128
- uses: actions/checkout@v4

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ AllCops:
1111
- 'tmp/**/*'
1212
- 'vendor/**/*'
1313
- 'gemfiles/*'
14-
TargetRubyVersion: 3.1
14+
TargetRubyVersion: 3.2
1515

1616
Metrics/BlockLength:
1717
Enabled: false

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* [CHORE] ...
66
* [FEATURE] ...
77

8+
* [CHANGE] Drop support for Ruby 3.1.x and JRuby 9.4 (by [@faisal][])
9+
810
# v4.11.0 / 2025-10-15 [(commits)](https://github.com/whitesmith/rubycritic/compare/v4.10.0...v4.11.0)
911

1012
* [CHANGE] Bump cucumber dependency (by [@faisal][])

rubycritic.gemspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ require 'rubycritic/version'
77
Gem::Specification.new do |spec|
88
spec.name = 'rubycritic'
99
spec.version = RubyCritic::VERSION
10+
spec.platform = RUBY_PLATFORM == 'java' ? Gem::Platform::JAVA : Gem::Platform::RUBY
1011
spec.authors = ['Guilherme Simoes']
1112
spec.email = ['[email protected]']
1213
spec.description = 'RubyCritic is a tool that wraps around various static analysis gems ' \
1314
'to provide a quality report of your Ruby code.'
1415
spec.summary = 'RubyCritic is a Ruby code quality reporter'
1516
spec.homepage = 'https://github.com/whitesmith/rubycritic'
1617
spec.license = 'MIT'
17-
spec.required_ruby_version = '>= 3.1.0'
18+
spec.required_ruby_version = '>= 3.2.0'
1819

1920
spec.files = [
2021
'CHANGELOG.md',
@@ -45,6 +46,7 @@ Gem::Specification.new do |spec|
4546
spec.add_development_dependency 'aruba', '~> 2.3.1', '>= 2.3.1'
4647
spec.add_development_dependency 'bundler', '>= 2.0.0'
4748
if RUBY_PLATFORM == 'java'
49+
spec.add_development_dependency 'jar-dependencies', '~> 0.5.5'
4850
spec.add_development_dependency 'pry-debugger-jruby'
4951
else
5052
spec.add_development_dependency 'byebug', '~> 12.0', '>= 10.0'

0 commit comments

Comments
 (0)