cloudinary 1.0.34 → 1.0.35
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cloudinary/migrator.rb +5 -1
- data/lib/cloudinary/version.rb +1 -1
- metadata +1 -1
data/lib/cloudinary/migrator.rb
CHANGED
@@ -258,7 +258,11 @@ class Cloudinary::Migrator
|
|
258
258
|
elsif data.respond_to?(:read) && data.respond_to?(:path)
|
259
259
|
# This is an IO style object, pass as is.
|
260
260
|
file = data
|
261
|
-
elsif
|
261
|
+
elsif data.nil?
|
262
|
+
# Skip
|
263
|
+
elsif data.match(/^https?:/)
|
264
|
+
url = data
|
265
|
+
else
|
262
266
|
file = main.temporary_file(data, row["public_id"] || "cloudinaryfile")
|
263
267
|
end
|
264
268
|
end
|
data/lib/cloudinary/version.rb
CHANGED