cloudinary 1.0.53 → 1.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/cloudinary/carrier_wave.rb +4 -3
- data/lib/cloudinary/version.rb +1 -1
- metadata +2 -2
|
@@ -82,9 +82,10 @@ module Cloudinary::CarrierWave
|
|
|
82
82
|
end
|
|
83
83
|
|
|
84
84
|
def rename(to_public_id = nil, overwrite=false)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
public_id_overwrite = self.public_id
|
|
86
|
+
to_public_id ||= public_id_overwrite
|
|
87
|
+
if public_id_overwrite && to_public_id != public_id_overwrite
|
|
88
|
+
raise CloudinaryException, "The public_id method was overridden and returns #{public_id_overwrite} - can't rename to #{to_public_id}"
|
|
88
89
|
elsif to_public_id.nil?
|
|
89
90
|
raise CloudinaryException, "No to_public_id given"
|
|
90
91
|
end
|
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: 1.0.
|
|
4
|
+
version: 1.0.54
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2013-04-
|
|
14
|
+
date: 2013-04-05 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: rest-client
|