tus-server 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tus/storage/s3.rb +2 -2
- data/tus-server.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8315eaaeabacbc5351b82d8b5838c293e4f6e1e4
|
4
|
+
data.tar.gz: 3cce2414c7807e141d8373e74616df61a98a1947
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b03e67d013332433940a45ec00d972afe18336c2612f3735bb0ac8f301fad7407e1be13b9cc2c97538fab28cb5fa109c96d3620c8fbc30478f3dee9a1e4b79d5
|
7
|
+
data.tar.gz: 3cfdc95034e79c511bbcdf0d67e5000c568c7e6a05f7f1e32d7271354d9ed7b7efc42c29fcda34da4926fa1a70f1f49c4b8126f2de9b472ad5cb025b84964bbd
|
data/lib/tus/storage/s3.rb
CHANGED
@@ -220,7 +220,6 @@ module Tus
|
|
220
220
|
def copy_parts(objects, multipart_upload)
|
221
221
|
parts = compute_parts(objects, multipart_upload)
|
222
222
|
queue = parts.inject(Queue.new) { |queue, part| queue << part }
|
223
|
-
queue.close
|
224
223
|
|
225
224
|
threads = @thread_count.times.map { copy_part_thread(queue) }
|
226
225
|
|
@@ -243,7 +242,8 @@ module Tus
|
|
243
242
|
Thread.new do
|
244
243
|
begin
|
245
244
|
results = []
|
246
|
-
|
245
|
+
loop do
|
246
|
+
part = queue.deq(true) rescue break
|
247
247
|
results << copy_part(part)
|
248
248
|
end
|
249
249
|
results
|
data/tus-server.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tus-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Janko Marohnić
|
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
190
190
|
version: '0'
|
191
191
|
requirements: []
|
192
192
|
rubyforge_project:
|
193
|
-
rubygems_version: 2.
|
193
|
+
rubygems_version: 2.2.5
|
194
194
|
signing_key:
|
195
195
|
specification_version: 4
|
196
196
|
summary: Ruby server implementation of tus.io, the open protocol for resumable file
|