Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require Error on Ruby 3.1.0 - Matrix #1235

Closed
ticktricktrack opened this issue Jan 5, 2022 · 5 comments
Closed

Require Error on Ruby 3.1.0 - Matrix #1235

ticktricktrack opened this issue Jan 5, 2022 · 5 comments

Comments

@ticktricktrack
Copy link

On Ruby 3.1.0 I'm running into a problem loading prawn. It's a Gemfile with 40 gems, including prawn-svg, prawn-gmagick and prawn-table, I'll see if I can make a minimized failing example.

no issues with 3.0.3

An error occurred while loading spec_helper. - Did you mean?
                    rspec ./spec/spec_helper.rb

Failure/Error: require 'prawn'

LoadError:
  cannot load such file -- matrix
# ./spec/spec_helper.rb:6:in `require'
# ./spec/spec_helper.rb:6:in `<top (required)>'
@pointlessone
Copy link
Member

This is fixed in master. I guess it's a duplicate of #1195.

@ticktricktrack
Copy link
Author

Great! I'll wait for the release then!

@jrochkind
Copy link

Hi, I just ran into this too. Will there be a prawn release that includes this fix, for compatibility with ruby 3.1?

@ticktricktrack
Copy link
Author

@jrochkind my solution back in January was

# Fast, Nimble PDF Writer for Ruby
gem 'prawn'

# Can be removed with the next Prawn update
gem 'matrix'

@korrs
Copy link

korrs commented Jul 28, 2022

Faced with the same issue on ruby 3.1.

Getting the same error:
.../ruby-3.1.0/gems/prawn-2.4.0/lib/prawn/transformation_stack.rb:10:in `require': cannot load such file -- matrix (LoadError)

It works with specifying of matrix gem in Gemfile, but I suppose it should work without this hack

hidakatsuya added a commit to hidakatsuya/prawn-disable_word_break that referenced this issue Nov 10, 2023
hidakatsuya added a commit to hidakatsuya/prawn-disable_word_break that referenced this issue Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants