cloudinary 1.0.12 → 1.0.13

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.
@@ -20,6 +20,7 @@ class Cloudinary::Utils
20
20
  x = options.delete(:x)
21
21
  y = options.delete(:y)
22
22
  radius = options.delete(:radius)
23
+ default_image = options.delete(:default_image)
23
24
 
24
25
  gravity = options.delete(:gravity)
25
26
  quality = options.delete(:quality)
@@ -35,7 +36,7 @@ class Cloudinary::Utils
35
36
  end
36
37
  prefix = options.delete(:prefix)
37
38
 
38
- params = {:w=>width, :h=>height, :t=>named_transformation, :c=>crop, :q=>quality, :g=>gravity, :p=>prefix, :x=>x, :y=>y, :r=>radius}
39
+ params = {:w=>width, :h=>height, :t=>named_transformation, :c=>crop, :q=>quality, :g=>gravity, :p=>prefix, :x=>x, :y=>y, :r=>radius, :d=>default_image}
39
40
  transformation = params.reject{|k,v| v.blank?}.map{|k,v| [k.to_s, v]}.sort_by(&:first).map{|k,v| "#{k}_#{v}"}.join(",")
40
41
  raw_transformation = options.delete(:raw_transformation)
41
42
  transformation = [transformation, raw_transformation].reject(&:blank?).join(",")
@@ -1,4 +1,4 @@
1
1
  # Copyright Cloudinary
2
2
  module Cloudinary
3
- VERSION = "1.0.12"
3
+ VERSION = "1.0.13"
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.12
5
+ version: 1.0.13
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-19 00:00:00 +03:00
15
+ date: 2012-04-22 00:00:00 +03:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency