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
This PR addresses these warnings as suggested in the docs and issue above.
This PR needs https://github.com/ueno/ruby-gpgme/pull/153 in order to dev with Ruby 3.x.
Fixes https://github.com/ueno/ruby-gpgme/issues/157