cloudinary 1.0.74 → 1.0.75

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTc2ZWFlMjIyNmUyOGY1ZjIxNzAzNGVkZGU1NTQ2OTdiYTVjZTM2Yg==
4
+ Yzc3N2QyYzFlNTE3MzZjMTViMTBjYjRjMDlhMDk2YzFhMWY2MzRlNQ==
5
5
  data.tar.gz: !binary |-
6
- Zjc2ZjRjNjk2YjUyYWVkOWI3YmM2MDFjOGE5ZGM5NTg4MDhkNmZlMQ==
6
+ M2U5YTAzYmFlZmYyOGEyNTI1ZDFiNTA1NjhiNjc2NThhNzhhNWVhMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDNjNTU4ODkxNjA1NTg5YTc0ZDYwY2MxNDE4MjUyNWNkM2Y3NzZhNGZiNGZm
10
- YTVmZGRjYjlkYTI5NTAxODhhM2E0ZmE4ODI1MmU0MDYzNDc2NDUwZTljODk1
11
- NjMzM2QzYzM1ZjQ5YjJhN2M5YzBhZmE2OGJkZDMyOTRkZDVkYzY=
9
+ MTdhMDE4ZTIwZmY4NTYzNWI4MTNkODUyNjFkODJjMDVmYTQ2YzM5NDY0Y2Rh
10
+ YWQ2MDFkNmE5ZmQ0NTJmMDE2ZjY2M2Q2ZWVjNmE2YjU3MDA2NTkzYjUxNmQ5
11
+ N2JlYzI4YTlhZGZhNzE3ZTFmNGYwMzc2YzNhYTdhYzA1OTU4ODM=
12
12
  data.tar.gz: !binary |-
13
- NWMzYzU2YzdmYTM4MjExYTdkNWNjYTMyM2FlMmExNWYxYWQ5NTI0ZGM3NTVi
14
- NTI3YzE5ZDM4MzAzMmVmOTA2Yzg1NDNlYzBlYjczYmZlNjAyNzUwNGEwZmVk
15
- MmYyODU0OTEwYTYwYTlmOTc0NDljY2IyMGQ5MGNmMmQ1Nzg4Nzk=
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.
@@ -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
- source = responsive_placeholder
43
+ options[:src] = responsive_placeholder
43
44
  end
44
45
  if source
45
46
  image_tag_without_cloudinary(source, options)
@@ -1,4 +1,4 @@
1
1
  # Copyright Cloudinary
2
2
  module Cloudinary
3
- VERSION = "1.0.74"
3
+ VERSION = "1.0.75"
4
4
  end
@@ -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: :auto, crop: :pad}
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.74
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-14 00:00:00.000000000 Z
13
+ date: 2014-07-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client