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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c6d18197be39429390ba420c6ef9e4641c4ed93
4
- data.tar.gz: ceca5a755c7bc93bd9a923e29131d7d88ee6949f
3
+ metadata.gz: 6f58e0e294bb9f59cb858747ace02e027237139f
4
+ data.tar.gz: 2ea1362c16ecc9c23f65db61fc74815c15a7ab25
5
5
  SHA512:
6
- metadata.gz: 7c701bec79783277faa199d5a85b120e49757f7c85d65371dacd9c2619662d686698c07667df82f19e413182d6414d79e4932f7746fe04651087c6f5f8d4362b
7
- data.tar.gz: 19c7d9661cf860b44e47a83d4aab2b70544776b1ef082baf1db24b156c30f5b19a8769bf30526ff32e64fdc856308e176672674460e6f156ebd5e275b3058487
6
+ metadata.gz: 42f71c93cf3caf50188232386238e97a5c2906ce63e23b86324298dbbbac24d393f67915adeeb49f3353c6dd6df241f21f672d2e7db27652c8e9fe539ee95d9a
7
+ data.tar.gz: 400669dc899d483dc0c011fc9dbf2b343d3bd5392164ddf0a48163ffc2e374dce822e6dcbacd1518707a028b8b9f68c33b512d35039f54f112ddbe5d6db83632
@@ -51,7 +51,7 @@ module Guard
51
51
  end
52
52
 
53
53
  def check_test_files(path)
54
- Dir[File.join(path, '**', 'test_*.rb')] +
54
+ Dir[File.join(path, '**', 'test_*.rb')] +
55
55
  Dir[File.join(path, '**', '*_test{s,}.rb')]
56
56
  end
57
57
  end
@@ -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
- parts
100
- end
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
- def test_files_list(paths)
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
 
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Guard
3
3
  module TestVersion
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
  end
6
6
  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.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-05 00:00:00.000000000 Z
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.0.7
105
+ rubygems_version: 2.1.10
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: Guard plugin for Test::Unit 2