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 +4 -4
- data/.gitignore +13 -5
- data/CHANGELOG.md +10 -0
- data/lib/slather/coverage_service/cobertura_xml_output.rb +1 -1
- data/lib/slather/project.rb +2 -2
- data/lib/slather/version.rb +1 -1
- data/slather.gemspec +2 -2
- 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: 56a719230361994fdcfc33ef801d05bf5fa68714efdaa477d1aed4fdad05ee07
|
|
4
|
+
data.tar.gz: 54bb876601b8aa9e0030e8e29b3e75663d5a3c38855b3f2b56db0b23b1f4377d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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://
|
|
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
|
data/lib/slather/project.rb
CHANGED
|
@@ -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
|
data/lib/slather/version.rb
CHANGED
data/slather.gemspec
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
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.
|
|
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-
|
|
11
|
+
date: 2024-07-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|