cama_meta_tag 1.7 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8625ccb9d11218c7c863d3004df0d944fa5429b14397554a108a7c0b54ec5ff2
4
- data.tar.gz: 4d0910d8649521fc56044cd87a0c7ccec397c8210961bf5d38f76afaab22f0ad
3
+ metadata.gz: f820766a56fe6eb7875859a8153eb97bb17c4ddad7b222f9b39aec5f3438aded
4
+ data.tar.gz: 52bff464e68cc4d17d966921acbe458ef94cf81ff7d0493b0ccbc7952f07da17
5
5
  SHA512:
6
- metadata.gz: 848b89a5afff61c844e9cbf52143aa23f911265ea07fde4eb1fbec387b0349d8c592dc91cf3dd892e0e72e5de50943655c5d7803aad435e6e81a03d83203bb22
7
- data.tar.gz: 6fcfcf3183488b5b5be35cc37a5636e2ae71c99e2e5a44ca8b728a4b5bddb6ef1e66c8ba40a556d5366a9a4b8b349354616a2ed91fcec0ecd41eb6f04c602e8e
6
+ metadata.gz: 486ffaf74ba4192e1a772475d563f3ff890570914917b7fe215e8d33f9b9f388e9156772188e85553cda997ad5cc4265019bee1dce74ce0af563c355f86d8d31
7
+ data.tar.gz: '07925587bcecfcf0706a27c19521fdd3671636d501e3ed3bae9295ed4c58e27e0e4b8ad6d439e1affbf06771e5b37e92884c8e686980bd706b2f458368ca0672'
@@ -20,10 +20,12 @@ module Plugins::CamaMetaTag::MainHelper
20
20
  keywords: page.get_option('keywords').to_s.translate,
21
21
  descr: page.get_option('seo_description').to_s.translate,
22
22
  author: page.get_option('seo_author').to_s.translate,
23
- image: page.get_option('seo_image').to_s.translate
23
+ image: page.get_option('seo_image').to_s.translate,
24
+ canonical: page.get_option('seo_canonical').to_s.translate
24
25
  }
25
26
  args[:seo_data][:keywords] = tmp[:keywords] if tmp[:keywords].present?
26
27
  args[:seo_data][:author] = tmp[:author] if tmp[:author].present?
28
+ args[:seo_data][:canonical] = tmp[:canonical] if tmp[:canonical].present?
27
29
  if tmp[:title].present?
28
30
  args[:seo_data][:title] = tmp[:title]
29
31
  args[:seo_data][:og][:title] = tmp[:title]
@@ -27,6 +27,10 @@
27
27
  <%= label_tag 'options[seo_image]', t('.seo_image', default: t('.seo_image', locale: :en)) %> <br>
28
28
  <%= hidden_field_tag 'options[seo_image]', post.get_option('seo_image') %>
29
29
  </div>
30
+ <div class="form-group">
31
+ <%= label_tag 'options[seo_canonical]', t('.seo_canonical', default: t('.seo_canonical', locale: :en)) %> <br>
32
+ <%= text_field_tag 'options[seo_canonical]', post.get_option('seo_canonical'), class: 'form-control' %>
33
+ </div>
30
34
  </div>
31
35
  </div>
32
36
  <script type="application/javascript">
@@ -15,6 +15,7 @@ en:
15
15
  seo_descr: 'Description'
16
16
  seo_author: 'Author'
17
17
  seo_image: 'Image (Ideal: 1200 x 1200 or larger with a square aspect ratio)'
18
+ seo_canonical: 'Canonical Link'
18
19
 
19
20
  nl:
20
21
  plugins:
@@ -33,6 +34,7 @@ nl:
33
34
  seo_descr: 'Beschrijving'
34
35
  seo_author: 'Auteur'
35
36
  seo_image: 'Afbeelding (Ideal: 1200 x 1200 of groter met een vierkant aspect ratio)'
37
+ seo_canonical: 'Canonieke Link'
36
38
 
37
39
  pt:
38
40
  plugins:
@@ -51,7 +53,7 @@ pt:
51
53
  seo_descr: 'Descrição'
52
54
  seo_author: 'Autor'
53
55
  seo_image: 'Imagem (Ideal: 1200 x 1200 ou maior com uma relação de aspecto quadrada)'
54
-
56
+ seo_canonical: 'Link Canônico'
55
57
 
56
58
 
57
59
  pt-BR:
@@ -71,6 +73,7 @@ pt-BR:
71
73
  seo_descr: 'Descrição'
72
74
  seo_author: 'Autor'
73
75
  seo_image: 'Imagem (Ideal: 1200 x 1200 ou maior com uma relação de aspecto quadrada)'
76
+ seo_canonical: 'Canonical Link'
74
77
 
75
78
 
76
79
 
@@ -91,6 +94,7 @@ de:
91
94
  seo_descr: 'Beschreibung'
92
95
  seo_author: 'Autor'
93
96
  seo_image: 'Bild (Ideal: 1200 x 1200 oder größer mit einem quadratischen Seitenverhältnis)'
97
+ seo_canonical: 'Kanonischer Link'
94
98
 
95
99
 
96
100
  it:
@@ -110,6 +114,7 @@ it:
110
114
  seo_descr: 'Descrizione'
111
115
  seo_author: 'Autore'
