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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5092fe76b8efe0ff767f07a12a7f3d7510712f5a1272a215a9dacf52a79d4e7
4
- data.tar.gz: 9240cb7c29a3c97fa7ce3acb052ed1f1fc68694430e911940e98374e2797c70b
3
+ metadata.gz: 03d23e6df173fda5d2de5955f6a2758a2541fc7ba5c63dde2437ed00e345e57e
4
+ data.tar.gz: f24d6ae849b88cbf1a400fbeb1a434c5be47ecff212487d7777d5ad87bdb8822
5
5
  SHA512:
6
- metadata.gz: 926cef525dd3377f34f3c75d52d61eb3db48c046a15976f26f54b895ac9a66a3fd56a603f406c14a4c78746ac7869ae2a19d4904f46859027acf34daf2949f41
7
- data.tar.gz: 317ef71ab107c477d02faf49f9e1f01a38c28231c9d945a66471624e942b6a4ae31f5fec2f05abf1d58aec97a3f5803a4b8f1044a49c9863b8ebe11237f4007e
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
- ignore_classes_inheriting_from("Minitest::Test")
11
-
12
- MINITEST_METHODS = T.let(
13
- Set.new([
14
- "after_all",
15
- "around",
16
- "around_all",
17
- "before_all",
18
- "setup",
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
- return unless definition.name.start_with?("test_") || MINITEST_METHODS.include?(definition.name)
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
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Spoom
5
- VERSION = "1.4.0"
5
+ VERSION = "1.4.2"
6
6
  end
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.0
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-24 00:00:00.000000000 Z
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.3
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: []