Sha256: 3132eed074adc54c9e27107d7355f76bdb06e17125a58c686d8fe14832e80a9e
Contents?: true
Size: 389 Bytes
Versions: 1
Compression:
Stored size: 389 Bytes
Contents
require 'zlib' require "massive_sitemap/writer/file" # Write into GZipped File module MassiveSitemap module Writer class GzipFile < File def open_stream ::Zlib::GzipWriter.new(super) end private def filename super + ".gz" end def files Dir[::File.join(options[:document_full], "*.xml.gz")] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
massive_sitemap-2.0.0.rc1 | lib/massive_sitemap/writer/gzip_file.rb |