meta-tags 2.13.0 → 2.14.0

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: 8efce8d6b7587d3d7b4825a1bf2c6d7d805c8c2a11333bde4ecdb744c7733721
4
- data.tar.gz: 0f7b295472e2a1a3c5d398f513c6428aa32fd32e04281e287e54d468d7cc83d7
3
+ metadata.gz: 4a5fade8f101dbfec80dc93b0ede2c9c64961497828fa4544fd7b591f889e479
4
+ data.tar.gz: fb031edc1dc4f16bc286961bc9772f8e9ef34855ce12ad84ae2a3c1306cf0013
5
5
  SHA512:
6
- metadata.gz: 18fb2143f650cdc27d0a181c501b394587bb1e3f411bd5812295eb7090872f3e9cfa38dd83bc2fd0a1af7b1721a03c875001b2454078f0cfc0fc705e1fd1d46b
7
- data.tar.gz: 7322d9d0124336e0637f7107ccbd14424f6d51e751ef6de463db8dedd40f0b8c5bc43d163f16c443da1cc4c20e1ce8fc9b9634ca81d0b96ef747835c463f39df
6
+ metadata.gz: a1ce2e4321fb30f1a2a95107436e7c31f2b6da89e4979988f80cea5690e720cfc7c05997c08b084991b8a3c69f13a99b44ad60af2455dd9944aede8d6ed3c598
7
+ data.tar.gz: ddb7aeb1197227116a51d70d08d9921ce1c9d7194b35dda95fccaa09e4b8caf6e67f76f83b9bd5a46f191806572330d4dac0388a8d0068752e42e33acee8bbf9
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,257 +1,292 @@
1
+ ## 2.14.0 (December 10, 2020) [☰](https://github.com/kpumuk/meta-tags/compare/v2.13.0...v2.14.0)
2
+
3
+ Changes:
4
+
5
+ - Dropped official support for Rails older than 5.1 and Ruby older than 2.5 (both reached their End of Life)
6
+ - Added support for Rails 6.1
7
+
8
+ Bugfixes:
9
+
10
+ - Fixed Rails 6 deprecation warning.
11
+
1
12
  ## 2.13.0 (October 10, 2019) [☰](https://github.com/kpumuk/meta-tags/compare/v2.12.0...v2.13.0)
2
13
 
3
14
  Bugfixes:
4
- - Fixed Rails 6 deprecation warning.
15
+
16
+ - Fixed Rails 6 deprecation warning.
5
17
 
6
18
  ## 2.12.0 (September 10, 2019) [☰](https://github.com/kpumuk/meta-tags/compare/v2.11.1...v2.12.0)
7
19
 
8
20
  Features:
