Skip to content

Commit

Permalink
Updated documentation and version
Browse files Browse the repository at this point in the history
  • Loading branch information
kpumuk committed Aug 2, 2021
1 parent 3d8d656 commit de07a20
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# Changelog

## 2.15.0 (August 2, 2021) [](https://github.com/kpumuk/meta-tags/compare/v2.14.0...v2.15.0)

Changes:

- Added Ruby 3.0 to supported versions
- Ruby 2.5 is now a required minimum version (we dropped official support for Ruby versions older than 2.5 about 8 months ago)
- 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))
- Added support for `itemprop` in `_` tag for custom tags ([203](https://github.com/kpumuk/meta-tags/pull/203))

Bugfixes:

- Fixed error "can't modify frozen String" in `strip_tags`.
- Fixed Ruby warning about an instance variable that is not initialized.

## 2.14.0 (December 10, 2020) [](https://github.com/kpumuk/meta-tags/compare/v2.13.0...v2.14.0)

Changes:
Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,24 @@ set_meta_tags twitter: {
# <meta name="twitter:image:height" content="100">
```

Special parameter `itemprop` can be used on a "anonymous" tag "\_" to generate "itemprop" HTML attribute:

```ruby
set_meta_tags twitter: {
card: "photo",
image: {
_: "http://example.com/1.png",
width: 100,
height: 100,
itemprop: "image",
}
}
# <meta name="twitter:card" content="photo">
# <meta name="twitter:image" content="http://example.com/1.png" itemprop="image">
# <meta name="twitter:image:width" content="100">
# <meta name="twitter:image:height" content="100">
```

Further reading:

- [Twitter Cards Documentation](https://dev.twitter.com/cards/)
Expand Down
2 changes: 1 addition & 1 deletion lib/meta_tags/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module MetaTags
# Gem version.
VERSION = '2.14.0'
VERSION = '2.15.0'
public_constant :VERSION
end

0 comments on commit de07a20

Please sign in to comment.