meta-tags 2.18.0 → 2.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +24 -3
- data/README.md +208 -232
- data/Rakefile +15 -16
- data/certs/kpumuk.pem +19 -18
- data/lib/generators/meta_tags/install_generator.rb +1 -1
- data/lib/generators/meta_tags/templates/config/initializers/meta_tags.rb +6 -0
- data/lib/meta-tags.rb +1 -1
- data/lib/meta_tags/configuration.rb +24 -16
- data/lib/meta_tags/controller_helper.rb +3 -3
- data/lib/meta_tags/meta_tags_collection.rb +22 -22
- data/lib/meta_tags/railtie.rb +4 -4
- data/lib/meta_tags/renderer.rb +33 -29
- data/lib/meta_tags/text_normalizer.rb +20 -22
- data/lib/meta_tags/version.rb +1 -1
- data/lib/meta_tags/view_helper.rb +2 -2
- data/lib/meta_tags.rb +12 -12
- data/meta-tags.gemspec +39 -30
- data/sig/lib/_internal/rails.rbs +3 -0
- data/sig/lib/meta_tags/configuration.rbs +7 -0
- data/sig/lib/meta_tags/controller_helper.rbs +1 -0
- data/sig/lib/meta_tags/text_normalizer.rbs +2 -2
- data/sig/lib/meta_tags/view_helper.rbs +2 -0
- data/sig/lib/meta_tags.rbs +2 -0
- data.tar.gz.sig +0 -0
- metadata +131 -34
- metadata.gz.sig +0 -0
- data/Gemfile +0 -30
- data/Steepfile +0 -15
data/lib/meta_tags.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require "set"
|
4
|
+
require "active_support/core_ext/hash/indifferent_access"
|
5
5
|
|
6
6
|
# MetaTags gem namespace.
|
7
7
|
module MetaTags
|
@@ -24,15 +24,15 @@ module MetaTags
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
-
require
|
27
|
+
require "meta_tags/version"
|
28
28
|
|
29
|
-
require
|
30
|
-
require
|
31
|
-
require
|
32
|
-
require
|
33
|
-
require
|
34
|
-
require
|
35
|
-
require
|
36
|
-
require
|
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"
|
37
37
|
|
38
|
-
require
|
38
|
+
require "meta_tags/railtie" if defined?(Rails)
|
data/meta-tags.gemspec
CHANGED
@@ -1,43 +1,52 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
lib = File.expand_path(
|
3
|
+
lib = File.expand_path("lib", __dir__)
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require
|
5
|
+
require "meta_tags/version"
|
6
6
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
|
-
spec.name
|
9
|
-
spec.version
|
10
|
-
spec.authors
|
11
|
-
spec.email
|
12
|
-
|
13
|
-
spec.summary
|
14
|
-
spec.description
|
15
|
-
spec.homepage
|
16
|
-
spec.license
|
17
|
-
spec.platform
|
18
|
-
spec.required_ruby_version =
|
19
|
-
|
20
|
-
spec.files
|
21
|
-
spec.bindir
|
22
|
-
spec.executables
|
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.7.0"
|
19
|
+
|
20
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(\.|Gemfile|Appraisals|Steepfile|(bin|spec|gemfiles)/)}) }
|
21
|
+
spec.bindir = "exe"
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ["lib"]
|
24
24
|
|
25
|
-
spec.
|
25
|
+
spec.add_runtime_dependency "actionpack", ">= 6.0.0", "< 7.2"
|
26
26
|
|
27
|
-
spec.add_development_dependency "railties", ">= 3.2.0", "< 7.
|
27
|
+
spec.add_development_dependency "railties", ">= 3.2.0", "< 7.2"
|
28
28
|
spec.add_development_dependency "rake", "~> 13.0"
|
29
|
-
spec.add_development_dependency "rspec", "~> 3.
|
30
|
-
spec.add_development_dependency "rspec-html-matchers", "~> 0.
|
31
|
-
|
32
|
-
spec.
|
33
|
-
|
29
|
+
spec.add_development_dependency "rspec", "~> 3.12.0"
|
30
|
+
spec.add_development_dependency "rspec-html-matchers", "~> 0.10.0"
|
31
|
+
spec.add_development_dependency "appraisal", "~> 2.5.0"
|
32
|
+
spec.add_development_dependency "simplecov", "~> 0.22.0"
|
33
|
+
# Code style
|
34
|
+
spec.add_development_dependency "standard", "~> 1.31"
|
35
|
+
spec.add_development_dependency "rubocop-rails", "~> 2.23.0"
|
36
|
+
spec.add_development_dependency "rubocop-rake", "~> 0.6.0"
|
37
|
+
spec.add_development_dependency "rubocop-rspec", "~> 2.25.0"
|
38
|
+
# Format RSpec output for CircleCI
|
39
|
+
spec.add_development_dependency "rspec_junit_formatter", "~> 0.6.0"
|
40
|
+
|
41
|
+
spec.cert_chain = ["certs/kpumuk.pem"]
|
42
|
+
spec.signing_key = File.expand_path("~/.ssh/gem-kpumuk.pem") if $PROGRAM_NAME.end_with?("gem")
|
34
43
|
|
35
44
|
spec.metadata = {
|
36
|
-
"bug_tracker_uri"
|
37
|
-
"changelog_uri"
|
38
|
-
"documentation_uri"
|
39
|
-
"homepage_uri"
|
40
|
-
"source_code_uri"
|
41
|
-
"rubygems_mfa_required" => "true"
|
45
|
+
"bug_tracker_uri" => "https://github.com/kpumuk/meta-tags/issues/",
|
46
|
+
"changelog_uri" => "https://github.com/kpumuk/meta-tags/blob/main/CHANGELOG.md",
|
47
|
+
"documentation_uri" => "https://rubydoc.info/github/kpumuk/meta-tags/",
|
48
|
+
"homepage_uri" => "https://github.com/kpumuk/meta-tags/",
|
49
|
+
"source_code_uri" => "https://github.com/kpumuk/meta-tags/",
|
50
|
+
"rubygems_mfa_required" => "true"
|
42
51
|
}
|
43
52
|
end
|
data/sig/lib/_internal/rails.rbs
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
class ::Hash[unchecked out K, unchecked out V]
|
2
2
|
def with_indifferent_access: () -> ActiveSupport::HashWithIndifferentAccess[K, V]
|
3
3
|
def deep_merge!: (instance | ActiveSupport::HashWithIndifferentAccess[K, V] other) -> self
|
4
|
+
def with_defaults: (instance | ActiveSupport::HashWithIndifferentAccess[K, V] other) -> self
|
4
5
|
end
|
5
6
|
|
6
7
|
class ::Object
|
8
|
+
$OFS: String
|
9
|
+
|
7
10
|
def presence: () -> self?
|
8
11
|
def blank?: () -> bool
|
9
12
|
def present?: () -> bool
|
@@ -1,7 +1,14 @@
|
|
1
1
|
module MetaTags
|
2
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
|
+
|
3
8
|
attr_accessor title_limit: Integer?
|
4
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]?
|
5
12
|
attr_accessor description_limit: Integer
|
6
13
|
attr_accessor keywords_limit: Integer
|
7
14
|
attr_accessor keywords_separator: String
|
@@ -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
|
24
|
+
def truncate: (String string, ?Integer? limit) -> String
|
25
25
|
|
26
|
-
def truncate_array: (Array[String] string_array, ?Integer? limit, ?String separator
|
26
|
+
def truncate_array: (Array[String] string_array, ?Integer? limit, ?String separator) -> Array[String]
|
27
27
|
|
28
28
|
private
|
29
29
|
|
data/sig/lib/meta_tags.rbs
CHANGED
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.
|
4
|
+
version: 2.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmytro Shteflyuk
|
@@ -10,26 +10,27 @@ bindir: exe
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
13
|
+
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MQ8wDQYDVQQDDAZrcHVt
|
14
|
+
dWsxFjAUBgoJkiaJk/IsZAEZFgZrcHVtdWsxFDASBgoJkiaJk/IsZAEZFgRpbmZv
|
15
|
+
MB4XDTIzMDcwNjEyMjY0MVoXDTI0MDcwNTEyMjY0MVowPzEPMA0GA1UEAwwGa3B1
|
16
|
+
bXVrMRYwFAYKCZImiZPyLGQBGRYGa3B1bXVrMRQwEgYKCZImiZPyLGQBGRYEaW5m
|
17
|
+
bzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALw2YroZc+IT+rs8NuPu
|
18
|
+
c13DelrxrpAgPEu1zuRb3l7WaHRNWA4TyS8Z6Aa1G2O+FdUZNMW1n7IwP/QMJ9Mz
|
19
|
+
ahRBiTmhik5kasJ9s0h1lq5/hZiycm0o5OtGioUzCkvk+UEMpzMHbLmVSZCzYciy
|
20
|
+
NDRDbXB0rLLu1eJk+gKgn6Qf5vj93h1w28BdWdaA7YegtbmipZ+pjmzCQAfPActT
|
21
|
+
6uXHG4dSo7Lz9jiFRI5dUizFbGXcRqkQ2b5AB8FFmfcvbqERvzQKBICnybjsKP0N
|
22
|
+
pJ3vGgO2sh5GvJFOPk1Vlur2nX9ZFznPEP1CEAQ+NFrmKRt355Z5sgOkAojSGnIL
|
23
|
+
/1sCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFPa4
|
24
|
+
VFc1YOlV1u/7EGTwMCAk8YE9MB0GA1UdEQQWMBSBEmtwdW11a0BrcHVtdWsuaW5m
|
25
|
+
bzAdBgNVHRIEFjAUgRJrcHVtdWtAa3B1bXVrLmluZm8wDQYJKoZIhvcNAQELBQAD
|
26
|
+
ggEBALwivjTzGErFzBtgPEQe7uO6DMysgm/OIF5jLFkvRiuFbuueHM2cUZZBx2Rd
|
27
|
+
2R5uQS4uiZ5KA+3SkgWQOFOzpFlo7ywS5264ULCcvfix6NQpb2aIDsZuzWGBIDbs
|
28
|
+
ixS+8wYslrzsOgUSn/RjF0sVB0dw4wv6G8YnVrR/Jf2SaO+Q2lYuKEOKfj52I+Yt
|
29
|
+
TdFiOjR+WwXSxs/XdSdFtqK2q/THbZdk+HkAe8guvXYtD/fzO2mBlk2AQ0hV1Pxu
|
30
|
+
ovz1LEphwrX/6v635mteXvl+OKWrNo1Q78sU364BgY5MvJMxFytmUrKMgO6RAiIM
|
31
|
+
N9+lhJiLa7+h0LrvPPDZRhV8ze0=
|
31
32
|
-----END CERTIFICATE-----
|
32
|
-
date:
|
33
|
+
date: 2023-12-26 00:00:00.000000000 Z
|
33
34
|
dependencies:
|
34
35
|
- !ruby/object:Gem::Dependency
|
35
36
|
name: actionpack
|
@@ -37,20 +38,20 @@ dependencies:
|
|
37
38
|
requirements:
|
38
39
|
- - ">="
|
39
40
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
41
|
+
version: 6.0.0
|
41
42
|
- - "<"
|
42
43
|
- !ruby/object:Gem::Version
|
43
|
-
version: '7.
|
44
|
+
version: '7.2'
|
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:
|
51
|
+
version: 6.0.0
|
51
52
|
- - "<"
|
52
53
|
- !ruby/object:Gem::Version
|
53
|
-
version: '7.
|
54
|
+
version: '7.2'
|
54
55
|
- !ruby/object:Gem::Dependency
|
55
56
|
name: railties
|
56
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -60,7 +61,7 @@ dependencies:
|
|
60
61
|
version: 3.2.0
|
61
62
|
- - "<"
|
62
63
|
- !ruby/object:Gem::Version
|
63
|
-
version: '7.
|
64
|
+
version: '7.2'
|
64
65
|
type: :development
|
65
66
|
prerelease: false
|
66
67
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -70,7 +71,7 @@ dependencies:
|
|
70
71
|
version: 3.2.0
|
71
72
|
- - "<"
|
72
73
|
- !ruby/object:Gem::Version
|
73
|
-
version: '7.
|
74
|
+
version: '7.2'
|
74
75
|
- !ruby/object:Gem::Dependency
|
75
76
|
name: rake
|
76
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -91,28 +92,126 @@ dependencies:
|
|
91
92
|
requirements:
|
92
93
|
- - "~>"
|
93
94
|
- !ruby/object:Gem::Version
|
94
|
-
version: 3.
|
95
|
+
version: 3.12.0
|
95
96
|
type: :development
|
96
97
|
prerelease: false
|
97
98
|
version_requirements: !ruby/object:Gem::Requirement
|
98
99
|
requirements:
|
99
100
|
- - "~>"
|
100
101
|
- !ruby/object:Gem::Version
|
101
|
-
version: 3.
|
102
|
+
version: 3.12.0
|
102
103
|
- !ruby/object:Gem::Dependency
|
103
104
|
name: rspec-html-matchers
|
104
105
|
requirement: !ruby/object:Gem::Requirement
|
105
106
|
requirements:
|
106
107
|
- - "~>"
|
107
108
|
- !ruby/object:Gem::Version
|
108
|
-
version: 0.
|
109
|
+
version: 0.10.0
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 0.10.0
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: appraisal
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 2.5.0
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 2.5.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: standard
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - "~>"
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '1.31'
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - "~>"
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '1.31'
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: rubocop-rails
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - "~>"
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: 2.23.0
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - "~>"
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: 2.23.0
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: rubocop-rake
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - "~>"
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: 0.6.0
|
180
|
+
type: :development
|
181
|
+
prerelease: false
|
182
|
+
version_requirements: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - "~>"
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: 0.6.0
|
187
|
+
- !ruby/object:Gem::Dependency
|
188
|
+
name: rubocop-rspec
|
189
|
+
requirement: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - "~>"
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: 2.25.0
|
194
|
+
type: :development
|
195
|
+
prerelease: false
|
196
|
+
version_requirements: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - "~>"
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: 2.25.0
|
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.
|
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,9 @@ 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
227
|
- Rakefile
|
130
|
-
- Steepfile
|
131
228
|
- certs/kpumuk.pem
|
132
229
|
- lib/generators/meta_tags/install_generator.rb
|
133
230
|
- lib/generators/meta_tags/templates/config/initializers/meta_tags.rb
|
@@ -173,14 +270,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
173
270
|
requirements:
|
174
271
|
- - ">="
|
175
272
|
- !ruby/object:Gem::Version
|
176
|
-
version: 2.
|
273
|
+
version: 2.7.0
|
177
274
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
178
275
|
requirements:
|
179
276
|
- - ">="
|
180
277
|
- !ruby/object:Gem::Version
|
181
278
|
version: '0'
|
182
279
|
requirements: []
|
183
|
-
rubygems_version: 3.
|
280
|
+
rubygems_version: 3.4.10
|
184
281
|
signing_key:
|
185
282
|
specification_version: 4
|
186
283
|
summary: Collection of SEO helpers for Ruby on Rails.
|
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/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
|