minitest-sprint 1.1.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 551600190cb9a3a7f81f76a625ac4c919aca5af7
4
- data.tar.gz: a5d07db30c3e09ff2cafafcc62fe8720fc4956ca
2
+ SHA256:
3
+ metadata.gz: b41b1bfaf2a97919bf828fc3c2f16ccec95586fb8c235b27b3f3fad24f7167ab
4
+ data.tar.gz: e84c24a78164f343fafecd2c7a3163640d809766a65d670ae745667817a3d8a6
5
5
  SHA512:
6
- metadata.gz: c11c557967043f35582d6d7be9beb5664d567d1facb350cafd6bfa0a71e0e1ca4c30a20164f6a8ebb0ab31ccb0715c9f1ec675cb7d240a81d1ce392ac6c57be9
7
- data.tar.gz: 3f45574f5e07033cbbd31e7f199a18330a6b9bf97094c1bc396af2cbee19953b2562b4cefeee10fc3f32bf3cbfb01135d9bf90696f37d33fd5405681d6a10417
6
+ metadata.gz: 3a8787ebc703cf777efc0d9813729cfe3fe633258b3adc9852ae3a5edd67588760f84b6e781b59b7d97d2400774609a84f8cbb975cc4245ce18de307fdad1ce0
7
+ data.tar.gz: 2fa35f00ce315c2018271cd262bd01c3e5104600a21c3b4d1727c6d4aeff361d42a8a3e4e3b6317cd6c702f1079ce6bb55f4fad1821e051c6e9626ab0f6f23be
checksums.yaml.gz.sig CHANGED
@@ -1 +1,2 @@
1
- M��E��c���]Dž��L�J�Lx��fvW�>�˙��$7�+��~y6���29K۽)���������^�K X��3?��$��i�����u��2�W˄i�)�d�J����6���!J:?]P��epçC��H��X� �a����%<T���n �գ�{Y��i��X�S���rGM��۩���� '>/���T��5Ć� O�˜of�6oi��8z/݇�.N��
1
+ zUD$RM�{tuO7��EvI
2
+ ���0.� ���Y�>�=��<*F%����ip��|�b/�ٌ�5����;��0�"r�W�z�k�-I�b��y�CEg�:��5��ݵ�3�[4����,��5@�/&��1�.�������F��h�V����ɱ�W ��a�.�
data/History.rdoc CHANGED
@@ -1,3 +1,25 @@
1
+ === 1.2.2 / 2022-06-20
2
+
3
+ * 1 bug fix:
4
+
5
+ * Fixed print_list for --binstub and --rake. (adam12)
6
+
7
+ === 1.2.1 / 2019-09-22
8
+
9
+ * 1 minor enhancement:
10
+
11
+ * Refactored and moved bin/minitest to Minitest::Sprint.run.
12
+
13
+ * 1 bug fix:
14
+
15
+ * Fixed a bug where having only options would prevent default "test" directory arg.
16
+
17
+ === 1.2.0 / 2016-05-16
18
+
19
+ * 1 minor enhancement:
20
+
21
+ * Switched to path_expander to deal with cmdline args. See path_expander for details.
22
+
1
23
  === 1.1.1 / 2015-08-10
2
24
 
3
25
  * 1 bug fix:
@@ -16,4 +38,3 @@
16
38
  * 1 major enhancement
17
39
 
18
40
  * Birthday!
19
-
data/Manifest.txt CHANGED
@@ -6,6 +6,7 @@ Rakefile
6
6
  bin/minitest
7
7
  lib/minitest/binstub_reporter.rb
8
8
  lib/minitest/complete.rb
9
+ lib/minitest/path_expander.rb
9
10
  lib/minitest/rake_reporter.rb
10
11
  lib/minitest/sprint.rb
11
12
  lib/minitest/sprint_plugin.rb
data/README.rdoc CHANGED
@@ -31,6 +31,10 @@ method names. When running tests, just hit tab after -n. For example:
31
31
  * Includes extra plugins to print out failure re-run commands.
32
32
  * One for the minitest commandline runner. (--binstub)
33
33
  * One for rake test runners. (--rake)
34
+ * Uses path_expander, so you can use:
35
+ * dir_arg -- expand a directory automatically
36
+ * @file_of_args -- persist arguments in a file
37
+ * -path_to_subtract -- ignore intersecting subsets of files/directories
34
38
 
35
39
  == SYNOPSIS:
36
40
 
data/Rakefile CHANGED
@@ -10,6 +10,8 @@ Hoe.plugin :rdoc
10
10
  Hoe.spec "minitest-sprint" do
11
11
  developer "Ryan Davis", "ryand-ruby@zenspider.com"
12
12
  license "MIT"
13
+
14
+ dependency "path_expander", "~> 1.1"
13
15
  end
14
16
 
15
17
  # vim: syntax=ruby
data/bin/minitest CHANGED
@@ -1,15 +1,5 @@
1
1
  #!/usr/bin/ruby
2
2
 
3
- $:.unshift "test"
4
- $:.unshift "lib"
3
+ require "minitest/sprint"
5
4
 
6
- require "minitest/autorun"
7
-
8
- files, args = ARGV.partition { |f| File.exist? f }
9
- files = Dir["test/**/{test_*,*_test}.rb"] if files.empty?
10
-
11
- ARGV.replace args
12
-
13
- files.each do |f|
14
- require "./#{f}"
15
- end
5
+ Minitest::Sprint.run
@@ -4,7 +4,7 @@ module Minitest
4
4
  class BinstubReporter < SprintReporter
5
5
  def print_list
6
6
  results.each do |result|
7
- puts " minitest -n #{result.class}##{result.name}"
7
+ puts " minitest -n #{result.class_name}##{result.name}"
8
8
  end
9
9
  end
10
10
  end
@@ -0,0 +1,34 @@
1
+ require "path_expander"
2
+
3
+ module Minitest; end # :nodoc:
4
+
5
+ ##
6
+ # Minitest's PathExpander to find and filter tests.
7
+
8
+ class Minitest::PathExpander < PathExpander
9
+ TEST_GLOB = "**/{test_*,*_test,spec_*,*_spec}.rb" # :nodoc:
10
+
11
+ def initialize args = ARGV # :nodoc:
12
+ super args, TEST_GLOB, "test"
13
+ end
14
+
15
+ ##
16
+ # Overrides PathExpander#process_flags to filter out ruby flags
17
+ # from minitest flags. Only supports -I<paths>, -d, and -w for
18
+ # ruby.
19
+
20
+ def process_flags flags
21
+ flags.reject { |flag| # all hits are truthy, so this works out well
22
+ case flag
23
+ when /^-I(.*)/ then
24
+ $LOAD_PATH.concat $1.split(/:/)
25
+ when /^-d/ then
26
+ $DEBUG = true
27
+ when /^-w/ then
28
+ $VERBOSE = true
29
+ else
30
+ false
31
+ end
32
+ }
33
+ end
34
+ end
@@ -4,7 +4,7 @@ module Minitest
4
4
  class RakeReporter < SprintReporter
5
5
  def print_list
6
6
  results.each do |result|
7
- puts " rake N=#{result.class}##{result.name}"
7
+ puts " rake N=#{result.class_name}##{result.name}"
8
8
  end
9
9
  end
10
10
  end
@@ -1,3 +1,15 @@
1
+ require "minitest/autorun"
2
+ require "minitest/path_expander"
3
+
4
+ $LOAD_PATH.unshift "test"
5
+ $LOAD_PATH.unshift "lib"
6
+
1
7
  class Minitest::Sprint
2
- VERSION = "1.1.1"
8
+ VERSION = "1.2.2"
9
+
10
+ def self.run args = ARGV
11
+ Minitest::PathExpander.new(args).process.each do |f|
12
+ require "./#{f}"
13
+ end
14
+ end
3
15
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-sprint
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDPjCCAiagAwIBAgIBAjANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
13
+ MIIDPjCCAiagAwIBAgIBBjANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
14
14
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
- GRYDY29tMB4XDTE0MDkxNzIzMDcwN1oXDTE1MDkxNzIzMDcwN1owRTETMBEGA1UE
15
+ GRYDY29tMB4XDTIxMTIyMzIzMTkwNFoXDTIyMTIyMzIzMTkwNFowRTETMBEGA1UE
16
16
  AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
17
17
  JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
18
18
  b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
@@ -21,58 +21,64 @@ cert_chain:
21
21
  GiadM9GHRaDiaxuX0cIUBj19T01mVE2i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
31
31
  -----END CERTIFICATE-----
32
- date: 2015-08-10 00:00:00.000000000 Z
32
+ date: 2022-06-20 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
- name: minitest
35
+ name: path_expander
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '5.8'
41
- type: :development
40
+ version: '1.1'
41
+ type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '5.8'
47
+ version: '1.1'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rdoc
50
50
  requirement: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '4.0'
55
+ - - "<"
56
+ - !ruby/object:Gem::Version
57
+ version: '7'
55
58
  type: :development
56
59
  prerelease: false
57
60
  version_requirements: !ruby/object:Gem::Requirement
58
61
  requirements:
59
- - - ~>
62
+ - - ">="
60
63
  - !ruby/object:Gem::Version
61
64
  version: '4.0'
65
+ - - "<"
66
+ - !ruby/object:Gem::Version
67
+ version: '7'
62
68
  - !ruby/object:Gem::Dependency
63
69
  name: hoe
64
70
  requirement: !ruby/object:Gem::Requirement
65
71
  requirements:
66
- - - ~>
72
+ - - "~>"
67
73
  - !ruby/object:Gem::Version
68
- version: '3.13'
74
+ version: '3.23'
69
75
  type: :development
70
76
  prerelease: false
71
77
  version_requirements: !ruby/object:Gem::Requirement
72
78
  requirements:
73
- - - ~>
79
+ - - "~>"
74
80
  - !ruby/object:Gem::Version
75
- version: '3.13'
81
+ version: '3.23'
76
82
  description: |-
77
83
  Runs (Get it? It's fast!) your tests and makes it easier to rerun individual
78
84
  failures.
@@ -86,8 +92,7 @@ extra_rdoc_files:
86
92
  - Manifest.txt
87
93
  - README.rdoc
88
94
  files:
89
- - .autotest
90
- - .gemtest
95
+ - ".autotest"
91
96
  - History.rdoc
92
97
  - Manifest.txt
93
98
  - README.rdoc
@@ -95,6 +100,7 @@ files:
95
100
  - bin/minitest
96
101
  - lib/minitest/binstub_reporter.rb
97
102
  - lib/minitest/complete.rb
103
+ - lib/minitest/path_expander.rb
98
104
  - lib/minitest/rake_reporter.rb
99
105
  - lib/minitest/sprint.rb
100
106
  - lib/minitest/sprint_plugin.rb
@@ -103,27 +109,27 @@ files:
103
109
  homepage: https://github.com/seattlerb/minitest-sprint
104
110
  licenses:
105
111
  - MIT
106
- metadata: {}
107
- post_install_message:
112
+ metadata:
113
+ homepage_uri: https://github.com/seattlerb/minitest-sprint
114
+ post_install_message:
108
115
  rdoc_options:
109
- - --main
116
+ - "--main"
110
117
  - README.rdoc
111
118
  require_paths:
112
119
  - lib
113
120
  required_ruby_version: !ruby/object:Gem::Requirement
114
121
  requirements:
115
- - - '>='
122
+ - - ">="
116
123
  - !ruby/object:Gem::Version
117
124
  version: '0'
118
125
  required_rubygems_version: !ruby/object:Gem::Requirement
119
126
  requirements:
120
- - - '>='
127
+ - - ">="
121
128
  - !ruby/object:Gem::Version
122
129
  version: '0'
123
130
  requirements: []
124
- rubyforge_project:
125
- rubygems_version: 2.4.5
126
- signing_key:
131
+ rubygems_version: 3.3.12
132
+ signing_key:
127
133
  specification_version: 4
128
134
  summary: Runs (Get it? It's fast!) your tests and makes it easier to rerun individual
129
135
  failures.
metadata.gz.sig CHANGED
Binary file
data/.gemtest DELETED
File without changes