shrine-tus 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/shrine/storage/tus.rb +1 -1
- data/shrine-tus.gemspec +2 -2
- metadata +13 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6342b775832eed1056e4da535d6a08ce46c29ac8495e9744f6bf824bc82f2538
|
4
|
+
data.tar.gz: a299d569b878d616d935ba7119a9bd9120f9e3a728fa424e135711676c3caceb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2015e386048638e4131ef95d5d3b33209ac76e9798173e07672e4e472a59d18fb1c74b8724d2536ef771c1d7775f8fca4e41ddb308adf2fceba561cc544e1ec6
|
7
|
+
data.tar.gz: 9ab952538612642dec395b506f54dcf4be74cf621deca6daf6d1b3c2a2568ca659506671daff19a2785d919253dd7ba959dd889564303a9c173c0bec3fbca328
|
data/README.md
CHANGED
@@ -37,6 +37,11 @@ Movie.create(video: file_data)
|
|
37
37
|
|
38
38
|
See [shrine-tus-demo] for an example application that uses shrine-tus.
|
39
39
|
|
40
|
+
Note that by default **Shrine won't extract metadata from directly upload
|
41
|
+
files**, instead it will just copy metadata that was extracted on the client
|
42
|
+
side. See [this section][metadata direct uploads] for the rationale and
|
43
|
+
instructions on how to opt in.
|
44
|
+
|
40
45
|
### Approach A: Downloading through tus server
|
41
46
|
|
42
47
|
Conceptionally the simplest setup is to have Shrine download the uploaded file
|
@@ -189,3 +194,4 @@ $ bundle exec rake test
|
|
189
194
|
[HTTP.rb]: https://github.com/httprb/http
|
190
195
|
[shrine-tus-demo]: https://github.com/shrinerb/shrine-tus-demo
|
191
196
|
[tusd]: https://github.com/tus/tusd
|
197
|
+
[metadata direct uploads]: https://github.com/shrinerb/shrine/blob/master/doc/metadata.md#direct-uploads
|
data/lib/shrine/storage/tus.rb
CHANGED
data/shrine-tus.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = "shrine-tus"
|
3
|
-
gem.version = "1.2.
|
3
|
+
gem.version = "1.2.2"
|
4
4
|
|
5
5
|
gem.required_ruby_version = ">= 2.1"
|
6
6
|
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
|
|
15
15
|
|
16
16
|
gem.add_dependency "shrine", "~> 2.0"
|
17
17
|
gem.add_dependency "tus-server", "~> 2.0"
|
18
|
-
gem.add_dependency "shrine-url", "
|
18
|
+
gem.add_dependency "shrine-url", ">= 2.2.1", "< 3"
|
19
19
|
|
20
20
|
gem.add_development_dependency "rake"
|
21
21
|
gem.add_development_dependency "minitest"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shrine-tus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Janko Marohnić
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shrine
|
@@ -42,16 +42,22 @@ dependencies:
|
|
42
42
|
name: shrine-url
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.2.1
|
48
|
+
- - "<"
|
46
49
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
50
|
+
version: '3'
|
48
51
|
type: :runtime
|
49
52
|
prerelease: false
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
52
|
-
- - "
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 2.2.1
|
58
|
+
- - "<"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
60
|
+
version: '3'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: rake
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -153,8 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
159
|
- !ruby/object:Gem::Version
|
154
160
|
version: '0'
|
155
161
|
requirements: []
|
156
|
-
|
157
|
-
rubygems_version: 2.7.6
|
162
|
+
rubygems_version: 3.0.1
|
158
163
|
signing_key:
|
159
164
|
specification_version: 4
|
160
165
|
summary: Provides storage and plugin for easier integration between Shrine and tus-ruby-server.
|