spoom 1.4.0 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spoom/deadcode/plugins/minitest.rb +11 -18
- data/lib/spoom/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03d23e6df173fda5d2de5955f6a2758a2541fc7ba5c63dde2437ed00e345e57e
|
4
|
+
data.tar.gz: f24d6ae849b88cbf1a400fbeb1a434c5be47ecff212487d7777d5ad87bdb8822
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea93308b8fe5c3af1c95e61d35710c320035225e927158b96ea84059d55af1388b581b1bf51a17ac7574db52f66bb7e16e2da248ba2d7837067cd4dcd9fc90bd
|
7
|
+
data.tar.gz: b6e3eba534cb1c65d68ff30b6ab34ec51ff0c21681d97dea4d69efca7b8de59b4cecedb487398d15eca890eeba20fb2f5bbfc2ac9c82e2f5c16c7d2040c0f10d
|
@@ -7,28 +7,21 @@ module Spoom
|
|
7
7
|
class Minitest < Base
|
8
8
|
extend T::Sig
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
"teardown",
|
20
|
-
]),
|
21
|
-
T::Set[String],
|
10
|
+
ignore_classes_named(/Test$/)
|
11
|
+
|
12
|
+
ignore_methods_named(
|
13
|
+
"after_all",
|
14
|
+
"around",
|
15
|
+
"around_all",
|
16
|
+
"before_all",
|
17
|
+
"setup",
|
18
|
+
"teardown",
|
22
19
|
)
|
23
20
|
|
24
21
|
sig { override.params(definition: Model::Method).void }
|
25
22
|
def on_define_method(definition)
|
26
|
-
|
27
|
-
|
28
|
-
owner = definition.owner
|
29
|
-
return unless owner.is_a?(Model::Class)
|
30
|
-
|
31
|
-
@index.ignore(definition) if ignored_subclass?(owner)
|
23
|
+
file = definition.location.file
|
24
|
+
@index.ignore(definition) if file.match?(%r{test/.*test\.rb$}) && definition.name.match?(/^test_/)
|
32
25
|
end
|
33
26
|
|
34
27
|
sig { override.params(send: Send).void }
|
data/lib/spoom/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spoom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandre Terrasa
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -122,7 +122,7 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 0.19.2
|
125
|
-
description:
|
125
|
+
description:
|
126
126
|
email:
|
127
127
|
- ruby@shopify.com
|
128
128
|
executables:
|
@@ -218,7 +218,7 @@ licenses:
|
|
218
218
|
- MIT
|
219
219
|
metadata:
|
220
220
|
allowed_push_host: https://rubygems.org
|
221
|
-
post_install_message:
|
221
|
+
post_install_message:
|
222
222
|
rdoc_options: []
|
223
223
|
require_paths:
|
224
224
|
- lib
|
@@ -233,8 +233,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
233
233
|
- !ruby/object:Gem::Version
|
234
234
|
version: '0'
|
235
235
|
requirements: []
|
236
|
-
rubygems_version: 3.5.
|
237
|
-
signing_key:
|
236
|
+
rubygems_version: 3.5.16
|
237
|
+
signing_key:
|
238
238
|
specification_version: 4
|
239
239
|
summary: Useful tools for Sorbet enthusiasts.
|
240
240
|
test_files: []
|