guard-test 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/guard/test/inspector.rb +1 -1
- data/lib/guard/test/runner.rb +6 -8
- data/lib/guard/test/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f58e0e294bb9f59cb858747ace02e027237139f
|
4
|
+
data.tar.gz: 2ea1362c16ecc9c23f65db61fc74815c15a7ab25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42f71c93cf3caf50188232386238e97a5c2906ce63e23b86324298dbbbac24d393f67915adeeb49f3353c6dd6df241f21f672d2e7db27652c8e9fe539ee95d9a
|
7
|
+
data.tar.gz: 400669dc899d483dc0c011fc9dbf2b343d3bd5392164ddf0a48163ffc2e374dce822e6dcbacd1518707a028b8b9f68c33b512d35039f54f112ddbe5d6db83632
|
data/lib/guard/test/inspector.rb
CHANGED
data/lib/guard/test/runner.rb
CHANGED
@@ -70,7 +70,6 @@ module Guard
|
|
70
70
|
def test_unit_command(paths)
|
71
71
|
cmd_parts = executables
|
72
72
|
cmd_parts.concat(includes_and_requires(paths))
|
73
|
-
cmd_parts.concat(test_files_list(paths))
|
74
73
|
cmd_parts.concat(command_options)
|
75
74
|
cmd_parts << options[:cli]
|
76
75
|
|
@@ -91,23 +90,22 @@ module Guard
|
|
91
90
|
def includes_and_requires(paths)
|
92
91
|
parts = []
|
93
92
|
parts << Array(options[:include]).map { |path| "-I\"#{path}\"" } unless zeus? || spring?
|
94
|
-
parts << "-I\"#{File.expand_path('..', __FILE__)}\""
|
95
93
|
parts << '-r bundler/setup' if bundler?
|
96
94
|
parts << '-r rubygems' if rubygems?
|
97
|
-
parts << '-r guard_test_runner' unless drb? || zeus? || spring?
|
98
95
|
|
99
|
-
|
100
|
-
|
96
|
+
unless drb? || zeus? || spring?
|
97
|
+
parts << "-r #{File.expand_path("../guard_test_runner", __FILE__)}"
|
98
|
+
parts << "-e \"%w[#{paths.join(' ')}].each { |p| load p }\""
|
99
|
+
end
|
101
100
|
|
102
|
-
|
103
|
-
paths.map { |path| "\"./#{path}\"" }
|
101
|
+
parts
|
104
102
|
end
|
105
103
|
|
106
104
|
def command_options
|
107
105
|
if drb? || zeus? || spring?
|
108
106
|
[]
|
109
107
|
else
|
110
|
-
['--use-color', '--runner=guard_test']
|
108
|
+
['--', '--use-color', '--runner=guard_test']
|
111
109
|
end
|
112
110
|
end
|
113
111
|
|
data/lib/guard/test/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rémy Coutable
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
version: '0'
|
103
103
|
requirements: []
|
104
104
|
rubyforge_project:
|
105
|
-
rubygems_version: 2.
|
105
|
+
rubygems_version: 2.1.10
|
106
106
|
signing_key:
|
107
107
|
specification_version: 4
|
108
108
|
summary: Guard plugin for Test::Unit 2
|