parallelized_specs 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -12,9 +12,8 @@ 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.2.4"
15
+ gem.version = "0.2.5"
16
16
  end
17
-
18
17
  Jeweler::GemcutterTasks.new
19
18
  rescue LoadError
20
19
  puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install jeweler"
@@ -4,11 +4,13 @@ class ParallelizedSpecs::ExampleRerunFailuresLogger < ParallelizedSpecs::SpecLog
4
4
 
5
5
  def example_failed(example, *args)
6
6
  if RSPEC_1
7
- unless !!self.example_group.nested_descriptions.to_s.match(/shared/) || !!self.instance_variable_get(:@example_group).examples.last.location.match(/helper/)
8
- @failed_examples ||= []
9
- @failed_examples << "#{example.location.match(/spec.*\d/).to_s} "
7
+ if example.location != nil
8
+ unless !!self.example_group.nested_descriptions.to_s.match(/shared/) || !!self.instance_variable_get(:@example_group).examples.last.location.match(/helper/)
9
+ @failed_examples ||= []
10
+ @failed_examples << "#{example.location.match(/spec.*\d/).to_s} "
11
+ end
10
12
  end
11
- else
13
+ else
12
14
  super
13
15
  end
14
16
  end
@@ -4,16 +4,17 @@ class ParallelizedSpecs::SharedExampleRerunFailuresLogger < ParallelizedSpecs::S
4
4
 
5
5
  def example_failed(example, *args)
6
6
  if RSPEC_1
7
- @failed_shared_examples ||= {}
8
- spec_caller = self.example_group.backtrace.match(/spec.*\d/).to_s #regex later to get right relative path
9
- failed_shared_spec = example.location.match(/spec.*\d/).to_s
10
-
11
- if !!self.example_group.nested_descriptions.to_s.match(/shared/) || !!self.instance_variable_get(:@example_group).examples.last.location.match(/helper/)
12
- if spec_caller == @failed_shared_examples.keys.last || spec_caller == @failed_shared_examples.keys.first || !!spec_caller.match(/helper/)
13
- key = @failed_shared_examples.keys.first
14
- @failed_shared_examples[key] << "#{failed_shared_spec} "
15
- else
16
- @failed_shared_examples["#{spec_caller}"] = ["#{failed_shared_spec} "]
7
+ if example.location != nil
8
+ @failed_shared_examples ||= {}
9
+ spec_caller = self.example_group.backtrace.match(/spec.*\d/).to_s #regex later to get right relative path
10
+ failed_shared_spec = example.location.match(/spec.*\d/).to_s
11
+ if !!self.example_group.nested_descriptions.to_s.match(/shared/) || !!self.instance_variable_get(:@example_group).examples.last.location.match(/helper/)
12
+ if spec_caller == @failed_shared_examples.keys.last || spec_caller == @failed_shared_examples.keys.first || !!spec_caller.match(/helper/)
13
+ key = @failed_shared_examples.keys.first
14
+ @failed_shared_examples[key] << "#{failed_shared_spec} "
15
+ else
16
+ @failed_shared_examples["#{spec_caller}"] = ["#{failed_shared_spec} "]
17
+ end
17
18
  end
18
19
  end
19
20
  else
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "parallelized_specs"
8
- s.version = "0.2.4"
8
+ s.version = "0.2.5"
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 = "2012-09-27"
12
+ s.date = "2012-09-28"
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: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 4
10
- version: 0.2.4
9
+ - 5
10
+ version: 0.2.5
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: 2012-09-27 00:00:00 Z
18
+ date: 2012-09-28 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: parallel