From e4487baafcab64d2b81a5fd7a6b572ac8fa772e2 Mon Sep 17 00:00:00 2001 From: adampweb Date: Sun, 20 Jul 2025 17:13:36 +0200 Subject: [PATCH 1/3] Fix: Handle default case in tidy_bytes --- lib/wayback_machine_downloader/tidy_bytes.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/wayback_machine_downloader/tidy_bytes.rb b/lib/wayback_machine_downloader/tidy_bytes.rb index 62321ea..52222ef 100644 --- a/lib/wayback_machine_downloader/tidy_bytes.rb +++ b/lib/wayback_machine_downloader/tidy_bytes.rb @@ -31,6 +31,7 @@ module TidyBytes when 156 then [197, 147] # LATIN SMALL LIGATURE OE when 158 then [197, 190] # LATIN SMALL LETTER Z WITH CARON when 159 then [197, 184] # LATIN SMALL LETTER Y WITH DIAERESIS + else nil # ANYTHING ELSE... end end.freeze From ffdce7e4ec7d0b2b2f5cecac5b0dc79dd66e1b69 Mon Sep 17 00:00:00 2001 From: adampweb Date: Sun, 20 Jul 2025 17:14:09 +0200 Subject: [PATCH 2/3] Exclude dev enviroment config --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 7f5ff26..ec67ad2 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,7 @@ tmp *.rbc test.rb + +# Dev environment +.vscode +*.code-workspace From 3d37ae10fd1293c3971a601982edb7192b8dc5ea Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 21 Jul 2025 16:45:10 +0000 Subject: [PATCH 3/3] fix: Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-ALPINE322-OPENSSL-10597997 - https://snyk.io/vuln/SNYK-ALPINE322-OPENSSL-10597997 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fdecdbc..1e2d152 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:3.4.4-alpine +FROM ruby:3.4.5-alpine USER root WORKDIR /build