minitest-focus 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.txt +6 -1
- data/Manifest.txt +1 -0
- data/lib/minitest/focus5.rb +10 -14
- data/lib/minitest/focus_plugin.rb +15 -0
- metadata +35 -29
- metadata.gz.sig +1 -2
- data/.gemtest +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 40fc0218b90a4fb8113f6533b7a152599d3152cef8cb3fc6e8ae434eaf9f3f0b
|
4
|
+
data.tar.gz: c733cc5ad6f307d9aff0cc2e05f222a461f7d3794e442d0706bea2aeba7701fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e30c05039e4667a3cca39b42fe086ce893515fe077e19d142989af707921c084b9caeced751689a0bd7568c3bd6d651cdeb4bec9652c8f69007ce9bfc0d44f72
|
7
|
+
data.tar.gz: c26c57c6875d46f37e50f6b5ac5d86fee0a5dfc537199027a0596ada1be5b71d37c326c5e086ae2c06e655ca9f81994423b794dafc84590ab335494ce6ee9c50
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/lib/minitest/focus5.rb
CHANGED
@@ -1,10 +1,18 @@
|
|
1
1
|
class Minitest::Test # :nodoc:
|
2
2
|
class Focus # :nodoc:
|
3
|
-
VERSION = "1.
|
3
|
+
VERSION = "1.2.0" # :nodoc:
|
4
4
|
end
|
5
5
|
|
6
6
|
@@filtered_names = [] # :nodoc:
|
7
7
|
|
8
|
+
def self.add_to_filter name
|
9
|
+
@@filtered_names << "#{self}##{name}"
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.filtered_names
|
13
|
+
@@filtered_names
|
14
|
+
end
|
15
|
+
|
8
16
|
##
|
9
17
|
# Focus on the next test defined. Cumulative. Equivalent to
|
10
18
|
# running with command line arg: -n /test_name|.../
|
@@ -20,19 +28,7 @@ class Minitest::Test # :nodoc:
|
|
20
28
|
meta = class << self; self; end
|
21
29
|
|
22
30
|
meta.send :define_method, :method_added do |name|
|
23
|
-
|
24
|
-
filter = "/^(#{Regexp.union(@@filtered_names).source})$/"
|
25
|
-
|
26
|
-
index = ARGV.index("-n")
|
27
|
-
|
28
|
-
if index then
|
29
|
-
warn "NOTE: Found `-n <regexp>` arg. This breaks under Rake::TestTask"
|
30
|
-
end
|
31
|
-
|
32
|
-
index = ARGV.index { |arg| arg =~ /^-n/ }
|
33
|
-
ARGV.delete_at index if index
|
34
|
-
|
35
|
-
ARGV << "-n=#{filter}"
|
31
|
+
add_to_filter name
|
36
32
|
|
37
33
|
meta.send :remove_method, :method_added
|
38
34
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Minitest
|
4
|
+
def self.plugin_focus_options(_opts, options)
|
5
|
+
return if Minitest::Test.filtered_names.empty?
|
6
|
+
|
7
|
+
index = ARGV.index { |arg| arg =~ /^-n/ || arg =~ /^--name/ }
|
8
|
+
if index
|
9
|
+
warn 'Ignoring -n / --name, using `focus` filters instead'
|
10
|
+
ARGV.delete_at index
|
11
|
+
end
|
12
|
+
|
13
|
+
options[:filter] = "/^(#{Regexp.union(Minitest::Test.filtered_names).source})$/"
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-focus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -10,9 +10,9 @@ bindir: bin
|
|
10
10
|
cert_chain:
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TVxqbMsJJyjosks4ZdQYov2zdvQpt1HsLi+Qmckmg8SPZsd+T8uiiBCf
|
28
|
+
b+1ORSM5eEfBQenPXy83LZcoQz8i6zVB4aAfTGGdhxjoMGUEmSZ6xpkOzmnGa9QK
|
29
|
+
m5x9IDiApM+vCELNwDXXGNFEnQBBK+wAe4Pek8o1V1TTOxL1kGPewVOitX1p3xoN
|
30
|
+
h7iEjga8iM1LbZUfiISZ+WrB
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date:
|
32
|
+
date: 2020-05-16 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: minitest
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '4'
|
41
|
-
- - <
|
41
|
+
- - "<"
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '6'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
46
|
version_requirements: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
|
-
- -
|
48
|
+
- - ">="
|
49
49
|
- !ruby/object:Gem::Version
|
50
50
|
version: '4'
|
51
|
-
- - <
|
51
|
+
- - "<"
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '6'
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
55
|
name: rdoc
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- -
|
58
|
+
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '4.0'
|
61
|
+
- - "<"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '7'
|
61
64
|
type: :development
|
62
65
|
prerelease: false
|
63
66
|
version_requirements: !ruby/object:Gem::Requirement
|
64
67
|
requirements:
|
65
|
-
- -
|
68
|
+
- - ">="
|
66
69
|
- !ruby/object:Gem::Version
|
67
70
|
version: '4.0'
|
71
|
+
- - "<"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '7'
|
68
74
|
- !ruby/object:Gem::Dependency
|
69
75
|
name: hoe
|
70
76
|
requirement: !ruby/object:Gem::Requirement
|
71
77
|
requirements:
|
72
|
-
- - ~>
|
78
|
+
- - "~>"
|
73
79
|
- !ruby/object:Gem::Version
|
74
|
-
version: '3.
|
80
|
+
version: '3.22'
|
75
81
|
type: :development
|
76
82
|
prerelease: false
|
77
83
|
version_requirements: !ruby/object:Gem::Requirement
|
78
84
|
requirements:
|
79
|
-
- - ~>
|
85
|
+
- - "~>"
|
80
86
|
- !ruby/object:Gem::Version
|
81
|
-
version: '3.
|
87
|
+
version: '3.22'
|
82
88
|
description: |-
|
83
89
|
Allows you to focus on a few tests with ease without having to use
|
84
90
|
command-line arguments. Good for tools like guard that don't have
|
@@ -95,8 +101,7 @@ extra_rdoc_files:
|
|
95
101
|
- Manifest.txt
|
96
102
|
- README.txt
|
97
103
|
files:
|
98
|
-
- .autotest
|
99
|
-
- .gemtest
|
104
|
+
- ".autotest"
|
100
105
|
- History.txt
|
101
106
|
- Manifest.txt
|
102
107
|
- README.txt
|
@@ -104,30 +109,31 @@ files:
|
|
104
109
|
- lib/minitest/focus.rb
|
105
110
|
- lib/minitest/focus4.rb
|
106
111
|
- lib/minitest/focus5.rb
|
112
|
+
- lib/minitest/focus_plugin.rb
|
107
113
|
- test/minitest/test_focus.rb
|
108
114
|
homepage: https://github.com/seattlerb/minitest-focus
|
109
115
|
licenses:
|
110
116
|
- MIT
|
111
|
-
metadata:
|
117
|
+
metadata:
|
118
|
+
homepage_uri: https://github.com/seattlerb/minitest-focus
|
112
119
|
post_install_message:
|
113
120
|
rdoc_options:
|
114
|
-
- --main
|
121
|
+
- "--main"
|
115
122
|
- README.txt
|
116
123
|
require_paths:
|
117
124
|
- lib
|
118
125
|
required_ruby_version: !ruby/object:Gem::Requirement
|
119
126
|
requirements:
|
120
|
-
- -
|
127
|
+
- - ">="
|
121
128
|
- !ruby/object:Gem::Version
|
122
129
|
version: '0'
|
123
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
131
|
requirements:
|
125
|
-
- -
|
132
|
+
- - ">="
|
126
133
|
- !ruby/object:Gem::Version
|
127
134
|
version: '0'
|
128
135
|
requirements: []
|
129
|
-
|
130
|
-
rubygems_version: 2.4.5
|
136
|
+
rubygems_version: 3.0.3
|
131
137
|
signing_key:
|
132
138
|
specification_version: 4
|
133
139
|
summary: Allows you to focus on a few tests with ease without having to use command-line
|
metadata.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
��( �-�\�6���X��4Dq����
|
1
|
+
��x���CIvS3
|
data/.gemtest
DELETED
File without changes
|