cloudinary 2.0.1 → 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: 665691ca23a31caf20e7875bfaf1731ba0a4982e1216f06091c7034e555761b8
4
- data.tar.gz: 44e133edae9826f6de0ab4b7d3f56b98b859c32bd0e2a99ffffd630802dbc45d
3
+ metadata.gz: b0eb913c34bb7e22bdd7c72d748ce67956a73923772932137b4b3c3e58b922df
4
+ data.tar.gz: b2d8aac422d47d0777b132c87649379d0a9535a83a84245202fecbd477d06803
5
5
  SHA512:
6
- metadata.gz: 4318c4897e1434cd71f97300451db710fcc5f0cf17504fd171fb8fca039eed1bb7d064b6b3cbc0cd525532dc6f7d9750ff9b5dc54c7207b29c8a25cafb28f089
7
- data.tar.gz: e984de09c7a451719cf5c368699f534501931f8ce3e2c2f66d3eebfe39acea78a7a29db3809c06b3c1df3c256feb80d75766b54c523d31d0f9bdd914974d814f
6
+ metadata.gz: f224ae816b6485ae1abec08b6658037765139f46946f3679a4589083049d498121ff62a3af71f0d9b4ef2a918490dec0c3ffd0177439405037afe10e85138f06
7
+ data.tar.gz: b6ad12381140938aa3f46342c36d0faba9350e9556e97d29c0a9db949d6e9bf84f709887072876cedd6e9190c60f141b96287db011aadef670717ceaae819e41
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 2.0.2 / 2024-04-09
2
+ ==================
3
+
4
+ * Fix CarrierWave `store!` method
5
+
1
6
  2.0.1 / 2024-04-09
2
7
  ==================
3
8
 
@@ -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.1"
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.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nadav Soferman