From 07587269080d45a8d83ae44bf467b27a168488c2 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 18 Jun 2023 18:12:59 +0800 Subject: [PATCH] Set cache path for open-uri --- lib/asciidoctor/foodogsquared-extensions.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/asciidoctor/foodogsquared-extensions.rb b/lib/asciidoctor/foodogsquared-extensions.rb index 431a261..312ab27 100644 --- a/lib/asciidoctor/foodogsquared-extensions.rb +++ b/lib/asciidoctor/foodogsquared-extensions.rb @@ -2,6 +2,7 @@ require 'asciidoctor' require 'asciidoctor/extensions' +require 'open-uri/cached' require_relative 'helpers' @@ -21,6 +22,8 @@ require_relative 'musicbrainz-link-inline-macro/extension' require_relative 'flathub-link-inline-macro/extension' require_relative 'repology-link-inline-macro/extension' +OpenURI::Cache.cache_path = '/tmp/open-uri-cache-foodogsquared-website' + Asciidoctor::Extensions.register do inline_macro ManInlineMacro block ChatBlock if @document.basebackend? 'html'