zip_tricks 5.3.0 → 5.3.1

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: 96ce140b83c0f42fa013278de28cf3c2668fcec1bf1150951c6e6a6a00291125
4
- data.tar.gz: f5f3fbca524376d336c04dd3f2e728bc7315187f70cefcaf97958a247b19e95d
3
+ metadata.gz: a9e1ad9dd7452add6a2f9187edecdd366699d81fba9260692ce2a96003401eca
4
+ data.tar.gz: 1f2665b7c3a5c99ce190b5dab76fa9334ac4c6a3307928bab94758acd98bcb56
5
5
  SHA512:
6
- metadata.gz: 9c794589191612f8ceba1fbef03e801a9610a7d29b5593a7d4ceecd27466706de10aa44ceb152771a13fc3aba42b38a8989104704284c4bfd18b14eb3d5828af
7
- data.tar.gz: 65e8f07cd490e0a40a6770064eb76d85d9b43177f5fed7b5c46afa68d9347ae67f4c22e140924a9ae476932856e8ed9cd732d217ee5d7cc643971dac8b92729e
6
+ metadata.gz: 8864d6d56796e49e2024e46aee7cd1ac1c8ea575d757a6fbe6fd62a6e77db94eef6dc5b80bdbeae5bb932536e889fbdab224642862452f5b1acc0020e8a8c906
7
+ data.tar.gz: 67bc05db334c9a54804ac460f14f5919b9049913ee75532da090405f9a5b1f7e792ff4678aec0683a8b2a3136a9799ea3dd88aa3c9995491b28e4e6d88c4ac3a
@@ -1,4 +1,8 @@
1
- ## 5.3
1
+ ## 5.3.1
2
+
3
+ * 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.
4
+
5
+ ## 5.3.0
2
6
 
3
7
  * Raise in `Streamer#close` when the IO offset of the Streamer does not match the size of the written entries. This is a situation which
4
8
  can occur if one adds the local headers, writes the bodies of the files to the socket/output directly, and forgets to adjust the internal
@@ -7,7 +11,7 @@
7
11
  files "straight-ahead" but others aren't - if the ZIP unarchiver uses central directory entries it would be using incorrect offsets.
8
12
  Instead of producing an invalid ZIP, raise an exception which explains what happened and how it can be resolved.
9
13
 
10
- ## 5.2
14
+ ## 5.2.0
11
15
 
12
16
  * Remove `Streamer#add_compressed_entry` and `SizeEstimator#add_compressed_entry`
13
17
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZipTricks
4
- VERSION = '5.3.0'
4
+ VERSION = '5.3.1'
5
5
  end
@@ -57,7 +57,7 @@ class ZipTricks::ZipWriter
57
57
  C_UINT2 = 'v' # Encode a 2-byte unsigned little-endian uint
58
58
  C_UINT8 = 'Q<' # Encode an 8-byte unsigned little-endian uint
59
59
  C_CHAR = 'C' # For bit-encoded strings
60
- C_INT4 = 'N' # Encode a 4-byte signed little-endian int
60
+ C_INT4 = 'l<' # Encode a 4-byte signed little-endian int
61
61
 
62
62
  private_constant :FOUR_BYTE_MAX_UINT,
63
63
  :TWO_BYTE_MAX_UINT,
@@ -385,7 +385,7 @@ class ZipTricks::ZipWriter
385
385
  0x5455, C_UINT2, # tag for this extra block type ("UT")
386
386
  (1 + 4), C_UINT2, # the size of this block (1 byte used for the Flag + 3 longs used for the timestamp)
387
387
  flags, C_CHAR, # encode a single byte
388
- mtime.utc.to_i, C_INT4, # Use a signed long, not the unsigned one used by the rest of the ZIP spec.
388
+ mtime.utc.to_i, C_INT4, # Use a signed int, not the unsigned one used by the rest of the ZIP spec.
389
389
  ]
390
390
  # The atime and ctime can be omitted if not present
391
391
  pack_array(data_and_packspecs)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zip_tricks
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.0
4
+ version: 5.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julik Tarkhanov
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2020-05-19 00:00:00.000000000 Z
14
+ date: 2020-06-16 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler