cloudinary 1.0.34 → 1.0.35
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/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