From 7487d68e9dbc129f53d32752a61f541a4894e789 Mon Sep 17 00:00:00 2001 From: Jarrod Lombardo Date: Tue, 25 Jun 2024 14:25:50 -0700 Subject: [PATCH] update cobertura DTD to a working URL. --- CHANGELOG.md | 5 +++++ lib/slather/coverage_service/cobertura_xml_output.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3df303d..9e89c01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # CHANGELOG +## Unreleased + +* update cobertura DTD to a working URL. + [jarrodlombardo-EventBase](https://github.com/jarrodlombardo-EventBase) + ## v2.8.2 * coverage_info.include_files? needs a default true return value for when source_files is empty. diff --git a/lib/slather/coverage_service/cobertura_xml_output.rb b/lib/slather/coverage_service/cobertura_xml_output.rb index 7879a7f..ee75d7b 100644 --- a/lib/slather/coverage_service/cobertura_xml_output.rb +++ b/lib/slather/coverage_service/cobertura_xml_output.rb @@ -171,7 +171,7 @@ def create_empty_xml_report xml.doc.create_internal_subset( 'coverage', nil, - "https://cobertura.sourceforge.net/xml/coverage-04.dtd" + "https://raw.githubusercontent.com/cobertura/cobertura/master/cobertura/src/site/htdocs/xml/coverage-04.dtd" ) xml.coverage do xml.sources do