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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be4cb2cd61574feb95c0359b6d3c1534ae2bd13090c9cc77c874e7efeda209f2
4
- data.tar.gz: 1b20953f8acffa00d4ef3b6af4658a5eb05e657728f3c55bdf7230311ecccd9d
3
+ metadata.gz: 59f547350dda6c8637f28caa54f6c2bfd2efac24a0392dae1f03da050d1e594c
4
+ data.tar.gz: 8c54b00e3f70e04a566508acbb5fed6bfa31271d34b87ddc7c058ada716016ca
5
5
  SHA512:
6
- metadata.gz: '0983e92af3a5199f1ba54a9023edb50bacbde94cb46805ae1c913a9110beabdc2c9da6d2a2968677b506f2cde1c7c41171f9143b1689fa3222c4b43f70f6d932'
7
- data.tar.gz: 3f2853d3956422992ca5d640c92113b34eb0336633724e039f2f70689d79758a32f5e46e7841ee6ee7ba12e14b6f74ebcb9ce34ed08f7687fee1b14ff75e07a5
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FtrRuby
4
- VERSION = "0.1.11"
4
+ VERSION = "0.1.12"
5
5
  end
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ftr_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - markwilkinson