pugin 1.6.13 → 1.6.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pugin/version.rb +1 -1
- data/lib/pugin/view_helpers.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be925c0ac937a694e1e05cabddde024f79d2258c
|
4
|
+
data.tar.gz: d985386f06b4aa2a36e7ac02e154cff3c3f9a498
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d319955dc09b5bcb2a043d8fe08e5252d1da3ea4d54e9b808c722edf319d7fa0d7717bc394961a7dc27379677bcf193f7660cd0c32d5c82e50c6e0390572510
|
7
|
+
data.tar.gz: afb5da99f7e02b9399587cee796fc782122fb849f5949439624b0f9a963e7d192f61f433e1a6c56315c9f55c1f8c798a3491b2dffdbbc7f8e5bfbf90ac3e7803
|
data/lib/pugin/version.rb
CHANGED
data/lib/pugin/view_helpers.rb
CHANGED
@@ -11,9 +11,9 @@ module Pugin
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def opengraph_image
|
14
|
-
image_hash = if @image
|
14
|
+
image_hash = if @image && @image.respond_to?('graph_id')
|
15
15
|
{url: "#{ENV['IMAGE_SERVICE_URL']}/#{@image.graph_id}.jpeg?crop=CU_1:1&width=400&quality=100"}
|
16
|
-
elsif @person && !@image
|
16
|
+
elsif @person && @person.respond_to?('image_id') && @person.image_id != 'placeholder' && !@image
|
17
17
|
{url: "#{ENV['IMAGE_SERVICE_URL']}/#{@person.image_id}.jpeg?crop=CU_1:1&width=400&quality=100"}
|
18
18
|
else
|
19
19
|
{width: '1200', height: '630', twitter_card: 'summary_large_image' }
|