Skip to content

Commit cf42899

Browse files
committed
Support Ruby 3.1
One of the [changes](https://www.ruby-lang.org/en/news/2021/12/25/ruby-3-1-0-released/) in Ruby 3.1 is that `matrix` is no longer a default gem. As such, we need to add it as a dependency to our gemspec for compatibility with Ruby 3.1.
1 parent 379db2c commit cf42899

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/ci.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@ jobs:
2727
- label: Ruby 3.0
2828
ruby_version: "3.0"
2929
gemfile: Gemfile
30-
# classifier-reborn requires changes to work with Ruby 3.1.
31-
# - label: Ruby 3.1
32-
# ruby_version: "3.1"
33-
# gemfile: Gemfile
30+
- label: Ruby 3.1
31+
ruby_version: "3.1"
32+
gemfile: Gemfile
3433
- label: JRuby 9.3.4.0
3534
ruby_version: "jruby-9.3.4.0"
3635
gemfile: Gemfile-jruby

classifier-reborn-jruby.gemspec

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Gem::Specification.new do |s|
2828
s.extra_rdoc_files = %w[README.markdown LICENSE]
2929

3030
s.add_runtime_dependency('jruby-stemmer-other', '~> 0.0.2')
31+
s.add_runtime_dependency('matrix', '~> 0.4')
3132

3233
s.add_development_dependency('minitest')
3334
s.add_development_dependency('minitest-reporters')

classifier-reborn.gemspec

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Gem::Specification.new do |s|
2727
s.extra_rdoc_files = %w[README.markdown LICENSE]
2828

2929
s.add_runtime_dependency('fast-stemmer', '~> 1.0')
30+
s.add_runtime_dependency('matrix', '~> 0.4')
3031

3132
s.add_development_dependency('minitest')
3233
s.add_development_dependency('minitest-reporters')

0 commit comments

Comments
 (0)