meta-tags 2.11.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: 827318e8c08dab5cef3d26fb5b3be72c2c181c503d7d3c784c0175b6d0a4d8dd
4
- data.tar.gz: 57aba518f8fae0222b7a7f88610de04504f9b8c09e617106b7f83856f33bca36
3
+ metadata.gz: 4a5fade8f101dbfec80dc93b0ede2c9c64961497828fa4544fd7b591f889e479
4
+ data.tar.gz: fb031edc1dc4f16bc286961bc9772f8e9ef34855ce12ad84ae2a3c1306cf0013
5
5
  SHA512:
6
- metadata.gz: fd1ce5878ae54cf7b99c2815623a896fe34a03aba1c72f8914a7a617a508baee705cdeb64b8c3d325c5408029681db1c0015b17baf96c081da18161a93658b57
7
- data.tar.gz: eb609dcf0374e880ff75eb664467f04f80367d605ef7bd84fc4446b3df579bbf6fd5ed5925485b5f39ce400e8328a6ccebf056a047a5bc7f11614694e0dfd9c5
6
+ metadata.gz: a1ce2e4321fb30f1a2a95107436e7c31f2b6da89e4979988f80cea5690e720cfc7c05997c08b084991b8a3c69f13a99b44ad60af2455dd9944aede8d6ed3c598
7
+ data.tar.gz: ddb7aeb1197227116a51d70d08d9921ce1c9d7194b35dda95fccaa09e4b8caf6e67f76f83b9bd5a46f191806572330d4dac0388a8d0068752e42e33acee8bbf9
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,238 +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
+
12
+ ## 2.13.0 (October 10, 2019) [☰](https://github.com/kpumuk/meta-tags/compare/v2.12.0...v2.13.0)
13
+
14
+ Bugfixes:
15
+
16
+ - Fixed Rails 6 deprecation warning.
17
+
18
+ ## 2.12.0 (September 10, 2019) [☰](https://github.com/kpumuk/meta-tags/compare/v2.11.1...v2.12.0)
19
+
20
+ Features:
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))
24
+
25
+ Bugfixes:
26
+
27
+ - When `noindex` uses "robots" as a value, `nofollow` ignores a custom robot name, and switches to "robots" as well
28
+
29
+ ## 2.11.1 (January 19, 2019) [☰](https://github.com/kpumuk/meta-tags/compare/v2.11.0...v2.11.1)
30
+
31
+ Features:
32
+
33
+ - Rails 6 is officially supported.
34
+
1
35
  ## 2.11.0 (November 16, 2018) [☰](https://github.com/kpumuk/meta-tags/compare/v2.10.0...v2.11.0)
2
36
 
3
37
  Features:
4
- - Added a configuration option `minify_output` to remove new line characters between meta tags ([182](https://github.com/kpumuk/meta-tags/pull/182))
5
- 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))
6
41
 
7
42
  Bugfixes:
8
- - 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))
9
45
 
10
46
  ## 2.10.0 (June 8, 2018) [☰](https://github.com/kpumuk/meta-tags/compare/v2.9.0...v2.10.0)
11
47
 
12
48
  Features:
13
- - 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))
14
51
 
15
52
  ## 2.9.0 (March 29, 2018) [☰](https://github.com/kpumuk/meta-tags/compare/v2.8.0...v2.9.0)
16
53
 
17
54
  Features:
18
- - Added ability to add `index` robots meta tag (thanks to @rafallo)
55
+
56
+ - Added ability to add `index` robots meta tag (thanks to @rafallo)
19
57
 
20
58
  ## 2.8.0 (February 28, 2018) [☰](https://github.com/kpumuk/meta-tags/compare/v2.7.1...v2.8.0)
21
59
 
22
60
  Features:
23
- - Added noarchive support.
61
+
62
+ - Added noarchive support.
24
63
 
25
64
  Changes:
26
- - 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.
27
67
 
28
68
  ## 2.7.1 (February 1, 2018) [☰](https://github.com/kpumuk/meta-tags/compare/v2.7.0...v2.7.1)
29
69
 
30
70
  Changes:
31
- - 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).
32
73
 
33
74
  Bugfixes:
