lib/nswtopo/formats/svgz.rb in nswtopo-2.0.0 vs lib/nswtopo/formats/svgz.rb in nswtopo-3.0

- old
+ new

@@ -1,10 +1,10 @@ module NSWTopo module Formats - def render_svgz(svgz_path, external: nil, **options) + def render_svgz(svgz_path, background:, **options) Dir.mktmppath do |temp_dir| svg_path = temp_dir / "svgz-map.svg" - render_svg svg_path, external: external + render_svg svg_path, background: background Zlib::GzipWriter.open svgz_path do |gz| gz.write svg_path.binread end end end