112
116
  seo_image: 'Immagine (ideale: 1200 x 1200 o superiore con un rapporto di aspetto di quadratura)'
117
+ seo_canonical: 'Collegamento Canonico'
113
118
 
114
119
  zh-CN:
115
120
  plugins:
@@ -128,6 +133,7 @@ zh-CN:
128
133
  seo_descr: '描述'
129
134
  seo_author: '作者'
130
135
  seo_image: '图片(理想:1200 x 1200或更大,正方形高宽比)'
136
+ seo_canonical: '规范链接'
131
137
 
132
138
  ru:
133
139
  plugins:
@@ -146,6 +152,7 @@ ru:
146
152
  seo_descr: 'Описание'
147
153
  seo_author: 'автор'
148
154
  seo_image: 'Изображение (Идеально: 1200 х 1200 или больше с квадратным соотношением сторон)'
155
+ seo_canonical: 'каноническая ссылка'
149
156
 
150
157
  es:
151
158
  plugins:
@@ -164,3 +171,4 @@ es:
164
171
  seo_descr: 'Descripción'
165
172
  seo_author: 'Autor'
166
173
  seo_image: 'Imagen (Ideal: 1200 x 1200 o mayor con una relación de aspecto cuadrada)'
174
+ seo_canonical: 'Enlace Canónico'
@@ -1,3 +1,3 @@
1
1
  module CamaMetaTag
2
- VERSION = "1.7"
2
+ VERSION = "1.7.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cama_meta_tag
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.7'
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Owen Peredo
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-11 00:00:00.000000000 Z
11
+ date: 2021-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -100,7 +100,7 @@ homepage: https://github.com/owen2345/camaleon-cms-seo
100
100
  licenses:
101
101
  - MIT
102
102
  metadata: {}
103
- post_install_message:
103
+ post_install_message:
104
104
  rdoc_options: []
105
105
  require_paths:
106
106
  - lib
@@ -115,46 +115,45 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  requirements: []
118
- rubyforge_project:
119
- rubygems_version: 2.7.7
120
- signing_key:
118
+ rubygems_version: 3.1.2
119
+ signing_key:
121
120
  specification_version: 4
122
121
  summary: Permit to manage the seo attributes for each page of Camaleon CMS.
123
122
  test_files:
124
- - test/cama_meta_tag_test.rb
123
+ - test/dummy/app/controllers/application_controller.rb
124
+ - test/dummy/app/views/layouts/application.html.erb
125
125
  - test/dummy/app/assets/javascripts/application.js
126
126
  - test/dummy/app/assets/stylesheets/application.css
127
- - test/dummy/app/controllers/application_controller.rb
128
127
  - test/dummy/app/helpers/application_helper.rb
129
- - test/dummy/app/views/layouts/application.html.erb
130
- - test/dummy/bin/bundle
131
- - test/dummy/bin/rails
132
128
  - test/dummy/bin/rake
133
129
  - test/dummy/bin/setup
134
- - test/dummy/config/application.rb
135
- - test/dummy/config/boot.rb
136
- - test/dummy/config/database.yml
137
- - test/dummy/config/environment.rb
138
- - test/dummy/config/environments/development.rb
130
+ - test/dummy/bin/bundle
131
+ - test/dummy/bin/rails
132
+ - test/dummy/config/secrets.yml
133
+ - test/dummy/config/routes.rb
134
+ - test/dummy/config/locales/en.yml
139
135
  - test/dummy/config/environments/production.rb
136
+ - test/dummy/config/environments/development.rb
140
137
  - test/dummy/config/environments/test.rb
141
- - test/dummy/config/initializers/assets.rb
138
+ - test/dummy/config/environment.rb
139
+ - test/dummy/config/application.rb
140
+ - test/dummy/config/database.yml
141
+ - test/dummy/config/boot.rb
142
142
  - test/dummy/config/initializers/backtrace_silencers.rb
143
- - test/dummy/config/initializers/cookies_serializer.rb
144
- - test/dummy/config/initializers/filter_parameter_logging.rb
145
- - test/dummy/config/initializers/inflections.rb
146
143
  - test/dummy/config/initializers/mime_types.rb
144
+ - test/dummy/config/initializers/filter_parameter_logging.rb
147
145
  - test/dummy/config/initializers/session_store.rb
148
146
  - test/dummy/config/initializers/wrap_parameters.rb
149
- - test/dummy/config/locales/en.yml
150
- - test/dummy/config/routes.rb
151
- - test/dummy/config/secrets.yml
147
+ - test/dummy/config/initializers/assets.rb
148
+ - test/dummy/config/initializers/cookies_serializer.rb
149
+ - test/dummy/config/initializers/inflections.rb
152
150
  - test/dummy/config.ru
153
- - test/dummy/public/404.html
151
+ - test/dummy/Rakefile
152
+ - test/dummy/public/favicon.ico
154
153
  - test/dummy/public/422.html
155
154
  - test/dummy/public/500.html
156
- - test/dummy/public/favicon.ico
157
- - test/dummy/Rakefile
155
+ - test/dummy/public/404.html
158
156
  - test/dummy/README.rdoc
157
+ - test/cama_meta_tag_test.rb
159
158
  - test/integration/navigation_test.rb
160
159
  - test/test_helper.rb