prspec 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/prspec.rb +11 -6
  2. metadata +15 -10
  3. checksums.yaml +0 -15
data/lib/prspec.rb CHANGED
@@ -265,8 +265,8 @@ class PRSpec
265
265
  $log.debug "Thread#{proc.id}: alive..."
266
266
  else
267
267
  $log.debug "Thread#{proc.id}: done."
268
- puts proc.output unless options[:quiet_mode]
269
- proc.output = '' unless options[:quiet_mode] # prevent outputting same content multiple times
268
+ # puts proc.output unless options[:quiet_mode]
269
+ # proc.output = '' unless options[:quiet_mode] # prevent outputting same content multiple times
270
270
  end
271
271
  end
272
272
  if (continue)
@@ -323,12 +323,17 @@ class PRSpecThread
323
323
  Thread.current[:id] = @id
324
324
  Dir::chdir @args[:dir] do # change directory for process execution
325
325
  begin
326
- pid = Process.spawn(cmd, :out=>@out, :err=>@err) # capture both sdtout and stderr in the same pipe
326
+ pid = nil
327
+ if (@args[:quiet_mode])
328
+ pid = Process.spawn(cmd, :out=>@out, :err=>@err) # capture both sdtout and stderr in the same pipe
329
+ else
330
+ pid = Process.spawn(cmd)
331
+ end
327
332
  Process.wait(pid)
328
- @output = File.readlines(@out).join("\n")
333
+ @output = File.readlines(@out).join("\n") if @args[:quiet_mode]
329
334
  rescue
330
- error = "ErrorCode: #{$?.errorcode}; ErrorOutput: "+File.readlines(@err).join("\n")
331
- $log.error "Something bad happened while executing thread#{@id}: #{error}"
335
+ error = "ErrorCode: #{$?.errorcode}; ErrorOutput: "+File.readlines(@err).join("\n") if @args[:quiet_mode]
336
+ $log.error "Something bad happened while executing thread#{@id}: #{error}" if @args[:quiet_mode]
332
337
  end
333
338
  close
334
339
  end
metadata CHANGED
@@ -1,41 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Jason Holt Smith
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-03-08 00:00:00.000000000 Z
12
+ date: 2014-03-15 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: log4r
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: 1.1.10
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: 1.1.10
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: parallel
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - '='
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: 1.0.0
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - '='
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: 1.0.0
41
46
  description: Allows for simple parallel execution of rspec tests.
@@ -50,26 +55,26 @@ files:
50
55
  homepage: https://github.com/bicarbon8/prspec.git
51
56
  licenses:
52
57
  - MIT
53
- metadata: {}
54
58
  post_install_message:
55
59
  rdoc_options: []
56
60
  require_paths:
57
61
  - lib
58
62
  required_ruby_version: !ruby/object:Gem::Requirement
63
+ none: false
59
64
  requirements:
60
65
  - - ! '>='
61
66
  - !ruby/object:Gem::Version
62
67
  version: '0'
63
68
  required_rubygems_version: !ruby/object:Gem::Requirement
69
+ none: false
64
70
  requirements:
65
71
  - - ! '>='
66
72
  - !ruby/object:Gem::Version
67
73
  version: '0'
68
74
  requirements: []
69
75
  rubyforge_project:
70
- rubygems_version: 2.2.1
76
+ rubygems_version: 1.8.28
71
77
  signing_key:
72
- specification_version: 4
78
+ specification_version: 3
73
79
  summary: Parallel rspec execution
74
80
  test_files: []
75
- has_rdoc:
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YzJiMzljMjRiMDc4MDZhYzhmYWZmMWM0NWMzM2RjZDU3MDhiYTdlYw==
5
- data.tar.gz: !binary |-
6
- ZjhiODdhMTNlNWVhOGQzMTM1ZGI3MjNhYTJkMzQ3NDYyZTRkYTcyOA==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- NThiMGE2YThiZDk2M2FiMjQ1YTcxMzZmMTJlZWM4MTk4Y2Q4ZGE3YTE0ODA3
10
- ZDdhMDdkOGUyMGU3ZDgzZWRlYzQyZjA4OWU3NWJlYzI2NWQwOWM5NmZjY2Ri
11
- MWIxZmEwY2E0Mzg1ZTcwMzllYzU4NTRhYWIwNjQxN2YzOTUxZTk=
12
- data.tar.gz: !binary |-
13
- MjJjMTllMGYxZmE0NThmYjU2NjQ5YjJjNTgyZDExNzgxNWFmODY2MTA5MjEy
14
- NzA0NjA0NjhhYmEyNzRjYzQ5YzgwYjNiMmNlYWE3ZDE1MzA5ZjgyYTEyYTk0
15
- ODI3ZmMwMjNiMDdjZGE3YmRlYWJmYjg5MDJjZTlhNTI3Yjc2Y2U=