meta-tags 2.23.0 → 2.25.0

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.
@@ -19,6 +19,8 @@ class ::Loofah
19
19
 
20
20
  class DocumentFragment
21
21
  include TextBehavior
22
+
23
+ def xpath: (String path) -> untyped
22
24
  end
23
25
 
24
26
  def self.fragment: (String tags, ?String? encoding) -> DocumentFragment
@@ -33,6 +35,11 @@ module ActionController
33
35
  end
34
36
 
35
37
  module ActiveSupport
38
+ class Deprecation
39
+ def initialize: (String deprecation_horizon, String gem_name) -> void
40
+ def warn: (String message) -> void
41
+ end
42
+
36
43
  class HashWithIndifferentAccess[unchecked out K, unchecked out V] < Hash[K, V]
37
44
  def with_indifferent_access: () -> self
38
45
  def deep_merge!: (instance | Hash[K, V] other) -> self
@@ -1,20 +1,22 @@
1
1
  module MetaTags
2
2
  class Configuration
3
3
  type html_tag_key = String | Symbol
4
- type html_tag_value = Hash[html_tag_key, html_tag_value] | html_tag_content
5
- type html_tag_content = String? | Symbol | (_Stringish & Object)
4
+ type html_tag_value = Hash[html_tag_key, html_tag_value] | Array[html_tag_value] | html_tag_content
5
+ type html_tag_content = String? | Symbol | Numeric | bool | (_Stringish & Object) | (_Timish & Object)
6
6
 
7
7
 
8
8
  attr_accessor title_limit: Integer?
9
9
  attr_accessor truncate_site_title_first: bool
10
10
  attr_accessor truncate_on_natural_separator: String?|Regexp
11
+ attr_accessor truncate_array_items_at_boundaries: bool
11
12
  attr_accessor title_tag_attributes: Hash[html_tag_key, html_tag_value]?
12
- attr_accessor description_limit: Integer
13
- attr_accessor keywords_limit: Integer
13
+ attr_accessor description_limit: Integer?
14
+ attr_accessor keywords_limit: Integer?
14
15
  attr_accessor keywords_separator: String
15
16
  attr_accessor keywords_lowercase: bool
16
17
  attr_accessor open_meta_tags: bool
17
18
  attr_accessor minify_output: bool
19
+ attr_accessor resolve_symbolic_references_in_arrays: bool
18
20
  attr_reader property_tags: Array[String | Symbol]
19
21
  attr_accessor skip_canonical_links_on_noindex: bool
20
22
 
@@ -7,8 +7,14 @@ module MetaTags
7
7
 
8
8
  def render: (*untyped args) ?{ () -> untyped } -> untyped
9
9
 
10
+ def render_to_string: (*untyped args) ?{ () -> untyped } -> untyped
11
+
10
12
  def set_meta_tags: (meta_tags | (_MetaTagish & Object) meta_tags) -> void
11
13
 
12
14
  def meta_tags: () -> MetaTagsCollection
15
+
16
+ private
17
+
18
+ def set_meta_tags_from_instance_variables: () -> void
13
19
  end
14
20
  end
@@ -28,14 +28,20 @@ module MetaTags
28
28
 
29
29
  def extract_robots: () -> Hash[String, String]
30
30
 
31
+ def noindex?: () -> bool
32
+
33
+ def robots: () -> Hash[String, String]
34
+
31
35
  def normalize_open_graph: (Hash[String | Symbol, untyped] meta_tags) -> ActiveSupport::HashWithIndifferentAccess[String | Symbol, untyped]
32
36
 
33
37
  def extract_separator_section: (String | Symbol name, String default) -> String
34
38
 
35
- def extract_robots_attribute: (String | Symbol name) -> [String | Array[String | Symbol], String?]
39
+ def extract_robots_attribute: (String | Symbol name) -> [String | Array[String], String?]
40
+
41
+ def robots_attribute_present?: (untyped value) -> bool
36
42
 
37
43
  def calculate_robots_attributes: (Hash[String, Array[String]] result, String | Symbol | Array[String | Symbol] attributes) -> void
38
44
 
39
- def apply_robots_value: (Hash[String, Array[String]] result, String | Symbol name, String value, Set[String] processed) -> void
45
+ def apply_robots_value: (Hash[String, Array[String]] result, String name, String value, Set[String] processed) -> void
40
46
  end
41
47
  end
@@ -1,5 +1,7 @@
1
1
  interface _ActionControllerBase
2
2
  def render: (*untyped args) ?{ () -> untyped } -> untyped
3
+
4
+ def render_to_string: (*untyped args) ?{ () -> untyped } -> untyped
3
5
  end
4
6
 
5
7
  interface _ActionViewBase
@@ -2,7 +2,7 @@ module MetaTags
2
2
  class Renderer
3
3
  type meta_key = String | Symbol
4
4
  type meta_value = Hash[meta_key, meta_value] | Array[meta_value] | meta_content
