meta-tags 2.18.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.
@@ -21,9 +21,9 @@ module MetaTags
21
21
 
22
22
  def cleanup_strings: (keywords? strings, ?strip: bool strip) -> Array[String]
23
23
 
24
- def truncate: (String string, ?Integer? limit, ?String natural_separator) -> String
24
+ def truncate: (String string, ?Integer? limit) -> String
25
25
 
26
- def truncate_array: (Array[String] string_array, ?Integer? limit, ?String separator, ?String natural_separator) -> Array[String]
26
+ def truncate_array: (Array[String] string_array, ?Integer? limit, ?String separator) -> Array[String]
27
27
 
28
28
  private
29
29
 
@@ -1,5 +1,7 @@
1
1
  module MetaTags
2
2
  module ViewHelper : Module, _ActionViewBase
3
+ @meta_tags: MetaTagsCollection?
4
+
3
5
  # type meta_tags = {
4
6
  # site: String?,
5
7
  # title: Array[String] | String?,
@@ -1,4 +1,6 @@
1
1
  module MetaTags
2
+ self.@config: Configuration
3
+
2
4
  def self.config: () -> Configuration
3
5
  def self.configure: () { (Configuration) -> void } -> void
4
6
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,35 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meta-tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.18.0
4
+ version: 2.22.1
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
- MIIDODCCAiCgAwIBAgIBATANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhrcHVt
14
- dWsvREM9a3B1bXVrL0RDPWluZm8wHhcNMjIwNzA1MjIyODU4WhcNMjMwNzA1MjIy
15
- ODU4WjAjMSEwHwYDVQQDDBhrcHVtdWsvREM9a3B1bXVrL0RDPWluZm8wggEiMA0G
16
- CSqGSIb3DQEBAQUAA4IB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30
+ BKX4xDo6SbsGmqjFkknT6WiiE94rQxGCb9JNiSyl3SncEw+Ysx6yVKYB5WAEy8s1
31
+ M0VQvDzd77bxj3lx/P6ifll3yUs=
31
32
  -----END CERTIFICATE-----
32
- date: 2022-09-15 00:00:00.000000000 Z
33
+ date: 2024-09-20 00:00:00.000000000 Z
33
34
  dependencies:
34
35
  - !ruby/object:Gem::Dependency
35
36
  name: actionpack
@@ -37,20 +38,34 @@ dependencies:
37
38
  requirements:
38
39
  - - ">="
39
40
  - !ruby/object:Gem::Version
40
- version: 3.2.0
41
+ version: 6.0.0
41
42
  - - "<"
42
43
  - !ruby/object:Gem::Version
43
- version: '7.1'
44
+ version: '8.1'
44
45
  type: :runtime
45
46
  prerelease: false
46
47
  version_requirements: !ruby/object:Gem::Requirement
47
48
  requirements:
48
49
  - - ">="
49
50
  - !ruby/object:Gem::Version
50
- version: 3.2.0
51
+ version: 6.0.0
51
52
  - - "<"
52
53
  - !ruby/object:Gem::Version
53
- version: '7.1'
54
+ version: '8.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: appraisal
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 2.5.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 2.5.0
54
69
  - !ruby/object:Gem::Dependency
55
70
  name: railties
56
71
  requirement: !ruby/object:Gem::Requirement
@@ -60,7 +75,7 @@ dependencies:
60
75
  version: 3.2.0
61
76
  - - "<"
62
77
  - !ruby/object:Gem::Version
63
- version: '7.1'
78
+ version: '8.1'
64
79
  type: :development
65
80
  prerelease: false
66
81
  version_requirements: !ruby/object:Gem::Requirement
@@ -70,7 +85,7 @@ dependencies:
70
85
  version: 3.2.0
71
86
  - - "<"
72
87
  - !ruby/object:Gem::Version
73
- version: '7.1'
88
+ version: '8.1'
74
89
  - !ruby/object:Gem::Dependency
75
90
  name: rake
76
91
  requirement: !ruby/object:Gem::Requirement
@@ -91,28 +106,112 @@ dependencies:
91
106
  requirements:
92
107
  - - "~>"
93
108
  - !ruby/object:Gem::Version
94
- version: 3.11.0
109
+ version: 3.13.0
95
110
  type: :development
96
111
  prerelease: false
97
112
  version_requirements: !ruby/object:Gem::Requirement
98
113
  requirements:
99
114
  - - "~>"
100
115
  - !ruby/object:Gem::Version
101
- version: 3.11.0
116
+ version: 3.13.0
102
117
  - !ruby/object:Gem::Dependency
103
118
  name: rspec-html-matchers
104
119
  requirement: !ruby/object:Gem::Requirement
105
120
  requirements:
106
121
  - - "~>"
107
122
  - !ruby/object:Gem::Version
108
- version: 0.9.1
123
+ version: 0.10.0
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: 0.10.0
131
+ - !ruby/object:Gem::Dependency
132
+ name: simplecov
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - "~>"
136
+ - !ruby/object:Gem::Version
137
+ version: 0.22.0
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - "~>"
143
+ - !ruby/object:Gem::Version
144
+ version: 0.22.0
145
+ - !ruby/object:Gem::Dependency
146
+ name: rubocop-rails
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "~>"
150
+ - !ruby/object:Gem::Version
151
+ version: 2.26.0
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - "~>"
157
+ - !ruby/object:Gem::Version
158
+ version: 2.26.0
159
+ - !ruby/object:Gem::Dependency
160
+ name: rubocop-rake
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - "~>"
164
+ - !ruby/object:Gem::Version
165
+ version: 0.6.0
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - "~>"
171
+ - !ruby/object:Gem::Version
172
+ version: 0.6.0
173
+ - !ruby/object:Gem::Dependency
174
+ name: rubocop-rspec
175
+ requirement: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - "~>"
178
+ - !ruby/object:Gem::Version
179
+ version: 3.0.1
180
+ type: :development
181
+ prerelease: false
182
+ version_requirements: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - "~>"
185
+ - !ruby/object:Gem::Version
186
+ version: 3.0.1
187
+ - !ruby/object:Gem::Dependency
188
+ name: standard
189
+ requirement: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - "~>"
192
+ - !ruby/object:Gem::Version
193
+ version: '1.31'
194
+ type: :development
195
+ prerelease: false
196
+ version_requirements: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - "~>"
199
+ - !ruby/object:Gem::Version
200
+ version: '1.31'
201
+ - !ruby/object:Gem::Dependency
202
+ name: rspec_junit_formatter
203
+ requirement: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - "~>"
206
+ - !ruby/object:Gem::Version
207
+ version: 0.6.0
109
208
  type: :development
110
209
  prerelease: false
111
210
  version_requirements: !ruby/object:Gem::Requirement
112
211
  requirements:
113
212
  - - "~>"
114
213
  - !ruby/object:Gem::Version
115
- version: 0.9.1
214
+ version: 0.6.0
116
215
  description: Search Engine Optimization (SEO) plugin for Ruby on Rails applications.
117
216
  email:
118
217
  - kpumuk@kpumuk.info
@@ -123,11 +222,8 @@ files:
123
222
  - CHANGELOG.md
124
223
  - CODE_OF_CONDUCT.md
125
224
  - CONTRIBUTING.md
126
- - Gemfile
127
225
  - MIT-LICENSE
128
226
  - README.md
129
- - Rakefile
130
- - Steepfile
131
227
  - certs/kpumuk.pem
132
228
  - lib/generators/meta_tags/install_generator.rb
133
229
  - lib/generators/meta_tags/templates/config/initializers/meta_tags.rb
@@ -143,7 +239,6 @@ files:
143
239
  - lib/meta_tags/text_normalizer.rb
144
240
  - lib/meta_tags/version.rb
145
241
  - lib/meta_tags/view_helper.rb
146
- - meta-tags.gemspec
147
242
  - sig/lib/_internal/rails.rbs
148
243
  - sig/lib/meta_tags.rbs
149
244
  - sig/lib/meta_tags/configuration.rbs
@@ -165,7 +260,7 @@ metadata:
165
260
  homepage_uri: https://github.com/kpumuk/meta-tags/
166
261
  source_code_uri: https://github.com/kpumuk/meta-tags/
167
262
  rubygems_mfa_required: 'true'
168
- post_install_message:
263
+ post_install_message:
169
264
  rdoc_options: []
170
265
  require_paths:
171
266
  - lib
@@ -173,15 +268,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
268
  requirements:
174
269
  - - ">="
175
270
  - !ruby/object:Gem::Version
176
- version: 2.6.0
271
+ version: 3.0.0
177
272
  required_rubygems_version: !ruby/object:Gem::Requirement
178
273
  requirements:
179
274
  - - ">="
180
275
  - !ruby/object:Gem::Version
181
276
  version: '0'
182
277
  requirements: []
183
- rubygems_version: 3.3.22
184
- signing_key:
278
+ rubygems_version: 3.4.19
279
+ signing_key:
185
280
  specification_version: 4
186
281
  summary: Collection of SEO helpers for Ruby on Rails.
187
282
  test_files: []
