finite_machine icon indicating copy to clipboard operation
finite_machine copied to clipboard

Errors with Ruby 3.1.2

Open ghn opened this issue 3 years ago • 1 comments

Describe the problem

Lots of warnings triggered when used with ruby 3.1.2

Steps to reproduce the problem

With ruby 3.1.2

bundle exec rspec

Actual behaviour

Error:

lib/finite_machine/observer.rb:22:in block in cleanup_callback_queue': undefined local variable or method callback_queue' for FiniteMachine::Observer:Class (NameError)

Expected behaviour

Specs pass without warnings

Describe your environment

  • OS version: osx 12
  • Ruby version: 3.1.2
  • FiniteMachine version: master

ghn avatar Apr 28 '22 07:04 ghn

Related PR https://github.com/piotrmurach/finite_machine/pull/74

ghn avatar Apr 28 '22 13:04 ghn

Would be nice to fix this and release, it is not usable on ruby 3.1+ otherwise

dup2 avatar May 01 '23 11:05 dup2