34
- - 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).
35
77
 
36
78
  ## 2.7.0 (November 22, 2017) [☰](https://github.com/kpumuk/meta-tags/compare/v2.6.0...v2.7.0)
37
79
 
38
80
  Changes:
39
- - 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.
40
83
 
41
84
  ## 2.6.0 (August 24, 2017) [☰](https://github.com/kpumuk/meta-tags/compare/v2.5.0...v2.6.0)
42
85
 
43
86
  Features:
44
- - Optionally avoid downcasing keywords
45
- - Added Rails generator to create an initializer with the default settings.
46
- - Added a configuration option `truncate_site_title_first` which enables site title truncation when title limit is reached.
47
- - 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.
48
92
 
49
93
  Bugfixes:
50
- - When title limit reached with `reverse` set to `true`, properly truncate the last item of the title array instead of the first one.
51
- - 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`.
52
97
 
53
98
  Changes:
54
- - 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)
55
101
 
56
102
  ## 2.5.0 (August 23, 2017) [☰](https://github.com/kpumuk/meta-tags/compare/v2.4.1...v2.5.0)
57
103
 
58
104
  Features:
59
- - 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.
60
107
 
61
108
  Changes:
62
- - 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)
63
111
 
64
112
  ## 2.4.1 (May 15, 2017) [☰](https://github.com/kpumuk/meta-tags/compare/v2.4.0...v2.4.1)
65
113
 
66
114
  Features:
67
- - Rails 5.1 support added
115
+
116
+ - Rails 5.1 support added
68
117
 
69
118
  ## 2.4.0 (December 8, 2016) [☰](https://github.com/kpumuk/meta-tags/compare/v2.3.1...v2.4.0)
70
119
 
71
120
  Features:
72
- - Added amphtml links support
121
+
122
+ - Added amphtml links support
73
123
 
74
124
  Bugfixes:
75
- - Fixed `place` attribute meta tag generation
125
+
126
+ - Fixed `place` attribute meta tag generation
76
127
 
77
128
  ## 2.3.1 (September 13, 2016) [☰](https://github.com/kpumuk/meta-tags/compare/v2.2.0...v2.3.1)
78
129
 
79
130
  Changes:
80
- - Added follow meta tag support
131
+
132
+ - Added follow meta tag support
81
133
 
82
134
  Features:
83
- - Added support for article meta tags
135
+
136
+ - Added support for article meta tags
84
137
 
85
138
  ## 2.2.0 (August 24, 2016) [☰](https://github.com/kpumuk/meta-tags/compare/v2.1.0...v2.2.0)
86
139
 
87
140
  Changes:
88
141
 
89
- - Rails < 3.2 is not longer supported
142
+ - Rails < 3.2 is not longer supported
90
143
 
91
144
  Features:
92
145
 
93
- - Added support for `<link rel="image_src" href="...">` tag
94
- - Added support for App Links
95
- - 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
96
149
 
97
150
  Bugfixes:
98
151
 
99
- - Fixed double escaping for ampersands (thanks to @srecnig)
100
- - Removed usage of `alias_method_chain` to fix deprecation warnings with Rails 5
101
- - Fixed the issue when title was truncated in some cases, when site_title was blank
102
- - 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
103
156
 
104
157
  ## 2.1.0 (October 6, 2015) [☰](https://github.com/kpumuk/meta-tags/compare/v2.0.0...v2.1.0)
105
158
 
106
159
  Changes:
107
160
 
108
- - Ruby < 2.0 is not longer supported
161
+ - Ruby < 2.0 is not longer supported
109
162
 
110
163
  Features:
111
164
 
112
- - Added charset meta tag
113
- - Added ability to configure limits for title, description, keywords
114
- - Added OpenSearch links support
115
- - Added icon links support
116
- - 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
117
170
 
118
171
  Bugfixes
119
- - Generate `<meta name=""/>` instead of `<meta property=""/>` for custom meta tags
120
- - 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
121
175
 
122
176
  ## 2.0.0 (April 15, 2014) [☰](https://github.com/kpumuk/meta-tags/compare/v1.6.0...v2.0.0)
123
177
 
124
178
  Features:
125
179
 
126
- - Fully refactored code base.
180
+ - Fully refactored code base.
127
181
 
128
182
  Bugfixes:
129
183
 
130
- - Symlink references in nested hashes include use normalized meta tag values.
184
+ - Symlink references in nested hashes include use normalized meta tag values.
131
185
 
132
186
  ## 1.6.0 (April 14, 2014) [☰](https://github.com/kpumuk/meta-tags/compare/v1.5.0...v1.6.0)
133
187
 
134
188
  Features:
135
189
 
136
- - Added "alternate" links support
137
- - Added Google "author" and "publisher" links
138
- - 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
139
193
 
140
194
  Breaking changes:
141
195
 
142
- - 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`)
143
197
 
