Closed tomwang57 closed 5 months ago
On my system with Ruby 3.0.6 it causes no error:
>> RUBY_VERSION
=> "3.0.6"
>> require 'rational'
=> false
>>
Does the following work in irb for you?
Rational(1, 2)
Does the following work in irb for you?
Rational(1, 2)
Yes, this works
On my system with Ruby 3.0.6 it causes no error:
>> RUBY_VERSION => "3.0.6" >> require 'rational' => false >>
It is used in a Rails project with Gemfile like:
...
gem 'mini_exiftool_vendored'
...
And running bundle install
caused the error. But i can't reproduce this error with a branch new project. I will provide more detail if possible.
Add the following line before Bundler.require(*Rails.groups)
fixes the error:
# fix: cannot load such file -- rational
require 'mini_exiftool_vendored'
Don't know why.
ruby version: 2.7.8 bundler version: 2.3.3
It seems that
require 'rational'
is no longer needed to use Rational.