summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormokha <mokha@cisco.com>2018-03-06 14:32:08 -0700
committermokha <mokha@cisco.com>2018-03-06 14:32:08 -0700
commit72c4c34d23213684d4ab75ec611e1698d8b1204b (patch)
tree22c5d91eeb489022fe2f20456fb1268a889ee798
parente00dbddd76b59465823fc3fa765ccd2b6225649f (diff)
fix broken specs.
-rw-r--r--lib/saml/kit/cli/report.rb1
-rw-r--r--lib/saml/kit/core_ext/document.rb10
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