meta-tags 2.14.0 → 2.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +83 -2
- data/CONTRIBUTING.md +6 -6
- data/README.md +230 -224
- data/certs/kpumuk.pem +19 -18
- data/lib/generators/meta_tags/install_generator.rb +1 -1
- data/lib/generators/meta_tags/templates/config/initializers/meta_tags.rb +9 -0
- data/lib/meta-tags.rb +1 -1
- data/lib/meta_tags/configuration.rb +31 -16
- data/lib/meta_tags/controller_helper.rb +4 -4
- data/lib/meta_tags/meta_tags_collection.rb +31 -22
- data/lib/meta_tags/railtie.rb +4 -4
- data/lib/meta_tags/renderer.rb +61 -30
- data/lib/meta_tags/tag.rb +1 -1
- data/lib/meta_tags/text_normalizer.rb +46 -43
- data/lib/meta_tags/version.rb +1 -1
- data/lib/meta_tags/view_helper.rb +7 -7
- data/lib/meta_tags.rb +13 -10
- data/sig/lib/_internal/rails.rbs +59 -0
- data/sig/lib/meta_tags/configuration.rbs +26 -0
- data/sig/lib/meta_tags/content_tag.rbs +5 -0
- data/sig/lib/meta_tags/controller_helper.rbs +14 -0
- data/sig/lib/meta_tags/meta_tags_collection.rbs +41 -0
- data/sig/lib/meta_tags/renderer.rbs +50 -0
- data/sig/lib/meta_tags/tag.rbs +12 -0
- data/sig/lib/meta_tags/text_normalizer.rbs +36 -0
- data/sig/lib/meta_tags/version.rbs +4 -0
- data/sig/lib/meta_tags/view_helper.rbs +57 -0
- data/sig/lib/meta_tags.rbs +18 -0
- data.tar.gz.sig +0 -0
- metadata +153 -40
- metadata.gz.sig +2 -3
- data/Gemfile +0 -25
- data/Rakefile +0 -18
- data/meta-tags.gemspec +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b864d37b7120ce40d31d430346d9e55eafe757a1e38db90df59ce60572f000d4
|
4
|
+
data.tar.gz: 3c5c15596adcd45d015aa27f4c9822907de71d45b4271323d7f304ae38612a5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78ca5a5ae64cad5b0605ba4b8448e155d375bd1a78f28547cec50b8685a8c4efa61829638a236282fcc9ac601a59e8e964510ea88c9aa20cef8b34d95052c1bc
|
7
|
+
data.tar.gz: 8fa6a70b783f41d67bd221d4b2fa8c0d58414f7dff199ebe1ce78e84ca2b3e94ccbe97b81c733027c7b5d68efe60da6fae132dc7108d229d274b0e9156e22b2d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,84 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## 2.22.1 (September 20, 2024) [☰](https://github.com/kpumuk/meta-tags/compare/v2.22.0...v2.22.1)
|
4
|
+
|
5
|
+
Changes:
|
6
|
+
|
7
|
+
- Removed `meta-tags.gemspec` and `Rakefile` from the gem package ([312](https://github.com/kpumuk/meta-tags/pull/312)
|
8
|
+
- Use GitHub actions to build, sign and publish the gem ([314](https://github.com/kpumuk/meta-tags/pull/314), [315](https://github.com/kpumuk/meta-tags/pull/315), [316](https://github.com/kpumuk/meta-tags/pull/316))
|
9
|
+
|
10
|
+
## 2.22.0 (July 15, 2024) [☰](https://github.com/kpumuk/meta-tags/compare/v2.21.0...v2.22.0)
|
11
|
+
|
12
|
+
Changes:
|
13
|
+
|
14
|
+
- Added support for Ruby on Rails 7.2 ([303](https://github.com/kpumuk/meta-tags/pull/303))
|
15
|
+
|
16
|
+
## 2.21.0 (April 11, 2024) [☰](https://github.com/kpumuk/meta-tags/compare/v2.20.0...v2.21.0)
|
17
|
+
|
18
|
+
Bugfixes:
|
19
|
+
|
20
|
+
- Removed a duplicated `title_tag_attributes` configuration from the initializer ([287](https://github.com/kpumuk/meta-tags/pull/287)).
|
21
|
+
|
22
|
+
Changes:
|
23
|
+
|
24
|
+
- Ruby older than 3.0 is no longer supported.
|
25
|
+
- Added `truncate_on_natural_separator` configuration option to the initializer ([287](https://github.com/kpumuk/meta-tags/pull/287)).
|
26
|
+
|
27
|
+
## 2.20.0 (December 26, 2023) [☰](https://github.com/kpumuk/meta-tags/compare/v2.19.0...v2.20.0)
|
28
|
+
|
29
|
+
Features:
|
30
|
+
|
31
|
+
- Introduced `truncate_on_natural_separator` configuration option to change or disable truncation on natural separator ([283](https://github.com/kpumuk/meta-tags/pull/283)).
|
32
|
+
- Introduced `title_tag_attributes` configuration option to add HTML attributes to the title tag ([284](https://github.com/kpumuk/meta-tags/pull/284)).
|
33
|
+
|
34
|
+
Changes:
|
35
|
+
|
36
|
+
- Switched builds from CircleCI to Github Actions ([273](https://github.com/kpumuk/meta-tags/pull/273))
|
37
|
+
- Ruby on Rails < 6.0 is no longer supported.
|
38
|
+
|
39
|
+
## 2.19.0 (October 5, 2023) [☰](https://github.com/kpumuk/meta-tags/compare/v2.18.0...v2.19.0)
|
40
|
+
|
41
|
+
Changes:
|
42
|
+
|
43
|
+
- Switched code style from custom rules to Standard ([246](https://github.com/kpumuk/meta-tags/pull/246)).
|
44
|
+
- Switched from testing Rails using environment variables to Appraisal gem ([251](https://github.com/kpumuk/meta-tags/pull/251)).
|
45
|
+
- Ruby 2.7 is minimum supported version ([257](https://github.com/kpumuk/meta-tags/pull/257))
|
46
|
+
- Added support for Rails 7.1 ([267](https://github.com/kpumuk/meta-tags/pull/267))
|
47
|
+
|
48
|
+
## 2.18.0 (September 15, 2022) [☰](https://github.com/kpumuk/meta-tags/compare/v2.17.0...v2.18.0)
|
49
|
+
|
50
|
+
Changes:
|
51
|
+
|
52
|
+
- Fallback to site name when title is empty in mirrored tags ([243](https://github.com/kpumuk/meta-tags/pull/243))
|
53
|
+
|
54
|
+
## 2.17.0 (July 5, 2022) [☰](https://github.com/kpumuk/meta-tags/compare/v2.16.0...v2.17.0)
|
55
|
+
|
56
|
+
Changes:
|
57
|
+
|
58
|
+
- Separate RBS files to \_internal directory to avoid exposing RBS ([237](https://github.com/kpumuk/meta-tags/pull/237))
|
59
|
+
- Added Ruby 3.1 to supported versions, Ruby 2.6 is minimum supported version ([235](https://github.com/kpumuk/meta-tags/pull/235/))
|
60
|
+
|
61
|
+
## 2.16.0 (September 24, 2021) [☰](https://github.com/kpumuk/meta-tags/compare/v2.15.0...v2.16.0)
|
62
|
+
|
63
|
+
Changes:
|
64
|
+
|
65
|
+
- Updated maximum dependency specified in gemspec (Getting Ready for Rails 7)
|
66
|
+
- Added RBS type definitions.
|
67
|
+
|
68
|
+
## 2.15.0 (August 2, 2021) [☰](https://github.com/kpumuk/meta-tags/compare/v2.14.0...v2.15.0)
|
69
|
+
|
70
|
+
Changes:
|
71
|
+
|
72
|
+
- Added Ruby 3.0 to supported versions
|
73
|
+
- Ruby 2.5 is now a required minimum version (we dropped official support for Ruby versions older than 2.5 about 8 months ago)
|
74
|
+
- 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))
|
75
|
+
- Added support for `itemprop` in `_` tag for custom tags ([203](https://github.com/kpumuk/meta-tags/pull/203))
|
76
|
+
|
77
|
+
Bugfixes:
|
78
|
+
|
79
|
+
- Fixed error "can't modify frozen String" in `strip_tags`.
|
80
|
+
- Fixed Ruby warning about an instance variable that is not initialized.
|
81
|
+
|
1
82
|
## 2.14.0 (December 10, 2020) [☰](https://github.com/kpumuk/meta-tags/compare/v2.13.0...v2.14.0)
|
2
83
|
|
3
84
|
Changes:
|
@@ -139,7 +220,7 @@ Features:
|
|
139
220
|
|
140
221
|
Changes:
|
141
222
|
|
142
|
-
- Rails < 3.2 is
|
223
|
+
- Ruby on Rails < 3.2 is no longer supported
|
143
224
|
|
144
225
|
Features:
|
145
226
|
|
@@ -158,7 +239,7 @@ Bugfixes:
|
|
158
239
|
|
159
240
|
Changes:
|
160
241
|
|
161
|
-
- Ruby < 2.0 is
|
242
|
+
- Ruby < 2.0 is no longer supported
|
162
243
|
|
163
244
|
Features:
|
164
245
|
|
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/
|
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/
|
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
|
-
|
51
|
-
|
52
|
-
|
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).
|