featureparity 0.0.38 → 0.0.39

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: 2a92e0896218a93cbad1f24f42c2354ed86b58e2bbbd4dc3a68c9f43e7804642
4
- data.tar.gz: a19eb9b79bbe79229d66ccabcd2193df3c808d536b0df3cb81f26be822b11568
3
+ metadata.gz: 728f32133b314a959c3d44742058516e90dba1f82b0ae211809d43d86c84f026
4
+ data.tar.gz: d6c083a465b825cbaa0b62a7b19ba99cd083b86565df914376eb45a61d071bd4
5
5
  SHA512:
6
- metadata.gz: 4ea52af325a0b3a848c6527cd99aad3a547428e792c93b682c75a1a86e856e94dd5f384038748415099f5ff0c0395d7f327941fa610b07684fb16d79aabc6b7b
7
- data.tar.gz: 663ec3b222bf6326205a58caf16a33a8bf42026caffb5638ba2d5406bf780170485c650ccbb115bb08f0a1c1f5bfa02d76fbc8b970795f1043243e89fec37279
6
+ metadata.gz: dedc368d3d9e755cf44b5c7dfbe513cfead1b21a16e47e14052199c500ec8bf3dd3d9942c37a9c5d14faccf6a518e01c241e7b6dfe098ce18bc75b4f49f02954
7
+ data.tar.gz: 522329e058ec8cf7a12c7df1bab98e4588b70c635bbd27dbc60cd31c4224ebb99f956377e4f48e8e1986fd4a186cfdb2fd881238fc779dc05aa4a645717997a7
@@ -154,7 +154,7 @@ module Fp
154
154
  'duplicate_of' => issues.find { |i| i['type'] == 'duplicate' }&.dig('duplicate_of'),
155
155
  'conflicts' => (analysis && analysis['conflicts']) || [],
156
156
  'suggestions' => (analysis && analysis['suggestions']) || [],
157
- 'warrants_requirement' => analysis && analysis['warrants_requirement'],
157
+ 'warrants_requirement' => warrants_requirement(analysis),
158
158
  'error' => error
159
159
  }
160
160
  end
@@ -238,6 +238,19 @@ module Fp
238
238
  # The analyzer's yes/no on whether the concept deserves to be a requirement at all.
239
239
  # A "no" carries its reason so a human can decide to withdraw it — the CLI only
240
240
  # reports it; nothing is withdrawn or proposed on the strength of the judgment.
241
+ # The server's `legitimacy` is the judgment; `--json` keeps reporting it under
242
+ # `warrants_requirement` as { judgment, confidence, reason }.
243
+ def warrants_requirement(analysis)
244
+ legitimacy = analysis && analysis['legitimacy']
245
+ return nil unless legitimacy.is_a?(Hash) && [true, false].include?(legitimacy['passes'])
246
+
247
+ {
248
+ 'judgment' => legitimacy['passes'],
249
+ 'confidence' => legitimacy['confidence'],
250
+ 'reason' => Array(legitimacy['reasons']).first
251
+ }
252
+ end
253
+
241
254
  def warrants_line(warrants)
242
255
  return nil unless warrants.is_a?(Hash) && [true, false].include?(warrants['judgment'])
243
256
 
data/lib/fp/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fp
4
- VERSION = '0.0.38'
4
+ VERSION = '0.0.39'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: featureparity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.38
4
+ version: 0.0.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stowzilla
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-18 00:00:00.000000000 Z
11
+ date: 2026-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-http