minitest-sprint 1.1.1 → 1.2.0

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
2
  SHA1:
3
- metadata.gz: 551600190cb9a3a7f81f76a625ac4c919aca5af7
4
- data.tar.gz: a5d07db30c3e09ff2cafafcc62fe8720fc4956ca
3
+ metadata.gz: 87a453914857be99edea0f42d88acf8d584a0f90
4
+ data.tar.gz: 94e31f6498013a5fde7890e2057b6cd9e6f2e4d9
5
5
  SHA512:
6
- metadata.gz: c11c557967043f35582d6d7be9beb5664d567d1facb350cafd6bfa0a71e0e1ca4c30a20164f6a8ebb0ab31ccb0715c9f1ec675cb7d240a81d1ce392ac6c57be9
7
- data.tar.gz: 3f45574f5e07033cbbd31e7f199a18330a6b9bf97094c1bc396af2cbee19953b2562b4cefeee10fc3f32bf3cbfb01135d9bf90696f37d33fd5405681d6a10417
6
+ metadata.gz: 2c5e806585530a98a54d17670aea000f6c901858a5c00bd67fe3c079a266123de961d5708cc62e294ec0d381f0a6e6f320ed7eb5c54aaf357b43c0bf33f1052b
7
+ data.tar.gz: c1eb90b0cfbf8ced1309b29406a838eb1301ed4669579da59de012fe7022d1802c02c2dba4b4091ed7883a8965a7bfa7ad445ffbd3e024b6413081c6e300a782
checksums.yaml.gz.sig CHANGED
@@ -1 +1 @@
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�˜o�f�6oi��8z/݇�.N��
1
+ P�ěY:*ߛ�ź|Rf_�Ք���:Y��B&OKQ6l -�+��f?�#9L�VBu�#������K��Jh;�f�>�&W����49�*n
data.tar.gz.sig CHANGED
Binary file
data/History.rdoc CHANGED
@@ -1,3 +1,9 @@
1
+ === 1.2.0 / 2016-05-16
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Switched to path_expander to deal with cmdline args. See path_expander for details.
6
+
1
7
  === 1.1.1 / 2015-08-10
2
8
 
3
9
  * 1 bug fix:
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.0"
13
15
  end
14
16
 
15
17
  # vim: syntax=ruby
data/bin/minitest CHANGED
@@ -1,15 +1,11 @@
1
1
  #!/usr/bin/ruby
2
2
 
3
- $:.unshift "test"
4
- $:.unshift "lib"
3
+ $LOAD_PATH.unshift "test"
4
+ $LOAD_PATH.unshift "lib"
5
5
 
6
6
  require "minitest/autorun"
7
+ require "minitest/path_expander"
7
8
 
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|
9
+ Minitest::PathExpander.new.process.each do |f|
14
10
  require "./#{f}"
15
11
  end
@@ -0,0 +1,35 @@
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
+ args << "test" if args.empty?
13
+ super args, TEST_GLOB
14
+ end
15
+
16
+ ##
17
+ # Overrides PathExpander#process_flags to filter out ruby flags
18
+ # from minitest flags. Only supports -I<paths>, -d, and -w for
19
+ # ruby.
20
+
21
+ def process_flags flags
22
+ flags.reject { |flag| # all hits are truthy, so this works out well
23
+ case flag
24
+ when /^-I(.*)/ then
25
+ $LOAD_PATH.concat $1.split(/:/)
26
+ when /^-d/ then
27
+ $DEBUG = true
28
+ when /^-w/ then
29
+ $VERBOSE = true
30
+ else
31
+ false
32
+ end
33
+ }
34
+ end
35
+ end
@@ -1,3 +1,3 @@
1
1
  class Minitest::Sprint
2
- VERSION = "1.1.1"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -10,9 +10,9 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDPjCCAiagAwIBAgIBAjANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
13
+ MIIDPjCCAiagAwIBAgIBAzANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
14
14
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
- GRYDY29tMB4XDTE0MDkxNzIzMDcwN1oXDTE1MDkxNzIzMDcwN1owRTETMBEGA1UE
15
+ GRYDY29tMB4X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Er6PLXHRiYsIycD1LkMi6YnixdITRHmrqJYE2rsjaIfpIehiusVAPHkNf7qbpHq
29
+ qx3h45R1CAsObX0SQDIT+rRbQrtKz1GHIZTOFYvEJjUY1XmRTZupD3CJ8Q7sDqSy
30
+ NLq5jm1fq6Y9Uolu3RJbmycf
31
31
  -----END CERTIFICATE-----
32
- date: 2015-08-10 00:00:00.000000000 Z
32
+ date: 2016-05-16 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.0'
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.0'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rdoc
50
50
  requirement: !ruby/object:Gem::Requirement
@@ -65,14 +65,14 @@ dependencies:
65
65
  requirements:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: '3.13'
68
+ version: '3.15'
69
69
  type: :development
70
70
  prerelease: false
71
71
  version_requirements: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ~>
74
74
  - !ruby/object:Gem::Version
75
- version: '3.13'
75
+ version: '3.15'
76
76
  description: |-
77
77
  Runs (Get it? It's fast!) your tests and makes it easier to rerun individual
78
78
  failures.
@@ -87,7 +87,6 @@ extra_rdoc_files:
87
87
  - README.rdoc
88
88
  files:
89
89
  - .autotest
90
- - .gemtest
91
90
  - History.rdoc
92
91
  - Manifest.txt
93
92
  - README.rdoc
@@ -95,6 +94,7 @@ files:
95
94
  - bin/minitest
96
95
  - lib/minitest/binstub_reporter.rb
97
96
  - lib/minitest/complete.rb
97
+ - lib/minitest/path_expander.rb
98
98
  - lib/minitest/rake_reporter.rb
99
99
  - lib/minitest/sprint.rb
100
100
  - lib/minitest/sprint_plugin.rb
metadata.gz.sig CHANGED
@@ -1 +1,3 @@
1
- |%�Yˆ��f����C�"_o��dX��s�� d ��5,�-���&g��=�}䑙�j���1�?!m������7Қ��@⧜��[�U�C����W��*t�s�[�I�y��>��X.��{��Q�})����������.=�giehÎ�{w�:��歯۬�an�^��8U��[��K�zET����l��F�2���e�H��X���P��-��A�C�{�S���`q�K]C���
1
+ D��9z
2
+ *��#�|T�Ǹ�}�\?i�<�#S�-vkbż4w:�K���'�7JIr��AU�$����?�7 �D…��)�'��y�0�99661���r�uI�Q'4iE57��6-������`�ZH��d[�u*����x��! 4Oo
3
+ ��r�r,s�T�%+==���4G븋0��s(�Y�7�̾��YȞ�^������'��B����-�d��a�$b-H�k�ƅu�`@w���n���ҼR��+
data/.gemtest DELETED
File without changes