tus-server 0.9.0 → 0.9.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
  SHA1:
3
- metadata.gz: 06a1d11d97acd07210d2292e19e57be4c1c13071
4
- data.tar.gz: 3b985f19d49493356931d50fdc1556b00e2c9688
3
+ metadata.gz: 9a311eaa9b3d1a3081b3d0c2ade38825b8f392c9
4
+ data.tar.gz: 8bce1af5d6da40478f2f7fda210f38f43c65f679
5
5
  SHA512:
6
- metadata.gz: 8f25c106249b1bad3a8ee3787ee3d93dbff14b2b1453a55c1d74cddab8a195ad0014eed28c0ddf19f15caaa6fde610ddca0fce42ca4739cc1af1e60939d03091
7
- data.tar.gz: 2675c30b3548d8a6a00976695152129c9b5dd58349e09c9eb2f8b153a10252b39b4aaf2d3d05777b28fc1e7831b56c9e84f533d55c2e434f017347f7dd1f6d3d
6
+ metadata.gz: de7a065c14ed3b11b3ea50c67738d720bdca114af6c0ae6ef5692bad6bdb9389e761df105f037ada860518627d46448e3bbe76fef78ed7043b6f9af4031c46f1
7
+ data.tar.gz: 6fffa14a3bff247d01002e3a457521983d6d60e063235e500a5f7ad5965e685be3493e75d783affe3871a6d8fc47500253a1d7127117e60bc04a0fe45c299ad3
data/README.md CHANGED
@@ -203,9 +203,9 @@ Tus::Server.opts[:storage].expire_files(expiration_date)
203
203
 
204
204
  ## Download
205
205
 
206
- In addition to implementing the tus protocol, tus-ruby-server also comes with
207
- an endpoint for downloading the uploaded file, streaming the file directly from
208
- the storage.
206
+ In addition to implementing the tus protocol, tus-ruby-server also comes with a
207
+ GET endpoint for downloading the uploaded file, which streams the file directly
208
+ from the storage.
209
209
 
210
210
  The endpoint will automatically use the following `Upload-Metadata` values if
211
211
  they're available:
@@ -291,7 +291,7 @@ So, depending on your requirements, you might want to avoid displaying the
291
291
  uploaded file in the browser (making the user download the file directly from
292
292
  the tus server), until it has been moved to a permanent storage. You might also
293
293
  want to consider copying finished uploads to permanent storage directly from
294
- the underlying tus storage, instead of downloading it through the app.
294
+ the underlying tus storage, instead of downloading them through the app.
295
295
 
296
296
  ## Inspiration
297
297
 
@@ -92,6 +92,8 @@ module Tus
92
92
 
93
93
  info.delete("multipart_id")
94
94
  info.delete("multipart_parts")
95
+
96
+ client.head_object(bucket: bucket.name, key: object(uid).key).content_length
95
97
  rescue
96
98
  abort_multipart_upload(multipart_upload) if multipart_upload
97
99
  raise
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "tus-server"
3
- gem.version = "0.9.0"
3
+ gem.version = "0.9.1"
4
4
 
5
5
  gem.required_ruby_version = ">= 2.1"
6
6
 
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: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janko Marohnić