slather 2.8.2 → 2.8.3

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: e740d04c842a31b3cdd43d34178272bd2ae1cda7621986afd77d9b11baf44cf4
4
- data.tar.gz: 11129984c03a94983103c5dc8565eef549db17d65a3052d8e7ba7cb0b5e290e4
3
+ metadata.gz: 56a719230361994fdcfc33ef801d05bf5fa68714efdaa477d1aed4fdad05ee07
4
+ data.tar.gz: 54bb876601b8aa9e0030e8e29b3e75663d5a3c38855b3f2b56db0b23b1f4377d
5
5
  SHA512:
6
- metadata.gz: a361834b1f04eef5da4b40610a33ad18112c06860584fd64c7abab2cb08115446265c69274c083ed16742b0ced9c7db77268c16d67077cffd3569771d902eff0
7
- data.tar.gz: 9906b2918932a535ddf85a65119629405a95c09233e233b3c85a5ace8ab099f671f123b388cb189c15a60e1435416505b11e24815abf6400e26ff09bc2b096e6
6
+ metadata.gz: 91f45c65454ba75daf6b34529287c7cda4978e60b84ba37cf2e758977382ecc1aa8b13f5e81b6d5616778d2339f2422df4b6a85f539f3922dcd40088d562b9e6
7
+ data.tar.gz: 50c23e7d3d92d380c0ad385e21ee04fccc9f2b012c4db1657758fc428bbbc6c389e03ec40c2df420f6f493819b2ea98b754d74a678a484d8338f8c7c975934a4
data/.gitignore CHANGED
@@ -22,6 +22,12 @@ tmp
22
22
  mkmf.log
23
23
  .vendor
24
24
  .ruby-version
25
+ cobertura.xml
26
+ .gutter.json
27
+ html
28
+ *.gcda
29
+ *.gcno
30
+
25
31
  # Xcode
26
32
  #
27
33
  *.pbxuser
@@ -40,11 +46,13 @@ DerivedData
40
46
  *.ipa
41
47
  *.xcuserstate
42
48
  *.DS_Store
43
- cobertura.xml
44
- .gutter.json
45
- html
46
- *.gcda
47
- *.gcno
49
+
50
+ # VSCode IDE
51
+ .vscode/
52
+ .rdbgrc*
53
+
54
+ # python
55
+ .venv/
48
56
 
49
57
  # JetBrains IDE
50
58
  .idea/
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v2.8.3
4
+
5
+ * Fix coverage_file.source_file_pathname
6
+ [alfredofernandes](https://github.com/alfredofernandes)
7
+ [#565](https://github.com/SlatherOrg/slather/pull/565)
8
+
9
+ * update cobertura DTD to a working URL.
10
+ [jarrodlombardo-EventBase](https://github.com/jarrodlombardo-EventBase)
11
+ [#564](https://github.com/SlatherOrg/slather/pull/564)
12
+
3
13
  ## v2.8.2
4
14
 
5
15
  * coverage_info.include_files? needs a default true return value for when source_files is empty.
@@ -171,7 +171,7 @@ module Slather
171
171
  xml.doc.create_internal_subset(
172
172
  'coverage',
173
173
  nil,
174
- "https://cobertura.sourceforge.net/xml/coverage-04.dtd"
174
+ "https://raw.githubusercontent.com/cobertura/cobertura/master/cobertura/src/site/htdocs/xml/coverage-04.dtd"
175
175
  )
176
176
  xml.coverage do
177
177
  xml.sources do
@@ -185,7 +185,7 @@ module Slather
185
185
  if paths_to_segments.key?(coverage_file.source_file_pathname)
186
186
  coverage_file.segments = paths_to_segments[coverage_file.source_file_pathname]
187
187
  end
188
- !coverage_file.ignored? && coverage_file.include_file? ? coverage_file : nil
188
+ coverage_file.source_file_pathname && !coverage_file.ignored? && coverage_file.include_file? ? coverage_file : nil
189
189
  end.compact
190
190
  end
191
191
  private :create_coverage_files
@@ -651,7 +651,7 @@ module Slather
651
651
 
652
652
  def find_source_files
653
653
  source_files = load_option_array("source_files")
654
- return if source_files.nil?
654
+ return [] if source_files.nil?
655
655
 
656
656
  current_dir = Pathname("./").realpath
657
657
  paths = source_files.flat_map { |pattern| Dir.glob(pattern) }.uniq
@@ -1,3 +1,3 @@
1
1
  module Slather
2
- VERSION = '2.8.2' unless defined?(Slather::VERSION)
2
+ VERSION = '2.8.3' unless defined?(Slather::VERSION)
3
3
  end
data/slather.gemspec CHANGED
@@ -1,4 +1,4 @@
1
- # coding: utf-8
1
+ # encoding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'slather/version'
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.homepage = 'https://github.com/SlatherOrg/slather'
13
13
  spec.license = 'MIT'
14
14
 
15
- spec.files = `git ls-files -z`.split("\x0")
15
+ spec.files = `git ls-files -z`.force_encoding('utf-8').split("\x0")
16
16
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ['lib']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slather
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.2
4
+ version: 2.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Larsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-21 00:00:00.000000000 Z
11
+ date: 2024-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler