meta-tags 2.22.1 → 2.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b864d37b7120ce40d31d430346d9e55eafe757a1e38db90df59ce60572f000d4
4
- data.tar.gz: 3c5c15596adcd45d015aa27f4c9822907de71d45b4271323d7f304ae38612a5d
3
+ metadata.gz: 62d7bf8d22b105563c4caefeea8fa62acf16e80c34653721fa7fbd734e0057e1
4
+ data.tar.gz: 700c6abf62749ca7fda64f41423a0cd53ca5c291b5a5e8f316cffa83526c31c1
5
5
  SHA512:
6
- metadata.gz: 78ca5a5ae64cad5b0605ba4b8448e155d375bd1a78f28547cec50b8685a8c4efa61829638a236282fcc9ac601a59e8e964510ea88c9aa20cef8b34d95052c1bc
7
- data.tar.gz: 8fa6a70b783f41d67bd221d4b2fa8c0d58414f7dff199ebe1ce78e84ca2b3e94ccbe97b81c733027c7b5d68efe60da6fae132dc7108d229d274b0e9156e22b2d
6
+ metadata.gz: ff00753285625d6829a706100e0ba8468c698a9f82af4e555a5c7fed9d45dde19addf7f15590cd38165dec7e4804c36dcf6ae6288999cb0b0685344e9b2a11f7
7
+ data.tar.gz: 983a16b09e7904b421191ee9c8758d1491eafe327384b0282c2a6a49dde648afeda2a4d1ffca9f19b85c3a052a125dd9278f6889bfe074268f37e81009d0f2df
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,10 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.22.2 (October 25, 2025) [☰](https://github.com/kpumuk/meta-tags/compare/v2.22.1...v2.22.2)
4
+
5
+ Changes:
6
+
7
+ - Added Ruby on Rails 8.0 to the build matrix, removed Rails 6.0 ([321](https://github.com/kpumuk/meta-tags/pull/321))
8
+ - Added support for Ruby on Rails 8.1 ([337](https://github.com/kpumuk/meta-tags/pull/337))
9
+
3
10
  ## 2.22.1 (September 20, 2024) [☰](https://github.com/kpumuk/meta-tags/compare/v2.22.0...v2.22.1)
4
11
 
5
12
  Changes:
6
13
 
7
- - Removed `meta-tags.gemspec` and `Rakefile` from the gem package ([312](https://github.com/kpumuk/meta-tags/pull/312)
14
+ - Removed `meta-tags.gemspec` and `Rakefile` from the gem package ([312](https://github.com/kpumuk/meta-tags/pull/312))
8
15
  - Use GitHub actions to build, sign and publish the gem ([314](https://github.com/kpumuk/meta-tags/pull/314), [315](https://github.com/kpumuk/meta-tags/pull/315), [316](https://github.com/kpumuk/meta-tags/pull/316))
9
16
 
10
17
  ## 2.22.0 (July 15, 2024) [☰](https://github.com/kpumuk/meta-tags/compare/v2.21.0...v2.22.0)
data/CONTRIBUTING.md CHANGED
@@ -48,5 +48,4 @@ within couple days. We may suggest some changes or improvements or alternatives.
48
48
  Some things that will increase the chance that your pull request is accepted:
49
49
 
50
50
  - Write tests.
51
- - Make sure [CodeClimate](https://codeclimate.com/github/kpumuk/meta-tags/builds) build is clean.
52
51
  - Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
data/README.md CHANGED
@@ -3,8 +3,6 @@
3
3
  [![Tests](https://github.com/kpumuk/meta-tags/actions/workflows/tests.yml/badge.svg)](https://github.com/kpumuk/meta-tags/actions/workflows/tests.yml)
4
4
  [![Gem Version](https://badge.fury.io/rb/meta-tags.svg)](https://badge.fury.io/rb/meta-tags)
5
5
  [![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/testdouble/standard)
6
- [![Code Climate](https://codeclimate.com/github/kpumuk/meta-tags/badges/gpa.svg)](https://codeclimate.com/github/kpumuk/meta-tags)
7
- [![Test Coverage](https://codeclimate.com/github/kpumuk/meta-tags/badges/coverage.svg)](https://codeclimate.com/github/kpumuk/meta-tags/coverage)
8
6
  [![Gem Downloads](https://img.shields.io/gem/dt/meta-tags.svg)](https://badge.fury.io/rb/meta-tags)
9
7
  [![Changelog](https://img.shields.io/badge/Changelog-latest-blue.svg)](https://github.com/kpumuk/meta-tags/blob/main/CHANGELOG.md)
10
8
 
@@ -12,10 +10,10 @@ Search Engine Optimization (SEO) plugin for Ruby on Rails applications.
12
10
 
13
11
  ## Ruby on Rails
14
12
 
15
- The MetaTags main branch fully supports Ruby on Rails 6.0+ and is tested against all major Ruby on Rails releases.
13
+ The MetaTags main branch fully supports Ruby on Rails 6.1+ and is tested against all major Ruby on Rails releases.
16
14
 
17
15
  > [!NOTE]
18
- > We no longer support Ruby versions older than 3.0 and Ruby on Rails older than 6.0 since they reached their end of life (see [Ruby](https://endoflife.date/ruby) and [Ruby on Rails](https://endoflife.date/rails)).
16
+ > We no longer support Ruby versions older than 3.0 and Ruby on Rails older than 6.1 since they reached their end of life (see [Ruby](https://endoflife.date/ruby) and [Ruby on Rails](https://endoflife.date/rails)).
19
17
 
20
18
  ## Installation
21
19
 
@@ -245,15 +243,15 @@ In order to update the page title, you can use the following trick. First, set t
245
243
  MetaTags.configure do |config|
246
244
  config.title_tag_attributes = {id: "page-title"}
247
245
  end
248
- ````
246
+ ```
249
247
 
250
248
  Now in your turbo frame, you can update the title using a turbo stream:
251
249
 
252
250
  ```html
253
251
  <turbo-frame ...>
254
- <turbo-stream action="update" target="page-title">
255
- <template>My new title</template>
256
- </turbo-stream>
252
+ <turbo-stream action="update" target="page-title">
253
+ <template>My new title</template>
254
+ </turbo-stream>
257
255
  </turbo-frame>
258
256
  ```
259
257
 
data/certs/kpumuk.pem CHANGED
@@ -1,7 +1,7 @@
1
1
  -----BEGIN CERTIFICATE-----
2
2
  MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MQ8wDQYDVQQDDAZrcHVt
3
3
  dWsxFjAUBgoJkiaJk/IsZAEZFgZrcHVtdWsxFDASBgoJkiaJk/IsZAEZFgRpbmZv
4
- MB4XDTI0MDcxNTIxMzIyNFoXDTI1MDcxNTIxMzIyNFowPzEPMA0GA1UEAwwGa3B1
4
+ M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uPME9r
17
+ TdfDc1aXCAPdLCajhpmuzfa1g8/W7ORdxwNQidYSSPJ5OvcAGSfxTHJsFseHjrBK
18
+ 9hdoXZgqc4a5defxoOZFD9Im9AUwFqwR8njCBST6FbCGmHIYNHj2hxbwrU/1I2Kg
19
+ pPzkBOwQl2p1ykAEUe7cwoqJcO+1rPeTHjudNqhOfc3VnMA8A7uXOkTtYNVhvApn
20
+ oW4hE/8SnZkQm8jzdi0iX9nWxo8=
21
21
  -----END CERTIFICATE-----
@@ -18,7 +18,7 @@ module MetaTags
18
18
  #
19
19
  # @param [ActionView::Base] view Rails view object.
20
20
  def render(view)
21
- tags = []
21
+ tags = [] # : Array[Tag]
22
22
 
23
23
  render_charset(tags)
24
24
  render_title(tags)
@@ -35,8 +35,8 @@ module MetaTags
35
35
  render_hashes(tags)
36
36
  render_custom(tags)
37
37
 
38
- tags.tap(&:compact!).map! { |tag| tag.render(view) }
39
- view.safe_join tags, MetaTags.config.minify_output ? "" : "\n"
38
+ rendered_tags = tags.tap(&:compact!).map { |tag| tag.render(view) }
39
+ view.safe_join rendered_tags, MetaTags.config.minify_output ? "" : "\n"
40
40
  end
41
41
 
42
42
  protected
@@ -159,7 +159,7 @@ module MetaTags
159
159
  return string_array if limit.nil? || limit <= 0
160
160
 
161
161
  length = 0
162
- result = []
162
+ result = [] # : Array[String]
163
163
 
164
164
  string_array.each do |string|
165
165
  limit_left = calculate_limit_left(limit, length, result, separator)
@@ -192,7 +192,7 @@ module MetaTags
192
192
  site_title, title, separator, global_limit
193
193
  )
194
194
 
195
- title = (title_limited_length > 0) ? truncate_array(title, title_limited_length, separator) : []
195
+ title = (title_limited_length > 0) ? truncate_array(title, title_limited_length, separator) : [] # : Array[String]
196
196
  site_title = (site_title_limited_length > 0) ? truncate(site_title, site_title_limited_length) : nil
197
197
  end
198
198
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module MetaTags
4
4
  # Gem version.
5
- VERSION = "2.22.1"
5
+ VERSION = "2.22.2"
6
6
  public_constant :VERSION
7
7
  end
@@ -43,13 +43,13 @@ module ActiveSupport
43
43
  end
44
44
 
45
45
  interface _ActionControllerBase
46
- def render: (*untyped args) { () -> untyped } -> untyped
46
+ def render: (*untyped args) ?{ () -> untyped } -> untyped
47
47
  end
48
48
 
49
49
  interface _ActionViewBase
50
- def tag: (String name, ?Hash[String | Symbol, untyped] options, ?bool open) -> void
50
+ def tag: (String name, ?Hash[String | Symbol, untyped] options, ?bool open) -> String
51
51
 
52
- def content_tag: (String name, String content, ?Hash[String | Symbol, untyped] options, ?bool open) -> void
52
+ def content_tag: (String name, String content, ?Hash[String | Symbol, untyped] options, ?bool open) -> String
53
53
 
54
54
  def safe_join: (Array[String], String) -> String
55
55
 
@@ -1,5 +1,5 @@
1
1
  module MetaTags
2
2
  class ContentTag < Tag
3
- def render: (_ActionViewBase view) -> untyped
3
+ def render: (_ActionViewBase view) -> String
4
4
  end
5
5
  end
@@ -5,7 +5,7 @@ module MetaTags
5
5
  @page_description: String?
6
6
  @page_keywords: String? | Array[String]
7
7
 
8
- def render: (*untyped args) { () -> untyped } -> untyped
8
+ def render: (*untyped args) ?{ () -> untyped } -> untyped
9
9
 
10
10
  def set_meta_tags: (ViewHelper::meta_tags | (_MetaTagish & Object) meta_tags) -> void
11
11
 
@@ -5,7 +5,7 @@ module MetaTags
5
5
 
6
6
  def initialize: (String | Symbol name, ?Hash[String | Symbol, untyped] attributes) -> void
7
7
 
8
- def render: (_ActionViewBase view) -> void
8
+ def render: (_ActionViewBase view) -> String
9
9
 
10
10
  def prepare_attributes: (Hash[String | Symbol, untyped] attributes) -> Hash[String | Symbol, untyped]
11
11
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meta-tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.22.1
4
+ version: 2.22.2
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
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
13
  MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MQ8wDQYDVQQDDAZrcHVt
14
14
  dWsxFjAUBgoJkiaJk/IsZAEZFgZrcHVtdWsxFDASBgoJkiaJk/IsZAEZFgRpbmZv
15
- MB4XDTI0MDcxNTIxMzIyNFoXDTI1MDcxNTIxMzIyNFowPzEPMA0GA1UEAwwGa3B1
15
+ MB4XDTI1MDkyOTE1MDM1M1oXDTI2MDkyOTE1MDM1M1owPzEPMA0GA1UEAwwGa3B1
16
16
  bXVrMRYwFAYKCZImiZPyLGQBGRYGa3B1bXVrMRQwEgYKCZImiZPyLGQBGRYEaW5m
17
17
  bzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALw2YroZc+IT+rs8NuPu
18
18
  c13DelrxrpAgPEu1zuRb3l7WaHRNWA4TyS8Z6Aa1G2O+FdUZNMW1n7IwP/QMJ9Mz
@@ -23,14 +23,14 @@ cert_chain:
23
23
  /1sCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFPa4
24
24
  VFc1YOlV1u/7EGTwMCAk8YE9MB0GA1UdEQQWMBSBEmtwdW11a0BrcHVtdWsuaW5m
25
25
  bzAdBgNVHRIEFjAUgRJrcHVtdWtAa3B1bXVrLmluZm8wDQYJKoZIhvcNAQELBQAD
26
- ggEBADXj54X1y7Pw0Wp5wdniZE13a8EwWC41BEIsSoBLkGQhZ2OOR+5tVUM9kCwG
27
- kX6YdliORLuLevYXKiXFluiETwKTeAd6zUURy7eLlwQ1GvhE8wmGk0TQY11v8FMj
28
- 7AupDtulpP01gLDZwbysovu/3btfhrLVncJ2zIpB5sx68fDCOmOGSUbdgOCV+S+O
29
- CyTFctYlJNXZgv2kl76TII7jbZikT/7hVOhCO48OdMQ/s26zabbJrcV2pJOLKKkP
30
- BKX4xDo6SbsGmqjFkknT6WiiE94rQxGCb9JNiSyl3SncEw+Ysx6yVKYB5WAEy8s1
31
- M0VQvDzd77bxj3lx/P6ifll3yUs=
26
+ ggEBAFz/6+efHFEomTCA8V/eMpzaMkbj04cTmFxm28KiUO1F4vgbSIBx0bsMoJkH
27
+ KI956sPVVJMykwOdDUhRWBrHOVTBCGdkYWdb38KQKfwtkdGd8b/Afrxs5GuPME9r
28
+ TdfDc1aXCAPdLCajhpmuzfa1g8/W7ORdxwNQidYSSPJ5OvcAGSfxTHJsFseHjrBK
29
+ 9hdoXZgqc4a5defxoOZFD9Im9AUwFqwR8njCBST6FbCGmHIYNHj2hxbwrU/1I2Kg
30
+ pPzkBOwQl2p1ykAEUe7cwoqJcO+1rPeTHjudNqhOfc3VnMA8A7uXOkTtYNVhvApn
31
+ oW4hE/8SnZkQm8jzdi0iX9nWxo8=
32
32
  -----END CERTIFICATE-----
33
- date: 2024-09-20 00:00:00.000000000 Z
33
+ date: 2025-10-26 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: actionpack
@@ -41,7 +41,7 @@ dependencies:
41
41
  version: 6.0.0
42
42
  - - "<"
43
43
  - !ruby/object:Gem::Version
44
- version: '8.1'
44
+ version: '8.2'
45
45
  type: :runtime
46
46
  prerelease: false
47
47
  version_requirements: !ruby/object:Gem::Requirement
@@ -51,7 +51,7 @@ dependencies:
51
51
  version: 6.0.0
52
52
  - - "<"
53
53
  - !ruby/object:Gem::Version
54
- version: '8.1'
54
+ version: '8.2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: appraisal
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -75,7 +75,7 @@ dependencies:
75
75
  version: 3.2.0
76
76
  - - "<"
77
77
  - !ruby/object:Gem::Version
78
- version: '8.1'
78
+ version: '8.2'
79
79
  type: :development
80
80
  prerelease: false
81
81
  version_requirements: !ruby/object:Gem::Requirement
@@ -85,7 +85,7 @@ dependencies:
85
85
  version: 3.2.0
86
86
  - - "<"
87
87
  - !ruby/object:Gem::Version
88
- version: '8.1'
88
+ version: '8.2'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: rake
91
91
  requirement: !ruby/object:Gem::Requirement
@@ -148,14 +148,14 @@ dependencies:
148
148
  requirements:
149
149
  - - "~>"
150
150
  - !ruby/object:Gem::Version
151
- version: 2.26.0
151
+ version: 2.28.0
152
152
  type: :development
153
153
  prerelease: false
154
154
  version_requirements: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - "~>"
157
157
  - !ruby/object:Gem::Version
158
- version: 2.26.0
158
+ version: 2.28.0
159
159
  - !ruby/object:Gem::Dependency
160
160
  name: rubocop-rake
161
161
  requirement: !ruby/object:Gem::Requirement
@@ -176,14 +176,14 @@ dependencies:
176
176
  requirements:
177
177
  - - "~>"
178
178
  - !ruby/object:Gem::Version
179
- version: 3.0.1
179
+ version: 3.4.0
180
180
  type: :development
181
181
  prerelease: false
182
182
  version_requirements: !ruby/object:Gem::Requirement
183
183
  requirements:
184
184
  - - "~>"
185
185
  - !ruby/object:Gem::Version
186
- version: 3.0.1
186
+ version: 3.4.0
187
187
  - !ruby/object:Gem::Dependency
188
188
  name: standard
189
189
  requirement: !ruby/object:Gem::Requirement
@@ -260,7 +260,7 @@ metadata:
260
260
  homepage_uri: https://github.com/kpumuk/meta-tags/
261
261
  source_code_uri: https://github.com/kpumuk/meta-tags/
262
262
  rubygems_mfa_required: 'true'
263
- post_install_message:
263
+ post_install_message:
264
264
  rdoc_options: []
265
265
  require_paths:
266
266
  - lib
@@ -275,8 +275,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
275
275
  - !ruby/object:Gem::Version
276
276
  version: '0'
277
277
  requirements: []
278
- rubygems_version: 3.4.19
279
- signing_key:
278
+ rubygems_version: 3.5.22
279
+ signing_key:
280
280
  specification_version: 4
281
281
  summary: Collection of SEO helpers for Ruby on Rails.
282
282
  test_files: []
metadata.gz.sig CHANGED
@@ -1,2 +1 @@
1
- ���HB��t\��P<+�����]����)�L�V�Ӏv��m��b�"�h���P���� q|D����Q�ۍyX� �`���t~x�j��LR���0��M!~~-PC�z�`�QZw�e��V�4�&g��� ��'~���MĬ
2
- ����{�^N���o#;8�ݰ�������_�u�� �� �Z�F���UO����j~�DŽĮ����v�_�b<��O 9*eR�+�F�+�&����=K�4`!�)C@+
1
+ �'p)�; 'x������ElW����rM%�SeGkY2iT2��Ӂ�B��53�5%]!Η5q0=��y���