cloudinary 1.0.16 → 1.0.17
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.
@@ -96,7 +96,9 @@ module Cloudinary::CarrierWave
|
|
96
96
|
end
|
97
97
|
|
98
98
|
def tags
|
99
|
-
@tags ||= self.class.processors.select{|processor| processor[0] == :tags}.map(&:
|
99
|
+
@tags ||= self.class.processors.select{|processor| processor[0] == :tags}.map(&:second).first
|
100
|
+
raise "tags cannot be used in versions." if @tags.present? && self.version_name.present?
|
101
|
+
@tags
|
100
102
|
end
|
101
103
|
|
102
104
|
def format
|
@@ -8,6 +8,7 @@ class Cloudinary::CarrierWave::Storage < ::CarrierWave::Storage::Abstract
|
|
8
8
|
params[:return_error] = true
|
9
9
|
params[:format] = uploader.format
|
10
10
|
params[:public_id] = uploader.my_public_id
|
11
|
+
uploader.versions.values.each(&:tags) # Validate no tags in versions
|
11
12
|
params[:tags] = uploader.tags if uploader.tags
|
12
13
|
eager_versions = uploader.versions.values.select(&:eager)
|
13
14
|
params[:eager] = eager_versions.map{|version| [version.transformation, version.format]} if eager_versions.length > 0
|
data/lib/cloudinary/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: cloudinary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.17
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Nadav Soferman
|
@@ -12,7 +12,7 @@ autorequire:
|
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
14
|
|
15
|
-
date: 2012-04-
|
15
|
+
date: 2012-04-28 00:00:00 +03:00
|
16
16
|
default_executable:
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|