parallelized_specs 0.2.99.01 → 0.3.01
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/parallelized_specs/trending_example_failures_logger.rb +2 -2
- data/parallelized_specs.gemspec +1 -1
- metadata +3 -4
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.
|
15
|
+
gem.version = "0.3.01"
|
16
16
|
end
|
17
17
|
Jeweler::GemcutterTasks.new
|
18
18
|
rescue LoadError
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.01
|
@@ -3,7 +3,7 @@ require 'parallelized_specs/spec_logger_base'
|
|
3
3
|
class ParallelizedSpecs::TrendingExampleFailures < ParallelizedSpecs::SpecLoggerBase
|
4
4
|
def initialize(*args)
|
5
5
|
@output ||= args[1] || args[0] # rspec 1 has output as second argument
|
6
|
-
@
|
6
|
+
@hudson_build_info = File.read("#{RAILS_ROOT}/spec/build_info.txt")
|
7
7
|
# need to handle clean up in hudson_build.sh
|
8
8
|
if String === @output # a path ?
|
9
9
|
FileUtils.mkdir_p(File.dirname(@output))
|
@@ -20,7 +20,7 @@ class ParallelizedSpecs::TrendingExampleFailures < ParallelizedSpecs::SpecLogger
|
|
20
20
|
if example.location != nil
|
21
21
|
@failed_examples ||= {}
|
22
22
|
#putting * between each output as a delimiter
|
23
|
-
@failed_examples["#{example.location.match(/spec.*\d/).to_s}*"] = ["#{example.description}*", "#{failure.header}*", "#{failure.exception.to_s.gsub(/\n/,"")}*", "#{failure.exception.backtrace.to_s.gsub(/\n/,"")}*", "#{Time.now.to_date}*", "#{@
|
23
|
+
@failed_examples["#{example.location.match(/spec.*\d/).to_s}*"] = ["#{example.description}*", "#{failure.header}*", "#{failure.exception.to_s.gsub(/\n/,"")}*", "#{failure.exception.backtrace.to_s.gsub(/\n/,"")}*", "#{Time.now.to_date}*", "#{@hudson_build_info}"]
|
24
24
|
end
|
25
25
|
else
|
26
26
|
super
|
data/parallelized_specs.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "parallelized_specs"
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.3.01"
|
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,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallelized_specs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
- 99
|
8
|
+
- 3
|
10
9
|
- 1
|
11
|
-
version: 0.
|
10
|
+
version: 0.3.01
|
12
11
|
platform: ruby
|
13
12
|
authors:
|
14
13
|
- Jake Sorce, Bryan Madsen, Shawn Meredith
|