RSSAmplifier

Phil Nash · Feb 25, 2018

gzip a file in Ruby

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

At the start of the year I looked into how to better compress the output of a Jekyll site. I’ll write up the results to that soon. For now, here’s how to gzip a file using Ruby. Enter zlib Contained within the Ruby standard library is the Zlib module which gives access to the underlying zlib library . It is used to read and write files in gzip format. Here’s a small program to read in a file,…

Read on philna.sh

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.