5
- type meta_content = String? | Symbol | Integer | bool | (_Timish & Object) | (_Stringish & Object)
5
+ type meta_content = String? | Symbol | Integer | Float | bool | (_Timish & Object) | (_Stringish & Object)
6
6
 
7
7
  attr_reader meta_tags: MetaTagsCollection
8
8
  attr_reader normalized_meta_tags: Hash[Symbol, meta_value]
@@ -31,20 +31,24 @@ module MetaTags
31
31
 
32
32
  def render_canonical_link: (Array[Tag] tags) -> void
33
33
 
34
- def render_hashes: (Array[Tag] tags, **untyped opts) -> void
34
+ def render_hashes: (Array[Tag] tags) -> void
35
35
 
36
- def render_hash: (Array[Tag] tags, untyped key, **untyped opts) -> void
36
+ def render_hash: (Array[Tag] tags, meta_key key) -> void
37
37
 
38
38
  def render_custom: (Array[Tag] tags) -> void
39
39
 
40
- def process_tree: (Array[Tag] tags, meta_key property, meta_value content, ?itemprop: meta_key? itemprop, **untyped opts) -> void
40
+ def process_tree: (Array[Tag] tags, meta_key property, meta_value content, ?itemprop: meta_value itemprop) -> void
41
41
 
42
- def process_hash: (Array[Tag] tags, meta_key property, Hash[meta_key, meta_value] content, **untyped opts) -> void
42
+ def process_hash: (Array[Tag] tags, meta_key property, Hash[meta_key, meta_value] content, ?itemprop: meta_value itemprop) -> void
43
43
 
44
- def process_array: (Array[Tag] tags, meta_key property, Array[meta_value] content, **untyped opts) -> void
44
+ def process_array: (Array[Tag] tags, meta_key property, Array[meta_value] content, ?itemprop: meta_value itemprop) -> void
45
45
 
46
- def render_tag: (Array[Tag] tags, meta_key name, meta_content value, ?itemprop: meta_key? itemprop) -> void
46
+ def process_reference: (Array[Tag] tags, meta_key property, Symbol reference, ?itemprop: meta_value itemprop) -> void
47
+
48
+ def render_tag: (Array[Tag] tags, meta_key name, meta_content value, ?itemprop: meta_value itemprop) -> void
47
49
 
48
50
  def configured_name_key: (meta_key name) -> Symbol
51
+
52
+ def property_tag?: (String name, String tag_name) -> bool
49
53
  end
50
54
  end
@@ -7,6 +7,8 @@ module MetaTags
7
7
 
8
8
  def render: (_ActionViewBase view) -> String
9
9
 
10
- def prepare_attributes: (Hash[String | Symbol, untyped] attributes) -> Hash[String | Symbol, untyped]
10
+ def drop_blank_attribute_names: (Hash[String | Symbol, untyped] attributes) -> Hash[String | Symbol, untyped]
11
+
12
+ def serialize_iso8601_attributes: (Hash[String | Symbol, untyped] attributes) -> Hash[String | Symbol, untyped]
11
13
  end
12
14
  end
@@ -5,7 +5,7 @@ module MetaTags
5
5
  type keyword = String? | (_Stringish & Object)
6
6
  type keywords = keyword | Array[keywords]
7
7
 
8
- def normalize_title: (String? site_title, keywords title, String separator, ?bool reverse) -> String
8
+ def normalize_title: (String? site_title, keywords title, String separator, ?reverse: bool, ?lowercase: bool) -> String
9
9
 
10
10
  def normalize_description: (keyword description) -> String
11
11
 
@@ -17,16 +17,19 @@ module MetaTags
17
17
 
18
18
  def safe_join: (Array[String] array, ?String sep) -> String
19
19
 
20
- def cleanup_string: (keyword string, ?strip: bool strip) -> String
20
+ def cleanup_string: (keyword string, ?strip: bool strip, ?limit: Integer? limit) -> String
21
21
 
22
- def cleanup_strings: (keywords? strings, ?strip: bool strip) -> Array[String]
22
+ def cleanup_strings: (keywords? strings, ?strip: bool strip, ?limit: Integer? limit) -> Array[String]
23
23
 
24
24
  def truncate: (String string, ?Integer? limit) -> String
25
25
 
26
26
  def truncate_array: (Array[String] string_array, ?Integer? limit, ?String separator) -> Array[String]
27
+ | (Enumerable[String] string_array, ?Integer? limit, ?String separator) -> Enumerable[String]
27
28
 
28
29
  private
29
30
 
31
+ def truncate_markup: (String string, Integer? limit) -> String
32
+
30
33
  def calculate_limit_left: (Integer limit, Integer length, Array[String] result, String separator) -> untyped
31
34
 
32
35
  def truncate_title: (String site_title, Array[String] title, String separator) -> ::Array[untyped]
@@ -4,12 +4,13 @@ module MetaTags
4
4
 
5
5
  type stringish = String | (_Stringish & Object)
6
6
  type robots_value = bool | String | Array[String]
7
+ type meta_tags = Hash[Renderer::meta_key, Renderer::meta_value]
7
8
 
