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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f7a8a7c155fad81c5018015053083c015dbadfec694178e3f5ca40bc2811e93
4
- data.tar.gz: 9adb13322f197aae9963ae90701ff24ed40f9b2473c9410f687c481592dbe387
3
+ metadata.gz: a36bdcb7d7aa907185855227615d085b989fdc7754f4bd5ebdb7d65736db3ff7
4
+ data.tar.gz: 2bf28ebe2354264a91c926516584c091f008e5e11404d4b774c97dc01b3f8993
5
5
  SHA512:
6
- metadata.gz: '079bfd802290a486b23cce687c2ee0f5a8f255a82bc1f604b426aa469828009b110aa431ae85d8570c3ccc013d6eb948cbcb0b8a0e3a01f5f94c01dea8edf449'
7
- data.tar.gz: a931f8ba4a96ce8b92f4b977b48e2ee34c3b125b5ecebb2f78662f6f133559814ea748ac4c0ea60d57650239080588fc521098b8c2a260adf9f40e8bde156b4d
6
+ metadata.gz: fe32c995469459ad86f25991772b081613bb645a323fb279a5f2be9ffeb4ec6ced9601c07552654f28bfbd456473a23d04fc46741d7d0623dacde516956b05c7
7
+ data.tar.gz: 4aca021b938322c850bfa17e63b542ff3acc0e8a22194d77b0cc527d26901d99b318a440a43041c6e47a4977eaf551be8b2d146f0b9a4a4f79781171140a94d2
@@ -1,7 +1,11 @@
1
- ## Unreleased ([changes](https://github.com/infertux/bashcov/compare/v1.8.1...master))
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- # gem 'simplecov', path: '../simplecov'
5
+ # gem "simplecov", path: "../simplecov"
6
6
 
7
7
  gemspec
@@ -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", "~> 0.15"
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"
@@ -41,7 +41,7 @@ module Bashcov
41
41
  # heredoc
42
42
  mark_multiline(
43
43
  lines, lineno,
44
- /\A[^\n]+<<-?'?(\w+)'?\s*$.*\1/m
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]
@@ -3,5 +3,5 @@
3
3
  # :nodoc:
4
4
  module Bashcov
5
5
  # Current Bashcov version
6
- VERSION = "1.8.1"
6
+ VERSION = "1.8.2"
7
7
  end
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.1
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-01 00:00:00.000000000 Z
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: '0.15'
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: '0.15'
26
+ version: 0.15.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aruba
29
29
  requirement: !ruby/object:Gem::Requirement