parallel_split_test 0.5.0 → 0.6.0
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.
- checksums.yaml +4 -4
- data/lib/parallel_split_test/command_line.rb +6 -2
- data/lib/parallel_split_test/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cd1d692dde899db03bd2f824af156bb38b708fe
|
4
|
+
data.tar.gz: 7c9d58d739df030889c15203687a72a40a5f848f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06c36c0c0acb25def7f2006472603a80b0849347f9173d68ce28d7c17d348ed7169405c1261016ed8fca50a5b0b528b4f00b61b123365ccd4ff395bd989d4af5
|
7
|
+
data.tar.gz: ed46c3d631cde68b6e0b15e9d7da79639ba14796823edceb82d2a40f10a4a9e86871ef8de244b5f5a4b2e4d22add15838d67c30bcfb0b2b5268243053e181c98
|
@@ -41,7 +41,7 @@ module ParallelSplitTest
|
|
41
41
|
|
42
42
|
# modify + reparse args to unify output
|
43
43
|
def modify_out_file_in_args(process_number)
|
44
|
-
@args[out_file_position] = process_number.
|
44
|
+
@args[out_file_position] = "#{out_file_basename}.#{process_number}#{File.extname(out_file)}"
|
45
45
|
@options = RSpec::Core::ConfigurationOptions.new(@args)
|
46
46
|
end
|
47
47
|
|
@@ -53,6 +53,10 @@ module ParallelSplitTest
|
|
53
53
|
@out_file ||= @args[out_file_position] if out_file_position
|
54
54
|
end
|
55
55
|
|
56
|
+
def out_file_basename
|
57
|
+
@out_file_basename ||= File.basename(out_file, File.extname(out_file))
|
58
|
+
end
|
59
|
+
|
56
60
|
def out_file_position
|
57
61
|
@out_file_position ||= begin
|
58
62
|
if out_position = @args.index { |i| ["-o", "--out"].include?(i) }
|
@@ -63,7 +67,7 @@ module ParallelSplitTest
|
|
63
67
|
|
64
68
|
def combine_out_files
|
65
69
|
File.open(out_file, "w") do |f|
|
66
|
-
Dir["
|
70
|
+
Dir["#{out_file_basename}.*#{File.extname(out_file)}"].each do |file|
|
67
71
|
f.write File.read(file)
|
68
72
|
File.delete(file)
|
69
73
|
end
|