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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5d6a918c74ab34bf285b01fd38c0c490745e0ee51f958d8bf2bf405dd26b287
4
- data.tar.gz: eee0a81f5b209b140ff27ec0cad12852c672ab1f035d930a1ab1ae5b82b8bfa8
3
+ metadata.gz: ccc7036c95b58f9e1c33efd68f3b9dc16d64e9f4ad5d06296800a288f9f644da
4
+ data.tar.gz: c8fde1a652894101de4f146217b43326e81980c1bd760042a2dacbd194abb0a8
5
5
  SHA512:
6
- metadata.gz: cc19a58a8e0c30867e1019a1e78bc502b6e6efff3edfa1494699ad8701a51bd0f80a345a51b86dbf7ab1924f7f7e211cf9965234f51ae005ae4376af4ab6e1d5
7
- data.tar.gz: edd7b528239c11d3f8fe1275270bd46b9584696b73415bd86fe4cda5549f9a05cd0c02c44c69ecd955e4964cfaa413fc14956c7c67ca478d491b7a4078128b53
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', '>= 0.17.0', '< 0.18'
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module MetaTags
4
4
  # Gem version.
5
- VERSION = '2.17.0'
5
+ VERSION = '2.18.0'
6
6
  public_constant :VERSION
7
7
  end
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.10.0"
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"]
@@ -4,7 +4,7 @@ class ::Hash[unchecked out K, unchecked out V]
4
4
  end
5
5
 
6
6
  class ::Object
7
- def presence: () -> String?
7
+ def presence: () -> self?
8
8
  def blank?: () -> bool
9
9
  def present?: () -> bool
10
10
  end
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.17.0
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-07-05 00:00:00.000000000 Z
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.10.0
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.10.0
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.1.6
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