cloudinary 1.0.74 → 1.0.75
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG +3 -0
- data/lib/cloudinary/helper.rb +3 -2
- data/lib/cloudinary/version.rb +1 -1
- data/spec/utils_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Yzc3N2QyYzFlNTE3MzZjMTViMTBjYjRjMDlhMDk2YzFhMWY2MzRlNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2U5YTAzYmFlZmYyOGEyNTI1ZDFiNTA1NjhiNjc2NThhNzhhNWVhMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTdhMDE4ZTIwZmY4NTYzNWI4MTNkODUyNjFkODJjMDVmYTQ2YzM5NDY0Y2Rh
|
10
|
+
YWQ2MDFkNmE5ZmQ0NTJmMDE2ZjY2M2Q2ZWVjNmE2YjU3MDA2NTkzYjUxNmQ5
|
11
|
+
N2JlYzI4YTlhZGZhNzE3ZTFmNGYwMzc2YzNhYTdhYzA1OTU4ODM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjFhMjRiNGExZGQ4NTQ2NTdlYWI2YWU1ZDIyMTVlMjM5ODcxNzRkZDA5MWY0
|
14
|
+
YmE2NjU5MTAyMjk4ODdlYTc1OTI2ZTA5NzQ5N2U0YmVlYmE2Yjk5MDNiMDk3
|
15
|
+
MGU2M2M0OGI4NjE0OWQ2NTgwMGE4NTQ1MDBiMTc5ODMzYzE4YjM=
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
= Version 1.0.75 - 2014-07-30
|
2
|
+
* Don't use Rails' image_tag for repsponsive/hidpi to prevent wrong alt and data URIs.
|
3
|
+
|
1
4
|
= Version 1.0.74 - 2014-07-14
|
2
5
|
* Support custom_coordinates in upload and update. Support coordinates in resource details.
|
3
6
|
* Support delete_by_token for direct uploads.
|
data/lib/cloudinary/helper.rb
CHANGED
@@ -35,11 +35,12 @@ module CloudinaryHelper
|
|
35
35
|
hidpi = options.delete(:hidpi)
|
36
36
|
responsive = options.delete(:responsive)
|
37
37
|
if hidpi || responsive
|
38
|
-
options["data-src"] = source
|
38
|
+
options["data-src"] = source
|
39
|
+
source = nil
|
39
40
|
extra_class = responsive ? "cld-responsive" : "cld-hidpi"
|
40
41
|
options[:class] = [options[:class], extra_class].compact.join(" ")
|
41
42
|
responsive_placeholder = CL_BLANK if responsive_placeholder == "blank"
|
42
|
-
|
43
|
+
options[:src] = responsive_placeholder
|
43
44
|
end
|
44
45
|
if source
|
45
46
|
image_tag_without_cloudinary(source, options)
|
data/lib/cloudinary/version.rb
CHANGED
data/spec/utils_spec.rb
CHANGED
@@ -471,7 +471,7 @@ describe Cloudinary::Utils do
|
|
471
471
|
result = Cloudinary::Utils.cloudinary_url("test", options)
|
472
472
|
options.should == {responsive: true}
|
473
473
|
result.should == "http://res.cloudinary.com/test123/image/upload/c_crop,h_100,w_100/c_limit,w_auto/test"
|
474
|
-
Cloudinary.config.responsive_width_transformation = {width
|
474
|
+
Cloudinary.config.responsive_width_transformation = {:width => :auto, :crop => :pad}
|
475
475
|
options = {:width=>100, :height=>100, :crop=>:crop, :responsive_width=>true}
|
476
476
|
result = Cloudinary::Utils.cloudinary_url("test", options)
|
477
477
|
options.should == {responsive: true}
|
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.
|
4
|
+
version: 1.0.75
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nadav Soferman
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-07-
|
13
|
+
date: 2014-07-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|