ftr_ruby 0.1.11 → 0.1.12
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 +5 -0
- data/lib/ftr_ruby/version.rb +1 -1
- data/lib/output.rb +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 59f547350dda6c8637f28caa54f6c2bfd2efac24a0392dae1f03da050d1e594c
|
|
4
|
+
data.tar.gz: 8c54b00e3f70e04a566508acbb5fed6bfa31271d34b87ddc7c058ada716016ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd93ae6f08eff36fdfb17cdc07443338b5bf626bff5c70365c3c8469db49c14d94c1b8521a5d711d80989f70f4e6562d172d4b63c5dfd3ea4a0fa8a2d0da20d5
|
|
7
|
+
data.tar.gz: 7a48cd2953db78715f20133a2a88305529aecb83b343995af3989eee6a82059bb3065e487b33ef6db6f29e9114c8b7630a86406bbdebd4f1b55a5b9005953edf
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.1.12] - 2026-05-27
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- `Output#createEvaluationResponse`: `score = "fail"` inside the `rescue` block and `summary = ...` inside the `if` block both introduced local variables that shadowed the `attr_accessor` methods for the entire method scope; replaced all references with `@score` and `@summary` to read and write the instance variables directly — this was causing `prov:value` to always be serialized as `nil` regardless of what callers set on `output.score`
|
|
7
|
+
|
|
3
8
|
## [0.1.11] - 2026-05-26
|
|
4
9
|
|
|
5
10
|
### Changed
|
data/lib/ftr_ruby/version.rb
CHANGED
data/lib/output.rb
CHANGED
|
@@ -80,9 +80,9 @@ module FtrRuby
|
|
|
80
80
|
|
|
81
81
|
add_newline_to_comments
|
|
82
82
|
|
|
83
|
-
if summary =~ /^Summary$/
|
|
84
|
-
summary = "Summary of test results: #{comments[-1]}"
|
|
85
|
-
summary ||= "Summary of test results: #{comments[-2]}"
|
|
83
|
+
if @summary =~ /^Summary$/
|
|
84
|
+
@summary = "Summary of test results: #{comments[-1]}"
|
|
85
|
+
@summary ||= "Summary of test results: #{comments[-2]}"
|
|
86
86
|
end
|
|
87
87
|
|
|
88
88
|
executionid = "urn:ostrails:testexecutionactivity:" + SecureRandom.uuid
|
|
@@ -99,7 +99,7 @@ module FtrRuby
|
|
|
99
99
|
triplify(uniqueid, dct.title, "#{name} OUTPUT", g)
|
|
100
100
|
triplify(uniqueid, dct.description, "OUTPUT OF #{description}", g)
|
|
101
101
|
triplify(uniqueid, dct.license, license, g)
|
|
102
|
-
triplify(uniqueid, prov.value, score, g)
|
|
102
|
+
triplify(uniqueid, prov.value, @score, g)
|
|
103
103
|
triplify(uniqueid, ftr.summary, summary, g)
|
|
104
104
|
triplify(uniqueid, RDF::Vocab::PROV.generatedAtTime, dt, g)
|
|
105
105
|
triplify(uniqueid, ftr.log, comments.join, g)
|
|
@@ -134,10 +134,10 @@ module FtrRuby
|
|
|
134
134
|
rescue StandardError
|
|
135
135
|
triplify(uniqueid, ftr.assessmentTarget, "not a URI", g)
|
|
136
136
|
triplify(executionid, prov.used, "not a URI", g)
|
|
137
|
-
score = "fail"
|
|
137
|
+
@score = "fail"
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
-
unless score == "pass"
|
|
140
|
+
unless @score == "pass"
|
|
141
141
|
guidance.each do |advice, label|
|
|
142
142
|
adviceid = "urn:ostrails:testexecutionactivity:advice:" + SecureRandom.uuid
|
|
143
143
|
triplify(uniqueid, ftr.suggestion, adviceid, g)
|