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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa2303a50ba0e6a86c506265d2748664a39f4a35
4
- data.tar.gz: d4bd50bd73a9840757aa22c9239e5a3e9a611668
3
+ metadata.gz: be925c0ac937a694e1e05cabddde024f79d2258c
4
+ data.tar.gz: d985386f06b4aa2a36e7ac02e154cff3c3f9a498
5
5
  SHA512:
6
- metadata.gz: 8e78cd869d87ac8109d970b7b57138e10640b65189d9653a5720f7065d74c713bdf4f145b892e77e2886e6a0327c3c7c2fa9d7bff4418614ffe8d2190557835f
7
- data.tar.gz: 25fe2cac9ce5486dfff96aae00dba787e460d54e29be49b0f5cb4b837638d325d37da7accbfb9da99309ad4bbfb184519e125822c516185c5b4da66ca02405d3
6
+ metadata.gz: 4d319955dc09b5bcb2a043d8fe08e5252d1da3ea4d54e9b808c722edf319d7fa0d7717bc394961a7dc27379677bcf193f7660cd0c32d5c82e50c6e0390572510
7
+ data.tar.gz: afb5da99f7e02b9399587cee796fc782122fb849f5949439624b0f9a963e7d192f61f433e1a6c56315c9f55c1f8c798a3491b2dffdbbc7f8e5bfbf90ac3e7803
data/lib/pugin/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pugin
2
- VERSION = '1.6.13'.freeze
2
+ VERSION = '1.6.14'.freeze
3
3
  end
@@ -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' }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.13
4
+ version: 1.6.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Rayner