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

piotrmurach / finite_machine / #406
98%

Build:
DEFAULT BRANCH: master
Ran 28 Aug 2023 05:31PM UTC
Jobs 1
Files 28
Run time 2s
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: 98.297% (-0.4%) from 98.746%
#406

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>

11 of 11 new or added lines in 1 file covered. (100.0%)

866 of 881 relevant lines covered (98.3%)

254.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #406.1 28 Aug 2023 05:31PM UTC 28
98.3
Source Files on build #406
  • Tree
  • List 28
  • Changed 28
  • Source Changed 4
  • Coverage Changed 28
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 11dd7f12 on github
  • Prev Build on master
  • Next Build on master
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

© 2025 Coveralls, Inc