ci-helper 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/lib/ci_helper/commands/check_coverage.rb +6 -0
- data/lib/ci_helper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01b88f245129abe666d9e52f64a749f4f8a03cd831f2896cd76bb55447d6deac
|
4
|
+
data.tar.gz: c26bf42cfa1630fb7bc8926c187b4a4b19d7b16efdc584aeea087bcee8016bc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93c3507199dacbd55ce9d2f3076117df7005f3bacee604c3a1fe14521f47b0194acf5fe5c778c5159221a3e0c856dfcfb062a200f49c2206147e550186cb5663
|
7
|
+
data.tar.gz: e3257ec1a7df016bbbe195a9ae9b9cde553745041995b8588999f6cab26ae01f53b0f9e278a5f0912bb559ffed0010d29b90d829036649b072f845ec24a9c513
|
data/README.md
CHANGED
@@ -63,12 +63,13 @@ List of available commands:
|
|
63
63
|
* `--ignored-paths [values]` - accepts path patterns that should be ignored,
|
64
64
|
delimited by coma.
|
65
65
|
* **CheckCoverage** — checks coverage by executing `SimpleCov::collate`.
|
66
|
-
|
67
|
-
Accepted flags: `--split-resultset`.
|
66
|
+
Accepted flags: `--split-resultset`, `--setup-file-path`.
|
68
67
|
* `--split-resultset` — if you execute command `RunSpecs` with `--split-resultset true`,
|
69
68
|
you also should set this flag to `true`. If this flag set to `true`, final coverage will be
|
70
69
|
calculated by merging results in all files, matching the mask `coverage/resultset.*.json`.
|
71
70
|
By default final coverage is calculated using result from `coverage/.resultset.json`.
|
71
|
+
* `--setup-file-path` — relative path to your `.rb` file, which setups `SimpleCov`.
|
72
|
+
Usually it is `spec_helper.rb`.
|
72
73
|
|
73
74
|
### Rake Tasks
|
74
75
|
|
@@ -6,6 +6,8 @@ module CIHelper
|
|
6
6
|
module Commands
|
7
7
|
class CheckCoverage < BaseCommand
|
8
8
|
def call
|
9
|
+
require(path.join(setup_file_path)) unless setup_file_path.nil?
|
10
|
+
|
9
11
|
::SimpleCov.collate(files)
|
10
12
|
0
|
11
13
|
end
|
@@ -21,6 +23,10 @@ module CIHelper
|
|
21
23
|
def split_resultset?
|
22
24
|
options[:split_resultset] == "true"
|
23
25
|
end
|
26
|
+
|
27
|
+
def setup_file_path
|
28
|
+
options[:setup_file_path]
|
29
|
+
end
|
24
30
|
end
|
25
31
|
end
|
26
32
|
end
|
data/lib/ci_helper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ci-helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JustAnotherDude
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|