When running ruby-gpgme (and the tests in this repo) on Ruby 3.2.0-preview1 you get several warnings:
/workspaces/ruby-gpgme/lib/gpgme/ctx.rb:47: warning: undefining the allocator of T_DATA class GPGME::Ctx
/workspaces/ruby-gpgme/lib/gpgme/data.rb:71: warning: undefining the allocator of T_DATA class GPGME::Data
/workspaces/ruby-gpgme/lib/gpgme/ctx.rb:283: warning: undefining the allocator of T_DATA class GPGME::Key
When running ruby-gpgme (and the tests in this repo) on Ruby 3.2.0-preview1 you get several warnings:
See https://bugs.ruby-lang.org/issues/18007 for details on why this warning has been implemented and https://ruby-doc.org/core-3.1.1/doc/extension_rdoc.html#label-C+struct+to+Ruby+object
From a quick test, this diff resolves the issue (the gemspec change is needed to cater for Ruby 3):
A similar change is probably needed elsewhere, but those locations aren't being tickled by the tests or our usage 😁.