From 7d37684c021e1604a988d00fc0afb56a57ed0e1a Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Sun, 30 Apr 2017 16:14:06 +0200 Subject: [PATCH] Change cache validity to 7 days. Signed-off-by: Thomas Hochstein --- lib/filters/dejure.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/filters/dejure.rb b/lib/filters/dejure.rb index 6543ff6..db55e7c 100644 --- a/lib/filters/dejure.rb +++ b/lib/filters/dejure.rb @@ -1,8 +1,8 @@ # dejure.rb -# a nanoc filter for dejure.org legal integration service -# see +# A nanoc filter for the dejure.org legal integration service +# See # -# adapted from PHP reference implementation +# Adapted from the PHP reference implementation # at # # (c) 2017 Thomas Hochstein @@ -40,9 +40,9 @@ module Nanoc::Filters identifier :dejure type :text - VERSION = '0.2' + VERSION = '0.3-beta' CACHEDIR = 'tmp/dejure-org' - CACHEDAYS = 4 + CACHEDAYS = 7 def run(input, params={}) if !(/ยง|§|Art\.|\/[0-9][0-9](?![0-9\/])| [0-9][0-9]?[\/\.][0-9][0-9](?![0-9\.])|[0-9][0-9], / =~ input) @@ -163,4 +163,4 @@ module Nanoc::Filters end end -end \ No newline at end of file +end