shrine-tus 2.1.0 → 2.1.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
  SHA256:
3
- metadata.gz: d0e37e19e2990440589f8c19976e7dc43cc012387da17ff854ba1226544e1cca
4
- data.tar.gz: 07e70c10ec9c197c1445b0a6cf78f360e6504123ab1d06cd4b1dc63ddc1547ff
3
+ metadata.gz: c8aef0acf353a78d6957ff427b68ad717a1af9ad64f2592fe85c4566ca980b84
4
+ data.tar.gz: 0b300ece5f083fbc078034309aa53cdc652aeaad68eaa495479d3c2ee046518d
5
5
  SHA512:
6
- metadata.gz: 7cbbd7a375dcd729c2bffa9bbdbc9c1a3a8be76df8610f3ff22407fc71d275e2a84ae91e7d122d7b0e28299477b383ee43a9ae578a3501d9e8c2589d82ad4c5f
7
- data.tar.gz: d954736334bd4b2d1ad6f55ee87f294d15b086af054ebbdc45be60510429dfd36a0e88b12c34323f2eb851750f43c5320dfee02468763408b553cd9a7d3f1b9d
6
+ metadata.gz: aa9848d522da77ebd06ae9eeea0822bb2806da90ab632ab34baaea6e2a386076428a32bbe44e11422b9c9f55a2e41ea9c9a2aaccf922c4d570e73387e5b626d2
7
+ data.tar.gz: 4f1128b8f3007ea339f9148e3b618f179d79a42dacb40d47657db117794193dce63113d095329efb6fca0260b8878b5e1ee96df1c83c340c3d6cb7df71a4eb37
@@ -7,7 +7,7 @@ class Shrine
7
7
  module AttacherMethods
8
8
  private
9
9
 
10
- def cached(data)
10
+ def cached(data, **options)
11
11
  data = data.dup
12
12
  data = JSON.parse(data) if data.is_a?(String)
13
13
 
@@ -16,7 +16,7 @@ class Shrine
16
16
  data["id"] = tus_url_to_storage_id(id, cache.storage)
17
17
  end
18
18
 
19
- super(data)
19
+ super(data, **options)
20
20
  end
21
21
 
22
22
  def tus_url_to_storage_id(tus_url, storage)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "shrine-tus"
3
- gem.version = "2.1.0"
3
+ gem.version = "2.1.1"
4
4
 
5
5
  gem.required_ruby_version = ">= 2.1"
6
6
 
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
13
13
  gem.files = Dir["README.md", "LICENSE.txt", "lib/**/*.rb", "*.gemspec"]
14
14
  gem.require_path = "lib"
15
15
 
16
- gem.add_dependency "shrine", ">= 3.0.0.rc", "< 4"
16
+ gem.add_dependency "shrine", "~> 3.2"
17
17
  gem.add_dependency "tus-server", "~> 2.0"
18
18
  gem.add_dependency "shrine-url", "~> 2.4"
19
19
 
metadata CHANGED
@@ -1,35 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shrine-tus
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janko Marohnić
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-28 00:00:00.000000000 Z
11
+ date: 2020-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shrine
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 3.0.0.rc
20
- - - "<"
17
+ - - "~>"
21
18
  - !ruby/object:Gem::Version
22
- version: '4'
19
+ version: '3.2'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 3.0.0.rc
30
- - - "<"
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: '4'
26
+ version: '3.2'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: tus-server
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -159,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
153
  - !ruby/object:Gem::Version
160
154
  version: '0'
161
155
  requirements: []
162
- rubygems_version: 3.0.3
156
+ rubygems_version: 3.1.1
163
157
  signing_key:
164
158
  specification_version: 4
165
159
  summary: Provides storage and plugin for easier integration between Shrine and tus-ruby-server.