8
9
  def meta_tags: () -> MetaTagsCollection
9
10
 
10
11
  def set_meta_tags: (?meta_tags | (_MetaTagish & Object) meta_tags) -> void
11
12
 
12
- def title: (?(stringish | Array[stringish]) title, ?::String? headline) -> String
13
+ def title: (?(stringish | Array[stringish] | nil) title, ?::String? headline) -> String
13
14
 
14
15
  def keywords: (TextNormalizer::keywords keywords) -> TextNormalizer::keywords
15
16
 
@@ -2,8 +2,10 @@ module MetaTags
2
2
  type meta_tags = Hash[Renderer::meta_key, Renderer::meta_value]
3
3
 
4
4
  self.@config: Configuration
5
+ self.@deprecator: ActiveSupport::Deprecation?
5
6
 
6
7
  def self.config: () -> Configuration
8
+ def self.deprecator: () -> ActiveSupport::Deprecation
7
9
  def self.configure: () { (Configuration) -> void } -> void
8
10
 
9
11
  interface _Stringish
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meta-tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.23.0
4
+ version: 2.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmytro Shteflyuk
@@ -12,7 +12,7 @@ cert_chain:
12
12
  -----BEGIN CERTIFICATE-----
13
13
  MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MQ8wDQYDVQQDDAZrcHVt
14
14
  dWsxFjAUBgoJkiaJk/IsZAEZFgZrcHVtdWsxFDASBgoJkiaJk/IsZAEZFgRpbmZv
15
- MB4XDTI1MDkyOTE1MDM1M1oXDTI2MDkyOTE1MDM1M1owPzEPMA0GA1UEAwwGa3B1
15
+ MB4XDTI2MTEyODE0MzU1MloXDTI3MTEyODE0MzU1MlowPzEPMA0GA1UEAwwGa3B1
16
16
  bXVrMRYwFAYKCZImiZPyLGQBGRYGa3B1bXVrMRQwEgYKCZImiZPyLGQBGRYEaW5m
17
17
  bzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALw2YroZc+IT+rs8NuPu
18
18
  c13DelrxrpAgPEu1zuRb3l7WaHRN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 00:00:00.000000000 Z
33
+ date: 2026-11-29 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: actionpack
@@ -38,14 +38,14 @@ dependencies:
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: 6.0.0
41
+ version: 6.1.0
42
42
  type: :runtime
43
43
  prerelease: false
44
44
  version_requirements: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: 6.0.0
48
+ version: 6.1.0
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: appraisal
51
51
  requirement: !ruby/object:Gem::Requirement
@@ -66,14 +66,14 @@ dependencies:
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: 3.2.0
69
+ version: 6.1.0
70
70
  type: :development
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
- version: 3.2.0
76
+ version: 6.1.0
77
77
  - !ruby/object:Gem::Dependency
78
78
  name: rake
79
79
  requirement: !ruby/object:Gem::Requirement
@@ -122,28 +122,28 @@ dependencies:
122
122
  requirements:
123
123
  - - "~>"
124
124
  - !ruby/object:Gem::Version
125
- version: 0.22.0
125
+ version: 1.0.1
126
126
  type: :development
127
127
  prerelease: false
128
128
  version_requirements: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - "~>"
131
131
  - !ruby/object:Gem::Version
132
- version: 0.22.0
132
+ version: 1.0.1
133
133
  - !ruby/object:Gem::Dependency
134
134
  name: steep
135
135
  requirement: !ruby/object:Gem::Requirement
136
136
  requirements:
137
137
  - - "~>"
138
138
  - !ruby/object:Gem::Version
139
- version: 1.10.0
139
+ version: 2.0.0
140
140
  type: :development
141
141
  prerelease: false
142
142
  version_requirements: !ruby/object:Gem::Requirement
143
143
  requirements:
144
144
  - - "~>"
145
145
  - !ruby/object:Gem::Version
146
- version: 1.10.0
146
+ version: 2.0.0
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: rubocop-rake
149
149
  requirement: !ruby/object:Gem::Requirement
@@ -222,11 +222,13 @@ executables: []
222
222
  extensions: []
223
223
  extra_rdoc_files: []
224
224
  files:
225
+ - AGENTS.md
225
226
  - CHANGELOG.md
226
227
  - CODE_OF_CONDUCT.md
227
228
  - CONTRIBUTING.md
228
229
  - MIT-LICENSE
229
230
  - README.md
231
+ - SECURITY.md
230
232
  - certs/kpumuk.pem
231
233
  - lib/generators/meta_tags/install_generator.rb
232
234
  - lib/generators/meta_tags/templates/config/initializers/meta_tags.rb
@@ -272,7 +274,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
272
274
  requirements:
273
275
  - - ">="
274
276
  - !ruby/object:Gem::Version
275
- version: 3.0.0
277
+ version: 3.2.0
276
278
  required_rubygems_version: !ruby/object:Gem::Requirement
277
279
  requirements:
278
280
  - - ">="
metadata.gz.sig CHANGED
Binary file