single_cov 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/single_cov/version.rb +1 -1
- data/lib/single_cov.rb +3 -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: db040981049890225a79a6a8fa56ef8cc32a09b1d64a6f2139b0a39df5d50d56
|
4
|
+
data.tar.gz: 29f47c8a26b0f1a59cfb580247a8919e0192953bd8173a7a54c745b7398edfbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 487db3f37ec46c3b0d0b53fb5be2de2dff18077276b91a0fd11093e7f21d0844ef9f33e10ccbda05ed92579d60b96e6ae4b498a9fa26abd0b75bdd509e736285
|
7
|
+
data.tar.gz: 4cf118a2d5bfed4cfa7bc357057ed0264b0db62b389e290c79445bbda78272eb377a8a14f16f1b6c3ab10d6a37db99a3e0fcfde11625b02862906108d0e9c573
|
data/lib/single_cov/version.rb
CHANGED
data/lib/single_cov.rb
CHANGED
@@ -32,7 +32,9 @@ module SingleCov
|
|
32
32
|
next if uncovered.size == expected_uncovered
|
33
33
|
|
34
34
|
# branches are unsorted and added to the end, only sort when necessary
|
35
|
-
|
35
|
+
if branch_coverage
|
36
|
+
uncovered.sort_by! { |line_start, char_start, line_end, char_end| [line_start, char_start || 0] }
|
37
|
+
end
|
36
38
|
|
37
39
|
uncovered.map! do |line_start, char_start, line_end, char_end|
|
38
40
|
char_start ? "#{file}:#{line_start}:#{char_start}-#{line_end}:#{char_end}" : "#{file}:#{line_start}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: single_cov
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: michael@grosser.it
|