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-0.4.3 lib/skylight/util/gzip.rb
skylight-0.5.0.beta1 lib/skylight/util/gzip.rb
skylight-0.4.2 lib/skylight/util/gzip.rb
skylight-0.4.1 lib/skylight/util/gzip.rb
skylight-0.4.0 lib/skylight/util/gzip.rb
skylight-0.4.0.beta2 lib/skylight/util/gzip.rb
skylight-0.4.0.beta1 lib/skylight/util/gzip.rb
skylight-0.4.0.alpha1 lib/skylight/util/gzip.rb
skylight-0.3.21 lib/skylight/util/gzip.rb
skylight-0.3.20 lib/skylight/util/gzip.rb
skylight-0.3.19 lib/skylight/util/gzip.rb
skylight-0.3.18 lib/skylight/util/gzip.rb
skylight-0.3.17 lib/skylight/util/gzip.rb
skylight-0.3.14 lib/skylight/util/gzip.rb
skylight-0.3.13 lib/skylight/util/gzip.rb
skylight-0.3.12 lib/skylight/util/gzip.rb
skylight-0.3.11 lib/skylight/util/gzip.rb
skylight-0.3.10 lib/skylight/util/gzip.rb
skylight-0.3.8 lib/skylight/util/gzip.rb
skylight-0.3.7 lib/skylight/util/gzip.rb