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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e90a44b561fab085aee56146c75c9e233a053f2
4
- data.tar.gz: fee213704dc9f492d09ba8c443620dce366a2626
3
+ metadata.gz: 4cd1d692dde899db03bd2f824af156bb38b708fe
4
+ data.tar.gz: 7c9d58d739df030889c15203687a72a40a5f848f
5
5
  SHA512:
6
- metadata.gz: ed9ced1cb0a6450edf873c170a33df479defdf043e9e1b05a105551674208e990b8d5fa6a2cd799f7d7f26bf13dd23947dfa4e59e0254cf43bcd5443525769b9
7
- data.tar.gz: 4a86e76334fee6419befa5a688aafd2c2a1687f520f119cabbc18c0869fdd79e66191d5f4864c6e66215f10dde1d2a1037826685186f9aecfeb1c1f58756bd73
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.to_s << "-" << out_file
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["*-#{out_file}"].each do |file|
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
@@ -1,3 +1,3 @@
1
1
  module ParallelSplitTest
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel_split_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser