cloudinary 2.0.0 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/cloudinary.gemspec +1 -1
- data/lib/cloudinary/carrier_wave/storage.rb +1 -1
- data/lib/cloudinary/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0eb913c34bb7e22bdd7c72d748ce67956a73923772932137b4b3c3e58b922df
|
4
|
+
data.tar.gz: b2d8aac422d47d0777b132c87649379d0a9535a83a84245202fecbd477d06803
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f224ae816b6485ae1abec08b6658037765139f46946f3679a4589083049d498121ff62a3af71f0d9b4ef2a918490dec0c3ffd0177439405037afe10e85138f06
|
7
|
+
data.tar.gz: b6ad12381140938aa3f46342c36d0faba9350e9556e97d29c0a9db949d6e9bf84f709887072876cedd6e9190c60f141b96287db011aadef670717ceaae819e41
|
data/CHANGELOG.md
CHANGED
data/cloudinary.gemspec
CHANGED
@@ -22,8 +22,8 @@ Gem::Specification.new do |s|
|
|
22
22
|
|
23
23
|
s.add_dependency "faraday", ">= 2.0.1", "< 3.0.0"
|
24
24
|
s.add_dependency "faraday-multipart", "~> 1.0", ">= 1.0.4"
|
25
|
+
s.add_dependency 'faraday-follow_redirects', '~> 0.3.0'
|
25
26
|
|
26
|
-
s.add_development_dependency 'faraday-follow_redirects', '~> 0.3.0'
|
27
27
|
s.add_development_dependency "rails", ">= 6.1.7", "< 8.0.0"
|
28
28
|
s.add_development_dependency "rexml", ">= 3.2.5", "< 4.0.0"
|
29
29
|
s.add_development_dependency "actionpack", ">= 6.1.7", "< 8.0.0"
|
@@ -36,7 +36,7 @@ class Cloudinary::CarrierWave::Storage < ::CarrierWave::Storage::Abstract
|
|
36
36
|
params[:type]=uploader.class.storage_type
|
37
37
|
|
38
38
|
params[:resource_type] ||= :auto
|
39
|
-
upload_method = uploader.upload_chunked? ? "upload_large" : "upload"
|
39
|
+
upload_method = uploader.respond_to?(:upload_chunked?) && uploader.upload_chunked? ? "upload_large" : "upload"
|
40
40
|
uploader.metadata = Cloudinary::Uploader.send(upload_method, data, params)
|
41
41
|
if uploader.metadata["error"]
|
42
42
|
raise Cloudinary::CarrierWave::UploadError.new(uploader.metadata["error"]["message"], uploader.metadata["error"]["http_code"])
|
data/lib/cloudinary/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudinary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nadav Soferman
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2024-04-
|
13
|
+
date: 2024-04-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday
|
@@ -59,7 +59,7 @@ dependencies:
|
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 0.3.0
|
62
|
-
type: :
|
62
|
+
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|