144
198
  ## 1.5.0 (May 7, 2013) [☰](https://github.com/kpumuk/meta-tags/compare/v1.4.1...v1.5.0)
145
199
 
146
200
  Features:
147
201
 
148
- - Added "prev" and "next" links support
149
- - Added refresh meta tag support
202
+ - Added "prev" and "next" links support
203
+ - Added refresh meta tag support
150
204
 
151
205
  ## 1.4.1 (March 14, 2013) [☰](https://github.com/kpumuk/meta-tags/compare/v1.4.0...v1.4.1)
152
206
 
153
207
  Bugfixes:
154
208
 
155
- - Added support for Hash inside of an Array
209
+ - Added support for Hash inside of an Array
156
210
 
157
211
  ## 1.4.0 (March 14, 2013) [☰](https://github.com/kpumuk/meta-tags/compare/v1.3.0...v1.4.0)
158
212
 
159
213
  Features:
160
214
 
161
- - Added support of custom meta tags
215
+ - Added support of custom meta tags
162
216
 
163
217
  ## 1.3.0 (February 13, 2013) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.6...v1.3.0)
164
218
 
165
219
  Features:
166
220
 
167
- - Added Hash and Array as possible contents for the meta tags. Check README for details
168
- - Added support of string meta tag names
169
- - 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
170
224
 
171
225
  Bugfixes:
172
226
 
173
- - Do not display title HTML tag when title is blank
174
- - 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
175
229
 
176
230
  ## 1.2.6 (March 4, 2012) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.5...v1.2.6)
177
231
 
178
232
  Features:
179
233
 
180
- - jQuery.pjax support via `display_title` method. Check README for details
234
+ - jQuery.pjax support via `display_title` method. Check README for details
181
235
 
182
236
  ## 1.2.5 (March 3, 2012) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.4...v1.2.5)
183
237
 
184
238
  Bugfixes:
185
239
 
186
- - Fixed bug with overriding open graph attributes
187
- - Fixed incorrect page title when `:site` is is blank
188
- - 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`
189
243
 
190
244
  ## 1.2.4 (April 26, 2011) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.3...v1.2.4)
191
245
 
192
246
  Features:
193
247
 
194
- - Added support for Open Graph meta tags
248
+ - Added support for Open Graph meta tags
195
249
 
196
250
  Bugfixes:
197
251
 
198
- - Fixed bug with double HTML escaping in title separator
199
- - 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
200
254
 
201
255
  ## 1.2.2, 1.2.3 (June 10, 2010) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.1...v1.2.3)
202
256
 
203
257
  Bugfixes:
204
258
 
205
- - Fixed action\_pack integration (welcome back `alias_method_chain`)
206
- - 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
207
261
 
208
262
  ## 1.2.1 (June 2, 2010) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.0...v1.2.1)
209
263
 
210
264
  Bugfixes:
211
265
 
212
- - Fixed deprecation warning about `html_safe!`
266
+ - Fixed deprecation warning about `html_safe!`
213
267
 
214
268
  ## 1.2.0 (May 31, 2010) [☰](https://github.com/kpumuk/meta-tags/compare/v1.1.1...v1.2.0)
215
269
 
216
270
  Bugfixes:
217
271
 
218
- - Fixed bug when title is set through Array, and `:lowercase` is true
219
- - 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
220
274
 
221
275
  ## 1.1.1 (November 21, 2009) [☰](https://github.com/kpumuk/meta-tags/compare/v1.1.0...v1.1.1)
222
276
 
223
277
  Features:
224
278
 
225
- - Added support for canonical link element
226
- - Added YARD documentation
279
+ - Added support for canonical link element
280
+ - Added YARD documentation
227
281
 
228
282
  ## 1.1.0 (November 5, 2009) [☰](https://github.com/kpumuk/meta-tags/commits/v1.1.0)
229
283
 
230
284
  Features:
231
285
 
232
- - Added ability to specify title as an Array of parts
233
- - Added helper for `noindex`
234
- - 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
235
289
 
236
290
  Bugfixes:
237
291
 
238
- - Fixed Rails 2.3 deprecation warnings
292
+ - Fixed Rails 2.3 deprecation warnings
data/Gemfile CHANGED
@@ -1,21 +1,25 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source 'http://rubygems.org'
3
+ source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in meta-tags.gemspec
6
6
  gemspec
7
7
 
8
8
  if ENV['RAILS_VERSION']
9
9
  # Install specified version of actionpack if requested
10
- gem 'actionpack', "~> #{ENV['RAILS_VERSION']}"
10
+ gem 'railties', "~> #{ENV['RAILS_VERSION']}"
11
11
  end
12
12
 
13
13
  group :test do
14
14
  # Lock rubocop to a specific version we use on CI. If you update this,
15
15
  # don't forget to switch rubocop channel in the .codeclimate.yml
16
- gem 'rubocop', '0.60.0'
16
+ gem 'rubocop', '~> 0.75.0'
17
+ # Cops for rails apps
18
+ gem 'rubocop-rails'
19
+ # Apply RSpec rubocop cops
20
+ gem 'rubocop-rspec', require: false
17
21
  # We use this gem on CI to calculate code coverage.
18
- gem 'simplecov'
22
+ gem 'simplecov', '>= 0.17.0', '< 0.18'
19
23
  # Format RSpec output for CircleCI
20
24
  gem 'rspec_junit_formatter'
21
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 5.1.
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
 
@@ -36,7 +36,7 @@ truncation have recommended values, you can change them to reflect your own
36
36
  preferences. Keywords are converted to lowercase by default, but this is also
37
37
  configurable.
38
38
 
39
- To overide the defaults, create an initializer
39
+ To override the defaults, create an initializer
40
40
  `config/initializers/meta_tags.rb` using the following command:
41
41
 
42
42
  ```bash
