seorel 0.2.0 → 0.2.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: dcabd490661caf4393318a4ec305c4cb3bca897b
4
- data.tar.gz: 26a510c23eb8c5afd084debec0d6dcd33210aae7
3
+ metadata.gz: efcaa09bd4ce13a6f01401e92a281fc3e5909828
4
+ data.tar.gz: a1305abf9e9e5dbb8f58970ee09b321ed7ebb26b
5
5
  SHA512:
6
- metadata.gz: a7193d36190bc4faddb42ffa8c212877cc5ac0de4c40d7a01a827b2cfd1fd6d17b0b8e35e6c5aba5ff1b36fa78ba04a548d1042f9368a994964ece8d45a83e86
7
- data.tar.gz: c6aefde34f58c25af4929cfc89b986357a967bf7dccb38aa6376cf0f2c76b6d22c9406a31e385e95db5eeab3ccb079d9b935612813afda88bc30d73c6f2278e2
6
+ metadata.gz: e10ff58ad0795b28654cbf3109a54dee0ac8b67e66bcc215e5cd42ecc51dd2e172d28668dcb660bdc477ecaaec76408f001a06082beba5573d4d45c971103d48
7
+ data.tar.gz: c992544be338722cded68c717a741115db21368757bdbe533f115ad95b7210fa4e6282d371efec0e48792d2951da3e88253d5e1c0e62c60ce11ae9c5d1781b3c
data/README.md CHANGED
@@ -12,7 +12,7 @@ Ruby on Rails SEO Metatags plugins for ActiveRecord models
12
12
  `Gemfile.rb`:
13
13
 
14
14
  ```ruby
15
- gem 'seorel', '~> 0.1.0'
15
+ gem 'seorel', '~> 0.2.0'
16
16
 
17
17
  # the edge version can be had using:
18
18
  # gem 'seorel', github: 'dalpo/seorel'
data/lib/seorel/helper.rb CHANGED
@@ -14,17 +14,18 @@ module Seorel
14
14
 
15
15
  def render_open_graph
16
16
  [
17
- content_tag(:meta, nil, name: 'og:type', content: 'website'),
18
- content_tag(:meta, nil, name: 'og:title', content: seorel_params.title),
19
- content_tag(:meta, nil, name: 'og:description', content: seorel_params.description),
20
- content_tag(:meta, nil, name: 'og:image', content: seorel_params.image),
21
- content_tag(:meta, nil, name: 'og:locale', content: I18n.locale.to_s)
17
+ content_tag(:meta, nil, property: 'og:type', content: 'website'),
18
+ content_tag(:meta, nil, property: 'og:url', content: request.url),
19
+ content_tag(:meta, nil, property: 'og:title', content: seorel_params.title),
20
+ content_tag(:meta, nil, property: 'og:description', content: seorel_params.description),
21
+ content_tag(:meta, nil, property: 'og:image', content: seorel_params.image),
22
+ content_tag(:meta, nil, property: 'og:locale', content: I18n.locale.to_s)
22
23
  ].join("\n").html_safe
23
24
  end
24
25
 
25
26
  def render_twitter_cards
26
27
  [
27
- content_tag(:meta, nil, name: 'twitter:card', content: 'summary'),
28
+ content_tag(:meta, nil, name: 'twitter:card', content: 'summary_large_image'),
28
29
  content_tag(:meta, nil, name: 'twitter:url', content: request.url),
29
30
  content_tag(:meta, nil, name: 'twitter:title', content: seorel_params.title),
30
31
  content_tag(:meta, nil, name: 'twitter:description', content: seorel_params.description),
@@ -1,3 +1,3 @@
1
1
  module Seorel
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seorel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrea Dal Ponte