inverter 0.2.1 → 0.2.2

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: 03a7814b4484ca367489034919d4eb9ad5a6ffe4
4
- data.tar.gz: 349b6b9dffb7920fb5b9c4abf8d4eb79447f0b85
3
+ metadata.gz: f9f690d3662f0f18c84658e8a29adca5b6fac0b9
4
+ data.tar.gz: 535064670509e2b8a5a6223121630776763772e6
5
5
  SHA512:
6
- metadata.gz: d1515cb9f128349bcbe89e7b3f613a72933bd7146178e65c24feb280f4d9252d8994059af7df7157fbead8588cf6d585e82a61d8c693b4b84e0604c519ca514a
7
- data.tar.gz: 63ce962e1bfdaea6f196092b9ab5d935b9bc3fddd097d7b1867819e873189b40e86fa2c048177c6af6d86a4bc7be3df2da413b64f66a29bf6eef2a465cd3c576
6
+ metadata.gz: c91a1f301761818c05fd5d60d02aa6bb1212bd11c53ff986efe28ac423d8cc0e4a668e406bcb7287689e333cd5ff495906356155d1dacd197e110b388db67e98
7
+ data.tar.gz: d0930d472b39cc9ee5a51f70c78b8a07ea9be9b6e951ef43fce073fc6a88138d21455384ee8d41e9fa6b05a05a6acb6bd2bb1cb0e9a16f1fca164d71cf0fa378
data/README.md CHANGED
@@ -104,6 +104,7 @@ Inverter supports [chr](https://github.com/slate-studio/chr) out of the box. Inc
104
104
  formSchema:
105
105
  _page_title: { type: 'string', label: 'Title' }
106
106
  _page_description: { type: 'text', label: 'Description' }
107
+ _page_keywords: { type: 'text', label: 'Keywords' }
107
108
  _page_image_url: { type: 'string', label: 'Image URL' }
108
109
  blocks: { type: 'inverter' }
109
110
  ```
@@ -6,6 +6,7 @@ module Mongoid
6
6
  # attributes
7
7
  field :_page_title, default: ''
8
8
  field :_page_description, default: ''
9
+ field :_page_keywords, default: ''
9
10
  field :_page_image_url, default: ''
10
11
 
11
12
  field :_template_name
@@ -37,6 +38,10 @@ module Mongoid
37
38
  ::Inverter.meta_tags[:og][:description] = self._page_description
38
39
  end
39
40
 
41
+ unless self._page_keywords.empty?
42
+ ::Inverter.meta_tags[:keywords] = self._page_keywords
43
+ end
44
+
40
45
  unless self._page_image_url.empty?
41
46
  ::Inverter.meta_tags[:og][:image] = self._page_image_url
42
47
  end
@@ -1,3 +1,3 @@
1
1
  module Inverter
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inverter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kravets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-17 00:00:00.000000000 Z
11
+ date: 2015-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: render_anywhere