parallelized_specs 0.4.27 → 0.4.28

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,27 +1,27 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- diff-lcs (1.1.3)
4
+ diff-lcs (1.2.1)
5
5
  git (1.2.5)
6
6
  jeweler (1.8.4)
7
7
  bundler (~> 1.0)
8
8
  git (>= 1.2.5)
9
9
  rake
10
10
  rdoc
11
- json (1.7.5)
12
- parallel (0.5.19)
13
- rake (0.9.2.2)
14
- rdoc (3.12)
11
+ json (1.7.7)
12
+ parallel (0.6.3)
13
+ rake (10.0.3)
14
+ rdoc (4.0.0)
15
15
  json (~> 1.4)
16
- rspec (2.11.0)
17
- rspec-core (~> 2.11.0)
18
- rspec-expectations (~> 2.11.0)
19
- rspec-mocks (~> 2.11.0)
20
- rspec-core (2.11.1)
21
- rspec-expectations (2.11.3)
22
- diff-lcs (~> 1.1.3)
23
- rspec-mocks (2.11.3)
24
- test-unit (2.5.2)
16
+ rspec (2.13.0)
17
+ rspec-core (~> 2.13.0)
18
+ rspec-expectations (~> 2.13.0)
19
+ rspec-mocks (~> 2.13.0)
20
+ rspec-core (2.13.1)
21
+ rspec-expectations (2.13.0)
22
+ diff-lcs (>= 1.1.3, < 2.0)
23
+ rspec-mocks (2.13.0)
24
+ test-unit (2.5.4)
25
25
 
26
26
  PLATFORMS
27
27
  ruby
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.27"
15
+ gem.version = "0.4.28"
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
18
18
  rescue LoadError
@@ -3,7 +3,7 @@ if defined?(Rails::Railtie)
3
3
  class ParallelizedSpecs
4
4
  class Railtie < ::Rails::Railtie
5
5
  rake_tasks do
6
- load File.expand_path("../tasks/parallelized_specs.rake", __FILE__)
6
+ load File.expand_path("../../tasks/parallelized_specs.rake", __FILE__)
7
7
  end
8
8
  end
9
9
  end
@@ -1,5 +1,4 @@
1
1
  require 'parallel'
2
- require 'parallel'
3
2
  raise "please ' gem install parallel '" if Gem::Version.new(Parallel::VERSION) < Gem::Version.new('0.4.2')
4
3
  require 'parallelized_specs/grouper'
5
4
  require 'parallelized_specs/railtie'
@@ -303,7 +302,8 @@ class ParallelizedSpecs
303
302
  #can't just use exit code, if specs fail to start it will pass or if a spec isn't found, and sometimes rspec 1 exit codes aren't right
304
303
  rerun_status = result.scan(/\d*[^\D]\d*/).to_a
305
304
  puts "INFO: this is the rerun_status\n#{rerun_status}"
306
- @examples = rerun_status[-2].to_i
305
+ example_index = rerun_status.length - 2
306
+ @examples = rerun_status[example_index].to_i
307
307
  @failures = rerun_status.last.to_i
308
308
  end
309
309
 
@@ -346,7 +346,7 @@ class ParallelizedSpecs
346
346
  abort "SEVERE: #{@error_count} errors, but the build failed, errors were not written to the file or there is something else wrong, marking build as a failure"
347
347
  when code == 6
348
348
  print_failures("#{RAILS_ROOT}/tmp/parallel_log/error.log")
349
- abort "SEVERE: #{@error_count} errors are to many to rerun, marking the build as a failure. Max errors defined for this build is #{@max_reruns}"
349
+ abort "SEVERE: #{@error_count} errors are to many to rerun, marking the build as a failure"
350
350
  when code == 7
351
351
  puts "#Total errors #{@error_count}"
352
352
  abort "SEVERE: unexpected error information, please check errors are being written to file correctly"
@@ -381,16 +381,15 @@ class ParallelizedSpecs
381
381
  @error_count = %x{wc -l "#{@filename}"}.match(/\d*[^\D]/).to_s #counts the number of lines in the file
382
382
  @error_count = @error_count.to_i
383
383
  puts "INFO: error count = #@error_count"
384
- ENV["RERUNS"] != nil ? @max_reruns = ENV["RERUNS"].to_i : @max_reruns = 9
385
384
 
386
- if !@error_count.between?(1, @max_reruns)
385
+ if !@error_count.between?(1, 9)
387
386
  puts "INFO: total errors are not in rerun eligibility range"
388
387
  case
389
388
  when @error_count == 0
390
389
  puts "INFO: 0 errors build being aborted"
391
390
  abort_reruns(5)
392
- when @error_count > @max_reruns
393
- puts "INFO: error count has exceeded maximum errors of #{@max_reruns}"
391
+ when @error_count > 9
392
+ puts "INFO: error count has exceeded maximum errors of 9"
394
393
  abort_reruns(6)
395
394
  else
396
395
  abort_reruns(7)
@@ -449,6 +448,7 @@ class ParallelizedSpecs
449
448
 
450
449
 
451
450
  def self.determine_rerun_outcome
451
+
452
452
  if @rerun_failures.count > 0
453
453
  abort_reruns(8)
454
454
  elsif @rerun_passes.count >= @error_count
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "parallelized_specs"
8
- s.version = "0.4.27"
8
+ s.version = "0.4.28"
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-15"
12
+ s.date = "2013-03-22"
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: 57
4
+ hash: 55
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 27
10
- version: 0.4.27
9
+ - 28
10
+ version: 0.4.28
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-15 00:00:00 Z
18
+ date: 2013-03-22 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: parallel