pulitzer 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e43f179ef2fe81ffa3ea24617f794319623dcea3
4
- data.tar.gz: 9992087faafd5ff030059931ae6bf6aa659fb5ee
3
+ metadata.gz: e61a452aa515b28cd72a1715faa6004fe2193511
4
+ data.tar.gz: a2a15e6004acfc366b1247fff6a72019e56b5dfb
5
5
  SHA512:
6
- metadata.gz: f3f2f3d97b0286411d7ffd0923a95374938943f1c28dcba8b24d865225df373a732375f146fc0ad0b7e98a8dd41a3673ad66121c3036f29b68b48932b6808e0d
7
- data.tar.gz: 99eb1abb54a0e793a4afccbada7ebb20ccc09b4b4602b8ff02857276934476f76957b4a48a3825ee9f5f60ba8f80a75216a3a5d5c4bc1876684e072021362589
6
+ metadata.gz: 6631fedcaa6af3c5981048cafc7e864e138b940184f35152bf4a801105ae818062c4c646a3bd0f501bb2f2a73c15480cc773fa6e74607f763d8f17ae2dc82a8e
7
+ data.tar.gz: 6d87ca8c57162679839156b15652faec23b92b46a0ae1abd1d17b2e65d811423b6965432d9f473b55e62527d824237597a20c909046d4ae2051d360d36e8f478
@@ -12,11 +12,13 @@ module Pulitzer
12
12
  end
13
13
 
14
14
  def render_image(element,options = {})
15
- pulitzer_options = {'data-pulitzer-element' => element.id}
16
- if options.is_a? Hash
17
- pulitzer_options.merge!(options)
15
+ if element.image?
16
+ pulitzer_options = {'data-pulitzer-element' => element.id}
17
+ if options.is_a? Hash
18
+ pulitzer_options.merge!(options)
19
+ end
20
+ image_tag element.image_url(:cms), pulitzer_options
18
21
  end
19
- image_tag element.image_url(:cms), pulitzer_options
20
22
  end
21
23
 
22
24
  def render_picture_source(element,options = {})
@@ -1,3 +1,3 @@
1
1
  module Pulitzer
2
- VERSION = '0.11.0'
2
+ VERSION = '0.11.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulitzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut