ropencv
ropencv copied to clipboard
Installation fails in Ruby 3.2
Ruby 3.2 removes the previously deprecated Kernel#=~
method.
https://www.ruby-lang.org/en/news/2022/12/25/ruby-3-2-0-released/
https://bugs.ruby-lang.org/issues/15231
With this method removed this line throws NoMethodError:
ext/helper.rb#L84
add_operation Rbind::ROperation.new("conj",self) if size == 2 && !type.name =~/int/
Error message:
/usr/local/bundle/gems/ropencv-0.0.38/ext/helper.rb:84:in `initialize': undefined method `=~' for false:FalseClass (NoMethodError)
from /usr/local/bundle/gems/ropencv-0.0.38/ext/src/../rbind.rb:17:in `new'
from /usr/local/bundle/gems/ropencv-0.0.38/ext/src/../rbind.rb:17:in `block in <main>'
from /usr/local/bundle/gems/ropencv-0.0.38/ext/src/../rbind.rb:15:in `upto'
from /usr/local/bundle/gems/ropencv-0.0.38/ext/src/../rbind.rb:15:in `<main>'