featureparity 0.0.41 → 0.0.42
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/coverage.rb +16 -4
- data/lib/fp/parity.rb +5 -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: 2b39816f43f692d6a2f0a24fa9695ebbff7d206e1c35c01410da5449b277ffe7
|
|
4
|
+
data.tar.gz: 8c7c229e69aaf9cf362a75e501693f3756c6fa447001c97f35bc408ccc12fe22
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 235bdebf98654e672a8914c84c80bae47670a51db000dac4d40c49794d864ef7091137343229ff1f343e1e067844bd911e3405c1461dbf7db97065cf541afba3
|
|
7
|
+
data.tar.gz: 5ea542ed2620929710c9ce4c576e8ede9675aa7fa80e5be5b146264ecaf4c3f4f90b95fc2e6f345543068a1259f7734dbcce7c0821aca11e2a554e2fcf96360f
|
data/lib/fp/commands/coverage.rb
CHANGED
|
@@ -72,7 +72,9 @@ module Fp
|
|
|
72
72
|
bare = Array(row['cells']).select { |c| c['state'] == 'missing' }.map { |c| c['surface'] }
|
|
73
73
|
next if bare.empty?
|
|
74
74
|
|
|
75
|
-
{ 'slug' => row['slug'], 'title' => row['title'], 'surfaces' => bare }
|
|
75
|
+
entry = { 'slug' => row['slug'], 'title' => row['title'], 'surfaces' => bare }
|
|
76
|
+
proposed = bare & Array(row['proposed_surfaces'])
|
|
77
|
+
proposed.empty? ? entry : entry.merge('proposed_surfaces' => proposed)
|
|
76
78
|
end
|
|
77
79
|
end
|
|
78
80
|
|
|
@@ -89,13 +91,18 @@ module Fp
|
|
|
89
91
|
headers += surfaces
|
|
90
92
|
table = rows.map do |row|
|
|
91
93
|
by_surface = Array(row['cells']).to_h { |c| [c['surface'], c['state']] }
|
|
92
|
-
|
|
94
|
+
proposed = Array(row['proposed_surfaces'])
|
|
95
|
+
cells = surfaces.map do |key|
|
|
96
|
+
glyph = by_surface.key?(key) ? Parity.glyph(by_surface[key]) : Parity::NOT_REQUIRED
|
|
97
|
+
proposed.include?(key) ? "#{glyph} #{Parity::PROPOSED_SURFACE}" : glyph
|
|
98
|
+
end
|
|
93
99
|
line = [row['slug']]
|
|
94
100
|
line << Parity.status_label(row) if show_status
|
|
95
101
|
line + cells
|
|
96
102
|
end
|
|
97
103
|
output.table(headers, table)
|
|
98
104
|
puts Parity::LEGEND
|
|
105
|
+
puts Parity::PROPOSED_SURFACE_NOTE if rows.any? { |row| Array(row['proposed_surfaces']).any? }
|
|
99
106
|
end
|
|
100
107
|
|
|
101
108
|
# A requirement awaiting review of a proposed change is stored as a draft but is
|
|
@@ -119,8 +126,13 @@ module Fp
|
|
|
119
126
|
return
|
|
120
127
|
end
|
|
121
128
|
|
|
122
|
-
|
|
123
|
-
|
|
129
|
+
kinds = untested.any? { |u| u['proposed_surfaces'] } ? 'required or proposed' : 'required'
|
|
130
|
+
puts "#{untested.size} draft(s) with no evidence on a #{kinds} surface:"
|
|
131
|
+
untested.each do |u|
|
|
132
|
+
labels = Parity.surface_labels('required_surfaces' => u['surfaces'],
|
|
133
|
+
'proposed_surfaces' => u['proposed_surfaces'])
|
|
134
|
+
puts " #{u['slug']} — no evidence on: #{labels.join(', ')}"
|
|
135
|
+
end
|
|
124
136
|
end
|
|
125
137
|
|
|
126
138
|
private
|
data/lib/fp/parity.rb
CHANGED
|
@@ -55,6 +55,10 @@ module Fp
|
|
|
55
55
|
# case isn't cluttered by vocabulary nothing on screen uses.
|
|
56
56
|
UNDER_REVIEW_LEGEND = "#{UNDER_REVIEW} awaiting review of a proposed change"
|
|
57
57
|
|
|
58
|
+
PROPOSED_SURFACE = '(proposed)'
|
|
59
|
+
PROPOSED_SURFACE_NOTE = "#{PROPOSED_SURFACE} marks a surface an open proposal adds. " \
|
|
60
|
+
'It is not required until a human approves the proposal.'
|
|
61
|
+
|
|
58
62
|
def self.glyph(state)
|
|
59
63
|
GLYPHS.fetch(state.to_s, UNKNOWN_GLYPH)
|
|
60
64
|
end
|
|
@@ -83,7 +87,7 @@ module Fp
|
|
|
83
87
|
def self.surface_labels(requirement)
|
|
84
88
|
proposed = Array(requirement['proposed_surfaces'])
|
|
85
89
|
Array(requirement['required_surfaces']).map do |surface|
|
|
86
|
-
proposed.include?(surface) ? "#{surface}
|
|
90
|
+
proposed.include?(surface) ? "#{surface} #{PROPOSED_SURFACE}" : surface
|
|
87
91
|
end
|
|
88
92
|
end
|
|
89
93
|
|
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.42
|
|
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-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: net-http
|