zip_tricks 4.8.2 → 4.8.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4fe6dbf849e9bfc54097d7b20ada38b44abe66815f87edddff320a58e55ff06
4
- data.tar.gz: 47d918893d3c8e4fd2fdd8fdeb284817c0d240eb94f2fd5d2d4903fe520fc2fe
3
+ metadata.gz: a8147080f700510b88cb5e807e61ac71caf94e4b35af7a13162f3fcb0557b221
4
+ data.tar.gz: 507c345c51f13b2874577497359f49179447b494eacf55f81c6a0b182feeb97a
5
5
  SHA512:
6
- metadata.gz: 6e88ffe6668482b081934179973dd5b0e37c8dabacf6ca8cf4f5d835596a90bc98d6fef4aaf98c44ae37946e352e7a51ac6c66113935323762f2fe656f328059
7
- data.tar.gz: fe5ed7fafe4d44946eeadf82ca96bed4da6010f29634780eb9c2532cf414c75b44e9a4464441dda7eec9d95242c53628a91326e3508380778f507bec7194626a
6
+ metadata.gz: 328483359ec8a1ced39c3cdc4b853d0fadda7a2c66e1d36e0babc3e701648e57b212b85b5adf6cc24fc92d63eff28889216b11438252f8d1e32d9bdfbb1acaab
7
+ data.tar.gz: 99d3e5e9a31ab39ae1bbf39128a086373eadb29a44dee76fc4674eb73ad96ed9c190ca50d9d7227b16f6421d01b2603026386d0e16260eec33f417fd68f85e58
@@ -1,3 +1,8 @@
1
+ ## 4.8.3
2
+
3
+ * Fix a leak of 1 zlib deflater object per deflated file when writing out compressed files with data descriptors. The deflater
4
+ needs to be closed explicitly, which we weren't previously doing.
5
+
1
6
  ## 4.8.2
2
7
 
3
8
  * Fix extended timestamp timestamp value encoding. Previously we would use an incorrect encoding for the timestamp value, which would output correct but nonsensical timestamps. The pack specifier is now changed to output the correct value.
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # zip_tricks
2
2
 
3
- [![Build Status](https://travis-ci.org/WeTransfer/zip_tricks.svg?branch=master)](https://travis-ci.org/WeTransfer/zip_tricks)
4
- [![Gem Version](https://badge.fury.io/rb/zip_tricks.svg)](https://badge.fury.io/rb/zip_tricks)
3
+ [![Build Status](https://travis-ci.org/WeTransfer/zip_tricks.svg?branch=backports-v4)](https://travis-ci.org/WeTransfer/zip_tricks)
5
4
 
6
5
  Allows streaming, non-rewinding ZIP file output from Ruby.
7
6
 
@@ -50,6 +50,8 @@ class ZipTricks::Streamer::DeflatedWriter
50
50
  def finish
51
51
  @compressed_io << @deflater.finish until @deflater.finished?
52
52
  {crc32: @crc.to_i, compressed_size: @compressed_io.tell, uncompressed_size: @uncompressed_size}
53
+ ensure
54
+ @deflater.close
53
55
  end
54
56
 
55
57
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZipTricks
4
- VERSION = '4.8.2'
4
+ VERSION = '4.8.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zip_tricks
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.8.2
4
+ version: 4.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julik Tarkhanov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-16 00:00:00.000000000 Z
11
+ date: 2020-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -274,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
274
274
  - !ruby/object:Gem::Version
275
275
  version: '0'
276
276
  requirements: []
277
- rubygems_version: 3.0.3
277
+ rubygems_version: 3.1.2
278
278
  signing_key:
279
279
  specification_version: 4
280
280
  summary: Stream out ZIP files from Ruby