meta-tags 2.13.0 → 2.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/Appraisals +25 -0
  4. data/CHANGELOG.md +158 -78
  5. data/CONTRIBUTING.md +6 -6
  6. data/Gemfile +5 -19
  7. data/README.md +174 -137
  8. data/Rakefile +44 -6
  9. data/Steepfile +13 -0
  10. data/certs/kpumuk.pem +19 -18
  11. data/gemfiles/rails_5.1.gemfile +8 -0
  12. data/gemfiles/rails_5.1.gemfile.lock +200 -0
  13. data/gemfiles/rails_5.2.gemfile +8 -0
  14. data/gemfiles/rails_5.2.gemfile.lock +200 -0
  15. data/gemfiles/rails_6.0.gemfile +8 -0
  16. data/gemfiles/rails_6.0.gemfile.lock +202 -0
  17. data/gemfiles/rails_6.1.gemfile +8 -0
  18. data/gemfiles/rails_6.1.gemfile.lock +201 -0
  19. data/gemfiles/rails_7.0.gemfile +8 -0
  20. data/gemfiles/rails_7.0.gemfile.lock +201 -0
  21. data/gemfiles/rails_7.1.gemfile +8 -0
  22. data/gemfiles/rails_7.1.gemfile.lock +231 -0
  23. data/lib/generators/meta_tags/install_generator.rb +1 -1
  24. data/lib/meta-tags.rb +1 -1
  25. data/lib/meta_tags/configuration.rb +23 -16
  26. data/lib/meta_tags/controller_helper.rb +4 -4
  27. data/lib/meta_tags/meta_tags_collection.rb +31 -22
  28. data/lib/meta_tags/railtie.rb +4 -4
  29. data/lib/meta_tags/renderer.rb +55 -28
  30. data/lib/meta_tags/tag.rb +1 -1
  31. data/lib/meta_tags/text_normalizer.rb +44 -39
  32. data/lib/meta_tags/version.rb +1 -1
  33. data/lib/meta_tags/view_helper.rb +7 -7
  34. data/lib/meta_tags.rb +13 -10
  35. data/meta-tags.gemspec +41 -22
  36. data/sig/lib/_internal/rails.rbs +58 -0
  37. data/sig/lib/meta_tags/configuration.rbs +19 -0
  38. data/sig/lib/meta_tags/content_tag.rbs +5 -0
  39. data/sig/lib/meta_tags/controller_helper.rbs +14 -0
  40. data/sig/lib/meta_tags/meta_tags_collection.rbs +41 -0
  41. data/sig/lib/meta_tags/renderer.rbs +50 -0
  42. data/sig/lib/meta_tags/tag.rbs +12 -0
  43. data/sig/lib/meta_tags/text_normalizer.rbs +36 -0
  44. data/sig/lib/meta_tags/version.rbs +4 -0
  45. data/sig/lib/meta_tags/view_helper.rbs +57 -0
  46. data/sig/lib/meta_tags.rbs +18 -0
  47. data.tar.gz.sig +0 -0
  48. metadata +165 -35
  49. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8efce8d6b7587d3d7b4825a1bf2c6d7d805c8c2a11333bde4ecdb744c7733721
4
- data.tar.gz: 0f7b295472e2a1a3c5d398f513c6428aa32fd32e04281e287e54d468d7cc83d7
3
+ metadata.gz: 8492bea82b4f8198d1586fbf8455ad77fb86942deb24a176bc2905d680410e73
4
+ data.tar.gz: 2bc51a95760a70183e21edfe6f7b5dc7f443b0eb1d5e4449a2da398f48074f71
5
5
  SHA512:
