cloudinary 1.0.39 → 1.0.40

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.
@@ -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
- return Array(format_processor[1]).first
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
- return uploader.format
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
- return format || "png" # TODO Default format?
142
+ format ||= "png" # TODO Default format?
143
143
  end
144
+ format.to_s.downcase
144
145
  end
145
146
  end
@@ -1,4 +1,4 @@
1
1
  # Copyright Cloudinary
2
2
  module Cloudinary
3
- VERSION = "1.0.39"
3
+ VERSION = "1.0.40"
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: 1.0.39
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-08 00:00:00.000000000 Z
14
+ date: 2012-10-10 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rest-client