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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bdb2e3b66a01369dafdcea12d102a51a9e546fa6
4
- data.tar.gz: 99fd11eb835c764f3cf159e70a36b78bb178d22e
3
+ metadata.gz: da5c724dcf01d1b47ac003f87b264fec93fc46ae
4
+ data.tar.gz: 50221012a73e26596447f417ecbca38309b698f1
5
5
  SHA512:
6
- metadata.gz: ee3b89158a41b3b9e75cd18d6b173f7c14039daa39f7c12dbb71ddafdc4c78f82737a193f3d7db208b62913b84643d4c588a71da1e8ac556ca283b9c6a32dd15
7
- data.tar.gz: bdb1533c84833c82ebed3fbc503795782c7e8e7447826091d5a3f5ca7a171b6947ed0250762fadacfaab96946f1bfde62449275e094d57715e5742919757d1cd
6
+ metadata.gz: 4b995fbbdf438776950270fb07821e10cf41489304a1f5953051772454d556b2822cd9ce95a49060ebe7650fbe6735e6b92be2f3902394622387c55c60e0abdf
7
+ data.tar.gz: e83411bc74faee607e4be3f79761577c7757c3c913e46c03a42092ab23d44036a7cdb276c61a6cebc9ceb1013d8662c4f2885cb6e34678f40c412bc75b7d722e
@@ -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 'spring testunit'
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
 
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module TestVersion
3
- VERSION = '2.0.4'
3
+ VERSION = '2.0.5'
4
4
  end
5
5
  end
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
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-01-15 00:00:00.000000000 Z
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.0
105
+ rubygems_version: 2.2.2
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: Guard plugin for Test::Unit 2