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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a3609beaea3add57fcaf6627b214509e48913d1751eef0ef87b27b5d30933ab
4
- data.tar.gz: 0be1e0e77967f0b9f7d76be546eacce22c3b06f09aa1a3b0d163621c38bc4418
3
+ metadata.gz: 01b88f245129abe666d9e52f64a749f4f8a03cd831f2896cd76bb55447d6deac
4
+ data.tar.gz: c26bf42cfa1630fb7bc8926c187b4a4b19d7b16efdc584aeea087bcee8016bc0
5
5
  SHA512:
6
- metadata.gz: ccb2b6707629e1c670853009fb5363122213eee7eabc5b860a6130088a9f4b10b1a4bc9c18c8c50c40b78ace7a17b6b46e2da6a9fefe0e5edd0847ef7eb36e29
7
- data.tar.gz: b548c182c810cea40172b22762179a014b86ca075fa1be0b1328e22c5de4ad55a81dd3f58d9ff9babd840d3de22b39df625f38f34e5fe915417c78af2c3301f3
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
- You should set `SimpleCov::minimum_coverage` in your `spec_helper.rb` file.
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CIHelper
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
5
5
  end
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.1
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-09 00:00:00.000000000 Z
11
+ date: 2020-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize