zip_kit 6.0.1 → 6.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -1
- data/CONTRIBUTING.md +2 -2
- data/README.md +36 -27
- data/Rakefile +10 -2
- data/lib/zip_kit/block_write.rb +4 -1
- data/lib/zip_kit/file_reader.rb +1 -1
- data/lib/zip_kit/output_enumerator.rb +33 -40
- data/lib/zip_kit/rack_tempfile_body.rb +3 -1
- data/lib/zip_kit/rails_streaming.rb +36 -10
- data/lib/zip_kit/remote_io.rb +2 -0
- data/lib/zip_kit/size_estimator.rb +3 -1
- data/lib/zip_kit/streamer/heuristic.rb +3 -8
- data/lib/zip_kit/streamer.rb +23 -26
- data/lib/zip_kit/version.rb +1 -1
- data/lib/zip_kit/write_shovel.rb +2 -2
- data/lib/zip_kit/zip_writer.rb +182 -106
- data/rbi/zip_kit.rbi +2181 -0
- data/zip_kit.gemspec +7 -3
- metadata +20 -5
- data/.codeclimate.yml +0 -7
data/zip_kit.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.version = ZipKit::VERSION
|
8
8
|
spec.authors = ["Julik Tarkhanov", "Noah Berman", "Dmitry Tymchuk", "David Bosveld", "Felix Bünemann"]
|
9
9
|
spec.email = ["me@julik.nl"]
|
10
|
-
|
10
|
+
spec.license = "MIT"
|
11
11
|
spec.summary = "Stream out ZIP files from Ruby. Successor to zip_tricks."
|
12
12
|
spec.description = "Stream out ZIP files from Ruby. Successor to zip_tricks."
|
13
13
|
spec.homepage = "https://github.com/julik/zip_kit"
|
@@ -23,9 +23,12 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.require_paths = ["lib"]
|
24
24
|
|
25
25
|
spec.add_development_dependency "bundler"
|
26
|
-
spec.add_development_dependency "rubyzip", "~> 1"
|
27
26
|
|
28
|
-
|
27
|
+
# zip_kit does not use any runtime dependencies (besides zlib). However, for testing
|
28
|
+
# things quite a few things are used - and for a good reason.
|
29
|
+
|
30
|
+
spec.add_development_dependency "rubyzip", "~> 1" # We test our output with _another_ ZIP library, which is the way to go here
|
31
|
+
spec.add_development_dependency "rack" # For tests where we spin up a server. Both for streaming out and for testing reads over HTTP
|
29
32
|
spec.add_development_dependency "rake", "~> 12.2"
|
30
33
|
spec.add_development_dependency "rspec", "~> 3"
|
31
34
|
spec.add_development_dependency "rspec-mocks", "~> 3.10", ">= 3.10.2" # ruby 3 compatibility
|
@@ -39,4 +42,5 @@ Gem::Specification.new do |spec|
|
|
39
42
|
spec.add_development_dependency "puma"
|
40
43
|
spec.add_development_dependency "actionpack", "~> 5" # For testing RailsStreaming against an actual Rails controller
|
41
44
|
spec.add_development_dependency "nokogiri", "~> 1", ">= 1.13" # Rails 5 does by mistake use an older Nokogiri otherwise
|
45
|
+
spec.add_development_dependency "sord"
|
42
46
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zip_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julik Tarkhanov
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: exe
|
14
14
|
cert_chain: []
|
15
|
-
date: 2024-03-
|
15
|
+
date: 2024-03-23 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: bundler
|
@@ -250,6 +250,20 @@ dependencies:
|
|
250
250
|
- - ">="
|
251
251
|
- !ruby/object:Gem::Version
|
252
252
|
version: '1.13'
|
253
|
+
- !ruby/object:Gem::Dependency
|
254
|
+
name: sord
|
255
|
+
requirement: !ruby/object:Gem::Requirement
|
256
|
+
requirements:
|
257
|
+
- - ">="
|
258
|
+
- !ruby/object:Gem::Version
|
259
|
+
version: '0'
|
260
|
+
type: :development
|
261
|
+
prerelease: false
|
262
|
+
version_requirements: !ruby/object:Gem::Requirement
|
263
|
+
requirements:
|
264
|
+
- - ">="
|
265
|
+
- !ruby/object:Gem::Version
|
266
|
+
version: '0'
|
253
267
|
description: Stream out ZIP files from Ruby. Successor to zip_tricks.
|
254
268
|
email:
|
255
269
|
- me@julik.nl
|
@@ -257,7 +271,6 @@ executables: []
|
|
257
271
|
extensions: []
|
258
272
|
extra_rdoc_files: []
|
259
273
|
files:
|
260
|
-
- ".codeclimate.yml"
|
261
274
|
- ".document"
|
262
275
|
- ".github/workflows/ci.yml"
|
263
276
|
- ".gitignore"
|
@@ -308,9 +321,11 @@ files:
|
|
308
321
|
- lib/zip_kit/write_buffer.rb
|
309
322
|
- lib/zip_kit/write_shovel.rb
|
310
323
|
- lib/zip_kit/zip_writer.rb
|
324
|
+
- rbi/zip_kit.rbi
|
311
325
|
- zip_kit.gemspec
|
312
326
|
homepage: https://github.com/julik/zip_kit
|
313
|
-
licenses:
|
327
|
+
licenses:
|
328
|
+
- MIT
|
314
329
|
metadata:
|
315
330
|
allowed_push_host: https://rubygems.org
|
316
331
|
post_install_message:
|
@@ -328,7 +343,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
328
343
|
- !ruby/object:Gem::Version
|
329
344
|
version: '0'
|
330
345
|
requirements: []
|
331
|
-
rubygems_version: 3.
|
346
|
+
rubygems_version: 3.3.7
|
332
347
|
signing_key:
|
333
348
|
specification_version: 4
|
334
349
|
summary: Stream out ZIP files from Ruby. Successor to zip_tricks.
|