meta-tags 2.14.0 → 2.22.1

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.
@@ -8,29 +8,29 @@ module MetaTags
8
8
  # Normalize title value.
9
9
  #
10
10
  # @param [String] site_title site title.
11
- # @param [String, Array<String>] title title string.
11
+ # @param [Array<String>] title title string.
12
12
  # @param [String] separator a string to join title parts with.
13
13
  # @param [true,false] reverse whether title should be reversed.
14
- # @return [Array<String>] array of title parts with tags removed.
14
+ # @return [String] title with HTML tags removed.
15
15
  #
16
16
  def normalize_title(site_title, title, separator, reverse = false)
17
- title = cleanup_strings(title)
18
- title.reverse! if reverse
17
+ clean_title = cleanup_strings(title)
18
+ clean_title.reverse! if reverse
19
19
 
20
20
  site_title = cleanup_string(site_title)
21
21
  separator = cleanup_string(separator, strip: false)
22
22
 
23
23
  # Truncate title and site title
24
- site_title, title = truncate_title(site_title, title, separator)
24
+ site_title, clean_title = truncate_title(site_title, clean_title, separator)
25
25
 
26
26
  if site_title.present?
27
27
  if reverse
28
- title.push(site_title)
28
+ clean_title.push(site_title)
29
29
  else
30
- title.unshift(site_title)
30
+ clean_title.unshift(site_title)
31
31
  end
32
32
  end
33
- safe_join(title, separator)
33
+ safe_join(clean_title, separator)
34
34
  end
35
35
 
36
36
  # Normalize description value.
@@ -44,7 +44,7 @@ module MetaTags
44
44
  # serves the same purpose we could just as it to convert itself to str
45
45
  # and continue from there
46
46
  description = cleanup_string(description)
47
- return '' if description.blank?
47
+ return "" if description.blank?
48
48
 
49
49
  truncate(description, MetaTags.config.description_limit)
50
50
  end
@@ -56,7 +56,7 @@ module MetaTags
56
56
  #
57
57
  def normalize_keywords(keywords)
58
58
  keywords = cleanup_strings(keywords)
59
- return '' if keywords.blank?
59
+ return "" if keywords.blank?
60
60
 
61
61
  keywords.each(&:downcase!) if MetaTags.config.keywords_lowercase
62
62
  separator = cleanup_string MetaTags.config.keywords_separator, strip: false
@@ -102,23 +102,25 @@ module MetaTags
102
102
 
103
103
  # Removes HTML tags and squashes down all the spaces.
104
104
  #
105
- # @param [String] string input string.
105
+ # @param [String, nil] string input string.
106
106
  # @return [String] input string with no HTML tags and consequent white
107
107
  # space characters squashed into a single space.
108
108
  #
109
109
  def cleanup_string(string, strip: true)
110
- return '' if string.nil?
111
- raise ArgumentError, 'Expected a string or an object that implements #to_str' unless string.respond_to?(:to_str)
110
+ return "" if string.nil?
111
+ raise ArgumentError, "Expected a string or an object that implements #to_str" unless string.respond_to?(:to_str)
112
112
 
113
- strip_tags(string.to_str).tap do |s|
114
- s.gsub!(/\s+/, ' ')
115
- s.strip! if strip
116
- end
113
+ s = strip_tags(string.to_str)
114
+ s = s.dup if s.frozen?
115
+ s.gsub!(/\s+/, " ")
116
+ s.strip! if strip
117
+
118
+ s
117
119
  end
118
120
 
119
121
  # Cleans multiple strings up.
120
122
  #
121
- # @param [Array<String>] strings input strings.
123
+ # @param [String, Array<String>] strings input string(s).
122
124
  # @return [Array<String>] clean strings.
123
125
  # @see cleanup_string
124
126
  #
@@ -132,30 +134,28 @@ module MetaTags
132
134
  #
133
135
  # @param [String] string input strings.
134
136
  # @param [Integer,nil] limit characters number to truncate to.
135
- # @param [String] natural_separator natural separator to truncate at.
136
137
  # @return [String] truncated string.
137
138
  #
138
- def truncate(string, limit = nil, natural_separator = ' ')
139
- return string if limit.to_i == 0 # rubocop:disable Lint/NumberConversion
139
+ def truncate(string, limit = nil)
140
+ return string if limit.to_i == 0
140
141
 
