From d13ca5bee719a06d6a15b3b0e8eeb255de89a360 Mon Sep 17 00:00:00 2001 From: Guillaume Grossetie Date: Fri, 15 Mar 2024 01:02:03 +0100 Subject: [PATCH] resolves #444 Replace base64 by string.pack (#445) --- ruby/lib/asciidoctor/extensions/asciidoctor_kroki/extension.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby/lib/asciidoctor/extensions/asciidoctor_kroki/extension.rb b/ruby/lib/asciidoctor/extensions/asciidoctor_kroki/extension.rb index ea839ca..4e41bba 100644 --- a/ruby/lib/asciidoctor/extensions/asciidoctor_kroki/extension.rb +++ b/ruby/lib/asciidoctor/extensions/asciidoctor_kroki/extension.rb @@ -294,7 +294,7 @@ def get_diagram_uri(server_url) end def encode - Base64.urlsafe_encode64(Zlib::Deflate.deflate(@text, 9)) + ([Zlib::Deflate.deflate(@text, 9)].pack 'm0').tr '+/', '-_' end def save(output_dir_path, kroki_client)