parallelized_specs 0.3.24 → 0.3.25

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.
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.3.24"
15
+ gem.version = "0.3.25"
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
18
18
  rescue LoadError
@@ -265,16 +265,17 @@ class ParallelizedSpecs
265
265
 
266
266
  def self.rerun()
267
267
  rerun_failed_examples = false
268
+ filename = "tmp/parallel_log/rspec.failures"
268
269
 
269
- if FileTest.exist?("#{RAILS_ROOT}/tmp/parallel_log/rspec.failures")
270
- @error_count = %x{wc -l "#{FILENAME}"}.match(/\d/).to_s #counts the number of lines in the file
270
+ if FileTest.exist?("#{RAILS_ROOT}/#{filename}")
271
+ @error_count = %x{wc -l "#{RAILS_ROOT}/#{filename}"}.match(/\d/).to_s #counts the number of lines in the file
271
272
 
272
273
  if @error_count.to_i > 1 && @error_count.to_i < 10
273
274
  puts "rerunning #{@error_count} examples again"
274
275
  @rerun_failures ||= []
275
276
  @rerun_passes ||= []
276
277
 
277
- File.open("#{FILENAME}").each_line do |l|
278
+ File.open("#{RAILS_ROOT}/#{FILENAME}").each_line do |l|
278
279
  rerun_failed_examples = true
279
280
  puts "#{l} will be ran and marked as a success if it passes"
280
281
  result = %x[bundle exec rake spec #{l}]
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "parallelized_specs"
8
- s.version = "0.3.24"
8
+ s.version = "0.3.25"
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"]
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: 35
4
+ hash: 33
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 24
10
- version: 0.3.24
9
+ - 25
10
+ version: 0.3.25
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jake Sorce, Bryan Madsen, Shawn Meredith