parallelized_specs 0.4.39 → 0.4.40

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ begin
12
12
  gem.email = "jake@instructure.com"
13
13
  gem.homepage = "http://github.com/jakesorce/#{gem.name}"
14
14
  gem.authors = "Jake Sorce, Bryan Madsen, Shawn Meredith"
15
- gem.version = "0.4.39"
15
+ gem.version = "0.4.40"
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
18
18
  rescue LoadError
@@ -123,7 +123,7 @@ class ParallelizedSpecs
123
123
  if Dir.glob("#{RAILS_ROOT}/tmp/parallel_log/spec_count/{*,.*}").count == 2 && Dir.glob("#{RAILS_ROOT}/tmp/parallel_log/thread_started/{*,.*}").count == num_processes + 2
124
124
  (puts "INFO: All threads completed")
125
125
  elsif Dir.glob("#{RAILS_ROOT}/tmp/parallel_log/thread_started/{*,.*}").count != num_processes + 2
126
- File.open("#{RAILS_ROOT}/tmp/parallel_log/failure_cause.log", 'a+') { |f| f.write "Syntax errors" }
126
+ File.open("#{RAILS_ROOT}/tmpfailure_cause.log", 'a+') { |f| f.write "Syntax errors" }
127
127
  abort "SEVERE: one or more threads didn't get started by rspec, this may be caused by a syntax issue in specs, check logs right before specs start running"
128
128
  else
129
129
  threads = Dir["#{RAILS_ROOT}/tmp/parallel_log/spec_count/*"]
@@ -137,7 +137,7 @@ class ParallelizedSpecs
137
137
  puts IO.readlines("#{RAILS_ROOT}/tmp/parallel_log/thread_#{failed_thread}.log")[-1]
138
138
  end
139
139
  end
140
- File.open("#{RAILS_ROOT}/tmp/parallel_log/failure_cause.log", 'a+') { |f| f.write "rspec thread failed to complete" }
140
+ File.open("#{RAILS_ROOT}/tmp/failure_cause.log", 'a+') { |f| f.write "rspec thread failed to complete" }
141
141
  abort "SEVERE: One or more threads have failed to complete, this may be caused by a rspec runtime crashing prematurely" #works on both 1.8.7\1.9.3
142
142
  end
143
143
  #exit with correct status code so rake parallel:test && echo 123 works
@@ -481,6 +481,7 @@ class ParallelizedSpecs
481
481
  File.open(file).each_line do |line|
482
482
  spec_durations << line
483
483
  end
484
+
484
485
  File.open(file, 'w') { |f| f.truncate(0) }
485
486
  populate_slowest_specs(spec_durations, file)
486
487
  else
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "parallelized_specs"
8
- s.version = "0.4.39"
8
+ s.version = "0.4.40"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jake Sorce, Bryan Madsen, Shawn Meredith"]
12
- s.date = "2013-03-27"
12
+ s.date = "2013-03-29"
13
13
  s.email = "jake@instructure.com"
14
14
  s.files = [
15
15
  "Gemfile",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallelized_specs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 65
4
+ hash: 95
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 39
10
- version: 0.4.39
9
+ - 40
10
+ version: 0.4.40
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jake Sorce, Bryan Madsen, Shawn Meredith
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-03-27 00:00:00 Z
18
+ date: 2013-03-29 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: parallel