bashcov 3.0.1 → 3.0.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/lib/bashcov/lexer.rb +1 -1
- data/lib/bashcov/version.rb +1 -1
- data/lib/bashcov.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: 8231d6219cf75be371db48df2d4d14f9db58401bc2636432a4b7352163bde782
|
4
|
+
data.tar.gz: 63f184fb4d8c15008d74d0b5c466cabfc3c0bde5b6f5527a1a92727b4f373f39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6217f58d4ad6eac425ba4dee9ae3144b4fdbd46d3f95bb5e63a02f67dd7d78f9442cae52879c0d73ad9b067fa873de5f3b0e6b331ab4a3edacbcd05f02de08c0
|
7
|
+
data.tar.gz: 621c56636e5b2594c36a6bdcc71d5445b520bd17b23c12a69352a21fb7cebbc7cf2fff4901927a6f58142235db69978fb47fa0583b381b0826d28c642a0ee391
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,11 @@
|
|
1
|
-
## Unreleased ([changes](https://github.com/infertux/bashcov/compare/v3.0.
|
1
|
+
## Unreleased ([changes](https://github.com/infertux/bashcov/compare/v3.0.2...master))
|
2
2
|
|
3
3
|
* TBD
|
4
4
|
|
5
|
+
## v3.0.2, 2023-04-18 ([changes](https://github.com/infertux/bashcov/compare/v3.0.1...v3.0.2))
|
6
|
+
|
7
|
+
* [BUGFIX] Match function names containing digits and colons
|
8
|
+
|
5
9
|
## v3.0.1, 2023-04-15 ([changes](https://github.com/infertux/bashcov/compare/v3.0.0...v3.0.1))
|
6
10
|
|
7
11
|
* [BUGFIX] Fix incorrect executables path in gemspec
|
data/lib/bashcov/lexer.rb
CHANGED
@@ -106,7 +106,7 @@ module Bashcov
|
|
106
106
|
line.start_with?(*IGNORE_START_WITH) ||
|
107
107
|
line.end_with?(*IGNORE_END_WITH)
|
108
108
|
|
109
|
-
relevant &= false if line =~ /\A
|
109
|
+
relevant &= false if line =~ /\A[a-zA-Z_][a-zA-Z0-9_:]*\(\)/ # function declared without the `function` keyword
|
110
110
|
relevant &= false if line =~ /\A[^)]+\)\Z/ # case statement selector, e.g. `--help)`
|
111
111
|
|
112
112
|
relevant
|
data/lib/bashcov/version.rb
CHANGED
data/lib/bashcov.rb
CHANGED
@@ -53,7 +53,7 @@ module Bashcov
|
|
53
53
|
"with Bash #{BASH_VERSION},",
|
54
54
|
"Ruby #{RUBY_VERSION},",
|
55
55
|
"and SimpleCov #{SimpleCov::VERSION}",
|
56
|
-
(Process.uid.zero? ? "
|
56
|
+
(Process.uid.zero? ? "as root user (NOT recommended)" : nil),
|
57
57
|
].compact.join(" ")
|
58
58
|
end
|
59
59
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bashcov
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.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: 2023-04-
|
11
|
+
date: 2023-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simplecov
|