bashcov 3.0.0 → 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: dffc7667dad0e51e2e47f4c4df861d52be6240aff021c7c7771c2e4f8219f862
4
- data.tar.gz: d720302f22dacf1ac91853301d65ac0a24ac3ff17415fa7fdb42fc1e6b906079
3
+ metadata.gz: 8231d6219cf75be371db48df2d4d14f9db58401bc2636432a4b7352163bde782
4
+ data.tar.gz: 63f184fb4d8c15008d74d0b5c466cabfc3c0bde5b6f5527a1a92727b4f373f39
5
5
  SHA512:
6
- metadata.gz: 284281285d8c60d800753fd0f4ff697d0a5e6faf246a64dfd1509f2cca4f3c6e0f5e91e417e76de2014937b91ada9fee4fcc266ad16dc8d1d106a3912cb6f524
7
- data.tar.gz: cf79ef6c4e814d112c1255fe9fc59956537b7ad830eda345063395f5c7676895efcdbf7ec899185563e50577df756afb929bf6cb71b9106daeeef93d330dd5a9
6
+ metadata.gz: 6217f58d4ad6eac425ba4dee9ae3144b4fdbd46d3f95bb5e63a02f67dd7d78f9442cae52879c0d73ad9b067fa873de5f3b0e6b331ab4a3edacbcd05f02de08c0
7
+ data.tar.gz: 621c56636e5b2594c36a6bdcc71d5445b520bd17b23c12a69352a21fb7cebbc7cf2fff4901927a6f58142235db69978fb47fa0583b381b0826d28c642a0ee391
data/CHANGELOG.md CHANGED
@@ -1,7 +1,15 @@
1
- ## Unreleased ([changes](https://github.com/infertux/bashcov/compare/v3.0.0...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
+
9
+ ## v3.0.1, 2023-04-15 ([changes](https://github.com/infertux/bashcov/compare/v3.0.0...v3.0.1))
10
+
11
+ * [BUGFIX] Fix incorrect executables path in gemspec
12
+
5
13
  ## v3.0.0, 2023-04-10 ([changes](https://github.com/infertux/bashcov/compare/v1.8.2...v3.0.0))
6
14
 
7
15
  * [MISC] New minimum Bash version supported is 4.3
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.0"
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.0
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cédric Félizard
8
8
  autorequire:
9
- bindir: exe
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
@@ -153,14 +153,12 @@ dependencies:
153
153
  description: Code coverage tool for Bash
154
154
  email:
155
155
  - cedric@felizard.fr
156
- executables: []
156
+ executables:
157
+ - bashcov
157
158
  extensions: []
158
159
  extra_rdoc_files: []
159
160
  files:
160
161
  - ".build.yml"
161
- - ".github/FUNDING.yml"
162
- - ".gitignore"
163
- - ".gitlab-ci.yml"
164
162
  - ".rspec"
165
163
  - ".rubocop.yml"
166
164
  - ".simplecov"
@@ -173,7 +171,6 @@ files:
173
171
  - Rakefile
174
172
  - TESTING.md
175
173
  - USAGE.md
176
- - bashcov.gemspec
177
174
  - bin/bashcov
178
175
  - lib/bashcov.rb
179
176
  - lib/bashcov/detective.rb
@@ -211,5 +208,5 @@ requirements: []
211
208
  rubygems_version: 3.4.10
212
209
  signing_key:
213
210
  specification_version: 4
214
- summary: ''
211
+ summary: Code coverage tool for Bash
215
212
  test_files: []
data/.github/FUNDING.yml DELETED
@@ -1,3 +0,0 @@
1
- github: infertux
2
- liberapay: infertux
3
- patreon: infertux
data/.gitignore DELETED
@@ -1,19 +0,0 @@
1
- *.swp
2
- *.gem
3
- *.rbc
4
- .bundle
5
- .config
6
- .yardoc
7
- .rbx/
8
- Gemfile.lock
9
- InstalledFiles
10
- _yardoc
11
- coverage
12
- doc/
13
- lib/bundler/man
14
- pkg
15
- rdoc
16
- spec/reports
17
- test/tmp
18
- test/version_tmp
19
- tmp
data/.gitlab-ci.yml DELETED
@@ -1,57 +0,0 @@
1
- # Official language image. Look for the different tagged releases at:
2
- # https://hub.docker.com/r/library/ruby/tags/
3
- image: ruby:latest
4
-
5
- before_script:
6
- - ruby -v
7
- - bundle install -j $(nproc)
8
- - ./spec/install_bash.sh
9
- - bash --version
10
- - id
11
- - env
12
-
13
- audit:
14
- script:
15
- - bundle exec rake bundle:audit:update
16
- - bundle exec rake bundle:audit:check
17
-
18
- build:
19
- script:
20
- - bundle exec rake build
21
- - bundle exec rake build:checksum
22
- - cat checksums/*
23
-
24
- cucumber:
25
- script: bundle exec rake cucumber
26
-
27
- # Current Bash versions can be found at https://git.savannah.gnu.org/cgit/bash.git
28
- rspec-bash-5.2:
29
- variables:
30
- INSTALL_BASH_VERSION: "5.2"
31
- script: bundle exec rake spec
32
-
33
- rspec-bash-5.1:
34
- variables:
35
- INSTALL_BASH_VERSION: "5.1"
36
- script: bundle exec rake spec
37
-
38
- rspec-bash-5.0:
39
- variables:
40
- INSTALL_BASH_VERSION: "5.0"
41
- script: bundle exec rake spec
42
-
43
- rspec-bash-4.4:
44
- variables:
45
- INSTALL_BASH_VERSION: "4.4"
46
- script: bundle exec rake spec
47
-
48
- rspec-bash-4.3:
49
- variables:
50
- INSTALL_BASH_VERSION: "4.3"
51
- script: bundle exec rake spec
52
-
53
- rubocop:
54
- script: bundle exec rake rubocop
55
-
56
- yard:
57
- script: bundle exec yard stats --list-undoc
data/bashcov.gemspec DELETED
@@ -1,42 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/bashcov/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "bashcov"
7
- spec.version = Bashcov::VERSION
8
- spec.authors = ["Cédric Félizard"]
9
- spec.email = ["cedric@felizard.fr"]
10
-
11
- spec.summary = spec.description
12
- spec.description = "Code coverage tool for Bash"
13
- spec.homepage = "https://github.com/infertux/bashcov"
14
- spec.license = "MIT"
15
- spec.required_ruby_version = ">= 3.0.0"
16
-
17
- spec.metadata["homepage_uri"] = spec.homepage
18
- spec.metadata["source_code_uri"] = "https://github.com/infertux/bashcov"
19
- spec.metadata["changelog_uri"] = "https://github.com/infertux/bashcov/blob/master/CHANGELOG.md"
20
-
21
- # Specify which files should be added to the gem when it is released.
22
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
25
- end
26
- spec.bindir = "exe"
27
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
28
- spec.require_paths = ["lib"]
29
-
30
- spec.add_dependency "simplecov", "~> 0.21.2"
31
-
32
- spec.add_development_dependency "aruba"
33
- spec.add_development_dependency "bundler-audit"
34
- spec.add_development_dependency "cucumber"
35
- spec.add_development_dependency "rake"
36
- spec.add_development_dependency "rspec"
37
- spec.add_development_dependency "rubocop"
38
- spec.add_development_dependency "rubocop-rake"
39
- spec.add_development_dependency "rubocop-rspec"
40
- spec.add_development_dependency "yard"
41
- spec.metadata["rubygems_mfa_required"] = "true"
42
- end