meta-tags 2.17.0 → 2.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +6 -0
- data/Gemfile +1 -1
- data/lib/meta_tags/meta_tags_collection.rb +4 -2
- data/lib/meta_tags/version.rb +1 -1
- data/meta-tags.gemspec +1 -1
- data/sig/lib/_internal/rails.rbs +1 -1
- data.tar.gz.sig +0 -0
- metadata +8 -8
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccc7036c95b58f9e1c33efd68f3b9dc16d64e9f4ad5d06296800a288f9f644da
|
4
|
+
data.tar.gz: c8fde1a652894101de4f146217b43326e81980c1bd760042a2dacbd194abb0a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2672417d1d988f072ccc11d12f7d4a536b3e00ee376098972a9d945c11fc6ac6109f8baa0f87e98c33f549860384d41caa47c00496a3199edae6b4d60d88f956
|
7
|
+
data.tar.gz: 83f2ff75eb5d41ec25b8c26932f718b186fa938f15b8fb5000840989ba5785a317d3337c1d363f3e3473a9c16d18e4b065272321c9a24172a763bfc74b8be2a5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 2.18.0 (September 15, 2022) [☰](https://github.com/kpumuk/meta-tags/compare/v2.17.0...v2.18.0)
|
4
|
+
|
5
|
+
Changes:
|
6
|
+
|
7
|
+
- Fallback to site name when title is empty in mirrored tags ([243](https://github.com/kpumuk/meta-tags/pull/243))
|
8
|
+
|
3
9
|
## 2.17.0 (July 5, 2022) [☰](https://github.com/kpumuk/meta-tags/compare/v2.16.0...v2.17.0)
|
4
10
|
|
5
11
|
Changes:
|
data/Gemfile
CHANGED
@@ -24,7 +24,7 @@ group :test do
|
|
24
24
|
# Apply RSpec rubocop cops
|
25
25
|
gem 'rubocop-rspec', require: false
|
26
26
|
# We use this gem on CI to calculate code coverage.
|
27
|
-
gem 'simplecov', '
|
27
|
+
gem 'simplecov', '~> 0.21.2'
|
28
28
|
# Format RSpec output for CircleCI
|
29
29
|
gem 'rspec_junit_formatter'
|
30
30
|
end
|
@@ -70,14 +70,16 @@ module MetaTags
|
|
70
70
|
with_defaults(defaults) { extract_full_title }
|
71
71
|
end
|
72
72
|
|
73
|
-
# Constructs the title without site title (for normalized parameters).
|
73
|
+
# Constructs the title without site title (for normalized parameters). When title is empty,
|
74
|
+
# use the site title instead.
|
74
75
|
#
|
75
76
|
# @return [String] page title.
|
76
77
|
#
|
77
78
|
def page_title(defaults = {})
|
78
79
|
old_site = @meta_tags[:site]
|
79
80
|
@meta_tags[:site] = nil
|
80
|
-
with_defaults(defaults) { extract_full_title }
|
81
|
+
full_title = with_defaults(defaults) { extract_full_title }
|
82
|
+
full_title.presence || old_site || ''
|
81
83
|
ensure
|
82
84
|
@meta_tags[:site] = old_site
|
83
85
|
end
|
data/lib/meta_tags/version.rb
CHANGED
data/meta-tags.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
|
27
27
|
spec.add_development_dependency "railties", ">= 3.2.0", "< 7.1"
|
28
28
|
spec.add_development_dependency "rake", "~> 13.0"
|
29
|
-
spec.add_development_dependency "rspec", "~> 3.
|
29
|
+
spec.add_development_dependency "rspec", "~> 3.11.0"
|
30
30
|
spec.add_development_dependency "rspec-html-matchers", "~> 0.9.1"
|
31
31
|
|
32
32
|
spec.cert_chain = ["certs/kpumuk.pem"]
|
data/sig/lib/_internal/rails.rbs
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meta-tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmytro Shteflyuk
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain:
|
11
11
|
- |
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
ANVO3I4ZwTKD12DMFqjalLwbSVVO4wpuMO3tcAgO4q7Fqh2tXTXom/YYl0SFvmx4
|
30
30
|
evTPD0iY8lmGP3ZM
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2022-
|
32
|
+
date: 2022-09-15 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: actionpack
|
@@ -91,14 +91,14 @@ dependencies:
|
|
91
91
|
requirements:
|
92
92
|
- - "~>"
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version: 3.
|
94
|
+
version: 3.11.0
|
95
95
|
type: :development
|
96
96
|
prerelease: false
|
97
97
|
version_requirements: !ruby/object:Gem::Requirement
|
98
98
|
requirements:
|
99
99
|
- - "~>"
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 3.
|
101
|
+
version: 3.11.0
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: rspec-html-matchers
|
104
104
|
requirement: !ruby/object:Gem::Requirement
|
@@ -165,7 +165,7 @@ metadata:
|
|
165
165
|
homepage_uri: https://github.com/kpumuk/meta-tags/
|
166
166
|
source_code_uri: https://github.com/kpumuk/meta-tags/
|
167
167
|
rubygems_mfa_required: 'true'
|
168
|
-
post_install_message:
|
168
|
+
post_install_message:
|
169
169
|
rdoc_options: []
|
170
170
|
require_paths:
|
171
171
|
- lib
|
@@ -180,8 +180,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
- !ruby/object:Gem::Version
|
181
181
|
version: '0'
|
182
182
|
requirements: []
|
183
|
-
rubygems_version: 3.
|
184
|
-
signing_key:
|
183
|
+
rubygems_version: 3.3.22
|
184
|
+
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: Collection of SEO helpers for Ruby on Rails.
|
187
187
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|