diff options
| author | mokha <mokha@cisco.com> | 2018-03-06 14:32:08 -0700 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2018-03-06 14:32:08 -0700 |
| commit | 72c4c34d23213684d4ab75ec611e1698d8b1204b (patch) | |
| tree | 22c5d91eeb489022fe2f20456fb1268a889ee798 | |
| parent | e00dbddd76b59465823fc3fa765ccd2b6225649f (diff) | |
fix broken specs.
| -rw-r--r-- | lib/saml/kit/cli/report.rb | 1 | ||||
| -rw-r--r-- | lib/saml/kit/core_ext/document.rb | 10 |
2 files changed, 7 insertions, 4 deletions
diff --git a/lib/saml/kit/cli/report.rb b/lib/saml/kit/cli/report.rb index 48442db..844a816 100644 --- a/lib/saml/kit/cli/report.rb +++ b/lib/saml/kit/cli/report.rb @@ -68,6 +68,7 @@ module Saml def build_table_for(document) table = [] document.build_header(table) + #document.build_body(table) build_body_for(document, table) table end diff --git a/lib/saml/kit/core_ext/document.rb b/lib/saml/kit/core_ext/document.rb index 281c07c..68bdf45 100644 --- a/lib/saml/kit/core_ext/document.rb +++ b/lib/saml/kit/core_ext/document.rb @@ -12,10 +12,6 @@ module Saml table.push(['Trusted?', trusted?]) signature.build_header(table) if signature.present? end - - def truncate(text, max: 50) - text.length >= max ? "#{text[0..max]}..." : text - end end class Metadata @@ -53,6 +49,12 @@ module Saml ]) table.push(['', certificate.x509.to_text]) end + + private + + def truncate(text, max: 50) + text.length >= max ? "#{text[0..max]}..." : text + end end end end |
