summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormokha <mokha@cisco.com>2018-04-11 10:26:27 -0600
committermokha <mokha@cisco.com>2018-04-11 10:26:27 -0600
commit2f68fe9b900cc33a5e65deb2bd892147b8f5d0c4 (patch)
treebe76dd2c7c896a4de9d5f67a6fae92cdef37a956
parentd4a108a36029e368f11e237447134731f806c276 (diff)
check for nil certificate.v0.3.8main
-rw-r--r--lib/saml/kit/cli/version.rb2
-rw-r--r--lib/saml/kit/core_ext/signature.rb2
-rw-r--r--saml-kit-cli.gemspec2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/saml/kit/cli/version.rb b/lib/saml/kit/cli/version.rb
index 4a1f58d..cbc2595 100644
--- a/lib/saml/kit/cli/version.rb
+++ b/lib/saml/kit/cli/version.rb
@@ -3,7 +3,7 @@
module Saml
module Kit
module Cli
- VERSION = '0.3.7'.freeze
+ VERSION = '0.3.8'.freeze
end
end
end
diff --git a/lib/saml/kit/core_ext/signature.rb b/lib/saml/kit/core_ext/signature.rb
index 69f7b8e..9b62ec5 100644
--- a/lib/saml/kit/core_ext/signature.rb
+++ b/lib/saml/kit/core_ext/signature.rb
@@ -17,7 +17,7 @@ module Saml
TABLE.each do |key, callable|
table.push([key, callable.call(self)])
end
- table.push(['', certificate.x509.to_text])
+ table.push(['', certificate.x509.to_text]) if certificate
end
def truncate(text, max: 50)
diff --git a/saml-kit-cli.gemspec b/saml-kit-cli.gemspec
index 1679e10..4bdde28 100644
--- a/saml-kit-cli.gemspec
+++ b/saml-kit-cli.gemspec
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']
spec.required_ruby_version = '~> 2.2'
- spec.add_dependency 'saml-kit', '1.0.14'
+ spec.add_dependency 'saml-kit', '1.0.15'
spec.add_dependency 'thor', '~> 0.20'
spec.add_development_dependency 'bundler', '~> 1.16'
spec.add_development_dependency 'bundler-audit', '~> 0.6'