141
142
  helpers.truncate(
142
143
  string,
143
- length: limit,
144
- separator: natural_separator,
145
- omission: '',
146
- escape: true,
144
+ length: limit,
145
+ separator: MetaTags.config.truncate_on_natural_separator,
146
+ omission: "",
147
+ escape: true
147
148
  )
148
149
  end
149
150
 
150
- # Truncates a string to a specific limit.
151
+ # Truncates an array of strings to a specific limit.
151
152
  #
152
153
  # @param [Array<String>] string_array input strings.
153
154
  # @param [Integer,nil] limit characters number to truncate to.
154
155
  # @param [String] separator separator that will be used to join array later.
155
- # @param [String] natural_separator natural separator to truncate at.
156
- # @return [String] truncated string.
156
+ # @return [Array<String>] truncated array of strings.
157
157
  #
158
- def truncate_array(string_array, limit = nil, separator = '', natural_separator = ' ')
158
+ def truncate_array(string_array, limit = nil, separator = "")
159
159
  return string_array if limit.nil? || limit <= 0
160
160
 
161
161
  length = 0
@@ -165,15 +165,15 @@ module MetaTags
165
165
  limit_left = calculate_limit_left(limit, length, result, separator)
166
166
 
167
167
  if string.length > limit_left
168
- result << truncate(string, limit_left, natural_separator)
169
- break
168
+ result << truncate(string, limit_left)
169
+ break string_array
170
170
  end
171
171
 
172
172
  length += (result.any? ? separator.length : 0) + string.length
173
173
  result << string
174
174
 
175
175
  # No more strings will fit
176
- break if length + separator.length >= limit
176
+ break string_array if length + separator.length >= limit
177
177
  end
178
178
 
179
179
  result
@@ -186,30 +186,33 @@ module MetaTags
186
186
  end
187
187
 
188
188
  def truncate_title(site_title, title, separator)
189
- if MetaTags.config.title_limit.to_i > 0 # rubocop:disable Lint/NumberConversion
190
- site_title_limited_length, title_limited_length = calculate_title_limits(site_title, title, separator)
191
-
192
- title = title_limited_length > 0 ? truncate_array(title, title_limited_length, separator) : []
193
- site_title = site_title_limited_length > 0 ? truncate(site_title, site_title_limited_length) : nil
189
+ global_limit = MetaTags.config.title_limit.to_i
190
+ if global_limit > 0
191
+ site_title_limited_length, title_limited_length = calculate_title_limits(
192
+ site_title, title, separator, global_limit
193
+ )
194
+
195
+ title = (title_limited_length > 0) ? truncate_array(title, title_limited_length, separator) : []
196
+ site_title = (site_title_limited_length > 0) ? truncate(site_title, site_title_limited_length) : nil
194
197
  end
195
198
 
196
199
  [site_title, title]
197
200
  end
198
201
 
199
- def calculate_title_limits(site_title, title, separator)
202
+ def calculate_title_limits(site_title, title, separator, global_limit)
200
203
  # What should we truncate first: site title or page title?
201
204
  main_title = MetaTags.config.truncate_site_title_first ? title : [site_title]
202
205
 
203
- main_length = main_title.map(&:length).sum + (main_title.size - 1) * separator.length
204
- main_limited_length = MetaTags.config.title_limit
206
+ main_length = main_title.map(&:length).sum + ((main_title.size - 1) * separator.length)
207
+ main_limited_length = global_limit
205
208
 
206
- secondary_limited_length = MetaTags.config.title_limit - (main_length > 0 ? main_length + separator.length : 0)
209
+ secondary_limited_length = global_limit - ((main_length > 0) ? main_length + separator.length : 0)
207
210
  secondary_limited_length = [0, secondary_limited_length].max
208
211
 
209
212
  if MetaTags.config.truncate_site_title_first
210
- [ secondary_limited_length, main_limited_length ]
213
+ [secondary_limited_length, main_limited_length]
211
214
  else
212
- [ main_limited_length, secondary_limited_length ]
215
+ [main_limited_length, secondary_limited_length]
213
216
  end
214
217
  end
215
218
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module MetaTags
4
4
  # Gem version.
