cloudinary 1.0.39 → 1.0.40
Sign up to get free protection for your applications and to get access to all the features.
@@ -131,15 +131,16 @@ module Cloudinary::CarrierWave
|
|
131
131
|
format_processor = self.all_processors.find{|processor| processor[0] == :convert}
|
132
132
|
if format_processor
|
133
133
|
# Explicit format is given
|
134
|
-
|
134
|
+
format = Array(format_processor[1]).first
|
135
135
|
elsif self.version_name.present?
|
136
136
|
# No local format. The reset should be handled by main uploader
|
137
137
|
uploader = self.model.send(self.mounted_as)
|
138
|
-
|
138
|
+
format = uploader.format
|
139
139
|
else
|
140
140
|
# Try to auto-detect format
|
141
141
|
format = Cloudinary::CarrierWave.split_format(original_filename || "").last
|
142
|
-
|
142
|
+
format ||= "png" # TODO Default format?
|
143
143
|
end
|
144
|
+
format.to_s.downcase
|
144
145
|
end
|
145
146
|
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.40
|
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: 2012-10-
|
14
|
+
date: 2012-10-10 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rest-client
|