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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b464e4d6d99f84092e1343586bc0102882ada25831fdb9eb8085fe820f823e19
4
- data.tar.gz: b1972b8c02e3c9c38a24f0cc4b214fae775d08a20607d2f39c002c7da79c0baf
3
+ metadata.gz: 6342b775832eed1056e4da535d6a08ce46c29ac8495e9744f6bf824bc82f2538
4
+ data.tar.gz: a299d569b878d616d935ba7119a9bd9120f9e3a728fa424e135711676c3caceb
5
5
  SHA512:
6
- metadata.gz: 72106677f12aab0d05cbc85918af78fa31467ac08c3dbf2f3ed3528de39282f22be601d9e885a11ad131e388e3d1435ca4fb8e150edee128bde46770b2709253
7
- data.tar.gz: 73a95ada3fee3d760702beed96b91fde1f7fc18f0be38b6f44af64365ce339a4d194e87b323df1d839828a8ff0ba9e689516ae134f55cd9171d8d3c6a45154d6
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
@@ -10,7 +10,7 @@ class Shrine
10
10
  def initialize(tus_storage: nil, **options)
11
11
  @tus_storage = tus_storage
12
12
 
13
- super(**options)
13
+ super(delete: true, **options)
14
14
  end
15
15
 
16
16
  def download(id, **options)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "shrine-tus"
3
- gem.version = "1.2.1"
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", "~> 2.1"
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.1
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: 2018-05-15 00:00:00.000000000 Z
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: '2.1'
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: '2.1'
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
- rubyforge_project:
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.