5
- VERSION = '2.14.0'
5
+ VERSION = "2.22.1"
6
6
  public_constant :VERSION
7
7
  end
@@ -27,7 +27,7 @@ module MetaTags
27
27
  #
28
28
  # @see #display_meta_tags
29
29
  #
30
- def set_meta_tags(meta_tags = {}) # rubocop:disable Naming/AccessorMethodName
30
+ def set_meta_tags(meta_tags = {})
31
31
  self.meta_tags.update(meta_tags)
32
32
  end
33
33
 
@@ -55,7 +55,7 @@ module MetaTags
55
55
  #
56
56
  # @see #display_meta_tags
57
57
  #
58
- def title(title = nil, headline = '')
58
+ def title(title = nil, headline = "")
59
59
  set_meta_tags(title: title) unless title.nil?
60
60
  headline.presence || meta_tags[:title]
61
61
  end
@@ -97,8 +97,8 @@ module MetaTags
97
97
 
98
98
  # Set the noindex meta tag
99
99
  #
100
- # @param [Boolean, String] noindex a noindex value.
101
- # @return [Boolean, String] passed value.
100
+ # @param [Boolean, String, Array<String>] noindex a noindex value.
101
+ # @return [Boolean, String, Array<String>] passed value.
102
102
  #
103
103
  # @example
104
104
  # noindex true
@@ -113,8 +113,8 @@ module MetaTags
113
113
 
114
114
  # Set the nofollow meta tag
115
115
  #
116
- # @param [Boolean, String] nofollow a nofollow value.
117
- # @return [Boolean, String] passed value.
116
+ # @param [Boolean, String, Array<String>] nofollow a nofollow value.
117
+ # @return [Boolean, String, Array<String>] passed value.
118
118
  #
119
119
  # @example
120
120
  # nofollow true
@@ -203,7 +203,7 @@ module MetaTags
203
203
  # <div data-page-container="true" title="<%= display_title title: 'My Page', site: 'PJAX Site' %>">
204
204
  #
205
205
  def display_title(defaults = {})
206
- @meta_tags.full_title(defaults)
206
+ meta_tags.full_title(defaults)
207
207
  end
208
208
  end
209
209
  end
data/lib/meta_tags.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "set"
4
+ require "active_support/core_ext/hash/indifferent_access"
5
+
3
6
  # MetaTags gem namespace.
4
7
  module MetaTags
5
8
  # Returns MetaTags gem configuration.
@@ -21,15 +24,15 @@ module MetaTags
21
24
  end
22
25
  end
23
26
 
24
- require 'meta_tags/version'
27
+ require "meta_tags/version"
25
28
 
26
- require 'meta_tags/configuration'
27
- require 'meta_tags/controller_helper'
28
- require 'meta_tags/meta_tags_collection'
29
- require 'meta_tags/renderer'
30
- require 'meta_tags/tag'
31
- require 'meta_tags/content_tag'
32
- require 'meta_tags/text_normalizer'
33
- require 'meta_tags/view_helper'
29
+ require "meta_tags/configuration"
30
+ require "meta_tags/controller_helper"
31
+ require "meta_tags/meta_tags_collection"
32
+ require "meta_tags/renderer"
33
+ require "meta_tags/tag"
34
+ require "meta_tags/content_tag"
35
+ require "meta_tags/text_normalizer"
36
+ require "meta_tags/view_helper"
34
37
 
