kjvarga / sitemap_generator

SitemapGenerator is a framework-agnostic XML Sitemap generator written in Ruby with automatic Rails integration. It supports Video, News, Image, Mobile, PageMap and Alternate Links sitemap extensions and includes Rake tasks for managing your sitemaps, as well as many other great features.
MIT License
2.44k stars 276 forks source link

Sitemap.xml.gz is not being compressed while uploading to S3 #435

Closed sptsn closed 2 months ago

sptsn commented 2 months ago

After calling SitemapGenerator::Sitemap.create I got a file named sitemap.xml.gz. Then I would like to upload the file to a S3 storage but in SitemapGenerator::S3Adapter there's not any logic related to compressing and I got an uncompressed file with .gz extension as a result. The only place where compression is performed is SitemapGenerator::FileAdapter. So why there's no any gzipping in other adapters?

sptsn commented 2 months ago

sorry, I found calling of SitemapGenerator::FileAdapter in the beginning of each adapter