cloudinary 1.0.16 → 1.0.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -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(&:last).first
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
@@ -1,4 +1,4 @@
1
1
  # Copyright Cloudinary
2
2
  module Cloudinary
3
- VERSION = "1.0.16"
3
+ VERSION = "1.0.17"
4
4
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: cloudinary
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.16
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-25 00:00:00 +03:00
15
+ date: 2012-04-28 00:00:00 +03:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency