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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d6f32cb53d97a60e6d0ec304b1dbee2a80e7d1610c9007a9a0331bf80c3f882
4
- data.tar.gz: 29863f2c682c9800cef486624985a8d4f8959b7da19ce0f53b4377bdc0312eaf
3
+ metadata.gz: b0eb913c34bb7e22bdd7c72d748ce67956a73923772932137b4b3c3e58b922df
4
+ data.tar.gz: b2d8aac422d47d0777b132c87649379d0a9535a83a84245202fecbd477d06803
5
5
  SHA512:
6
- metadata.gz: 8b7ac1b9edaeb3d8faad6dc1d75442f41cadef751400840c27ff176d370ca0739f68eda398c05efe56b7bfaa04376a0154f17840e15ac670fd4cc9d673527cb0
7
- data.tar.gz: c3ba9122af7accec3abf2b9388b62be44e1e483a6f229e13ba40d1d283e9eef75c7179235b2674011e7d49d1fc12284c83b59f0dcfb0eed38e73195815123294
6
+ metadata.gz: f224ae816b6485ae1abec08b6658037765139f46946f3679a4589083049d498121ff62a3af71f0d9b4ef2a918490dec0c3ffd0177439405037afe10e85138f06
7
+ data.tar.gz: b6ad12381140938aa3f46342c36d0faba9350e9556e97d29c0a9db949d6e9bf84f709887072876cedd6e9190c60f141b96287db011aadef670717ceaae819e41
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ 2.0.2 / 2024-04-09
2
+ ==================
3
+
4
+ * Fix CarrierWave `store!` method
5
+
6
+ 2.0.1 / 2024-04-09
7
+ ==================
8
+
9
+ * Fix rake tasks
10
+
1
11
  2.0.0 / 2024-04-08
2
12
  ==================
3
13
 
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"])
@@ -1,4 +1,4 @@
1
1
  # Copyright Cloudinary
2
2
  module Cloudinary
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.2"
4
4
  end
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.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-08 00:00:00.000000000 Z
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: :development
62
+ type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements: