scrivito_seo_page_extender 1.2.4 → 1.2.5

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: 0105bcb9b2c5a5cd6b22daabc25c79d42fb0a33a
4
- data.tar.gz: 581cde117affcdccd29d069166cdfb5f3a51a003
3
+ metadata.gz: d0aee51d59178315c44ee2ce09ce98bfdbf48315
4
+ data.tar.gz: 6513bbcfbb57be6953f2d554b3edbd7d708001aa
5
5
  SHA512:
6
- metadata.gz: 3584bbcb4ed86ee94b656d30a478d9f77f95474d2325f87237e5263d90406b900d810ddb81ba7c99ec8524c955830e064eb9db6311f5610b83347818fc382df9
7
- data.tar.gz: b804d98d32280e21becff068c4902df5e41c2541d28916867368fae140957e13b3e099287a3c3f3159d076cd693852e6a1eaa197606996a9b72a10bdc7ebf1d8
6
+ metadata.gz: 8d76d6abc74ca397d8e87a23dd237cc6169bc32dd9cb9a8f36359e52d58d2b375ca4ea862cdc297233f7b341a6dc17754227d74ea12cbbccb61f6ec4d1eafda3
7
+ data.tar.gz: 65f6c6bcea887c5932371a288dfff684f836033896edf7a1a47755a3305d53b3183077b857c322697fd85690e2b9064123ed6b3effcc17d17f5e5a7de4bfbbbd
@@ -35,10 +35,6 @@ module SeoPageExtenderHelper
35
35
  obj.meta_data[:height]
36
36
  end
37
37
 
38
- def image_type(obj)
39
- obj.binary_content_type
40
- end
41
-
42
38
  private
43
39
  def seo_attribute_fallback?(obj, attribute)
44
40
  # mapping is active && attribute is included to obj
@@ -3,9 +3,15 @@
3
3
  <% if @obj.respond_to?(attribute) && fallback.present? %>
4
4
  <% if attribute == 'og_image' %>
5
5
  <meta content="<%= scrivito_url(fallback) %>" property="<%= name %>"/>
6
- <meta content="<%= image_type(fallback) %>" property="og:image:type"/>
6
+ <meta content="<%= fallback.binary_content_type %>" property="og:image:type"/>
7
7
  <meta content="<%= image_width(fallback) %>" property="og:image:width"/>
8
8
  <meta content="<%= image_height(fallback) %>" property="og:image:height"/>
9
+ <% elsif attribute == 'og_video' %>
10
+ <meta content="<%= scrivito_url(fallback) %>" property="<%= name %>"/>
11
+ <meta content="<%= fallback.binary_content_type %>" property="og:video:type"/>
12
+ <% elsif attribute == 'og_audio' %>
13
+ <meta content="<%= scrivito_url(fallback) %>" property="<%= name %>"/>
14
+ <meta content="<%= fallback.binary_content_type %>" property="og:audio:type"/>
9
15
  <% else %>
10
16
  <meta content="<%= fallback %>" property="<%= name %>"/>
11
17
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoSeoPageExtender
2
- VERSION = "1.2.4"
2
+ VERSION = "1.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_seo_page_extender
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito