Sha256: 52ad21177f9860c9ba8228993bfa0d3d18806fcde99275181a887a5dc9463328

Contents?: true

Size: 252 Bytes

Versions: 111

Compression:

Stored size: 252 Bytes

Contents

require 'zlib'

module Skylight
  module Util
    module Gzip
      def self.compress(str)
        output = StringIO.new
        gz = Zlib::GzipWriter.new(output)
        gz.write(str)
        gz.close
        output.string
      end
    end
  end
end

Version data entries

111 entries across 111 versions & 2 rubygems

Version Path
skylight-1.4.0.beta lib/skylight/util/gzip.rb
skylight-1.3.1 lib/skylight/util/gzip.rb
skylight-1.3.0 lib/skylight/util/gzip.rb
skylight-1.2.2 lib/skylight/util/gzip.rb
skylight-1.2.1 lib/skylight/util/gzip.rb
skylight-1.2.0 lib/skylight/util/gzip.rb
skylight-1.1.0 lib/skylight/util/gzip.rb
skylight-1.0.1 lib/skylight/util/gzip.rb
skylight-1.0.0 lib/skylight/util/gzip.rb
skylight-0.10.6 lib/skylight/util/gzip.rb
skylight-1.0.0.beta5 lib/skylight/util/gzip.rb
skylight-0.10.5 lib/skylight/util/gzip.rb
skylight-0.10.4 lib/skylight/util/gzip.rb
skylight-1.0.0.beta4 lib/skylight/util/gzip.rb
skylight-1.0.0.beta3 lib/skylight/util/gzip.rb
skylight-0.10.3 lib/skylight/util/gzip.rb
skylight-0.10.2 lib/skylight/util/gzip.rb
skylight-1.0.0.beta2 lib/skylight/util/gzip.rb
skylight-0.10.0 lib/skylight/util/gzip.rb
skylight-0.9.4 lib/skylight/util/gzip.rb