Skip to content

Commit 5caeee8

Browse files
authored
Begin adding CI support for JRuby 10 (#554)
- CI: add experimental testing against jruby 10 - add platform value to the gemspec, and require jar-dependencies version - set debug.fullTrace=true for a consistent environment for tests run in in the JRE
1 parent d752758 commit 5caeee8

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
experimental: true
3939
- ruby-version: 'jruby-9.4'
4040
experimental: true
41+
- ruby-version: 'jruby-10.0'
42+
experimental: true
4143
steps:
4244
- uses: actions/checkout@v6
4345
- name: Set up Ruby ${{ matrix.ruby-version }}
@@ -69,6 +71,8 @@ jobs:
6971
experimental: true
7072
- ruby-version: 'jruby-9.4'
7173
experimental: true
74+
- ruby-version: 'jruby-10.0'
75+
experimental: true
7276
steps:
7377
- uses: actions/checkout@v6
7478
- name: Set up Ruby ${{ matrix.ruby-version }}
@@ -100,6 +104,8 @@ jobs:
100104
experimental: true
101105
- ruby-version: 'jruby-9.4'
102106
experimental: true
107+
- ruby-version: 'jruby-10.0'
108+
experimental: true
103109
steps:
104110
- uses: actions/checkout@v6
105111
- name: Set up Ruby ${{ matrix.ruby-version }}
@@ -131,6 +137,8 @@ jobs:
131137
experimental: true
132138
- ruby-version: 'jruby-9.4'
133139
experimental: true
140+
- ruby-version: 'jruby-10.0'
141+
experimental: true
134142
steps:
135143
- uses: actions/checkout@v6
136144
- name: Set up Ruby ${{ matrix.ruby-version }}

.jrubyrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
debug.fullTrace=true

CHANGELOG.md

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

8+
* [CHANGE] Add CI support for JRuby 10.0 (by [@faisal][])
89
* [CHANGE] Bump cucumber dependency (by [@faisal][])
910
* [BUGFIX] Fixed regression in compatibility with Flog 4.9.0 (by [@faisal][])
1011
* [CHANGE] Bump mocha dependency (by [@faisal][])

rubycritic.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ 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 = ['guilherme.rdems@gmail.com']
1213
spec.description = 'RubyCritic is a tool that wraps around various static analysis gems ' \
@@ -46,6 +47,7 @@ Gem::Specification.new do |spec|
4647
spec.add_development_dependency 'aruba', '~> 2.3.1', '>= 2.3.1'
4748
spec.add_development_dependency 'bundler', '>= 2.0.0'
4849
if RUBY_PLATFORM == 'java'
50+
spec.add_development_dependency 'jar-dependencies', '~> 0.5.5'
4951
spec.add_development_dependency 'pry-debugger-jruby'
5052
else
5153
spec.add_development_dependency 'byebug', '~> 12.0', '>= 10.0'

0 commit comments

Comments
 (0)