semaphore_cucumber_booster_config 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b6b8d33fd48eb00a96b749acb32585a5bd05de1c
4
- data.tar.gz: 3baab4ab00648226e77fb3101cca6a0a6b0ed6e4
3
+ metadata.gz: ae3c3af9771c87034a44e51836988b5287d846e5
4
+ data.tar.gz: 4972f72142ac066d28a277ce085607ce06d87987
5
5
  SHA512:
6
- metadata.gz: 009a659093db987b2bca44e8f536d052b0ca8945d3c1bdc2afd8fd35d21842ce4afbb4ad9699c99a2836238a21505eff0d726b6ab5896377f364e1a2639384e8
7
- data.tar.gz: 545195e8bec821d38bb74fc6dc55a7cafe35e3ecb1d6c87a2092b74de55e32bcd26fec43bee837a5ed2fc006343c32f40420428ec2c7f67fac52fd3acff0da23
6
+ metadata.gz: abad5f2c6aa26eaaa0425be73c2397a03b7c32968f7bac7f6027fe923fc97f1569dff9eab0920964625031ce594bdbdb2d762850a4a3d3abf0d3c870b1595045
7
+ data.tar.gz: ca1062ed91c0a5d543ad0c6955d0fa35c3db5bbce674b4f5281028d76a79fb51aa15ea624cab912a1d519ea6015878dc68c655cb182fadba3d30d2695cc37443
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Cucumber Booster Config
2
2
 
3
3
  [![Build Status](https://semaphoreci.com/api/v1/projects/b5ad1293-4dd1-425d-8c00-b42ceca09c75/527737/badge.svg)](https://semaphoreci.com/renderedtext/cucumber_booster_config)
4
+ [![Gem Version](https://badge.fury.io/rb/semaphore_cucumber_booster_config.svg)](https://badge.fury.io/rb/semaphore_cucumber_booster_config)
4
5
 
5
6
  Injects additional configuration for Cucumber so that it outputs JSON suitable
6
7
  for auto-parallelism without affecting stdout.
@@ -29,6 +29,11 @@ module CucumberBoosterConfig
29
29
  end
30
30
 
31
31
  def run
32
+ if no_profile_files?
33
+ puts "No cucumber profile files found. Creating empty cucumber.yml file"
34
+ FileUtils.touch("cucumber.yml")
35
+ end
36
+
32
37
  find_profile_files.each do |path|
33
38
  CucumberFile.new(path, @dry_run).configure_for_autoparallelism(@report_path)
34
39
  end
@@ -36,6 +41,10 @@ module CucumberBoosterConfig
36
41
 
37
42
  private
38
43
 
44
+ def no_profile_files?
45
+ find_profile_files.empty?
46
+ end
47
+
39
48
  def cucumber_file_path(file_name)
40
49
  File.join(@path, file_name)
41
50
  end
@@ -1,3 +1,3 @@
1
1
  module CucumberBoosterConfig
2
- VERSION = "1.3.0".freeze
2
+ VERSION = "1.4.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semaphore_cucumber_booster_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marko Anastasov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-19 00:00:00.000000000 Z
11
+ date: 2017-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor