Handle NOCVE and module traits

master
William Vu 2019-04-23 19:47:49 -05:00
parent 30b8625885
commit 372ec1949a
1 changed files with 6 additions and 0 deletions

View File

@ -683,9 +683,15 @@ class ReadableText
when 'AKA' when 'AKA'
output << "Also known as:\n" output << "Also known as:\n"
val.each { |aka| output << "#{indent}#{aka}\n" } val.each { |aka| output << "#{indent}#{aka}\n" }
when 'NOCVE'
output << "CVE not available:\n" \
"#{indent}#{val}\n"
when 'RELATED' when 'RELATED'
output << "Related modules:\n" output << "Related modules:\n"
val.each { |related| output << "#{indent}#{related}\n" } val.each { |related| output << "#{indent}#{related}\n" }
when 'Stability', 'SideEffects', 'Reliability'
# Handled by dump_traits
next
else else
# Display the raw note # Display the raw note
output << "#{name}:\n" \ output << "#{name}:\n" \