bashcov 1.8.1 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/Gemfile +1 -1
- data/bashcov.gemspec +1 -1
- data/lib/bashcov/lexer.rb +4 -1
- data/lib/bashcov/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a36bdcb7d7aa907185855227615d085b989fdc7754f4bd5ebdb7d65736db3ff7
|
4
|
+
data.tar.gz: 2bf28ebe2354264a91c926516584c091f008e5e11404d4b774c97dc01b3f8993
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe32c995469459ad86f25991772b081613bb645a323fb279a5f2be9ffeb4ec6ced9601c07552654f28bfbd456473a23d04fc46741d7d0623dacde516956b05c7
|
7
|
+
data.tar.gz: 4aca021b938322c850bfa17e63b542ff3acc0e8a22194d77b0cc527d26901d99b318a440a43041c6e47a4977eaf551be8b2d146f0b9a4a4f79781171140a94d2
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,11 @@
|
|
1
|
-
## Unreleased ([changes](https://github.com/infertux/bashcov/compare/v1.8.
|
1
|
+
## Unreleased ([changes](https://github.com/infertux/bashcov/compare/v1.8.2...master))
|
2
2
|
|
3
3
|
* TBD
|
4
4
|
|
5
|
+
## v1.8.2, 2018-03-27 ([changes](https://github.com/infertux/bashcov/compare/v1.8.1...v1.8.2))
|
6
|
+
|
7
|
+
* [BUGFIX] Fix coverage for complex heredoc constructions (#32)
|
8
|
+
|
5
9
|
## v1.8.1, 2018-03-01 ([changes](https://github.com/infertux/bashcov/compare/v1.8.0...v1.8.1))
|
6
10
|
|
7
11
|
* [BUGFIX] Fix incorrect coverage for some multiline strings (#35)
|
data/Gemfile
CHANGED
data/bashcov.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
|
|
23
23
|
|
24
24
|
gem.required_ruby_version = ">= 2.3.0"
|
25
25
|
|
26
|
-
gem.add_dependency "simplecov", "
|
26
|
+
gem.add_dependency "simplecov", "0.15.1"
|
27
27
|
|
28
28
|
gem.add_development_dependency "aruba", "~> 0.14.3"
|
29
29
|
gem.add_development_dependency "coveralls"
|
data/lib/bashcov/lexer.rb
CHANGED
@@ -41,7 +41,7 @@ module Bashcov
|
|
41
41
|
# heredoc
|
42
42
|
mark_multiline(
|
43
43
|
lines, lineno,
|
44
|
-
/\A[^\n]+<<-?'?(\w+)'
|
44
|
+
/\A[^\n]+<<-?'?(\w+)'?.*$.*\1/m
|
45
45
|
)
|
46
46
|
|
47
47
|
# multiline string concatenated with backslashes
|
@@ -80,6 +80,9 @@ module Bashcov
|
|
80
80
|
range = (forward ? first.upto(last) : (last - 1).downto(first - 1))
|
81
81
|
reference_lineno = (forward ? first - 1 : last)
|
82
82
|
|
83
|
+
# don't seek backward if first line is already covered
|
84
|
+
return if !forward && @coverage[first]
|
85
|
+
|
83
86
|
range.each do |sub_lineno|
|
84
87
|
# mark related lines with the same coverage as the reference line
|
85
88
|
@coverage[sub_lineno] ||= @coverage[reference_lineno]
|
data/lib/bashcov/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bashcov
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cédric Félizard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simplecov
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.15.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.15.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: aruba
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|