bashcov 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc1ae5949f8031caba0793e0529cc4c4b4f6234061283d9094255857a63fc8d1
4
- data.tar.gz: d4423c15129a25abf041b2c4534f08b0073a7eb146eb1ccfb0e13af3c08bd0dd
3
+ metadata.gz: 8231d6219cf75be371db48df2d4d14f9db58401bc2636432a4b7352163bde782
4
+ data.tar.gz: 63f184fb4d8c15008d74d0b5c466cabfc3c0bde5b6f5527a1a92727b4f373f39
5
5
  SHA512:
6
- metadata.gz: a032b39c42880b459b7311c103ba0f53e2074e94602f58e4363545c3f7d7700aeb7df9edaf34431ff03f4e881ffdf8d49b5a471103745e158d00d8207d4acdb2
7
- data.tar.gz: 57c5ce619ecdefb2bf0e4b64f04746f2f98cdd54e3778df837afebf8466447a05b127e116ac31f885df8ff912c78ad9ef18c704fa9120711d860f62e7dfd7a0d
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...master))
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\w+\(\)/ # function declared without the `function` keyword
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
@@ -3,5 +3,5 @@
3
3
  # :nodoc:
4
4
  module Bashcov
5
5
  # Current Bashcov version
6
- VERSION = "3.0.1"
6
+ VERSION = "3.0.2"
7
7
  end
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? ? " as root user (NOT recommended)" : nil),
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.1
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-15 00:00:00.000000000 Z
11
+ date: 2023-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simplecov