From 2873d9dc8c42c28dec3d7982362382f821b08bcd Mon Sep 17 00:00:00 2001 From: Katsuya Hidaka Date: Fri, 1 Dec 2023 01:46:21 +0900 Subject: [PATCH] prawn requires matrix prawn depends on the matrix gem, which has been bundled since Ruby 3.1. However, a version of prawn that adds the matrix gem dependency has not been released. Therefore, the following error occurs. .../gems/prawn-2.4.0/lib/prawn/transformation_stack.rb:10:in `require': cannot load such file -- matrix (LoadError) --- Gemfile | 1 - thinreports.gemspec | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 9245c6b1..26e90d9b 100644 --- a/Gemfile +++ b/Gemfile @@ -9,7 +9,6 @@ gem 'rake' gem 'minitest' gem 'mocha' gem 'pdf-inspector' -gem 'matrix' gem 'pdf_matcher-testing' # suppress warning: assigned but unused variable - y1 diff --git a/thinreports.gemspec b/thinreports.gemspec index 5f5d61b5..64fe2821 100644 --- a/thinreports.gemspec +++ b/thinreports.gemspec @@ -23,5 +23,6 @@ Gem::Specification.new do |s| s.require_paths = ['lib'] s.add_dependency 'prawn', '>= 2.4.0' + s.add_dependency 'matrix', '~> 0.4' s.add_dependency 'rexml' end