test-queue-split 0.3.1 → 0.3.2

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: 315354c9be9f0163f0d141c09ebe15cc08467f82
4
- data.tar.gz: 191faea465d81e9d4ab98c2ccfde23def6e38737
3
+ metadata.gz: ad6718915a34e8f2c707df24adb4530996774fe0
4
+ data.tar.gz: a20c4378867fe106a9bfc359184350bc21b560c4
5
5
  SHA512:
6
- metadata.gz: 9e1ffe986863d5e35f2f140372d35e90811214fa65943bf57988c9de7027535af0f7e9ca253bcbeac44c852f5ac41c55abecaaf9897faa41cbe151eb1ae9bbb1
7
- data.tar.gz: 90a21f0a5fea1dd139bcb5c444bfe6d373c756302bf7f7a7d77c497907b28457baad3599e36876e566231fa6e321777b01d872438eeae2635a89882748abb6c9
6
+ metadata.gz: 0255f2e9beaaacc0d0bdbb7a14d92496aad28403ce151be8709ade75a285bfbcd59a97c9da4170d6db6f45e9d03e9a4cf195ec847bee6689149ba05b67607810
7
+ data.tar.gz: 6908746944197da82a679a9d6e2b0af74ace68912fba88e077972d3a3b09dbe58705cfca6e3e085300c12577faf1425fa06aaa90d355bbcdc448144c956ec97b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- test-queue-split (0.3.1)
4
+ test-queue-split (0.3.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## test-queue
1
+ ## test-queue-split
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/test-queue-split.svg)](https://rubygems.org/gems/test-queue-split)
4
4
 
@@ -20,15 +20,22 @@ module TestQueue
20
20
  class Runner
21
21
  class Cucumber < Runner
22
22
  def initialize
23
- @cli = ::Cucumber::Cli::Main.new(ARGV.dup)
24
- @runtime = ::Cucumber::Runtime.new(@cli.configuration)
23
+ @cli = ::Cucumber::Cli::Main.new(ARGV.dup)
24
+ @runtime = ::Cucumber::Runtime.new(@cli.configuration)
25
25
  @features_loader = @runtime.send(:features)
26
- features = @features_loader.features.sort_by{ |s| -(stats[s.to_s] || 0) }
26
+
27
+ features = @features_loader.is_a?(Array) ? @features_loader : @features_loader.features
28
+ features = features.sort_by { |s| -(stats[s.to_s] || 0) }
27
29
  super(features)
28
30
  end
29
31
 
30
32
  def run_worker(iterator)
31
- @features_loader.features = iterator
33
+ if @features_loader.is_a?(Array)
34
+ @features_loader = iterator
35
+ else
36
+ @features_loader.features = iterator
37
+ end
38
+
32
39
  @cli.execute!(@runtime)
33
40
  end
34
41
 
@@ -37,8 +44,8 @@ module TestQueue
37
44
  stats[s.to_s] = val
38
45
  end
39
46
 
40
- output = worker.output.gsub(/\e\[\d+./,'')
41
- worker.summary = output.split("\n").grep(/^\d+ (scenarios?|steps?)/).first
47
+ output = worker.output.gsub(/\e\[\d+./, '')
48
+ worker.summary = output.split("\n").grep(/^\d+ (scenarios?|steps?)/).first
42
49
  worker.failure_output = output.scan(/^Failing Scenarios:\n(.*)\n\d+ scenarios?/m).join("\n")
43
50
  end
44
51
  end
@@ -1,4 +1,4 @@
1
1
  module TestQueue
2
- VERSION = '0.3.1' unless defined? ::TestQueue::VERSION
2
+ VERSION = '0.3.2' unless defined? ::TestQueue::VERSION
3
3
  DATE = '2015-08-31' unless defined? ::TestQueue::DATE
4
4
  end
@@ -1,3 +1,9 @@
1
+ #### v0.3.2 2015-08-31
2
+
3
+ - [82c09e3](https://github.com/sbonebrake/test-queue/commit/82c09e361dca5b1d23daa2f440c5b51503ddba75) Release 0.3.2
4
+ - [90bf4af](https://github.com/sbonebrake/test-queue/commit/90bf4af310da62a6ac5a46c1c8fb6f70207eca2d) Fix cucumber support
5
+
6
+
1
7
  #### v0.3.1 2015-08-31
2
8
 
3
9
  - [bc48cdc](https://github.com/sbonebrake/test-queue/commit/bc48cdc0aa36adaee2c499be2563fef9fc92cfe9) Release 0.3.1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-queue-split
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aman Gupta