6
- metadata.gz: 18fb2143f650cdc27d0a181c501b394587bb1e3f411bd5812295eb7090872f3e9cfa38dd83bc2fd0a1af7b1721a03c875001b2454078f0cfc0fc705e1fd1d46b
7
- data.tar.gz: 7322d9d0124336e0637f7107ccbd14424f6d51e751ef6de463db8dedd40f0b8c5bc43d163f16c443da1cc4c20e1ce8fc9b9634ca81d0b96ef747835c463f39df
6
+ metadata.gz: 781610100e7ec63c46e2f377cda42bbbec151009ddb45f17f353d6b4f6271b2645e4883b51ea476fbd5180f6fec14764d5ba7c69130f58cdf59ac90ad452add2
7
+ data.tar.gz: ad30e462d9fc9b8fea8dd8244c13447e6a9221201485491960754b213bff085cf24522bb93d909ae1a16c9cf37b4770ce1c54f2427480875a06dde749c028eb0
checksums.yaml.gz.sig CHANGED
Binary file
data/Appraisals ADDED
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ appraise "rails-5.1" do
4
+ gem "railties", "5.1.7"
5
+ end
6
+
7
+ appraise "rails-5.2" do
8
+ gem "railties", "5.2.8.1"
9
+ end
10
+
11
+ appraise "rails-6.0" do
12
+ gem "railties", "6.0.6"
13
+ end
14
+
15
+ appraise "rails-6.1" do
16
+ gem "railties", "6.1.7"
17
+ end
18
+
19
+ appraise "rails-7.0" do
20
+ gem "railties", "7.0.4"
21
+ end
22
+
23
+ appraise "rails-7.1" do
24
+ gem "railties", "7.1.0"
25
+ end
data/CHANGELOG.md CHANGED
@@ -1,257 +1,337 @@
1
+ # Changelog
2
+
3
+ ## 2.19.0 (October 5, 2023) [☰](https://github.com/kpumuk/meta-tags/compare/v2.18.0...v2.19.0)
4
+
5
+ Changes:
6
+
7
+ - Switched code style from custom rules to Standard ([246](https://github.com/kpumuk/meta-tags/pull/251)).
8
+ - Switched from testing Rails using environment variables to Appraisal gem ([251](https://github.com/kpumuk/meta-tags/pull/247)).
9
+ - Ruby 2.7 is minimum supported version ([257](https://github.com/kpumuk/meta-tags/pull/257/))
10
+ - Added support for Rails 7.1 ([267](https://github.com/kpumuk/meta-tags/pull/267))
11
+
12
+ ## 2.18.0 (September 15, 2022) [☰](https://github.com/kpumuk/meta-tags/compare/v2.17.0...v2.18.0)
13
+
14
+ Changes:
15
+
16
+ - Fallback to site name when title is empty in mirrored tags ([243](https://github.com/kpumuk/meta-tags/pull/243))
17
+
18
+ ## 2.17.0 (July 5, 2022) [☰](https://github.com/kpumuk/meta-tags/compare/v2.16.0...v2.17.0)
19
+
20
+ Changes:
21
+
22
+ - Separate RBS files to \_internal directory to avoid exposing RBS ([237](https://github.com/kpumuk/meta-tags/pull/237))
23
+ - Added Ruby 3.1 to supported versions, Ruby 2.6 is minimum supported version ([235](https://github.com/kpumuk/meta-tags/pull/235/))
24
+
25
+ ## 2.16.0 (September 24, 2021) [☰](https://github.com/kpumuk/meta-tags/compare/v2.15.0...v2.16.0)
26
+
27
+ Changes:
28
+
29
+ - Updated maximum dependency specified in gemspec (Getting Ready for Rails 7)
30
+ - Added RBS type definitions.
31
+
32
+ ## 2.15.0 (August 2, 2021) [☰](https://github.com/kpumuk/meta-tags/compare/v2.14.0...v2.15.0)
33
+
34
+ Changes:
35
+
36
+ - Added Ruby 3.0 to supported versions
37
+ - Ruby 2.5 is now a required minimum version (we dropped official support for Ruby versions older than 2.5 about 8 months ago)
38
+ - Added `skip_canonical_links_on_noindex` configuration variable that allows to disable canonical links of the pages that are excluded from indexing ([214](https://github.com/kpumuk/meta-tags/pull/214))
39
+ - Added support for `itemprop` in `_` tag for custom tags ([203](https://github.com/kpumuk/meta-tags/pull/203))
40
+
41
+ Bugfixes:
42
+
43
+ - Fixed error "can't modify frozen String" in `strip_tags`.
44
+ - Fixed Ruby warning about an instance variable that is not initialized.
45
+
46
+ ## 2.14.0 (December 10, 2020) [☰](https://github.com/kpumuk/meta-tags/compare/v2.13.0...v2.14.0)
47
+
48
+ Changes:
49
+
50
+ - Dropped official support for Rails older than 5.1 and Ruby older than 2.5 (both reached their End of Life)
51
+ - Added support for Rails 6.1
52
+
53
+ Bugfixes:
54
+
55
+ - Fixed Rails 6 deprecation warning.
56
+
1
57
  ## 2.13.0 (October 10, 2019) [☰](https://github.com/kpumuk/meta-tags/compare/v2.12.0...v2.13.0)
2
58
 
3
59
  Bugfixes:
4
- - Fixed Rails 6 deprecation warning.
60
+
61
+ - Fixed Rails 6 deprecation warning.
5
62
 
6
63
  ## 2.12.0 (September 10, 2019) [☰](https://github.com/kpumuk/meta-tags/compare/v2.11.1...v2.12.0)
7
64
 
8
65
  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))
66
+
67
+ - Indexing directives (`noindex`, `nofollow`, etc. now support an array of robot names as a value).
68
+ - Added support for `link[rel='manifest']` ([199](https://github.com/kpumuk/meta-tags/pull/199))
11
69
 
12
70
  Bugfixes:
13
- - When `noindex` uses "robots" as a value, `nofollow` ignores a custom robot name, and switches to "robots" as well
71
+
72
+ - When `noindex` uses "robots" as a value, `nofollow` ignores a custom robot name, and switches to "robots" as well
14
73
 
15
74
  ## 2.11.1 (January 19, 2019) [☰](https://github.com/kpumuk/meta-tags/compare/v2.11.0...v2.11.1)
16
75
 
17
76
  Features:
18
- - Rails 6 is officially supported.
77
+
78
+ - Rails 6 is officially supported.
19
79
 
20
80
  ## 2.11.0 (November 16, 2018) [☰](https://github.com/kpumuk/meta-tags/compare/v2.10.0...v2.11.0)
21
81
 
22
82
  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))
83
+
84
+ - Added a configuration option `minify_output` to remove new line characters between meta tags ([182](https://github.com/kpumuk/meta-tags/pull/182))
85
+ - Title, description, and keywords can be an object responding to `#to_str` ([183](https://github.com/kpumuk/meta-tags/pull/183))
25
86
 
26
87
  Bugfixes:
27
- - Truncate title before escaping HTML characters ([180](https://github.com/kpumuk/meta-tags/pull/180))
88
+
89
+ - Truncate title before escaping HTML characters ([180](https://github.com/kpumuk/meta-tags/pull/180))
28
90
 
29
91
  ## 2.10.0 (June 8, 2018) [☰](https://github.com/kpumuk/meta-tags/compare/v2.9.0...v2.10.0)
30
92
 
31
93
  Features:
32
- - Allow `MetaTagsCollection#update` to receive an object ([169](https://github.com/kpumuk/meta-tags/pull/169))
94
+
95
+ - Allow `MetaTagsCollection#update` to receive an object ([169](https://github.com/kpumuk/meta-tags/pull/169))
33
96
 
34
97
  ## 2.9.0 (March 29, 2018) [☰](https://github.com/kpumuk/meta-tags/compare/v2.8.0...v2.9.0)
35
98
 
36
99
  Features:
37
- - Added ability to add `index` robots meta tag (thanks to @rafallo)
100
+
101
+ - Added ability to add `index` robots meta tag (thanks to @rafallo)
38
102
 
39
103
  ## 2.8.0 (February 28, 2018) [☰](https://github.com/kpumuk/meta-tags/compare/v2.7.1...v2.8.0)
40
104
 
41
105
  Features:
42
- - Added noarchive support.
106
+
107
+ - Added noarchive support.
43
108
 
44
109
  Changes:
45
- - Updated default description size to 300 as a new recommended truncation limit.
110
+
111
+ - Updated default description size to 300 as a new recommended truncation limit.
46
112
 
47
113
  ## 2.7.1 (February 1, 2018) [☰](https://github.com/kpumuk/meta-tags/compare/v2.7.0...v2.7.1)
48
114
 
49
115
  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).
116
+
117
+ - 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
118
 
52
119
  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).
120
+
121
+ - 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
122
 
55
123
  ## 2.7.0 (November 22, 2017) [☰](https://github.com/kpumuk/meta-tags/compare/v2.6.0...v2.7.0)
56
124
 
57
125
  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.
126
+
127
+ - 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
128
 
60
129
  ## 2.6.0 (August 24, 2017) [☰](https://github.com/kpumuk/meta-tags/compare/v2.5.0...v2.6.0)
61
130
 
62
131
  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.
132
+
133
+ - Optionally avoid downcasing keywords
134
+ - Added Rails generator to create an initializer with the default settings.
135
+ - Added a configuration option `truncate_site_title_first` which enables site title truncation when title limit is reached.
136
+ - When `Time`, `Date`, or `DateTime` passed as a meta tag value, it will be formatted according to ISO 8601.
67
137
 
68
138
  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`.
139
+
140
+ - When title limit reached with `reverse` set to `true`, properly truncate the last item of the title array instead of the first one.
141
+ - Do not merge title and site title for OpenGraph, site title is available for reference as `:site`, and full title as `:full_title`.
71
142
 
72
143
  Changes:
73
- - Removed Google "author" and "publisher" links, as Google deprecated these options (https://support.google.com/webmasters/answer/6083347?hl=en)
144
+
145
+ - Removed Google "author" and "publisher" links, as Google deprecated these options (https://support.google.com/webmasters/answer/6083347?hl=en)
74
146
 
75
147
  ## 2.5.0 (August 23, 2017) [☰](https://github.com/kpumuk/meta-tags/compare/v2.4.1...v2.5.0)
76
148
 
77
149
  Features:
78
- - Fully support [Open Graph objects](https://developers.facebook.com/docs/reference/opengraph) meta tags.
150
+
151
+ - Fully support [Open Graph objects](https://developers.facebook.com/docs/reference/opengraph) meta tags.
79
152
 
80
153
  Changes:
81
- - Dropped official support for Rails older than 4.2 and Ruby older than 2.2 (both reached their End of Life)
154
+
155
+ - Dropped official support for Rails older than 4.2 and Ruby older than 2.2 (both reached their End of Life)
82
156
 
83
157
  ## 2.4.1 (May 15, 2017) [☰](https://github.com/kpumuk/meta-tags/compare/v2.4.0...v2.4.1)
84
158
 
85
159
  Features:
86
- - Rails 5.1 support added
160
+
161
+ - Rails 5.1 support added
87
162
 
88
163
  ## 2.4.0 (December 8, 2016) [☰](https://github.com/kpumuk/meta-tags/compare/v2.3.1...v2.4.0)
89
164
 
90
165
  Features:
91
- - Added amphtml links support
166
+
167
+ - Added amphtml links support
92
168
 
93
169
  Bugfixes:
94
- - Fixed `place` attribute meta tag generation
170
+
171
+ - Fixed `place` attribute meta tag generation
95
172
 
96
173
  ## 2.3.1 (September 13, 2016) [☰](https://github.com/kpumuk/meta-tags/compare/v2.2.0...v2.3.1)
97
174
 
98
175
  Changes:
99
- - Added follow meta tag support
176
+
177
+ - Added follow meta tag support
100
178
 
101
179
  Features:
102
- - Added support for article meta tags
180
+
181
+ - Added support for article meta tags
103
182
 
104
183
  ## 2.2.0 (August 24, 2016) [☰](https://github.com/kpumuk/meta-tags/compare/v2.1.0...v2.2.0)
105
184
 
106
185
  Changes:
107
186
 
108
- - Rails < 3.2 is not longer supported
187
+ - Rails < 3.2 is not longer supported
109
188
 
110
189
  Features:
111
190
 
112
- - Added support for `<link rel="image_src" href="...">` tag
113
- - Added support for App Links
114
- - Added support for `follow` meta tag
191
+ - Added support for `<link rel="image_src" href="...">` tag
192
+ - Added support for App Links
193
+ - Added support for `follow` meta tag
115
194
 
116
195
  Bugfixes:
117
196
 
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
197
+ - Fixed double escaping for ampersands (thanks to @srecnig)
198
+ - Removed usage of `alias_method_chain` to fix deprecation warnings with Rails 5
199
+ - Fixed the issue when title was truncated in some cases, when site_title was blank
200
+ - Fixed meta tag attributes for `fb:` meta tags
122
201
 
123
202
  ## 2.1.0 (October 6, 2015) [☰](https://github.com/kpumuk/meta-tags/compare/v2.0.0...v2.1.0)
124
203
 
125
204
  Changes:
126
205
 
127
- - Ruby < 2.0 is not longer supported
206
+ - Ruby < 2.0 is not longer supported
128
207
 
129
208
  Features:
130
209
 
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
210
+ - Added charset meta tag
211
+ - Added ability to configure limits for title, description, keywords
212
+ - Added OpenSearch links support
213
+ - Added icon links support
214
+ - Alternate links can now be generated for RSS or mobile versions
136
215
 
137
216
  Bugfixes
138
- - Generate `<meta name=""/>` instead of `<meta property=""/>` for custom meta tags
139
- - Double HTML escaping in meta tags
217
+
218
+ - Generate `<meta name=""/>` instead of `<meta property=""/>` for custom meta tags
219
+ - Double HTML escaping in meta tags
140
220
 
141
221
  ## 2.0.0 (April 15, 2014) [☰](https://github.com/kpumuk/meta-tags/compare/v1.6.0...v2.0.0)
142
222
 
143
223
  Features:
144
224
 
145
- - Fully refactored code base.
225
+ - Fully refactored code base.
146
226
 
147
227
  Bugfixes:
148
228
 
149
- - Symlink references in nested hashes include use normalized meta tag values.
229
+ - Symlink references in nested hashes include use normalized meta tag values.
150
230
 
151
231
  ## 1.6.0 (April 14, 2014) [☰](https://github.com/kpumuk/meta-tags/compare/v1.5.0...v1.6.0)
152
232
 
153
233
  Features:
154
234
 
155
- - Added "alternate" links support
156
- - Added Google "author" and "publisher" links
157
- - Implemented mirrored values inside namespaces declared as hashes
235
+ - Added "alternate" links support
236
+ - Added Google "author" and "publisher" links
237
+ - Implemented mirrored values inside namespaces declared as hashes
158
238
 
159
239
  Breaking changes:
160
240
 
161
- - Removed support of Rails older than 3.0.0 due to the bug in `Hash#deep_merge` (does not support `HashWithIndifferentAccess`)
241
+ - Removed support of Rails older than 3.0.0 due to the bug in `Hash#deep_merge` (does not support `HashWithIndifferentAccess`)
162
242
 
163
243
  ## 1.5.0 (May 7, 2013) [☰](https://github.com/kpumuk/meta-tags/compare/v1.4.1...v1.5.0)
164
244
 
165
245
  Features:
166
246
 
167
- - Added "prev" and "next" links support
168
- - Added refresh meta tag support
247
+ - Added "prev" and "next" links support
248
+ - Added refresh meta tag support
169
249
 
170
250
  ## 1.4.1 (March 14, 2013) [☰](https://github.com/kpumuk/meta-tags/compare/v1.4.0...v1.4.1)
171
251
 
172
252
  Bugfixes:
173
253
 
174
- - Added support for Hash inside of an Array
254
+ - Added support for Hash inside of an Array
175
255
 
176
256
  ## 1.4.0 (March 14, 2013) [☰](https://github.com/kpumuk/meta-tags/compare/v1.3.0...v1.4.0)
177
257
 
178
258
  Features:
179
259
 
180
- - Added support of custom meta tags
260
+ - Added support of custom meta tags
181
261
 
182
262
  ## 1.3.0 (February 13, 2013) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.6...v1.3.0)
183
263
 
184
264
  Features:
185
265
 
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
266
+ - Added Hash and Array as possible contents for the meta tags. Check README for details
267
+ - Added support of string meta tag names
268
+ - Allow to disable noindex and nofollow using `false` as a value
189
269
 
190
270
  Bugfixes:
191
271
 
192
- - Do not display title HTML tag when title is blank
193
- - Do not display OpenGraph tags when content is empty
272
+ - Do not display title HTML tag when title is blank
273
+ - Do not display OpenGraph tags when content is empty
194
274
 
195
275
  ## 1.2.6 (March 4, 2012) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.5...v1.2.6)
196
276
 
197
277
  Features:
198
278
 
199
- - jQuery.pjax support via `display_title` method. Check README for details
279
+ - jQuery.pjax support via `display_title` method. Check README for details
200
280
 
201
281
  ## 1.2.5 (March 3, 2012) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.4...v1.2.5)
202
282
 
203
283
  Bugfixes:
204
284
 
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`
285
+ - Fixed bug with overriding open graph attributes
286
+ - Fixed incorrect page title when `:site` is is blank
287
+ - Normalize `:og` attribute to `:open_graph`
208
288
 
209
289
  ## 1.2.4 (April 26, 2011) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.3...v1.2.4)
210
290
 
211
291
  Features:
212
292
 
213
- - Added support for Open Graph meta tags
293
+ - Added support for Open Graph meta tags
214
294
 
215
295
  Bugfixes:
216
296
 
217
- - Fixed bug with double HTML escaping in title separator
218
- - Allow to set meta title without a separator
297
+ - Fixed bug with double HTML escaping in title separator
298
+ - Allow to set meta title without a separator
219
299
 
220
300
  ## 1.2.2, 1.2.3 (June 10, 2010) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.1...v1.2.3)
221
301
 
222
302
  Bugfixes:
223
303
 
224
- - Fixed action\_pack integration (welcome back `alias_method_chain`)
225
- - Fixed bug when `@page_*` variables did not work
304
+ - Fixed action_pack integration (welcome back `alias_method_chain`)
305
+ - Fixed bug when `@page_*` variables did not work
226
306
 
227
307
  ## 1.2.1 (June 2, 2010) [☰](https://github.com/kpumuk/meta-tags/compare/v1.2.0...v1.2.1)
228
308
 
229
309
  Bugfixes:
230
310
 
231
- - Fixed deprecation warning about `html_safe!`
311
+ - Fixed deprecation warning about `html_safe!`
232
312
 
233
313
  ## 1.2.0 (May 31, 2010) [☰](https://github.com/kpumuk/meta-tags/compare/v1.1.1...v1.2.0)
234
314
 
235
315
  Bugfixes:
236
316
 
237
- - Fixed bug when title is set through Array, and `:lowercase` is true
238
- - Updated `display_meta_tags` to be compatible with rails_xss
317
+ - Fixed bug when title is set through Array, and `:lowercase` is true
318
+ - Updated `display_meta_tags` to be compatible with rails_xss
239
319
 
240
320
  ## 1.1.1 (November 21, 2009) [☰](https://github.com/kpumuk/meta-tags/compare/v1.1.0...v1.1.1)
241
321
 
242
322
  Features:
243
323
 
244
- - Added support for canonical link element
245
- - Added YARD documentation
324
+ - Added support for canonical link element
325
+ - Added YARD documentation
246
326
 
247
327
  ## 1.1.0 (November 5, 2009) [☰](https://github.com/kpumuk/meta-tags/commits/v1.1.0)
248
328
 
249
329
  Features:
250
330
 
251
- - Added ability to specify title as an Array of parts
252
- - Added helper for `noindex`
253
- - Added `nofollow` meta tag support
331
+ - Added ability to specify title as an Array of parts
332
+ - Added helper for `noindex`
333
+ - Added `nofollow` meta tag support
254
334
 
255
335
  Bugfixes:
256
336
 
257
- - Fixed Rails 2.3 deprecation warnings
337
+ - Fixed Rails 2.3 deprecation warnings
data/CONTRIBUTING.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Contributing
2
2
 
3
3
  We love pull requests from everyone. By participating in this project, you
4
- agree to abide by the [code of conduct](https://github.com/kpumuk/meta-tags/blob/master/CODE_OF_CONDUCT.md).
4
+ agree to abide by the [code of conduct](https://github.com/kpumuk/meta-tags/blob/main/CODE_OF_CONDUCT.md).
5
5
 
6
6
  ## Configuring Development Environment
7
7
 
@@ -29,13 +29,13 @@ Make your change. Add tests for your change. Make the tests pass:
29
29
  argument for the meta tag name should be `name`:
30
30
 
31
31
  ```html
32
- <meta name="keywords" content="HTML,CSS,XML,JavaScript">
32
+ <meta name="keywords" content="HTML,CSS,XML,JavaScript" />
33
33
  ```
34
34
 
35
35
  Some social networks require to use `property` argument instead (Facebook Open Graph).
36
36
  MetaTags supports the most popular meta tags, but there will be tags that are not covered
37
37
  by default. If you found one, and you feel like the community would benefit from
38
- MetaTags supporting it out of the box, feel free to add it to [the list](https://github.com/kpumuk/meta-tags/blob/master/lib/meta_tags/configuration.rb#L23-L57)
38
+ MetaTags supporting it out of the box, feel free to add it to [the list](https://github.com/kpumuk/meta-tags/blob/main/lib/meta_tags/configuration.rb#L23-L57)
39
39
  and submit a pull request.
40
40
 
41
41
  ## Raising a Pull Request
@@ -47,6 +47,6 @@ within couple days. We may suggest some changes or improvements or alternatives.
47
47
 
48
48
  Some things that will increase the chance that your pull request is accepted:
49
49
 
50
- * Write tests.
51
- * Make sure [CodeClimate](https://codeclimate.com/github/kpumuk/meta-tags/builds) build is clean.
52
- * Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
50
+ - Write tests.
51
+ - Make sure [CodeClimate](https://codeclimate.com/github/kpumuk/meta-tags/builds) build is clean.
52
+ - Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
data/Gemfile CHANGED
@@ -1,25 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source 'https://rubygems.org'
3
+ source "https://rubygems.org"
4
4
 
5
- # Specify your gem's dependencies in meta-tags.gemspec
5
+ # Specify gem's dependencies in meta-tags.gemspec
6
6
  gemspec
7
7
 
8
- if ENV['RAILS_VERSION']
9
- # Install specified version of actionpack if requested
10
- gem 'railties', "~> #{ENV['RAILS_VERSION']}"
11
- end
12
-
13
- group :test do
14
- # Lock rubocop to a specific version we use on CI. If you update this,
15
- # don't forget to switch rubocop channel in the .codeclimate.yml
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
21
- # We use this gem on CI to calculate code coverage.
22
- gem 'simplecov'
23
- # Format RSpec output for CircleCI
24
- gem 'rspec_junit_formatter'
8
+ unless ENV["NO_STEEP"] == "1"
9
+ # Ruby typings
10
+ gem "steep", "~> 1.5.2", platform: :mri
25
11
  end