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 +4 -4
- data/lib/fp/commands/analyze.rb +14 -1
- data/lib/fp/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: 728f32133b314a959c3d44742058516e90dba1f82b0ae211809d43d86c84f026
|
|
4
|
+
data.tar.gz: d6c083a465b825cbaa0b62a7b19ba99cd083b86565df914376eb45a61d071bd4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dedc368d3d9e755cf44b5c7dfbe513cfead1b21a16e47e14052199c500ec8bf3dd3d9942c37a9c5d14faccf6a518e01c241e7b6dfe098ce18bc75b4f49f02954
|
|
7
|
+
data.tar.gz: 522329e058ec8cf7a12c7df1bab98e4588b70c635bbd27dbc60cd31c4224ebb99f956377e4f48e8e1986fd4a186cfdb2fd881238fc779dc05aa4a645717997a7
|
data/lib/fp/commands/analyze.rb
CHANGED
|
@@ -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
|
|
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
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.
|
|
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-
|
|
11
|
+
date: 2026-11-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: net-http
|