nicetest 0.1.3 → 0.1.5
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 +1 -2
- data/lib/nicetest/cli.rb +6 -4
- data/lib/nicetest/test_finder.rb +2 -1
- data/lib/nicetest/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +45 -3
- metadata.gz.sig +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd840baef344a54b96b5b2cb3d6a21c70a3d2b4c497bee0fc6c3f963a839d7b1
|
4
|
+
data.tar.gz: dc0847ffd7f0c3b17c6e4f284e5cfad2688eed8e9d123f65b2311ae508321ec2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e427bd82c9fe9b3b22d42ccf9cbbbbb5c89d63ed883eabb0b401157f39808ac9d13f89825f207158c11b46fb3f330b7462c64b2d29b6b23c8933a2fd3c958db8
|
7
|
+
data.tar.gz: 2484e985c2547e91a2a4b636711ae4b48d809cf18e7f6503f94de2a30cbd3489b1e2077bc4c71989dfbc9db81043dad2ab2d4d422ae9ca87c81d9e19e1e5390a
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
������
|
1
|
+
�Gm/����n�L*�����`
|
data/lib/nicetest/cli.rb
CHANGED
@@ -9,6 +9,7 @@ require "set"
|
|
9
9
|
module Nicetest
|
10
10
|
class Cli
|
11
11
|
def initialize(argv)
|
12
|
+
@original_argv = argv.dup
|
12
13
|
@argv = argv
|
13
14
|
@logger = Logger.new($stderr)
|
14
15
|
adjust_load_path!
|
@@ -55,10 +56,11 @@ module Nicetest
|
|
55
56
|
@logger.fatal!("no test files found") if required_files.compact.empty?
|
56
57
|
|
57
58
|
if filters.any?
|
58
|
-
processed_args[:filter] = Regexp.union(*filters.map do |
|
59
|
-
Regexp.new(
|
59
|
+
processed_args[:filter] = Regexp.union(*filters.map do |source|
|
60
|
+
Regexp.new(source)
|
60
61
|
end)
|
61
|
-
|
62
|
+
|
63
|
+
processed_args[:args] = "#{processed_args[:args]} --name=/#{processed_args[:filter].source}/"
|
62
64
|
end
|
63
65
|
|
64
66
|
patch_minitest_process_args!(processed_args)
|
@@ -108,7 +110,7 @@ module Nicetest
|
|
108
110
|
loadpaths = fetch_dep_loadpaths(Gem.loaded_specs["nicetest"]).map { |path| "-I#{path}" }
|
109
111
|
requires = ["-rnicetest"]
|
110
112
|
includes = ["-I#{dir}/test"]
|
111
|
-
args_with_removed_leading_path = @
|
113
|
+
args_with_removed_leading_path = @original_argv.map do |arg|
|
112
114
|
arg = arg.dup
|
113
115
|
arg.delete_prefix!(dir)
|
114
116
|
arg.delete_prefix!(File.expand_path(dir))
|
data/lib/nicetest/test_finder.rb
CHANGED
@@ -23,7 +23,8 @@ module Nicetest
|
|
23
23
|
|
24
24
|
def find_test(filename, lineno)
|
25
25
|
range_finder = @parse_cache[filename] ||= RangeFinder.parse_file(filename)
|
26
|
-
range_finder.nearest_test_for_line(lineno)
|
26
|
+
regexp = range_finder.nearest_test_for_line(lineno)
|
27
|
+
"^#{regexp}$" if regexp
|
27
28
|
rescue => e
|
28
29
|
Nicetest.logger.warn("Failed to parse #{filename} (#{e.class}: #{e.message})")
|
29
30
|
nil
|
data/lib/nicetest/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nicetest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Ker-Seymer
|
@@ -29,8 +29,50 @@ cert_chain:
|
|
29
29
|
Lvd35BNvZkhFzs9xfykhurpkT2TiP2F3ZFn9dwLXMFe41pwrtEYLIWhYi8mUG4Ek
|
30
30
|
6aR8M/tqIpChVV39
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date:
|
32
|
+
date: 2025-01-11 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: base64
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
type: :runtime
|
42
|
+
prerelease: false
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: bigdecimal
|
50
|
+
requirement: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: logger
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
type: :runtime
|
70
|
+
prerelease: false
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
34
76
|
- !ruby/object:Gem::Dependency
|
35
77
|
name: minitest
|
36
78
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
212
|
- !ruby/object:Gem::Version
|
171
213
|
version: '0'
|
172
214
|
requirements: []
|
173
|
-
rubygems_version: 3.5.
|
215
|
+
rubygems_version: 3.5.22
|
174
216
|
signing_key:
|
175
217
|
specification_version: 4
|
176
218
|
summary: A slightly fancier configuration for Minitest
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
-9�z��1�[�@��g�R�2��ʘLz7Q��W�����*D�JvZ�rTY�_}�1':O�D�^���h}�P U�S�����Ә��O�TĮךf9hߣ�_-�������+�e��"��_��JBSJ��5�Q�C�u��9۹��3��(�%�w�����@ޅ�R��&�57pT��]_6fR4
|
2
|
+
��o}��>�:�0Mc��/���,X��
|