35
- require 'meta_tags/railtie.rb' if defined?(Rails)
38
+ require "meta_tags/railtie" if defined?(Rails)
@@ -0,0 +1,59 @@
1
+ class ::Hash[unchecked out K, unchecked out V]
2
+ def with_indifferent_access: () -> ActiveSupport::HashWithIndifferentAccess[K, V]
3
+ def deep_merge!: (instance | ActiveSupport::HashWithIndifferentAccess[K, V] other) -> self
4
+ def with_defaults: (instance | ActiveSupport::HashWithIndifferentAccess[K, V] other) -> self
5
+ end
6
+
7
+ class ::Object
8
+ $OFS: String
9
+
10
+ def presence: () -> self?
11
+ def blank?: () -> bool
12
+ def present?: () -> bool
13
+ end
14
+
15
+ class ::Loofah
16
+ module TextBehavior
17
+ def text: (?Hash[Symbol, untyped]? options) -> String
18
+ end
19
+
20
+ class DocumentFragment
21
+ include TextBehavior
22
+ end
23
+
24
+ def self.fragment: (String tags, ?String? encoding) -> DocumentFragment
25
+ end
26
+
27
+ class ::Rails
28
+ end
29
+
30
+ module ActionController
31
+ class Base
32
+ include _ActionControllerBase
33
+
34
+ def self.helpers: () -> _ActionViewBase
35
+ end
36
+ end
37
+
38
+ module ActiveSupport
39
+ class HashWithIndifferentAccess[unchecked out K, unchecked out V] < Hash[K, V]
40
+ def with_indifferent_access: () -> self
41
+ def deep_merge!: (instance | Hash[K, V] other) -> self
42
+ end
43
+ end
44
+
45
+ interface _ActionControllerBase
46
+ def render: (*untyped args) { () -> untyped } -> untyped
47
+ end
48
+
49
+ interface _ActionViewBase
50
+ def tag: (String name, ?Hash[String | Symbol, untyped] options, ?bool open) -> void
51
+
52
+ def content_tag: (String name, String content, ?Hash[String | Symbol, untyped] options, ?bool open) -> void
53
+
54
+ def safe_join: (Array[String], String) -> String
55
+
56
+ def truncate: (String text, ?Hash[Symbol, untyped] options) -> String
57
+
58
+ def strip_tags: (String html) -> String
59
+ end
@@ -0,0 +1,26 @@
1
+ module MetaTags
2
+ class Configuration
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)
6
+
7
+
8
+ attr_accessor title_limit: Integer?
9
+ attr_accessor truncate_site_title_first: bool
10
+ attr_accessor truncate_on_natural_separator: String?|Regexp
11
+ attr_accessor title_tag_attributes: Hash[html_tag_key, html_tag_value]?
12
+ attr_accessor description_limit: Integer
13
+ attr_accessor keywords_limit: Integer
14
+ attr_accessor keywords_separator: String
15
+ attr_accessor keywords_lowercase: bool
16
+ attr_accessor open_meta_tags: bool
17
+ attr_accessor minify_output: bool
18
+ attr_reader property_tags: Array[String | Symbol]
19
+ attr_accessor skip_canonical_links_on_noindex: bool
20
+
21
+ def initialize: () -> void
22
+ def default_property_tags: () -> Array[String | Symbol]
23
+ def open_meta_tags?: () -> bool
24
+ def reset_defaults!: () -> void
25
+ end
26
+ end
@@ -0,0 +1,5 @@
1
+ module MetaTags
2
+ class ContentTag < Tag
3
+ def render: (_ActionViewBase view) -> untyped
4
+ end
5
+ end
@@ -0,0 +1,14 @@
1
+ module MetaTags
2
+ module ControllerHelper : _ActionControllerBase
3
+ @meta_tags: MetaTagsCollection?
4
+ @page_title: String?
5
+ @page_description: String?
6
+ @page_keywords: String? | Array[String]
7
+
8
+ def render: (*untyped args) { () -> untyped } -> untyped
9
+
10
+ def set_meta_tags: (ViewHelper::meta_tags | (_MetaTagish & Object) meta_tags) -> void
11
+
12
+ def meta_tags: () -> MetaTagsCollection
13
+ end
14
+ end
@@ -0,0 +1,41 @@
1
+ module MetaTags
2
+ class MetaTagsCollection
3
+ attr_reader meta_tags: Hash[String | Symbol, untyped]
4
+
5
+ def initialize: () -> void
6
+
7
+ def []: (String | Symbol name) -> untyped
8
+
9
+ def []=: (String | Symbol name, untyped value) -> untyped
10
+
11
+ def update: (?::Hash[String | Symbol, untyped] | (_MetaTagish & Object) object) -> Hash[String | Symbol, untyped]
12
+
13
+ def with_defaults: (?::Hash[String | Symbol, untyped] defaults) { () -> untyped } -> untyped
14
+
15
+ def full_title: (?::Hash[String | Symbol, untyped] defaults) -> String
16
+
17
+ def page_title: (?::Hash[String | Symbol, untyped] defaults) -> String
18
+
19
+ def extract: (String | Symbol name) -> untyped
20
+
21
+ def delete: (*String | Symbol names) -> void
22
+
23
+ def extract_full_title: () -> String
24
+
25
+ def extract_title: () -> Array[String | (_Stringish & Object)]
26
+
27
+ def extract_separator: () -> String
28
+
29
+ def extract_robots: () -> Hash[String, String]
30
+
31
+ def normalize_open_graph: (Hash[String | Symbol, untyped] meta_tags) -> ActiveSupport::HashWithIndifferentAccess[String | Symbol, untyped]
32
+
33
+ def extract_separator_section: (String | Symbol name, String default) -> String
34
+
35
+ def extract_robots_attribute: (String | Symbol name) -> [String | Array[String | Symbol], String?]
36
+
37
+ def calculate_robots_attributes: (untyped result, untyped attributes) -> untyped
38
+
39
+ def apply_robots_value: (untyped result, untyped name, untyped value, untyped processed) -> (nil | untyped)
40
+ end
41
+ end
@@ -0,0 +1,50 @@
1
+ module MetaTags
2
+ class Renderer
3
+ type meta_key = String | Symbol
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)
6
+
7
+ attr_reader meta_tags: MetaTagsCollection
8
+ attr_reader normalized_meta_tags: Hash[Symbol, meta_value]
9
+
10
+ def initialize: (MetaTagsCollection meta_tags) -> void
11
+
12
+ def render: (_ActionViewBase view) -> String
13
+
14
+ def render_charset: (Array[Tag] tags) -> void
15
+
16
+ def render_title: (Array[Tag] tags) -> void
17
+
18
+ def render_icon: (Array[Tag] tags) -> void
19
+
20
+ def render_with_normalization: (Array[Tag] tags, Symbol name) -> void
21
+
22
+ def render_noindex: (Array[Tag] tags) -> void
23
+
24
+ def render_refresh: (Array[Tag] tags) -> void
25
+
26
+ def render_alternate: (Array[Tag] tags) -> void
27
+
28
+ def render_open_search: (Array[Tag] tags) -> void
29
+
30
+ def render_links: (Array[Tag] tags) -> void
31
+
32
+ def render_canonical_link: (Array[Tag] tags) -> void
33
+
34
+ def render_hashes: (Array[Tag] tags, **untyped opts) -> void
35
+
36
+ def render_hash: (Array[Tag] tags, untyped key, **untyped opts) -> void
37
+
38
+ def render_custom: (Array[Tag] tags) -> void
39
+
40
+ def process_tree: (Array[Tag] tags, meta_key property, meta_value content, ?itemprop: meta_key? itemprop, **untyped opts) -> void
41
+
42
+ def process_hash: (Array[Tag] tags, meta_key property, Hash[meta_key, meta_value] content, **untyped opts) -> void
43
+
44
+ def process_array: (Array[Tag] tags, meta_key property, Array[meta_value] content, **untyped opts) -> void
45
+
46
+ def render_tag: (Array[Tag] tags, meta_key name, meta_content value, ?itemprop: meta_key? itemprop) -> void
47
+
48
+ def configured_name_key: (meta_key name) -> Symbol
49
+ end
50
+ end
@@ -0,0 +1,12 @@
1
+ module MetaTags
2
+ class Tag
3
+ attr_reader name: String
4
+ attr_reader attributes: Hash[String | Symbol, untyped]
5
+
6
+ def initialize: (String | Symbol name, ?Hash[String | Symbol, untyped] attributes) -> void
7
+
8
+ def render: (_ActionViewBase view) -> void
9
+
10
+ def prepare_attributes: (Hash[String | Symbol, untyped] attributes) -> Hash[String | Symbol, untyped]
11
+ end
12
+ end
@@ -0,0 +1,36 @@
1
+ module MetaTags
2
+ module TextNormalizer
3
+ extend ::MetaTags::TextNormalizer
4
+
5
+ type keyword = String? | (_Stringish & Object)
6
+ type keywords = keyword | Array[keywords]
7
+
8
+ def normalize_title: (String? site_title, keywords title, String separator, ?bool reverse) -> String
9
+
10
+ def normalize_description: (keyword description) -> String
11
+
12
+ def normalize_keywords: (keywords keywords) -> String
13
+
14
+ def helpers: () -> _ActionViewBase
15
+
16
+ def strip_tags: (String string) -> String
17
+
18
+ def safe_join: (Array[String] array, ?String sep) -> String
19
+
20
+ def cleanup_string: (keyword string, ?strip: bool strip) -> String
21
+
22
+ def cleanup_strings: (keywords? strings, ?strip: bool strip) -> Array[String]
23
+
24
+ def truncate: (String string, ?Integer? limit) -> String
25
+
26
+ def truncate_array: (Array[String] string_array, ?Integer? limit, ?String separator) -> Array[String]
27
+
28
+ private
29
+
30
+ def calculate_limit_left: (Integer limit, Integer length, Array[String] result, String separator) -> untyped
31
+
32
+ def truncate_title: (String site_title, Array[String] title, String separator) -> ::Array[untyped]
33
+
34
+ def calculate_title_limits: (String site_title, Array[String] title, String separator, Integer global_limit) -> untyped
35
+ end
36
+ end
@@ -0,0 +1,4 @@
1
+ module MetaTags
2
+ # Gem version.
3
+ VERSION: ::String
4
+ end
@@ -0,0 +1,57 @@
1
+ module MetaTags
2
+ module ViewHelper : Module, _ActionViewBase
3
+ @meta_tags: MetaTagsCollection?
4
+
5
+ # type meta_tags = {
6
+ # site: String?,
7
+ # title: Array[String] | String?,
8
+ # description: String?,
9
+ # keywords: Array[String] | String?,
10
+ # charset: String,
11
+ # prefix: String,
12
+ # separator: String,
13
+ # suffix: String,
14
+ # lowercase: bool,
15
+ # reverse: bool,
16
+ # noindex: bool | String | Array[String],
17
+ # index: bool | String | Array[String],
18
+ # nofollow: bool | String | Array[String],
19
+ # follow: bool | String | Array[String],
20
+ # noarchive: bool | String | Array[String],
21
+ # canonical: String,
22
+ # prev: String,
23
+ # next: String,
24
+ # image_src: String,
25
+ # alternate: String,
26
+ # amphtml: String,
27
+ # manifest: String,
28
+ # og: Hash[Renderer::meta_key, Renderer::meta_value],
29
+ # twitter: Hash[Renderer::meta_key, Renderer::meta_value],
30
+ # open_search: Hash[Renderer::meta_key, Renderer::meta_value],
31
+ # article: Hash[Renderer::meta_key, Renderer::meta_value],
32
+ # al: Hash[Renderer::meta_key, Renderer::meta_value],
33
+ # refresh: Integer | String | nil,
34
+ # } & Hash[Renderer::meta_key, Renderer::meta_value]
35
+ type meta_tags = Hash[Renderer::meta_key, Renderer::meta_value]
36
+
37
+ def meta_tags: () -> MetaTagsCollection
38
+
39
+ def set_meta_tags: (?meta_tags | (_MetaTagish&Object) meta_tags) -> void
40
+
41
+ def title: (?String? title, ?::String? headline) -> String
42
+
43
+ def keywords: (Array[String] | String? keywords) -> (Array[String] | String?)
44
+
45
+ def description: (String? description) -> String?
46
+
47
+ def noindex: (?String | Array[String] | bool noindex) -> (String | bool | Array[String])
48
+
49
+ def nofollow: (?String | Array[String] | bool nofollow) -> (String | bool | Array[String])
50
+
51
+ def refresh: (String? | Integer? refresh) -> (String? | Integer?)
52
+
53
+ def display_meta_tags: (?meta_tags defaults) -> String
54
+
55
+ def display_title: (?meta_tags defaults) -> String
56
+ end
57
+ end
@@ -0,0 +1,18 @@
1
+ module MetaTags
2
+ self.@config: Configuration
3
+
4
+ def self.config: () -> Configuration
5
+ def self.configure: () { (Configuration) -> void } -> void
6
+
7
+ interface _Stringish
8
+ def to_str: () -> String
9
+ end
10
+
11
+ interface _Timish
12
+ def iso8601: () -> String
13
+ end
14
+
15
+ interface _MetaTagish
16
+ def to_meta_tags: () -> Hash[String | Symbol, untyped]
17
+ end
18
+ end
data.tar.gz.sig CHANGED
Binary file