@@ -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, otherwise the string will be used |
168
- | `:index` | add index meta tag; when true, 'robots' will be used, otherwise the string will be used |
169
- | `:nofollow` | add nofollow meta tag; when true, 'robots' will be used, otherwise the string will be used |
170
- | `:follow` | add follow meta tag; when true, 'robots' will be used, otherwise the string will be used |
171
- | `:noarchive` | add noarchive meta tag; when true, 'robots' will be used, otherwise the string will be used |
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 |
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
+ | `: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 |
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
 
data/certs/kpumuk.pem CHANGED
@@ -1,7 +1,7 @@
1
1
  -----BEGIN CERTIFICATE-----
2
2
  MIIDODCCAiCgAwIBAgIBATANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhrcHVt
3
- dWsvREM9a3B1bXVrL0RDPWluZm8wHhcNMTgxMTE2MTgxOTIzWhcNMTkxMTE2MTgx
4
- OTIzWjAjMSEwHwYDVQQDDBhrcHVtdWsvREM9a3B1bXVrL0RDPWluZm8wggEiMA0G
3
+ dWsvREM9a3B1bXVrL0RDPWluZm8wHhcNMjAxMjEwMjA1MTE5WhcNMjExMjEwMjA1
4
+ MTE5WjAjMSEwHwYDVQQDDBhrcHVtdWsvREM9a3B1bXVrL0RDPWluZm8wggEiMA0G
5
5
  CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC8NmK6GXPiE/q7PDbj7nNdw3pa8a6Q
6
6
  IDxLtc7kW95e1mh0TVgOE8kvGegGtRtjvhXVGTTFtZ+yMD/0DCfTM2oUQYk5oYpO
7
7
  ZGrCfbNIdZauf4WYsnJtKOTrRoqFMwpL5PlBDKczB2y5lUmQs2HIsjQ0Q21wdKyy
@@ -10,11 +10,11 @@ ZGrCfbNIdZauf4WYsnJtKOTrRoqFMwpL5PlBDKczB2y5lUmQs2HIsjQ0Q21wdKyy
10
10
  RryRTj5NVZbq9p1/WRc5zxD9QhAEPjRa5ikbd+eWebIDpAKI0hpyC/9bAgMBAAGj
11
11
  dzB1MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBT2uFRXNWDpVdbv
12
12
  +xBk8DAgJPGBPTAdBgNVHREEFjAUgRJrcHVtdWtAa3B1bXVrLmluZm8wHQYDVR0S
13
- BBYwFIESa3B1bXVrQGtwdW11ay5pbmZvMA0GCSqGSIb3DQEBCwUAA4IBAQB9bd46
14
- p2C6r49hmuxMrIFRi05MS0Nze6GvlYvF5mb2+KS9YCLWLFb1G+0zttX51qVdO3nc
15
- uw1O5ku+Up47jv5ClyguHinCntFCA5hupyYkbpnFuURZE3QIY6UZQyJ2xuIPFfnR
16
- Q8sXb5/btWSNhKXx29TL35SkEH5fzPA90DljUPGp3lLEK0+7FQk0OkRVumdyanEE
17
- LUchqnAWHnNCdQhEhsnbYhSvG0NE2uzMWeUd6uDONYsRFNRXaRwj8tykWgKZvIod
18
- j0ZkOZOMk6hzny9+AnYZ7eiUqp/XX7Hn+hqtl/AebKhbFapnTu0n7KcfM0oDaLUr
19
- Fc+FAHErSClMb7YN
13
+ BBYwFIESa3B1bXVrQGtwdW11ay5pbmZvMA0GCSqGSIb3DQEBCwUAA4IBAQBdcrpl
14
+ 32OlNaf68v38yzqYkviLELtbzRvEpRuQWZZyxOwU1OWSFAWkkALuseLWHDLYRDE8
15
+ lOzQHewKodqaSPEo63vMZ28UQ3kDP1YE+cXR12fOg4YbCH8VETrTJa3X0AOOAbgA
16
+ ZLMcZD6wu9Zu2rPhxLxs6Q/PaGGEc8bonOirCZrwVDzHFA1cPjcSoApdsyGdRiyj
17
+ 1f+XHXjCE5A1A6b8o4ffpAI6gkuaQOIrgGCyLS9oos6DSuofkvXI9g62G+2ZOmKJ
18
+ U97JEQmXCpruLEeSVT2UqR+iJAWEAxPzqzDbTzZBTSPKn+nXeuF6h81e4hsJtkeJ
19
+ HkYAoatF9iZrxT4E
20
20
  -----END CERTIFICATE-----
data/lib/meta_tags.rb CHANGED
@@ -1,9 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'English'
4
- require 'action_controller'
5
- require 'action_view'
6
-
7
3
  # MetaTags gem namespace.
8
4
  module MetaTags
9
5
  # Returns MetaTags gem configuration.
@@ -36,5 +32,4 @@ require 'meta_tags/content_tag'
36
32
  require 'meta_tags/text_normalizer'
37
33
  require 'meta_tags/view_helper'
38
34
 
39
- ActionView::Base.include MetaTags::ViewHelper
40
- ActionController::Base.include MetaTags::ControllerHelper
35
+ require 'meta_tags/railtie.rb' if defined?(Rails)
@@ -142,28 +142,20 @@ module MetaTags
142
142
  #
143
143
  # @return [Hash<String,String>] noindex attributes.
144
144
  #
145
- def extract_noindex
146
- noindex_name, noindex_value = extract_noindex_attribute(:noindex)
147
- index_name, index_value = extract_noindex_attribute(:index)
148
-
149
- nofollow_name, nofollow_value = extract_noindex_attribute(:nofollow)
150
- follow_name, follow_value = extract_noindex_attribute(:follow)
151
-
152
- noindex_attributes = if noindex_name == follow_name && (noindex_value || follow_value)
153
- # noindex has higher priority than index and follow has higher priority than nofollow
154
- [
155
- [noindex_name, noindex_value || index_value],
156
- [follow_name, follow_value || nofollow_value],
157
- ]
158
- else
159
- [
160
- [index_name, index_value],
161
- [follow_name, follow_value],
162
- [noindex_name, noindex_value],
163
- [nofollow_name, nofollow_value],
164
- ]
165
- end
166
- append_noarchive_attribute group_attributes_by_key noindex_attributes
145
+ def extract_robots
146
+ result = Hash.new { |h, k| h[k] = [] }
147
+
148
+ [
149
+ # noindex has higher priority than index
150
+ [:noindex, :index],
151
+ # follow has higher priority than nofollow
152
+ [:follow, :nofollow],
153
+ :noarchive,
154
+ ].each do |attributes|
155
+ calculate_robots_attributes(result, attributes)
156
+ end
157
+
158
+ result.transform_values { |v| v.join(', ') }
167
159
  end
168
160
 
169
161
  protected
@@ -190,43 +182,37 @@ module MetaTags
190
182
  meta_tags[name] == false ? '' : (meta_tags[name] || default)
191
183
  end
192
184
 
193
- # Extracts noindex attribute name and value without deleting it from meta tags list.
185
+ # Extracts robots attribute (noindex, nofollow, etc) name and value.
194
186
  #
195
187
  # @param [String, Symbol] name noindex attribute name.
196
188
  # @return [Array<String>] pair of noindex attribute name and value.
197
189
  #
198
- def extract_noindex_attribute(name)
190
+ def extract_robots_attribute(name)
199
191
  noindex = extract(name)
200
- noindex_name = noindex.kind_of?(String) ? noindex : 'robots'
192
+ noindex_name = noindex.kind_of?(String) || noindex.kind_of?(Array) ? noindex : 'robots'
201
193
  noindex_value = noindex ? name.to_s : nil
202
194
 
203
195
  [ noindex_name, noindex_value ]
204
196
  end
205
197
 
206
- # Append noarchive attribute if it present.
207
- #
208
- # @param [Hash<String, String>] noindex noindex attributes.
209
- # @return [Hash<String, String>] modified noindex attributes.
210
- #
211
- def append_noarchive_attribute(noindex)
212
- noarchive_name, noarchive_value = extract_noindex_attribute :noarchive
213
- if noarchive_value
214
- if noindex[noarchive_name].blank?
215
- noindex[noarchive_name] = noarchive_value
216
- else
217
- noindex[noarchive_name] += ", #{noarchive_value}"
198
+ def calculate_robots_attributes(result, attributes)
199
+ processed = Set.new
200
+ Array(attributes).each do |attribute|
201
+ names, value = extract_robots_attribute(attribute)
202
+ next unless value
203
+
204
+ Array(names).each do |name|
205
+ apply_robots_value(result, name, value, processed)
218
206
  end
219
207
  end
220
- noindex
221
208
  end
222
209
 
223
- # Convert array of arrays to hashes and concatenate values
224
- #
225
- # @param [Array<Array>] attributes list of noindex keys and values
226
- # @return [Hash<String, String>] hash of grouped noindex keys and values
227
- #
228
- def group_attributes_by_key(attributes)
229
- Hash[attributes.group_by(&:first).map { |k, v| [k, v.map(&:last).tap(&:compact!).join(', ')] }]
210
+ def apply_robots_value(result, name, value, processed)
211
+ name = name.to_s
212
+ return if processed.include?(name)
213
+
214
+ result[name] << value
215
+ processed << name
230
216
  end
231
217
  end
232
218
  end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MetaTags
4
+ class Railtie < Rails::Railtie
5
+ initializer 'meta_tags.setup_action_controller' do
6
+ ActiveSupport.on_load :action_controller do
7
+ ActionController::Base.include MetaTags::ControllerHelper
8
+ end
9
+ end
10
+
11
+ initializer 'meta_tags.setup_action_view' do
12
+ ActiveSupport.on_load :action_view do
13
+ ActionView::Base.include MetaTags::ViewHelper
14
+ end
15
+ end
16
+ end
17
+ end
@@ -97,7 +97,7 @@ module MetaTags
97
97
  # @param [Array<Tag>] tags a buffer object to store tag in.
98
98
  #
99
99
  def render_noindex(tags)
100
- meta_tags.extract_noindex.each do |name, content|
100
+ meta_tags.extract_robots.each do |name, content|
101
101
  tags << Tag.new(:meta, name: name, content: content) if content.present?
102
102
  end
103
103
  end
@@ -150,7 +150,7 @@ module MetaTags
150
150
  # @param [Array<Tag>] tags a buffer object to store tag in.
151
151
  #
152
152
  def render_links(tags)
153
- [ :amphtml, :canonical, :prev, :next, :image_src ].each do |tag_name|
153
+ [ :amphtml, :canonical, :prev, :next, :image_src, :manifest ].each do |tag_name|
154
154
  href = meta_tags.extract(tag_name)
155
155
  if href.present?
156
156
  @normalized_meta_tags[tag_name] = href
@@ -3,7 +3,7 @@
3
3
  module MetaTags
4
4
  # Module contains helpers that normalize text meta tag values.
5
5
  module TextNormalizer
6
- extend self # rubocop:disable Style/ModuleFunction
6
+ extend self
7
7
 
8
8
  # Normalize title value.
9
9
  #
@@ -2,5 +2,6 @@
2
2
 
3
3
  module MetaTags
4
4
  # Gem version.
5
- VERSION = '2.11.0'
5
+ VERSION = '2.14.0'
6
+ public_constant :VERSION
6
7
  end
@@ -205,7 +205,5 @@ module MetaTags
205
205
  def display_title(defaults = {})
206
206
  @meta_tags.full_title(defaults)
207
207
  end
208
-
209
- # safe_helper :display_meta_tags if defined?(:safe_helper)
210
208
  end
211
209
  end
data/meta-tags.gemspec CHANGED
@@ -21,10 +21,11 @@ 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", "< 5.3"
24
+ spec.add_dependency "actionpack", ">= 3.2.0", "< 6.2"
25
25
 
26
- spec.add_development_dependency "rake", "~> 12.0"
27
- spec.add_development_dependency "rspec", "~> 3.8.0"
26
+ spec.add_development_dependency "railties", ">= 3.2.0", "< 6.2"
27
+ spec.add_development_dependency "rake", "~> 13.0"
28
+ spec.add_development_dependency "rspec", "~> 3.9.0"
28
29
  spec.add_development_dependency "rspec-html-matchers", "~> 0.9.1"
29
30
 
30
31
  spec.cert_chain = ["certs/kpumuk.pem"]
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.11.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
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
13
  MIIDODCCAiCgAwIBAgIBATANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhrcHVt
14
- dWsvREM9a3B1bXVrL0RDPWluZm8wHhcNMTgxMTE2MTgxOTIzWhcNMTkxMTE2MTgx
15
- OTIzWjAjMSEwHwYDVQQDDBhrcHVtdWsvREM9a3B1bXVrL0RDPWluZm8wggEiMA0G
14
+ dWsvREM9a3B1bXVrL0RDPWluZm8wHhcNMjAxMjEwMjA1MTE5WhcNMjExMjEwMjA1
15
+ MTE5WjAjMSEwHwYDVQQDDBhrcHVtdWsvREM9a3B1bXVrL0RDPWluZm8wggEiMA0G
16
16
  CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC8NmK6GXPiE/q7PDbj7nNdw3pa8a6Q
17
17
  IDxLtc7kW95e1mh0TVgOE8kvGegGtRtjvhXVGTTFtZ+yMD/0DCfTM2oUQYk5oYpO
18
18
  ZGrCfbNIdZauf4WYsnJtKOTrRoqFMwpL5PlBDKczB2y5lUmQs2HIsjQ0Q21wdKyy
@@ -21,15 +21,15 @@ cert_chain:
21
21
  RryRTj5NVZbq9p1/WRc5zxD9QhAEPjRa5ikbd+eWebIDpAKI0hpyC/9bAgMBAAGj
22
22
  dzB1MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBT2uFRXNWDpVdbv
23
23
  +xBk8DAgJPGBPTAdBgNVHREEFjAUgRJrcHVtdWtAa3B1bXVrLmluZm8wHQYDVR0S
24
- BBYwFIESa3B1bXVrQGtwdW11ay5pbmZvMA0GCSqGSIb3DQEBCwUAA4IBAQB9bd46
25
- p2C6r49hmuxMrIFRi05MS0Nze6GvlYvF5mb2+KS9YCLWLFb1G+0zttX51qVdO3nc
26
- uw1O5ku+Up47jv5ClyguHinCntFCA5hupyYkbpnFuURZE3QIY6UZQyJ2xuIPFfnR
27
- Q8sXb5/btWSNhKXx29TL35SkEH5fzPA90DljUPGp3lLEK0+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: 2018-11-16 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: '5.3'
43
+ version: '6.2'
44
44
  type: :runtime
45
45
  prerelease: false
46
46
  version_requirements: !ruby/object:Gem::Requirement
@@ -50,35 +50,55 @@ dependencies:
50
50
  version: 3.2.0
51
51
  - - "<"
52
52
  - !ruby/object:Gem::Version
53
- version: '5.3'
53
+ version: '6.2'
54
+ - !ruby/object:Gem::Dependency
55
+ name: railties
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 3.2.0
61
+ - - "<"
62
+ - !ruby/object:Gem::Version
63
+ version: '6.2'
64
+ type: :development
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 3.2.0
71
+ - - "<"
72
+ - !ruby/object:Gem::Version
73
+ version: '6.2'
54
74
  - !ruby/object:Gem::Dependency
55
75
  name: rake
56
76
  requirement: !ruby/object:Gem::Requirement
57
77
  requirements:
58
78
  - - "~>"
59
79
  - !ruby/object:Gem::Version
60
- version: '12.0'
80
+ version: '13.0'
61
81
  type: :development
62
82
  prerelease: false
63
83
  version_requirements: !ruby/object:Gem::Requirement
64
84
  requirements:
65
85
  - - "~>"
66
86
  - !ruby/object:Gem::Version
67
- version: '12.0'
87
+ version: '13.0'
68
88
  - !ruby/object:Gem::Dependency
69
89
  name: rspec
70
90
  requirement: !ruby/object:Gem::Requirement
71
91
  requirements:
72
92
  - - "~>"
73
93
  - !ruby/object:Gem::Version
74
- version: 3.8.0
94
+ version: 3.9.0
75
95
  type: :development
76
96
  prerelease: false
77
97
  version_requirements: !ruby/object:Gem::Requirement
78
98
  requirements:
79
99
  - - "~>"
80
100
  - !ruby/object:Gem::Version
81
- version: 3.8.0
101
+ version: 3.9.0
82
102
  - !ruby/object:Gem::Dependency
83
103
  name: rspec-html-matchers
84
104
  requirement: !ruby/object:Gem::Requirement
@@ -116,6 +136,7 @@ files:
116
136
  - lib/meta_tags/content_tag.rb
117
137
  - lib/meta_tags/controller_helper.rb
118
138
  - lib/meta_tags/meta_tags_collection.rb
139
+ - lib/meta_tags/railtie.rb
119
140
  - lib/meta_tags/renderer.rb
120
141
  - lib/meta_tags/tag.rb
121
142
  - lib/meta_tags/text_normalizer.rb
@@ -126,7 +147,7 @@ homepage: http://github.com/kpumuk/meta-tags
126
147
  licenses:
127
148
  - MIT
128
149
  metadata: {}
129
- post_install_message:
150
+ post_install_message:
130
151
  rdoc_options: []
131
152
  require_paths:
132
153
  - lib
@@ -141,9 +162,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
162
  - !ruby/object:Gem::Version
142
163
  version: '0'
143
164
  requirements: []
144
- rubyforge_project:
145
- rubygems_version: 2.7.6
146
- signing_key:
165
+ rubygems_version: 3.1.2
166
+ signing_key:
147
167
  specification_version: 4
148
168
  summary: Collection of SEO helpers for Ruby on Rails.
149
169
  test_files: []
metadata.gz.sig CHANGED
Binary file