sarif-ruby 0.1.0 → 0.1.1
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/CHANGELOG.md +4 -0
- data/lib/sarif/run.rb +1 -1
- data/lib/sarif/version.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: cc7a25244f3277ce9dffbf15611e95951f6bbadf9ab2946b21592dcaa2f4d8cc
|
|
4
|
+
data.tar.gz: e0286cf35a8310a26e3cf3d07efb8cb3015cb982e116b1b63ff0e092f0321b4f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3d263a1772ece449694aadce3f0f3a662233af89ad53b28804638e8fdf1389e936828d33491a5ff352a38ee5d85f33116d832e14215799b43c3c6cf5d40a1aa3
|
|
7
|
+
data.tar.gz: ad6cb63d5ad082744ee846a456ab61ce1d40cea8a09942b437aaa6f9de173491e94865f48c13a801aa945d41546ccfc0bd0e1dc5c83f7fac952cf624f780e7bd
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.1.1] - 2026-06-19
|
|
4
|
+
|
|
5
|
+
- `Run#to_h` now emits `"results": []` when `results` is explicitly set to an empty array, instead of omitting the key. SARIF distinguishes absent (no results produced) from empty (scan completed, nothing found), and GitHub's `upload-sarif` action rejects runs without a `results` key.
|
|
6
|
+
|
|
3
7
|
## [0.1.0] - 2026-01-07
|
|
4
8
|
|
|
5
9
|
- Initial release
|
data/lib/sarif/run.rb
CHANGED
|
@@ -47,7 +47,7 @@ module Sarif
|
|
|
47
47
|
h["artifacts"] = @artifacts&.map(&:to_h) if @artifacts&.any?
|
|
48
48
|
h["logicalLocations"] = @logical_locations&.map(&:to_h) if @logical_locations&.any?
|
|
49
49
|
h["graphs"] = @graphs&.map(&:to_h) if @graphs&.any?
|
|
50
|
-
h["results"] = @results
|
|
50
|
+
h["results"] = @results.map(&:to_h) unless @results.nil?
|
|
51
51
|
h["automationDetails"] = @automation_details&.to_h unless @automation_details.nil?
|
|
52
52
|
h["runAggregates"] = @run_aggregates&.map(&:to_h) if @run_aggregates&.any?
|
|
53
53
|
h["baselineGuid"] = @baseline_guid unless @baseline_guid.nil?
|
data/lib/sarif/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sarif-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Nesbitt
|
|
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
100
100
|
- !ruby/object:Gem::Version
|
|
101
101
|
version: '0'
|
|
102
102
|
requirements: []
|
|
103
|
-
rubygems_version: 4.0.
|
|
103
|
+
rubygems_version: 4.0.6
|
|
104
104
|
specification_version: 4
|
|
105
105
|
summary: Ruby SDK for SARIF (Static Analysis Results Interchange Format)
|
|
106
106
|
test_files: []
|