guard-minitest 1.0.1 → 1.1.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: 35c8dda621de0cd502a5631b63b6e34bf1182e9b
4
- data.tar.gz: fc7333d1926e37b12d424a97ee70c7ba5289c7ff
3
+ metadata.gz: 3b52850a41fa2fccaa08c18f188994ed497b5759
4
+ data.tar.gz: 863ba5f22e044ebd9483aad03c8fa34c75887070
5
5
  SHA512:
6
- metadata.gz: 1bebdf921e22f29eca464eb2085f1b2ae3575d85b9d503467e0ef12d3c1cf5932110f6e6d444c7fac572f86a6d4f6e483d3a7725dc80e2f01d9351658f24891f
7
- data.tar.gz: 325024f62be9568883b1f841020a96edcee4d8c323efd3d0aeaa07b4490c9b028f2bb056eb337867cc4660929ae5d1da91765c650fcb6533f469a9efbf309d88
6
+ metadata.gz: 5e75062a411b48f7a811c9d4482a8cdf7d63a1e2f8c5d9cd9502af77769846198e1eef537b7e4d860720250a2cf3f89e22e4d6b08dc831bb0d9f0b47fb6d0758
7
+ data.tar.gz: cb659d38ae3ed196778ba679e6f46d310b7e4c9b38f530f4d3555401150b2b14bee62245f71b694527079379bae1fa3b85d5c56aed0a59b0448456c3aaea5493
data/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  ## Unreleased Changes
2
2
 
3
- [Full Changelog](https://github.com/guard/guard-minitest/compare/v1.0.1...master)
3
+ [Full Changelog](https://github.com/guard/guard-minitest/compare/v1.1.0...master)
4
+
5
+ ## 1.1.0 - Aug 19, 2013
6
+
7
+ [Full Changelog](https://github.com/guard/guard-minitest/compare/v1.0.1...v1.1.0)
8
+
9
+ ### New feature
10
+
11
+ * [#77][] Allow specifying arbitrary include paths. ([@psyho][])
4
12
 
5
13
  ## 1.0.1 - Jul 23, 2013
6
14
 
@@ -174,6 +182,7 @@ First stable release.
174
182
  [#70]: https://github.com/guard/guard-minitest/issues/70
175
183
  [#72]: https://github.com/guard/guard-minitest/issues/72
176
184
  [#73]: https://github.com/guard/guard-minitest/issues/73
185
+ [#77]: https://github.com/guard/guard-minitest/issues/77
177
186
  [@aflock]: https://github.com/aflock
178
187
  [@arronmabrey]: https://github.com/arronmabrey
179
188
  [@aspiers]: https://github.com/aspiers
@@ -184,6 +193,7 @@ First stable release.
184
193
  [@kejadlen]: https://github.com/kejadlen
185
194
  [@leemhenson]: https://github.com/leemhenson
186
195
  [@manewitz]: https://github.com/manewitz
196
+ [@psyho]: https://github.com/psyho
187
197
  [@rafmagana]: https://github.com/rafmagana
188
198
  [@rymai]: https://github.com/rymai
189
199
  [@sbl]: https://github.com/sbl
@@ -191,4 +201,4 @@ First stable release.
191
201
  [@sbrink]: https://github.com/sbrink
192
202
  [@sometimesfood]: https://github.com/sometimesfood
193
203
  [@statianzo]: https://github.com/statianzo
194
- [@yannlugrin]: https://github.com/yannlugrin
204
+ [@yannlugrin]: https://github.com/yannlugrin
data/LICENSE CHANGED
@@ -1,20 +1,20 @@
1
- Copyright (c) 2010-2012 Yann Lugrin, 2013 Rémy Coutable
1
+ The MIT License (MIT)
2
2
 
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
3
+ Copyright (c) 2013 Yann Lugrin, Rémy Coutable
10
4
 
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
13
11
 
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -70,6 +70,7 @@ end
70
70
  :all_on_start => false # run all tests in group on startup, default: true
71
71
  :cli => '--test' # pass arbitrary Minitest CLI arguments, default: ''
72
72
  :test_folders => ['tests'] # specify an array of paths that contain test files, default: %w[test spec]
73
+ :include => ['lib'] # specify an array of include paths to the command that runs the tests
73
74
  :test_file_patterns => true # specify an array of patterns that test files must match in order to be run, default: %w[*_test.rb test_*.rb *_spec.rb]
74
75
  :spring => true # enable spring support, default: false
75
76
  :zeus => true # enable zeus support; default: false
@@ -16,6 +16,7 @@ module Guard
16
16
  :drb => false,
17
17
  :zeus => false,
18
18
  :spring => false,
19
+ :include => [],
19
20
  :test_folders => %w[test spec],
20
21
  :test_file_patterns => %w[*_test.rb test_*.rb *_spec.rb],
21
22
  :cli => nil
@@ -62,6 +63,10 @@ module Guard
62
63
  @options[:test_folders]
63
64
  end
64
65
 
66
+ def include_folders
67
+ @options[:include]
68
+ end
69
+
65
70
  def test_file_patterns
66
71
  @options[:test_file_patterns]
67
72
  end
@@ -104,7 +109,7 @@ module Guard
104
109
 
105
110
  def ruby_command(paths)
106
111
  cmd_parts = ['ruby']
107
- cmd_parts.concat(test_folders.map {|f| %[-I"#{f}"] })
112
+ cmd_parts.concat(generate_includes)
108
113
  cmd_parts << '-r rubygems' if rubygems?
109
114
  cmd_parts << '-r bundler/setup' if bundler?
110
115
  cmd_parts << '-r minitest/autorun'
@@ -124,6 +129,10 @@ module Guard
124
129
  cmd_parts += cli_options
125
130
  end
126
131
 
132
+ def generate_includes
133
+ (test_folders + include_folders).map {|f| %[-I"#{f}"] }
134
+ end
135
+
127
136
  def relative_paths(paths)
128
137
  paths.map { |p| "./#{p}" }
129
138
  end
@@ -1,7 +1,7 @@
1
1
  module Guard
2
2
  class MinitestVersion
3
3
 
4
- VERSION = '1.0.1'
4
+ VERSION = '1.1.0'
5
5
 
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-minitest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yann Lugrin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-23 00:00:00.000000000 Z
12
+ date: 2013-08-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
@@ -75,7 +75,8 @@ files:
75
75
  - LICENSE
76
76
  - README.md
77
77
  homepage: https://github.com/guard/guard-minitest
78
- licenses: []
78
+ licenses:
79
+ - MIT
79
80
  metadata: {}
80
81
  post_install_message:
81
82
  rdoc_options: []