Skip to content

Commit de07a20

Browse files
committed
Updated documentation and version
1 parent 3d8d656 commit de07a20

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# Changelog
2+
3+
## 2.15.0 (August 2, 2021) [](https://github.com/kpumuk/meta-tags/compare/v2.14.0...v2.15.0)
4+
5+
Changes:
6+
7+
- Added Ruby 3.0 to supported versions
8+
- Ruby 2.5 is now a required minimum version (we dropped official support for Ruby versions older than 2.5 about 8 months ago)
9+
- 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))
10+
- Added support for `itemprop` in `_` tag for custom tags ([203](https://github.com/kpumuk/meta-tags/pull/203))
11+
12+
Bugfixes:
13+
14+
- Fixed error "can't modify frozen String" in `strip_tags`.
15+
- Fixed Ruby warning about an instance variable that is not initialized.
16+
117
## 2.14.0 (December 10, 2020) [](https://github.com/kpumuk/meta-tags/compare/v2.13.0...v2.14.0)
218

319
Changes:

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,24 @@ set_meta_tags twitter: {
697697
# <meta name="twitter:image:height" content="100">
698698
```
699699

700+
Special parameter `itemprop` can be used on a "anonymous" tag "\_" to generate "itemprop" HTML attribute:
701+
702+
```ruby
703+
set_meta_tags twitter: {
704+
card: "photo",
705+
image: {
706+
_: "http://example.com/1.png",
707+
width: 100,
708+
height: 100,
709+
itemprop: "image",
710+
}
711+
}
712+
# <meta name="twitter:card" content="photo">
713+
# <meta name="twitter:image" content="http://example.com/1.png" itemprop="image">
714+
# <meta name="twitter:image:width" content="100">
715+
# <meta name="twitter:image:height" content="100">
716+
```
717+
700718
Further reading:
701719

702720
- [Twitter Cards Documentation](https://dev.twitter.com/cards/)

lib/meta_tags/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module MetaTags
44
# Gem version.
5-
VERSION = '2.14.0'
5+
VERSION = '2.15.0'
66
public_constant :VERSION
77
end

0 commit comments

Comments
 (0)