Skip to content

Commit

Permalink
Support Ruby 3.1
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mkasberg committed May 8, 2022
1 parent abd9336 commit 251a305
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ jobs:
- label: Ruby 3.0
ruby_version: "3.0"
gemfile: Gemfile
# classifier-reborn requires changes to work with Ruby 3.1.
# - label: Ruby 3.1
# ruby_version: "3.1"
# gemfile: Gemfile
- label: Ruby 3.1
ruby_version: "3.1"
gemfile: Gemfile
- label: JRuby 9.3.4.0
ruby_version: "jruby-9.3.4.0"
gemfile: Gemfile-jruby
Expand Down
1 change: 1 addition & 0 deletions classifier-reborn-jruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Gem::Specification.new do |s|
s.extra_rdoc_files = %w[README.markdown LICENSE]

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

s.add_development_dependency('minitest')
s.add_development_dependency('minitest-reporters')
Expand Down
1 change: 1 addition & 0 deletions classifier-reborn.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Gem::Specification.new do |s|
s.extra_rdoc_files = %w[README.markdown LICENSE]

s.add_runtime_dependency('fast-stemmer', '~> 1.0')
s.add_runtime_dependency('matrix', '~> 0.4')

s.add_development_dependency('minitest')
s.add_development_dependency('minitest-reporters')
Expand Down

0 comments on commit 251a305

Please sign in to comment.