9
- - Indexing directives (`noindex`, `nofollow`, etc. now support an array of robot names as a value).
10
- - Added support for `link[rel='manifest']` ([199](https://github.com/kpumuk/meta-tags/pull/199))
21
+
22
+ - Indexing directives (`noindex`, `nofollow`, etc. now support an array of robot names as a value).
23
+ - Added support for `link[rel='manifest']` ([199](https://github.com/kpumuk/meta-tags/pull/199))
11
24
 
12
25
  Bugfixes:
13
- - When `noindex` uses "robots" as a value, `nofollow` ignores a custom robot name, and switches to "robots" as well
26
+
27
+ - When `noindex` uses "robots" as a value, `nofollow` ignores a custom robot name, and switches to "robots" as well
14
28
 
15
29
  ## 2.11.1 (January 19, 2019) [☰](https://github.com/kpumuk/meta-tags/compare/v2.11.0...v2.11.1)
16
30
 
17
31
  Features:
18
- - Rails 6 is officially supported.
32
+
33
+ - Rails 6 is officially supported.
19
34
 
20
35
  ## 2.11.0 (November 16, 2018) [☰](https://github.com/kpumuk/meta-tags/compare/v2.10.0...v2.11.0)
21
36
 
22
37
  Features:
23
- - Added a configuration option `minify_output` to remove new line characters between meta tags ([182](https://github.com/kpumuk/meta-tags/pull/182))
24
- - Title, description, and keywords can be an object responding to `#to_str` ([183](https://github.com/kpumuk/meta-tags/pull/183))
38
+
39
+ - Added a configuration option `minify_output` to remove new line characters between meta tags ([182](https://github.com/kpumuk/meta-tags/pull/182))
40
+ - Title, description, and keywords can be an object responding to `#to_str` ([183](https://github.com/kpumuk/meta-tags/pull/183))
25
41
 
26
42
  Bugfixes:
27
- - Truncate title before escaping HTML characters ([180](https://github.com/kpumuk/meta-tags/pull/180))
43
+
44
+ - Truncate title before escaping HTML characters ([180](https://github.com/kpumuk/meta-tags/pull/180))
28
45
 
29
46
  ## 2.10.0 (June 8, 2018) [☰](https://github.com/kpumuk/meta-tags/compare/v2.9.0...v2.10.0)
30
47
 
31
48
  Features:
32
- - Allow `MetaTagsCollection#update` to receive an object ([169](https://github.com/kpumuk/meta-tags/pull/169))
49
+
50
+ - Allow `MetaTagsCollection#update` to receive an object ([169](https://github.com/kpumuk/meta-tags/pull/169))
33
51
 
34
52
  ## 2.9.0 (March 29, 2018) [☰](https://github.com/kpumuk/meta-tags/compare/v2.8.0...v2.9.0)
35
53
 
36
54
  Features:
37
- - Added ability to add `index` robots meta tag (thanks to @rafallo)
55
+
56
+ - Added ability to add `index` robots meta tag (thanks to @rafallo)
38
57
 
39
58
  ## 2.8.0 (February 28, 2018) [☰](https://github.com/kpumuk/meta-tags/compare/v2.7.1...v2.8.0)
40
59
 
41
60
  Features:
42
- - Added noarchive support.
61
+
62
+ - Added noarchive support.
43
63
 
44
64
  Changes:
45
- - Updated default description size to 300 as a new recommended truncation limit.
65
+
66
+ - Updated default description size to 300 as a new recommended truncation limit.
46
67
 
47
68
  ## 2.7.1 (February 1, 2018) [☰](https://github.com/kpumuk/meta-tags/compare/v2.7.0...v2.7.1)
48
69
 
49
70
  Changes:
50
- - Properly generate Open Graph meta tags for object types that fail to provide a proper scope (e.g. `restaurant:contact_info` metadata for `restaurant:restaurant` object type).
71
+
72
+ - Properly generate Open Graph meta tags for object types that fail to provide a proper scope (e.g. `restaurant:contact_info` metadata for `restaurant:restaurant` object type).
51
73
 
52
74
  Bugfixes:
53
- - Description truncated to empty string and removed from meta tags when limit is set to `0` (while documentation suggests we should remove limits in this case).
75
+
76
+ - Description truncated to empty string and removed from meta tags when limit is set to `0` (while documentation suggests we should remove limits in this case).
54
77
 
55
78
  ## 2.7.0 (November 22, 2017) [☰](https://github.com/kpumuk/meta-tags/compare/v2.6.0...v2.7.0)
56
79
 
57
80
  Changes:
58
- - Generate open meta tags (`<meta ... >`) instead of closed meta tags (`<meta ... />`) by default, which is . Added a new option to switch back to self-closing meta tags, which are valid in HTML5, but unnecessary.
81
+
82
+ - Generate open meta tags (`<meta ... >`) instead of closed meta tags (`<meta ... />`) by default, which is . Added a new option to switch back to self-closing meta tags, which are valid in HTML5, but unnecessary.
59
83
 
60
84
  ## 2.6.0 (August 24, 2017) [☰](https://github.com/kpumuk/meta-tags/compare/v2.5.0...v2.6.0)
61
85
 
62
86
  Features:
63
- - Optionally avoid downcasing keywords
64
- - Added Rails generator to create an initializer with the default settings.
65
- - Added a configuration option `truncate_site_title_first` which enables site title truncation when title limit is reached.
66
- - When `Time`, `Date`, or `DateTime` passed as a meta tag value, it will be formatted according to ISO 8601.
87
+
88
+ - Optionally avoid downcasing keywords
89
+ - Added Rails generator to create an initializer with the default settings.
90
+ - Added a configuration option `truncate_site_title_first` which enables site title truncation when title limit is reached.
91
+ - When `Time`, `Date`, or `DateTime` passed as a meta tag value, it will be formatted according to ISO 8601.
67
92
 
68
93
  Bugfixes:
69
- - When title limit reached with `reverse` set to `true`, properly truncate the last item of the title array instead of the first one.
70
- - Do not merge title and site title for OpenGraph, site title is available for reference as `:site`, and full title as `:full_title`.
94
+
95
+ - When title limit reached with `reverse` set to `true`, properly truncate the last item of the title array instead of the first one.
96
+ - Do not merge title and site title for OpenGraph, site title is available for reference as `:site`, and full title as `:full_title`.
71
97
 
72
98
  Changes:
73
- - Removed Google "author" and "publisher" links, as Google deprecated these options (https://support.google.com/webmasters/answer/6083347?hl=en)
99
+
100
+ - Removed Google "author" and "publisher" links, as Google deprecated these options (https://support.google.com/webmasters/answer/6083347?hl=en)
74
101
 
75
102
  ## 2.5.0 (August 23, 2017) [☰](https://github.com/kpumuk/meta-tags/compare/v2.4.1...v2.5.0)
76
103
 
77
104
  Features:
78
- - Fully support [Open Graph objects](https://developers.facebook.com/docs/reference/opengraph) meta tags.
105
+
106
+ - Fully support [Open Graph objects](https://developers.facebook.com/docs/reference/opengraph) meta tags.
79
107
 
80
108
  Changes:
81
- - Dropped official support for Rails older than 4.2 and Ruby older than 2.2 (both reached their End of Life)
109
+
110
+ - Dropped official support for Rails older than 4.2 and Ruby older than 2.2 (both reached their End of Life)
82
111
 
83
112
  ## 2.4.1 (May 15, 2017) [☰](https://github.com/kpumuk/meta-tags/compare/v2.4.0...v2.4.1)
84
113
 
85
114
  Features:
86
- - Rails 5.1 support added
115
+
116
+ - Rails 5.1 support added
87
117
 
88
118
  ## 2.4.0 (December 8, 2016) [☰](https://github.com/kpumuk/meta-tags/compare/v2.3.1...v2.4.0)
89
119
 
90
120
  Features:
91
- - Added amphtml links support
121
+
122
+ - Added amphtml links support
92
123
 
93
124
  Bugfixes:
94
- - Fixed `place` attribute meta tag generation
125
+
126
+ - Fixed `place` attribute meta tag generation
95
127
 
96
128
  ## 2.3.1 (September 13, 2016) [☰](https://github.com/kpumuk/meta-tags/compare/v2.2.0...v2.3.1)
97
129
 
98
130
  Changes:
99
- - Added follow meta tag support
131
+
132
+ - Added follow meta tag support
100
133
 
101
134
  Features:
102
- - Added support for article meta tags
135
+
136
+ - Added support for article meta tags
103
137
 
104
138
  ## 2.2.0 (August 24, 2016) [☰](https://github.com/kpumuk/meta-tags/compare/v2.1.0...v2.2.0)
105
139
 
106
140
  Changes:
107
141
 
108
- - Rails < 3.2 is not longer supported
142
+ - Rails < 3.2 is not longer supported
109
143
 
110
144
  Features:
111
145
 
112
- - Added support for `<link rel="image_src" href="...">` tag
113
- - Added support for App Links
114
- - Added support for `follow` meta tag
146
+ - Added support for `<link rel="image_src" href="...">` tag
147
+ - Added support for App Links
148
+ - Added support for `follow` meta tag
115
149
 
116
150
  Bugfixes:
117
151
 
118
- - Fixed double escaping for ampersands (thanks to @srecnig)
119
- - Removed usage of `alias_method_chain` to fix deprecation warnings with Rails 5
120
- - Fixed the issue when title was truncated in some cases, when site_title was blank
121
- - Fixed meta tag attributes for `fb:` meta tags
152
+ - Fixed double escaping for ampersands (thanks to @srecnig)
153
+ - Removed usage of `alias_method_chain` to fix deprecation warnings with Rails 5
154
+ - Fixed the issue when title was truncated in some cases, when site_title was blank
155
+ - Fixed meta tag attributes for `fb:` meta tags
122
156
 
123
157
  ## 2.1.0 (October 6, 2015) [☰](https://github.com/kpumuk/meta-tags/compare/v2.0.0...v2.1.0)
124
158
 
125
159
  Changes:
126
160
 
127
- - Ruby < 2.0 is not longer supported
161
+ - Ruby < 2.0 is not longer supported
128
162
 
129
163
  Features:
130
164
 
131
- - Added charset meta tag
132
- - Added ability to configure limits for title, description, keywords
133
- - Added OpenSearch links support
134
- - Added icon links support
135
- - Alternate links can now be generated for RSS or mobile versions
165
+ - Added charset meta tag
166
+ - Added ability to configure limits for title, description, keywords
167
+ - Added OpenSearch links support
168
+ - Added icon links support
169
+ - Alternate links can now be generated for RSS or mobile versions
136
170
 
137
171
  Bugfixes
138
- - Generate `<meta name=""/>` instead of `<meta property=""/>` for custom meta tags
139
- - Double HTML escaping in meta tags
172
+
173
+ - Generate `<meta name=""/>` instead of `<meta property=""/>` for custom meta tags
174
+ - Double HTML escaping in meta tags
140
175
 
141
176
  ## 2.0.0 (April 15, 2014) [☰](https://github.com/kpumuk/meta-tags/compare/v1.6.0...v2.0.0)
142
177
 
143
178
  Features:
144
179
 
145
- - Fully refactored code base.
180
+ - Fully refactored code base.
146
181
 
147
182
  Bugfixes:
148
183
 
149
- - Symlink references in nested hashes include use normalized meta tag values.
184
+ - Symlink references in nested hashes include use normalized meta tag values.
150
185
 
151
186
  ## 1.6.0 (April 14, 2014) [☰](https://github.com/kpumuk/meta-tags/compare/v1.5.0...v1.6.0)
152
187
 
153
188
  Features:
154
189
 
155
- - Added "alternate" links support
156
- - Added Google "author" and "publisher" links
157
- - Implemented mirrored values inside namespaces declared as hashes
190
+ - Added "alternate" links support
191
+ - Added Google "author" and "publisher" links
192
+ - Implemented mirrored values inside namespaces declared as hashes
158
193
 
159
194
  Breaking changes:
160
195
 
161
- - Removed support of Rails older than 3.0.0 due to the bug in `Hash#deep_merge` (does not support `HashWithIndifferentAccess`)
196
+ - Removed support of Rails older than 3.0.0 due to the bug in `Hash#deep_merge` (does not support `HashWithIndifferentAccess`)
162
197
 
163
198
  ## 1.5.0 (May 7, 2013) [☰](https://github.com/kpumuk/meta-tags/compare/v1.4.1...v1.5.0)
164
199
 
165
200
  Features:
166
201
 
167
- - Added "prev" and "next" links support
168
- - Added refresh meta tag support
202
+ - Added "prev" and "next" links support
203
+ - Added refresh meta tag support
169
204
 
170
205
  ## 1.4.1 (March 14, 2013) [☰](https://github.com/kpumuk/meta-tags/compare/v1.4.0...v1.4.1)
171
206
 
172
207
  Bugfixes:
173
208
 
174
- - Added support for Hash inside of an Array
209
+ - Added support for Hash inside of an Array
175
210
 
176
211
  ## 1.4.0 (March 14, 2013) [☰](https://github.com/kpumuk/meta-tags/compare/v1.3.0...v1.4.0)
177
212
 
178
213
  Features:
179
214
 
180
- - Added support of custom meta tags
215
+ - Added support of custom meta tags
181
216
 
182
217
  ## 1.3.0 (February 13, 2013) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.6...v1.3.0)
183
218
 
184
219
  Features:
185
220
 
186
- - Added Hash and Array as possible contents for the meta tags. Check README for details
187
- - Added support of string meta tag names
188
- - Allow to disable noindex and nofollow using `false` as a value
221
+ - Added Hash and Array as possible contents for the meta tags. Check README for details
222
+ - Added support of string meta tag names
223
+ - Allow to disable noindex and nofollow using `false` as a value
189
224
 
190
225
  Bugfixes:
191
226
 
192
- - Do not display title HTML tag when title is blank
193
- - Do not display OpenGraph tags when content is empty
227
+ - Do not display title HTML tag when title is blank
228
+ - Do not display OpenGraph tags when content is empty
194
229
 
195
230
  ## 1.2.6 (March 4, 2012) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.5...v1.2.6)
196
231
 
197
232
  Features:
198
233
 
199
- - jQuery.pjax support via `display_title` method. Check README for details
234
+ - jQuery.pjax support via `display_title` method. Check README for details
200
235
 
201
236
  ## 1.2.5 (March 3, 2012) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.4...v1.2.5)
202
237
 
203
238
  Bugfixes:
204
239
 
205
- - Fixed bug with overriding open graph attributes
206
- - Fixed incorrect page title when `:site` is is blank
207
- - Normalize `:og` attribute to `:open_graph`
240
+ - Fixed bug with overriding open graph attributes
241
+ - Fixed incorrect page title when `:site` is is blank
242
+ - Normalize `:og` attribute to `:open_graph`
208
243
 
209
244
  ## 1.2.4 (April 26, 2011) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.3...v1.2.4)
210
245
 
211
246
  Features:
212
247
 
213
- - Added support for Open Graph meta tags
248
+ - Added support for Open Graph meta tags
214
249
 
215
250
  Bugfixes:
216
251
 
217
- - Fixed bug with double HTML escaping in title separator
218
- - Allow to set meta title without a separator
252
+ - Fixed bug with double HTML escaping in title separator
253
+ - Allow to set meta title without a separator
219
254
 
220
255
  ## 1.2.2, 1.2.3 (June 10, 2010) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.1...v1.2.3)
221
256
 
222
257
  Bugfixes:
223
258
 
224
- - Fixed action\_pack integration (welcome back `alias_method_chain`)
225
- - Fixed bug when `@page_*` variables did not work
259
+ - Fixed action_pack integration (welcome back `alias_method_chain`)
260
+ - Fixed bug when `@page_*` variables did not work
226
261
 
227
262
  ## 1.2.1 (June 2, 2010) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.0...v1.2.1)
228
263
 
229
264
  Bugfixes:
230
265
 
231
- - Fixed deprecation warning about `html_safe!`
266
+ - Fixed deprecation warning about `html_safe!`
232
267
 
233
268
  ## 1.2.0 (May 31, 2010) [☰](https://github.com/kpumuk/meta-tags/compare/v1.1.1...v1.2.0)
234
269
 
235
270
  Bugfixes:
236
271
 
237
- - Fixed bug when title is set through Array, and `:lowercase` is true
238
- - Updated `display_meta_tags` to be compatible with rails_xss
272
+ - Fixed bug when title is set through Array, and `:lowercase` is true
273
+ - Updated `display_meta_tags` to be compatible with rails_xss
239
274
 
240
275
  ## 1.1.1 (November 21, 2009) [☰](https://github.com/kpumuk/meta-tags/compare/v1.1.0...v1.1.1)
241
276
 
242
277
  Features:
243
278
 
244
- - Added support for canonical link element
245
- - Added YARD documentation
279
+ - Added support for canonical link element
280
+ - Added YARD documentation
246
281
 
247
282
  ## 1.1.0 (November 5, 2009) [☰](https://github.com/kpumuk/meta-tags/commits/v1.1.0)
248
283
 
249
284
  Features:
250
285
 
251
- - Added ability to specify title as an Array of parts
252
- - Added helper for `noindex`
253
- - Added `nofollow` meta tag support
286
+ - Added ability to specify title as an Array of parts
287
+ - Added helper for `noindex`
288
+ - Added `nofollow` meta tag support
254
289
 
255
290
  Bugfixes:
256
291
 
257
- - Fixed Rails 2.3 deprecation warnings
292
+ - Fixed Rails 2.3 deprecation warnings
data/Gemfile CHANGED
@@ -19,7 +19,7 @@ group :test do
19
19
  # Apply RSpec rubocop cops
20
20
  gem 'rubocop-rspec', require: false
21
21
  # We use this gem on CI to calculate code coverage.
22
- gem 'simplecov'
22
+ gem 'simplecov', '>= 0.17.0', '< 0.18'
23
23
  # Format RSpec output for CircleCI
24
24
  gem 'rspec_junit_formatter'
25
25
  end
data/README.md CHANGED
@@ -11,13 +11,13 @@ Search Engine Optimization (SEO) plugin for Ruby on Rails applications.
11
11
 
12
12
  ## Ruby on Rails
13
13
 
14
- MetaTags master branch fully supports Ruby on Rails 4.2+, and is tested against all
15
- major Rails releases up to 6.0.beta2.
14
+ MetaTags master branch fully supports Ruby on Rails 5.1+, and is tested against all
15
+ major Rails releases up to 6.1.
16
16
 
17
- Ruby versions older than 2.2.0 are no longer officially supported.
17
+ Ruby versions older than 2.5 are no longer officially supported.
18
18
 
19
- _Please note_ that we are no longer support Ruby versions older than 2.2.0 and
20
- Ruby on Rails older than 4.2, because they [reached their End of Life](https://github.com/kpumuk/meta-tags/pull/143).
19
+ _Please note_ that we are no longer support Ruby versions older than 2.4.0 and
20
+ Ruby on Rails older than 5.1, because they [reached their End of Life](https://github.com/kpumuk/meta-tags/pull/143).
21
21
 
22
22
  ## Installation
23
23
 
@@ -152,30 +152,30 @@ If you want to set the title and display another text, use this:
152
152
 
153
153
  Use these options to customize the title format:
154
154
 
155
- | Option | Description |
156
- | -------------- | ----------- |
157
- | `:site` | site title |
158
- | `:title` | page title |
159
- | `:description` | page description |
160
- | `:keywords` | page keywords |
161
- | `:charset` | page character set |
162
- | `:prefix` | text between site name and separator |
163
- | `:separator` | text used to separate website name from page title |
164
- | `:suffix` | text between separator and page title |
165
- | `:lowercase` | when true, the page name will be lowercase |
166
- | `:reverse` | when true, the page and site names will be reversed |
167
- | `:noindex` | add noindex meta tag; when true, 'robots' will be used; accepts a string with a robot name, or an array of strings |
168
- | `:index` | add index meta tag; when true, 'robots' will be used; accepts a string with a robot name, or an array of strings |
169
- | `:nofollow` | add nofollow meta tag; when true, 'robots' will be used; accepts a string with a robot name, or an array of strings |
170
- | `:follow` | add follow meta tag; when true, 'robots' will be used; accepts a string with a robot name, or an array of strings |
155
+ | Option | Description |
156
+ | -------------- | -------------------------------------------------------------------------------------------------------------------- |
157
+ | `:site` | site title |
158
+ | `:title` | page title |
159
+ | `:description` | page description |
160
+ | `:keywords` | page keywords |
161
+ | `:charset` | page character set |
162
+ | `:prefix` | text between site name and separator |
163
+ | `:separator` | text used to separate website name from page title |
164
+ | `:suffix` | text between separator and page title |
165
+ | `:lowercase` | when true, the page name will be lowercase |
166
+ | `:reverse` | when true, the page and site names will be reversed |
167
+ | `:noindex` | add noindex meta tag; when true, 'robots' will be used; accepts a string with a robot name, or an array of strings |
168
+ | `:index` | add index meta tag; when true, 'robots' will be used; accepts a string with a robot name, or an array of strings |
169
+ | `:nofollow` | add nofollow meta tag; when true, 'robots' will be used; accepts a string with a robot name, or an array of strings |
170
+ | `:follow` | add follow meta tag; when true, 'robots' will be used; accepts a string with a robot name, or an array of strings |
171
171
  | `:noarchive` | add noarchive meta tag; when true, 'robots' will be used; accepts a string with a robot name, or an array of strings |
172
- | `:canonical` | add canonical link tag |
173
- | `:prev` | add prev link tag |
174
- | `:next` | add next link tag |
175
- | `:image_src` | add image_src link tag |
176
- | `:og` | add Open Graph tags (Hash) |
177
- | `:twitter` | add Twitter tags (Hash) |
178
- | `:refresh` | refresh interval and optionally url to redirect to |
172
+ | `:canonical` | add canonical link tag |
173
+ | `:prev` | add prev link tag |
174
+ | `:next` | add next link tag |
175
+ | `:image_src` | add image_src link tag |
176
+ | `:og` | add Open Graph tags (Hash) |
177
+ | `:twitter` | add Twitter tags (Hash) |
178
+ | `:refresh` | refresh interval and optionally url to redirect to |
179
179
 
180
180
  And here are a few examples to give you ideas.
181
181
 
@@ -307,7 +307,7 @@ Recommended title tag length: up to <b>70 characters</b>, <b>10 words</b>.
307
307
 
308
308
  Further reading:
309
309
 
310
- * [Title Tag](https://moz.com/learn/seo/title-tag)
310
+ - [Title Tag](https://moz.com/learn/seo/title-tag)
311
311
 
312
312
  ### Description
313
313
 
@@ -325,8 +325,8 @@ Recommended description tag length: up to <b>300 characters</b>.
325
325
 
326
326
  Further reading:
327
327
 
328
- * [Meta Description](https://moz.com/learn/seo/meta-description)
329
- * [How Long Should Your Meta Description Be? (2018 Edition)](https://moz.com/blog/how-long-should-your-meta-description-be-2018)
328
+ - [Meta Description](https://moz.com/learn/seo/meta-description)
329
+ - [How Long Should Your Meta Description Be? (2018 Edition)](https://moz.com/blog/how-long-should-your-meta-description-be-2018)
330
330
 
331
331
  ### Keywords
332
332
 
@@ -360,8 +360,8 @@ This is useful for pages like login, password reset, privacy policy, etc.
360
360
 
361
361
  Further reading:
362
362
 
363
- * [Blocking Google](http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=93708)
364
- * [Using meta tags to block access to your site](http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=93710)
363
+ - [Blocking Google](http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=93708)
364
+ - [Using meta tags to block access to your site](http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=93710)
365
365
 
366
366
  ### Index
367
367
 
@@ -388,12 +388,12 @@ set_meta_tags nofollow: 'googlebot'
388
388
 
389
389
  Further reading:
390
390
 
391
- * [About rel="nofollow"](http://www.google.com/support/webmasters/bin/answer.py?answer=96569)
392
- * [Meta tags](http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=79812)
391
+ - [About rel="nofollow"](http://www.google.com/support/webmasters/bin/answer.py?answer=96569)
392
+ - [Meta tags](http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=79812)
393
393
 
394
394
  ### Follow
395
395
 
396
- Follow will work with Noindex meta tag
396
+ Follow will work with Noindex meta tag
397
397
 
398
398
  ```ruby
399
399
  set_meta_tags noindex: true, follow: true
@@ -416,8 +416,8 @@ set_meta_tags canonical: "http://yoursite.com/canonical/url"
416
416
 
417
417
  Further reading:
418
418
 
419
- * [About rel="canonical"](http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=139394)
420
- * [Canonicalization](http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=139066)
419
+ - [About rel="canonical"](http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=139394)
420
+ - [Canonicalization](http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=139066)
421
421
 
422
422
  ### Icon
423
423
 
@@ -440,9 +440,8 @@ set_meta_tags icon: [
440
440
 
441
441
  Further reading:
442
442
 
443
- * [Favicon](https://www.wikiwand.com/en/Favicon)
444
- * [Touch Icons](https://mathiasbynens.be/notes/touch-icons)
445
-
443
+ - [Favicon](https://www.wikiwand.com/en/Favicon)
444
+ - [Touch Icons](https://mathiasbynens.be/notes/touch-icons)
446
445
 
447
446
  ### Multi-regional and multilingual URLs, RSS and mobile links
448
447
 
@@ -471,9 +470,9 @@ set_meta_tags alternate: [
471
470
 
472
471
  Further reading:
473
472
 
474
- * [Multi-regional and multilingual sites](https://support.google.com/webmasters/answer/182192)
475
- * [About rel="alternate" hreflang="x"](http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=189077)
476
- * [Separate URLs](https://developers.google.com/webmasters/mobile-sites/mobile-seo/configurations/separate-urls#annotation-in-the-html)
473
+ - [Multi-regional and multilingual sites](https://support.google.com/webmasters/answer/182192)
474
+ - [About rel="alternate" hreflang="x"](http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=189077)
475
+ - [Separate URLs](https://developers.google.com/webmasters/mobile-sites/mobile-seo/configurations/separate-urls#annotation-in-the-html)
477
476
 
478
477
  ### Pagination links
479
478
 
@@ -490,8 +489,8 @@ set_meta_tags next: "http://yoursite.com/url?page=3"
490
489
 
491
490
  Further reading:
492
491
 
493
- * [Pagination](http://support.google.com/webmasters/bin/answer.py?hl=en&answer=1663744)
494
- * [Pagination with rel="next" and rel="prev"](http://googlewebmastercentral.blogspot.ca/2011/09/pagination-with-relnext-and-relprev.html)
492
+ - [Pagination](http://support.google.com/webmasters/bin/answer.py?hl=en&answer=1663744)
493
+ - [Pagination with rel="next" and rel="prev"](http://googlewebmastercentral.blogspot.ca/2011/09/pagination-with-relnext-and-relprev.html)
495
494
 
496
495
  ### image_src links
497
496
 
@@ -518,8 +517,8 @@ set_meta_tags amphtml: url_for(format: :amp, only_path: false)
518
517
 
519
518
  To link back to normal version, use `canonical`.
520
519
 
521
- * [What Is AMP?](https://www.ampproject.org/learn/about-amp/)
522
- * [Make Your Page Discoverable](https://www.ampproject.org/docs/guides/discovery)
520
+ - [What Is AMP?](https://www.ampproject.org/learn/about-amp/)
521
+ - [Make Your Page Discoverable](https://www.ampproject.org/docs/guides/discovery)
523
522
 
524
523
  ### Refresh interval and redirect URL
525
524
 
@@ -539,9 +538,8 @@ set_meta_tags refresh: '5;url=http://example.com'
539
538
 
540
539
  Further reading:
541
540
 
542
- * [Meta refresh](http://en.wikipedia.org/wiki/Meta_refresh)
543
- * [What is the Meta Refresh Tag](http://webdesign.about.com/od/metataglibraries/a/aa080300a.htm)
544
-
541
+ - [Meta refresh](http://en.wikipedia.org/wiki/Meta_refresh)
542
+ - [What is the Meta Refresh Tag](http://webdesign.about.com/od/metataglibraries/a/aa080300a.htm)
545
543
 
546
544
  ### Open Search
547
545
 
@@ -557,8 +555,8 @@ set_meta_tags open_search: {
557
555
 
558
556
  Further reading:
559
557
 
560
- * [OpenSearch specs](http://www.opensearch.org/Specifications/OpenSearch/1.1)
561
- * [OpenSearch wiki](http://en.wikipedia.org/wiki/OpenSearch)
558
+ - [OpenSearch specs](http://www.opensearch.org/Specifications/OpenSearch/1.1)
559
+ - [OpenSearch wiki](http://en.wikipedia.org/wiki/OpenSearch)
562
560
 
563
561
  ### Hashes
564
562
 
@@ -660,8 +658,8 @@ set_meta_tags article: {
660
658
 
661
659
  Further reading:
662
660
 
663
- * [Open Graph protocol](http://developers.facebook.com/docs/opengraph/)
664
- * [Must-Have Social Meta Tags for Twitter, Google+, Facebook and More](https://moz.com/blog/meta-data-templates-123)
661
+ - [Open Graph protocol](http://developers.facebook.com/docs/opengraph/)
662
+ - [Must-Have Social Meta Tags for Twitter, Google+, Facebook and More](https://moz.com/blog/meta-data-templates-123)
665
663
 
666
664
  ### Twitter Cards
667
665
 
@@ -698,7 +696,7 @@ set_meta_tags twitter: {
698
696
 
699
697
  Further reading:
700
698
 
701
- * [Twitter Cards Documentation](https://dev.twitter.com/cards/)
699
+ - [Twitter Cards Documentation](https://dev.twitter.com/cards/)
702
700
 
703
701
  ### App Links
704
702
 
@@ -719,7 +717,7 @@ set_meta_tags al: {
719
717
 
720
718
  Further reading:
721
719
 
722
- * [App Links Documentation](https://developers.facebook.com/docs/applinks)
720
+ - [App Links Documentation](https://developers.facebook.com/docs/applinks)
723
721
 
724
722
  ### Custom meta tags
725
723
 
@@ -1,7 +1,7 @@
1
1
  -----BEGIN CERTIFICATE-----
2
2
  MIIDODCCAiCgAwIBAgIBATANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhrcHVt
3
- dWsvREM9a3B1bXVrL0RDPWluZm8wHhcNMTgxMTE2MTgxOTIzWhcNMTkxMTE2MTgx
4
- OTIzWjAjMSEwHwYDVQQDDBhrcHVtdWsvREM9a3B1bXVrL0RDPWluZm8wggEiMA0G
3
+ dWsvREM9a3B1bXVrL0RDPWluZm8wHhcNMjAxMjEwMjA1MTE5WhcNMjExMjEwMjA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4IBAQBdcrpl
14
+ 32OlNaf68v38yzqYkviLELtbzRvEpRuQWZZyxOwU1OWSFAWkkALuseLWHDLYRDE8
15
+ lOzQHewKodqaSPEo63vMZ28UQ3kDP1YE+cXR12fOg4YbCH8VETrTJa3X0AOOAbgA
16
+ ZLMcZD6wu9Zu2rPhxLxs6Q/PaGGEc8bonOirCZrwVDzHFA1cPjcSoApdsyGdRiyj
17
+ 1f+XHXjCE5A1A6b8o4ffpAI6gkuaQOIrgGCyLS9oos6DSuofkvXI9g62G+2ZOmKJ
18
+ U97JEQmXCpruLEeSVT2UqR+iJAWEAxPzqzDbTzZBTSPKn+nXeuF6h81e4hsJtkeJ
19
+ HkYAoatF9iZrxT4E
20
20
  -----END CERTIFICATE-----
@@ -2,6 +2,6 @@
2
2
 
3
3
  module MetaTags
4
4
  # Gem version.
5
- VERSION = '2.13.0'
5
+ VERSION = '2.14.0'
6
6
  public_constant :VERSION
7
7
  end
@@ -21,9 +21,9 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ["lib"]
23
23
 
24
- spec.add_dependency "actionpack", ">= 3.2.0", "< 6.1"
24
+ spec.add_dependency "actionpack", ">= 3.2.0", "< 6.2"
25
25
 
26
- spec.add_development_dependency "railties", ">= 3.2.0", "< 6.1"
26
+ spec.add_development_dependency "railties", ">= 3.2.0", "< 6.2"
27
27
  spec.add_development_dependency "rake", "~> 13.0"
28
28
  spec.add_development_dependency "rspec", "~> 3.9.0"
29
29
  spec.add_development_dependency "rspec-html-matchers", "~> 0.9.1"
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meta-tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.0
4
+ version: 2.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmytro Shteflyuk
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain:
11
11
  - |
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EK0+7FQk0OkRVumdyanEE
28
- LUchqnAWHnNCdQhEhsnbYhSvG0NE2uzMWeUd6uDONYsRFNRXaRwj8tykWgKZvIod
29
- j0ZkOZOMk6hzny9+AnYZ7eiUqp/XX7Hn+hqtl/AebKhbFapnTu0n7KcfM0oDaLUr
30
- Fc+FAHErSClMb7YN
24
+ BBYwFIESa3B1bXVrQGtwdW11ay5pbmZvMA0GCSqGSIb3DQEBCwUAA4IBAQBdcrpl
25
+ 32OlNaf68v38yzqYkviLELtbzRvEpRuQWZZyxOwU1OWSFAWkkALuseLWHDLYRDE8
26
+ lOzQHewKodqaSPEo63vMZ28UQ3kDP1YE+cXR12fOg4YbCH8VETrTJa3X0AOOAbgA
27
+ ZLMcZD6wu9Zu2rPhxLxs6Q/PaGGEc8bonOirCZrwVDzHFA1cPjcSoApdsyGdRiyj
28
+ 1f+XHXjCE5A1A6b8o4ffpAI6gkuaQOIrgGCyLS9oos6DSuofkvXI9g62G+2ZOmKJ
29
+ U97JEQmXCpruLEeSVT2UqR+iJAWEAxPzqzDbTzZBTSPKn+nXeuF6h81e4hsJtkeJ
30
+ HkYAoatF9iZrxT4E
31
31
  -----END CERTIFICATE-----
32
- date: 2019-10-10 00:00:00.000000000 Z
32
+ date: 2020-12-10 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: actionpack
@@ -40,7 +40,7 @@ dependencies:
40
40
  version: 3.2.0
41
41
  - - "<"
42
42
  - !ruby/object:Gem::Version
43
- version: '6.1'
43
+ version: '6.2'
44
44
  type: :runtime
45
45
  prerelease: false
46
46
  version_requirements: !ruby/object:Gem::Requirement
@@ -50,7 +50,7 @@ dependencies:
50
50
  version: 3.2.0
51
51
  - - "<"
52
52
  - !ruby/object:Gem::Version
53
- version: '6.1'
53
+ version: '6.2'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: railties
56
56
  requirement: !ruby/object:Gem::Requirement
@@ -60,7 +60,7 @@ dependencies:
60
60
  version: 3.2.0
61
61
  - - "<"
62
62
  - !ruby/object:Gem::Version
63
- version: '6.1'
63
+ version: '6.2'
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
@@ -70,7 +70,7 @@ dependencies:
70
70
  version: 3.2.0
71
71
  - - "<"
72
72
  - !ruby/object:Gem::Version
73
- version: '6.1'
73
+ version: '6.2'
74
74
  - !ruby/object:Gem::Dependency
75
75
  name: rake
76
76
  requirement: !ruby/object:Gem::Requirement
@@ -147,7 +147,7 @@ homepage: http://github.com/kpumuk/meta-tags
147
147
  licenses:
148
148
  - MIT
149
149
  metadata: {}
150
- post_install_message:
150
+ post_install_message:
151
151
  rdoc_options: []
152
152
  require_paths:
153
153
  - lib
@@ -162,8 +162,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  - !ruby/object:Gem::Version
163
163
  version: '0'
164
164
  requirements: []
165
- rubygems_version: 3.0.6
166
- signing_key:
165
+ rubygems_version: 3.1.2
166
+ signing_key:
167
167
  specification_version: 4
168
168
  summary: Collection of SEO helpers for Ruby on Rails.
169
169
  test_files: []
metadata.gz.sig CHANGED
@@ -1 +1,3 @@
1
- H\�}*��/��j���KIJ^I���l��i[e .���y^���#t�� ���x�(�,Ÿfc%�>��ͥ��(XT4'F�<�t�:a:�^����!����D���vɽRHbbO��&�Z(F2��Uz���-��n8��{�ys2t���¹p YW���=�V1H����K��b��&QW��\��Yi�Ҿ�Jr,�I7藏� ;9d�A��4!8��(�lP��N-&�a֋��9�R|�[=Θ�nMwo�p�-ߥ�
1
+ C���)I[�{*!S:�U�.��K��q�$%�5KcSK��QS���Bwnd*�񍰽�Q(108T=YWo����2����QkxS|�
2
+ R�p��'j�g^�G#����x�� |8u�5|#R��o\C�&�T@�RhEӯ����{} ]W/���6;�7v�a��ԥ��
3
+ �1خ �tǥ�Ƴ� �-�Un�`Ӳ��6>m7լ,����G!J���l