dato 0.6.8 → 0.6.9

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
  SHA256:
3
- metadata.gz: fb70e8b8f1d16624079236e54b0f1170d8e1aa13e526dfd18f2ff1644a5613c8
4
- data.tar.gz: adc3c473a1e5374ab75b39fb3d27016fa111732501ba03f39e06c5a548d04343
3
+ metadata.gz: 5ae3d060427e32a0e8240e4ec18a7dc66d2457aa9be2101679d21a637226121a
4
+ data.tar.gz: 30a4ef8ebf7dccbf40787016c1ab328a8bb39b5ba1d6bcc7b8d5291e71b99688
5
5
  SHA512:
6
- metadata.gz: befc5c680415df287fcf424df969239f760a293946f3c802f33ad4f5490403c7007e9a936abea8f98abe19c264a2f400382c57e0cc794db95e77af829959761e
7
- data.tar.gz: 03a8234742817f5f508440525c8f6feab9cd5aabc41400bdae30b7d7765cbb4ad9c411c0bc7e782d4d45bd5ef69f53a563b2ad00c053788c4dba625efc7bf5fc
6
+ metadata.gz: bd48be79a2d9ce658ae571353e9c2e788e16f7ee78645d59119074b2ff4ee56c45e3b7bfd70547ec81038403cb23f94503186f5a48ef4746edf26bf6b3e419a9
7
+ data.tar.gz: fc73eddecfa27ec33119090bacbf6275fa79e96b75c262761b4a54edf5b9d73261d627327f7b2290250c998c64fc5bc413da8e31b44b6c6e00ae6ee33d44dca2
@@ -3,17 +3,18 @@ module Dato
3
3
  module Local
4
4
  module FieldType
5
5
  class Seo
6
- attr_reader :title, :description
6
+ attr_reader :title, :description, :twitter_card
7
7
 
8
8
  def self.parse(value, repo)
9
- value && new(value[:title], value[:description], value[:image], repo)
9
+ value && new(value[:title], value[:description], value[:image], value[:twitter_card], repo)
10
10
  end
11
11
 
12
- def initialize(title, description, image, repo)
12
+ def initialize(title, description, image, twitter_card, repo)
13
13
  @title = title
14
14
  @description = description
15
15
  @image = image
16
16
  @repo = repo
17
+ @twitter_card = twitter_card
17
18
  end
18
19
 
19
20
  def image
@@ -6,7 +6,7 @@ module Dato
6
6
  module MetaTags
7
7
  class TwitterCard < Base
8
8
  def build
9
- card_tag('twitter:card', 'summary')
9
+ card_tag('twitter:card', seo_field_with_fallback(:twitter_card, nil) || "summary")
10
10
  end
11
11
  end
12
12
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Dato
3
- VERSION = '0.6.8'
3
+ VERSION = '0.6.9'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.8
4
+ version: 0.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Verna
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-29 00:00:00.000000000 Z
11
+ date: 2018-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler