parallel_tests 0.16.2 → 0.16.3

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: 5a0ef227d19c8ce419f36311753bb866f9f38d5d
4
- data.tar.gz: eaa72a97efd1868944a4208da8c7494a5752a7a7
3
+ metadata.gz: 483fe80b7a68cc0f89853183082d652d9a0d4592
4
+ data.tar.gz: 233b2a01c1f68b53e00a8e0b60c2a728c62aa98c
5
5
  SHA512:
6
- metadata.gz: 9268291358420de174a459a3877c37d6ea97d22c38738db425b9c9df87b58055f55ef642e5e62211a71b4192ee6fef1c56a7b7237874b8b9e0b5185f17a2fa94
7
- data.tar.gz: bab1d2983b4957866ecec8d19add123f2cc97e1925fa46b3cf257fc1a6f48498538b16d16791678f72f42c997e4feb5bca33ba480b107c44da5b133a6ab8c3ba
6
+ metadata.gz: d546de76b8543b631efbac1feec87a799e025c7f38685b101d5e7ed9cde3d71ec17d13fd0649f35f7a82df35a2af0bb1376cc16ed8e5e128aab792358345900b
7
+ data.tar.gz: 0e71947a9e6a4f0fde5a44fa873bcdb5dadc577bdad83eed429ea526043c99332ab7de9b26e0d0bac63660b359a54d45305e46dd49b229aa55ad31d6c53e41dc
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- parallel_tests (0.16.2)
4
+ parallel_tests (0.16.3)
5
5
  parallel
6
6
 
7
7
  GEM
data/Readme.md CHANGED
@@ -290,6 +290,7 @@ inspired by [pivotal labs](http://pivotallabs.com/users/miked/blog/articles/849-
290
290
  - [Exoth](https://github.com/Exoth)
291
291
  - [sidfarkus](https://github.com/sidfarkus)
292
292
  - [Colin Harris](https://github.com/aberant)
293
+ - [Wataru MIYAGUNI](https://github.com/gongo)
293
294
 
294
295
  [Michael Grosser](http://grosser.it)<br/>
295
296
  michael@grosser.it<br/>
@@ -8,7 +8,7 @@ module ParallelTests
8
8
  end
9
9
 
10
10
  def run_in_parallel(cmd, options={})
11
- count = " -n #{options[:count]}" if options[:count]
11
+ count = " -n #{options[:count]}" unless options[:count].to_s.empty?
12
12
  executable = File.expand_path("../../../bin/parallel_test", __FILE__)
13
13
  command = "#{executable} --exec '#{cmd}'#{count}#{' --non-parallel' if options[:non_parallel]}"
14
14
  abort unless system(command)
@@ -1,3 +1,3 @@
1
1
  module ParallelTests
2
- VERSION = Version = '0.16.2'
2
+ VERSION = Version = '0.16.3'
3
3
  end
@@ -48,7 +48,7 @@ describe ParallelTests::Tasks do
48
48
  describe ".run_in_parallel" do
49
49
  let(:full_path){ File.expand_path("../../../bin/parallel_test", __FILE__) }
50
50
 
51
- it "should have the executable" do
51
+ it "has the executable" do
52
52
  File.file?(full_path).should == true
53
53
  File.executable?(full_path).should == true
54
54
  end
@@ -63,6 +63,11 @@ describe ParallelTests::Tasks do
63
63
  ParallelTests::Tasks.run_in_parallel("echo", :count => 123)
64
64
  end
65
65
 
66
+ it "runs without -n with blank :count option" do
67
+ ParallelTests::Tasks.should_receive(:system).with("#{full_path} --exec 'echo'").and_return true
68
+ ParallelTests::Tasks.run_in_parallel("echo", :count => "")
69
+ end
70
+
66
71
  it "runs command with :non_parallel option" do
67
72
  ParallelTests::Tasks.should_receive(:system).with("#{full_path} --exec 'echo' --non-parallel").and_return true
68
73
  ParallelTests::Tasks.run_in_parallel("echo", :non_parallel => true)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.2
4
+ version: 0.16.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-19 00:00:00.000000000 Z
11
+ date: 2013-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel