semaphore_cucumber_booster_config 1.4.1 → 1.4.2

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: 53e1c52e43f754450509de62f2801976a94ac5d8
4
- data.tar.gz: 70d888a951b8cce82dd3f112c84707e503f74790
3
+ metadata.gz: d7b1bd2ba271d3f4d92d7819e796ef440c311cb9
4
+ data.tar.gz: db7e0c303076f2ad732585feb44cfb9b13bb93b2
5
5
  SHA512:
6
- metadata.gz: 0386a594882a753dd6f783d4677d0feca71b2012f3206a812b7221710a821def6930ea6b3ce1b84f24d466f53d3388f3da094c7ef71886b8de94374403e84f18
7
- data.tar.gz: de99d75b911e32ba84377de80642fae93b4ca0269bcd4c0b89f75cede7c89f9ae3ea80a876f0d792c1138d37830d1b237511ec281c51ac84db0c25983ed7e124
6
+ metadata.gz: f82d5ee3131c858147d34ce2ca4e242dfa9ef33f44e018777582c98168ff1593f8c6ecf8c81dd65734d608432b1eb2ee0169d28af773435ff239691fd483c63a
7
+ data.tar.gz: b32f41e453e1c390402c9f5645adb2c78d195e6b4d7b409c16675ccad8002d922315679e0eb10867687a30325f5d67613b93a34f7e07afaa64425c10d446ab03
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Rendered Text
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -3,8 +3,11 @@
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
4
  [![Gem Version](https://badge.fury.io/rb/semaphore_cucumber_booster_config.svg)](https://badge.fury.io/rb/semaphore_cucumber_booster_config)
5
5
 
6
- Injects additional configuration for Cucumber so that it outputs JSON suitable
7
- for auto-parallelism without affecting stdout.
6
+ Injects additional configuration for Cucumber so that it outputs JSON report suitable
7
+ for estimation of the [split configuration](https://github.com/renderedtext/test-boosters#split-configuration) for the next build.
8
+
9
+ Cucumber Booster Config is primarily used as [Test Boosters gem](https://github.com/renderedtext/test-boosters) dependency.
10
+ Boosters help you with distribution of your test files across many parallel jobs and optimize your build time. Find out more about [Boosters](https://semaphoreci.com/docs/about-boosters.html).
8
11
 
9
12
  ## Installation
10
13
 
@@ -57,6 +60,8 @@ output_report_path = "/tmp/cucumber_report.json"
57
60
  CucumberBoosterConfig::Injection.new(current_path, output_report_path).run
58
61
  ```
59
62
 
63
+ This is how Test Boosters gem is using it to configure Cucumber.
64
+
60
65
  ## Development
61
66
 
62
67
  After checking out the repo, run `bin/setup` to install dependencies. Then, run
@@ -77,3 +82,7 @@ If version hasn't changed, Rubygems will simply ignore the update.
77
82
 
78
83
  Bug reports and pull requests are welcome on GitHub at
79
84
  https://github.com/renderedtext/cucumber_booster_config.
85
+
86
+ ## License
87
+
88
+ The gem is available as open source under the terms of the [MIT license](LICENSE).
@@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "thor", "~> 0.19.1"
21
+ spec.add_dependency "thor", [">= 0.19.1", "< 2.0"]
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.10"
24
- spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency "rake", "~> 12.3.3"
25
25
  spec.add_development_dependency "rspec"
26
26
  end
@@ -19,8 +19,11 @@ module CucumberBoosterConfig
19
19
  puts "---"
20
20
  end
21
21
 
22
- define_semaphore_profile(report_path)
23
- include_semaphore_profile
22
+
23
+ unless semaphore_profile_defined? && semaphore_profile_included?
24
+ define_semaphore_profile(report_path)
25
+ include_semaphore_profile
26
+ end
24
27
 
25
28
  if dry_run?
26
29
  puts "Content after:"
@@ -73,5 +76,13 @@ module CucumberBoosterConfig
73
76
  @new_lines << DEFAULT_PROFILE
74
77
  end
75
78
  end
79
+
80
+ def semaphore_profile_defined?
81
+ @original_lines.any? { |line| line.include?("semaphoreci:") }
82
+ end
83
+
84
+ def semaphore_profile_included?
85
+ @original_lines.any? { |line| line.include?("--profile semaphoreci") }
86
+ end
76
87
  end
77
88
  end
@@ -1,3 +1,3 @@
1
1
  module CucumberBoosterConfig
2
- VERSION = "1.4.1".freeze
2
+ VERSION = "1.4.2".freeze
3
3
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semaphore_cucumber_booster_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
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-07-25 00:00:00.000000000 Z
11
+ date: 2021-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.19.1
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: 0.19.1
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: bundler
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +50,14 @@ dependencies:
44
50
  requirements:
45
51
  - - "~>"
46
52
  - !ruby/object:Gem::Version
47
- version: '10.0'
53
+ version: 12.3.3
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
58
  - - "~>"
53
59
  - !ruby/object:Gem::Version
54
- version: '10.0'
60
+ version: 12.3.3
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: rspec
57
63
  requirement: !ruby/object:Gem::Requirement
@@ -78,6 +84,7 @@ files:
78
84
  - ".gitignore"
79
85
  - ".rspec"
80
86
  - Gemfile
87
+ - LICENSE
81
88
  - README.md
82
89
  - Rakefile
83
90
  - bin/console
@@ -108,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
115
  version: '0'
109
116
  requirements: []
110
117
  rubyforge_project:
111
- rubygems_version: 2.4.8
118
+ rubygems_version: 2.6.14
112
119
  signing_key:
113
120
  specification_version: 4
114
121
  summary: Cucumber configuration injection for autoparallelism.