guard-test 2.0.4 → 2.0.5
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/runner.rb +11 -2
- 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: da5c724dcf01d1b47ac003f87b264fec93fc46ae
|
4
|
+
data.tar.gz: 50221012a73e26596447f417ecbca38309b698f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b995fbbdf438776950270fb07821e10cf41489304a1f5953051772454d556b2822cd9ce95a49060ebe7650fbe6735e6b92be2f3902394622387c55c60e0abdf
|
7
|
+
data.tar.gz: e83411bc74faee607e4be3f79761577c7757c3c913e46c03a42092ab23d44036a7cdb276c61a6cebc9ceb1013d8662c4f2885cb6e34678f40c412bc75b7d722e
|
data/lib/guard/test/runner.rb
CHANGED
@@ -82,14 +82,23 @@ module Guard
|
|
82
82
|
parts << case true
|
83
83
|
when drb? then 'testdrb'
|
84
84
|
when zeus? then 'zeus test'
|
85
|
-
when spring? then
|
85
|
+
when spring? then spring_command
|
86
86
|
else 'ruby'; end
|
87
87
|
end
|
88
88
|
|
89
|
+
def spring_command
|
90
|
+
if Gem.loaded_specs["rails"] && Gem.loaded_specs["rails"].version < Gem::Version.create('4.0')
|
91
|
+
'spring testunit'
|
92
|
+
else
|
93
|
+
# rails > 4.0 supports passing a path to rake test
|
94
|
+
'spring rake test'
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
89
98
|
def includes_and_requires(paths)
|
90
99
|
parts = []
|
91
100
|
parts << Array(options[:include]).map { |path| "-I\"#{path}\"" } unless zeus? || spring?
|
92
|
-
parts << paths if zeus?
|
101
|
+
parts << paths if zeus? || spring?
|
93
102
|
parts << '-r bundler/setup' if bundler?
|
94
103
|
parts << '-r rubygems' if rubygems?
|
95
104
|
|
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.5
|
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: 2014-
|
11
|
+
date: 2014-07-02 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.2.
|
105
|
+
rubygems_version: 2.2.2
|
106
106
|
signing_key:
|
107
107
|
specification_version: 4
|
108
108
|
summary: Guard plugin for Test::Unit 2
|