• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

piotrmurach / finite_machine / #405 / 1
98%
master: 98%

Build:
DEFAULT BRANCH: master
Ran 28 Aug 2023 05:31PM UTC
Files 28
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Aug 2023 05:31PM UTC coverage: 73.326% (-25.4%) from 98.746%
#405.1

push

web-flow
Fix defining object finalizer in Ruby 3.1 to reference a UUID string

In Ruby 3.1, accessing callback_queue from a finalizer causes an "undefined
local variable or method `callback_queue' for FiniteMachine::Observer:Class
(NameError)", and callback_queue is never cleaned up. However, making the
finalizer an instance method rather than a class method throws a warning
about the improper use of finalizers. Hence, using the UUID string as
an object to check before it is destroyed by garbage collection for when
to call the finalizer proc.

---------

Co-authored-by: Piotr Murach <pmurach@gmail.com>

646 of 881 relevant lines covered (73.33%)

342.68 hits per line

Source Files on job #405.1
  • Tree
  • List 28
  • Changed 28
  • Source Changed 4
  • Coverage Changed 28
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 405
  • 11dd7f12 on github
  • Prev Job for on master (##404.1)
  • Next Job for on master (##406.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc