cloudinary 1.0.71 → 1.0.72

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ = Version 1.0.72 - 2014-04-15
2
+ * Fixing broken sign_request.
3
+
1
4
  = Version 1.0.71 - 2014-04-15
2
5
  * Upload preset support.
3
6
  * Unsigned upload support.
@@ -186,7 +186,7 @@ class Cloudinary::Utils
186
186
  def self.sign_request(params, options={})
187
187
  api_key = options[:api_key] || Cloudinary.config.api_key || raise(CloudinaryException, "Must supply api_key")
188
188
  api_secret = options[:api_secret] || Cloudinary.config.api_secret || raise(CloudinaryException, "Must supply api_secret")
189
- params = params.reject{|k, v| self.class.safe_blank?(v)}
189
+ params = params.reject{|k, v| self.safe_blank?(v)}
190
190
  params[:signature] = Cloudinary::Utils.api_sign_request(params, api_secret)
191
191
  params[:api_key] = api_key
192
192
  params
@@ -1,4 +1,4 @@
1
1
  # Copyright Cloudinary
2
2
  module Cloudinary
3
- VERSION = "1.0.71"
3
+ VERSION = "1.0.72"
4
4
  end
data/spec/utils_spec.rb CHANGED
@@ -460,4 +460,9 @@ describe Cloudinary::Utils do
460
460
  actual = Cloudinary::Utils.cloudinary_url("http://google.com/path/to/image.png", :type => "fetch", :version => 1234, :sign_url => true)
461
461
  actual.should == expected
462
462
  end
463
+
464
+ it "should correctly sign_request" do
465
+ params = Cloudinary::Utils.sign_request({:public_id=>"folder/file", :version=>"1234"})
466
+ params.should == {:public_id=>"folder/file", :version=>"1234", :signature=>"7a3349cbb373e4812118d625047ede50b90e7b67", :api_key=>"1234"}
467
+ end
463
468
  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.71
4
+ version: 1.0.72
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: