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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5039d33254ce5a534e39a585909dceefe1dd3bcc40dbbf406700b952f293264
4
- data.tar.gz: 7a80a7e24b2d5ce333362f2b3ba929aa181e8112cd11dfec9a63799632f53a7a
3
+ metadata.gz: bd840baef344a54b96b5b2cb3d6a21c70a3d2b4c497bee0fc6c3f963a839d7b1
4
+ data.tar.gz: dc0847ffd7f0c3b17c6e4f284e5cfad2688eed8e9d123f65b2311ae508321ec2
5
5
  SHA512:
6
- metadata.gz: 5ad2f7a6140d4a536bed67b234b66af9af985faa3f87b09aeda005ae71318b0f2d72a5af657a1edb79ff01913f0a02e1f7e7d736f0da8c98909076f9a5a60532
7
- data.tar.gz: 6443e1ca210c7f3ad4bf19e06c3590baa59cb163fbae978c6315e87366ae20a1fb446f70dfe90b5c6d64037fa063680b4618a1ffc2b1e6350e208cf56dc6d2a4
6
+ metadata.gz: e427bd82c9fe9b3b22d42ccf9cbbbbb5c89d63ed883eabb0b401157f39808ac9d13f89825f207158c11b46fb3f330b7462c64b2d29b6b23c8933a2fd3c958db8
7
+ data.tar.gz: 2484e985c2547e91a2a4b636711ae4b48d809cf18e7f6503f94de2a30cbd3489b1e2077bc4c71989dfbc9db81043dad2ab2d4d422ae9ca87c81d9e19e1e5390a
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1 @@
1
- 0l.┧@^��U�m�� KjO�@��;����Td�x��Fd@�},w<Ly�I�5g��ʶ�{��nF�Ξ�{0�犫}��m����^����K� � �8�)#$���1�J��2y_�h9�1ф- El�a��7~^
2
- ������
1
+ Gm/����nL*�����`
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 |filter|
59
- Regexp.new("^#{filter}$")
59
+ processed_args[:filter] = Regexp.union(*filters.map do |source|
60
+ Regexp.new(source)
60
61
  end)
61
- processed_args[:args] = "#{processed_args[:args]} --name=/^#{processed_args[:filter].source}$/"
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 = @argv.map do |arg|
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))
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nicetest
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.5"
5
5
  end
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.3
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: 2024-08-02 00:00:00.000000000 Z
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.9
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
- X)Bpx��/�~Zxj"L�Z��^ Tq9�O���݂Żǵ�^�3s�.!͹�s��pҋtZ9@�oa8H�AJ~Ez�>H���E*���G~6%�&.}�, ���u2:�e��-��(�$+
2
- m�9L�i�%�oR0�.�:���L�ݺo�(�6�7�מx��Ĺ��TFE���$��E�r��z,p>�Pe\^{ i��ŕ;L��^^2ƅ�P���W�vn��7o��S1:o�Z/�E��D�Я�{#}
1
+ -9z �1�[�@��g�R�2��ʘLz7Q��W�����*DJ vZrTY_}�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��