diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cfe6f5f..4b15dcdc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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: diff --git a/README.md b/README.md index 03e684bc..cd76aa10 100644 --- a/README.md +++ b/README.md @@ -697,6 +697,24 @@ set_meta_tags twitter: { # ``` +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", + } +} +# +# +# +# +``` + Further reading: - [Twitter Cards Documentation](https://dev.twitter.com/cards/) diff --git a/lib/meta_tags/version.rb b/lib/meta_tags/version.rb index a4537898..69f6bcef 100644 --- a/lib/meta_tags/version.rb +++ b/lib/meta_tags/version.rb @@ -2,6 +2,6 @@ module MetaTags # Gem version. - VERSION = '2.14.0' + VERSION = '2.15.0' public_constant :VERSION end