parallelized_specs 0.3.66 → 0.3.67

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.66"
15
+ gem.version = "0.3.67"
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
18
18
  rescue LoadError
@@ -22,14 +22,10 @@ module RSpec
22
22
  def dump_summary(duration, example_count, failure_count, pending_count)
23
23
  env_test_number = ENV['TEST_ENV_NUMBER']
24
24
  env_test_number = 1 if ENV['TEST_ENV_NUMBER'].blank?
25
- before_example_count = File.open("tmp/parallel_log/spec_count/total_specs#{env_test_number}.txt", &:readline).to_s
26
-
27
- all_specs_ran = true if before_spec_count == example_count
28
- puts "thread #{env_test_number} ran #{before_example_count} examples expected #{example_count} examples"
29
-
30
- File.delete("tmp/parallel_log/spec_count/total_specs#{env_test_number}.txt") if all_specs_ran
31
-
32
- failure_count > 0 ? (File.open("tmp/parallel_log/failed_specs/failed_specs#{env_test_number}.txt", 'a+') { |f| f.write(failure_count) }) : (puts "All specs in Thread #{env_test_number} passed")
25
+ file = "tmp/parallel_log/spec_count/total_specs#{env_test_number}.txt"
26
+ before_example_count = File.open(file, &:readline).to_s
27
+ File.delete(file) if before_example_count == example_count
28
+ failure_count > 0 ? (File.open(file, 'a+') { |f| f.write(failure_count) }) : (puts "All specs in Thread #{env_test_number} passed")
33
29
  puts "Thread #{env_test_number} has completed"
34
30
  end
35
31
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "parallelized_specs"
8
- s.version = "0.3.66"
8
+ s.version = "0.3.67"
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: 151
4
+ hash: 149
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 66
10
- version: 0.3.66
9
+ - 67
10
+ version: 0.3.67
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jake Sorce, Bryan Madsen, Shawn Meredith