metadata.gz.sig CHANGED
Binary file
data/Gemfile DELETED
@@ -1,30 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- # Specify your gem's dependencies in meta-tags.gemspec
6
- gemspec
7
-
8
- if ENV['RAILS_VERSION']
9
- # Install specified version of actionpack if requested
10
- gem 'railties', "~> #{ENV['RAILS_VERSION']}"
11
- end
12
-
13
- unless ENV["NO_STEEP"] == '1'
14
- # Ruby typings
15
- gem 'steep', '~> 1.0.1', platform: :mri
16
- end
17
-
18
- group :test do
19
- # Lock rubocop to a specific version we use on CI. If you update this,
20
- # don't forget to switch rubocop channel in the .codeclimate.yml
21
- gem 'rubocop', '= 1.31.0'
22
- # Cops for rails apps
23
- gem 'rubocop-rails'
24
- # Apply RSpec rubocop cops
25
- gem 'rubocop-rspec', require: false
26
- # We use this gem on CI to calculate code coverage.
27
- gem 'simplecov', '~> 0.21.2'
28
- # Format RSpec output for CircleCI
29
- gem 'rspec_junit_formatter'
30
- end
data/Rakefile DELETED
@@ -1,49 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler'
4
- Bundler::GemHelper.install_tasks
5
-
6
- require 'rspec/core/rake_task'
7
- RSpec::Core::RakeTask.new(:spec)
8
-
9
- task test: :spec
10
- task default: :spec
11
-
12
- desc 'Rebuild Circle CI configuration based on the build matrix template .circleci/config.yml.erb'
13
- task :circleci do
14
- require 'erb'
15
- template_path = File.expand_path('.circleci/config.yml.erb', __dir__)
16
- config_path = File.expand_path('.circleci/config.yml', __dir__)
17
- File.write config_path, ERB.new(File.read(template_path)).result
18
- end
19
-
20
- module SteepRunner
21
- def self.run(*command)
22
- require "steep"
23
- require "steep/cli"
24
-
25
- Steep::CLI.new(argv: command, stdout: $stdout, stderr: $stderr, stdin: $stdin).run
26
- end
27
- end
28
-
29
- task :steep do
30
- SteepRunner.run("check")
31
- end
32
-
33
- namespace :steep do
34
- task :stats do
35
- SteepRunner.run("stats", "--log-level=fatal")
36
- end
37
- end
38
-
39
- namespace :rbs do
40
- task :spec do
41
- exec(
42
- {
43
- 'RBS_TEST_TARGET' => 'MetaTags::*',
44
- 'RUBYOPT' => '-rrbs/test/setup',
45
- },
46
- 'bundle exec rspec',
47
- )
48
- end
49
- end
data/Steepfile DELETED
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- target :lib do
4
- signature "sig"
5
-
6
- check "lib"
7
- # check "Gemfile"
8
-
9
- # We don't want to type check Rails/RSpec related code
10
- # (because we don't have RBS files for it)
11
- ignore "lib/meta_tags/railtie.rb"
12
- ignore "lib/generators"
13
-
14
- library "set"
15
- end
data/meta-tags.gemspec DELETED
@@ -1,43 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- lib = File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'meta_tags/version'
6
-
7
- Gem::Specification.new do |spec|
8
- spec.name = "meta-tags"
9
- spec.version = MetaTags::VERSION
10
- spec.authors = ["Dmytro Shteflyuk"]
11
- spec.email = ["kpumuk@kpumuk.info"]
12
-
13
- spec.summary = "Collection of SEO helpers for Ruby on Rails."
14
- spec.description = "Search Engine Optimization (SEO) plugin for Ruby on Rails applications."
15
- spec.homepage = "https://github.com/kpumuk/meta-tags"
16
- spec.license = "MIT"
17
- spec.platform = Gem::Platform::RUBY
18
- spec.required_ruby_version = '>= 2.6.0'
19
-
20
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(\.|(bin|test|spec|features)/)}) }
21
- spec.bindir = "exe"
22
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
- spec.require_paths = ["lib"]
24
-
25
- spec.add_dependency "actionpack", ">= 3.2.0", "< 7.1"
26
-
27
- spec.add_development_dependency "railties", ">= 3.2.0", "< 7.1"
28
- spec.add_development_dependency "rake", "~> 13.0"
29
- spec.add_development_dependency "rspec", "~> 3.11.0"
30
- spec.add_development_dependency "rspec-html-matchers", "~> 0.9.1"
31
-
32
- spec.cert_chain = ["certs/kpumuk.pem"]
33
- spec.signing_key = File.expand_path("~/.ssh/gem-kpumuk.pem") if $PROGRAM_NAME.end_with?('gem')
34
-
35
- spec.metadata = {
36
- "bug_tracker_uri" => "https://github.com/kpumuk/meta-tags/issues/",
37
- "changelog_uri" => "https://github.com/kpumuk/meta-tags/blob/main/CHANGELOG.md",
38
- "documentation_uri" => "https://rubydoc.info/github/kpumuk/meta-tags/",
39
- "homepage_uri" => "https://github.com/kpumuk/meta-tags/",
40
- "source_code_uri" => "https://github.com/kpumuk/meta-tags/",
41
- "rubygems_mfa_required" => "true",
42
- }
43
- end