parallelized_specs 0.4.59 → 0.4.60
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/parallelized_specs.rb +5 -15
- data/parallelized_specs.gemspec +2 -2
- metadata +2 -2
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.
|
15
|
+
gem.version = "0.4.60"
|
16
16
|
end
|
17
17
|
Jeweler::GemcutterTasks.new
|
18
18
|
rescue LoadError
|
data/lib/parallelized_specs.rb
CHANGED
@@ -157,23 +157,12 @@ class ParallelizedSpecs
|
|
157
157
|
end
|
158
158
|
|
159
159
|
def self.formatter_directory_management(formatters)
|
160
|
-
FileUtils.mkdir_p('parallel_log') if !File.directory?('tmp/parallel_log')
|
161
160
|
begin
|
162
|
-
|
163
|
-
directory_cleanup_and_create(dir)
|
164
|
-
end
|
165
|
-
rescue SystemCallError
|
166
|
-
$stderr.print "directory management error " + $!
|
167
|
-
raise
|
168
|
-
end
|
169
|
-
end
|
170
|
-
|
171
|
-
def self.directory_cleanup_and_create(dir)
|
172
|
-
if File.directory?(dir)
|
173
|
-
`rm -rf #{dir} && mkdir #{dir}`
|
174
|
-
else
|
175
|
-
`mkdir #{dir}`
|
161
|
+
File.directory?('tmp/parallel_log') ? `rm -rf tmp/parallel_log && mkdir tmp/parallel_log` : FileUtils.mkdir_p('tmp/parallel_log')
|
176
162
|
end
|
163
|
+
rescue SystemCallError
|
164
|
+
$stderr.print "directory management error " + $!
|
165
|
+
raise
|
177
166
|
end
|
178
167
|
|
179
168
|
def self.rerun_initializer()
|
@@ -562,4 +551,5 @@ class ParallelizedSpecs
|
|
562
551
|
File.open(file, 'a+') { |f| f.puts slow_spec }
|
563
552
|
end
|
564
553
|
end
|
554
|
+
|
565
555
|
end
|
data/parallelized_specs.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "parallelized_specs"
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.60"
|
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-
|
12
|
+
s.date = "2013-08-20"
|
13
13
|
s.email = "jake@instructure.com"
|
14
14
|
s.files = [
|
15
15
|
"Gemfile",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallelized_specs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.60
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-08-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: parallel
|