shrine-cloudinary 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shrine/storage/cloudinary.rb +1 -5
- data/shrine-cloudinary.gemspec +2 -2
- metadata +4 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af93e9f323d845452fe62288a84349edd31aac44
|
4
|
+
data.tar.gz: c71a22621e93b73eec3501cdbfcfe3ded40e5a37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f7d9e5f393a1f5819b8c0bcc2ab5b96226ef7de926a5e14a25db15a8d03113465285fc0f68435254125c93c38d720cf012667a21ddfac5f757321a42f0f1b07
|
7
|
+
data.tar.gz: 5345d19942337df8d58cf67a4fd722c7c2eaecd56c07a43b2613d2f94911090497e4d0bf160020e8d2de0979105bbb78f605e89e5a3d8aa8efd079381752dc04
|
@@ -55,11 +55,6 @@ class Shrine
|
|
55
55
|
::Cloudinary::Uploader.destroy(public_id(id), default_options)
|
56
56
|
end
|
57
57
|
|
58
|
-
def multi_delete(ids)
|
59
|
-
public_ids = ids.map { |id| public_id(id) }
|
60
|
-
::Cloudinary::Api.delete_resources(public_ids, default_options)
|
61
|
-
end
|
62
|
-
|
63
58
|
def url(id, **options)
|
64
59
|
::Cloudinary::Utils.cloudinary_url(path(id), default_options.merge(secure: true, **options))
|
65
60
|
end
|
@@ -108,6 +103,7 @@ class Shrine
|
|
108
103
|
else
|
109
104
|
make_rest_client_recognize_as_file!(io)
|
110
105
|
if large?(io)
|
106
|
+
io.instance_eval { def match(*); false; end } # https://github.com/cloudinary/cloudinary_gem/pull/260
|
111
107
|
::Cloudinary::Uploader.upload_large(io, chunk_size: chunk_size, **options)
|
112
108
|
else
|
113
109
|
::Cloudinary::Uploader.upload(io, **options)
|
data/shrine-cloudinary.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = "shrine-cloudinary"
|
3
|
-
gem.version = "0.5.
|
3
|
+
gem.version = "0.5.1"
|
4
4
|
|
5
5
|
gem.required_ruby_version = ">= 2.1"
|
6
6
|
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.require_path = "lib"
|
15
15
|
|
16
16
|
gem.add_dependency "shrine", "~> 2.2"
|
17
|
-
gem.add_dependency "cloudinary", "
|
17
|
+
gem.add_dependency "cloudinary", "< 2"
|
18
18
|
gem.add_dependency "down", ">= 2.3.3"
|
19
19
|
|
20
20
|
gem.add_development_dependency "rake"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shrine-cloudinary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.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: 2017-
|
11
|
+
date: 2017-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shrine
|
@@ -28,22 +28,16 @@ dependencies:
|
|
28
28
|
name: cloudinary
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 1.1.7
|
34
31
|
- - "<"
|
35
32
|
- !ruby/object:Gem::Version
|
36
|
-
version:
|
33
|
+
version: '2'
|
37
34
|
type: :runtime
|
38
35
|
prerelease: false
|
39
36
|
version_requirements: !ruby/object:Gem::Requirement
|
40
37
|
requirements:
|
41
|
-
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 1.1.7
|
44
38
|
- - "<"
|
45
39
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
40
|
+
version: '2'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
name: down
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|