diff --git a/bin/warden-hmac-authentication b/bin/warden-hmac-authentication index 08ca07d..bcf0284 100755 --- a/bin/warden-hmac-authentication +++ b/bin/warden-hmac-authentication @@ -1,6 +1,20 @@ #!/usr/bin/env ruby -require 'trollop' +begin + require 'trollop' +rescue LoadError => e + puts "" + puts "" + puts "============= ERROR ================" + puts "" + puts "You need trollop installed or in your gemfile to use the signer" + puts "" + puts "============= ERROR ================" + puts "" + puts "" + exit(-1) +end + require 'hmac/signer' opts = Trollop::options do diff --git a/warden-hmac-authentication.gemspec b/warden-hmac-authentication.gemspec index b73684d..2a2756d 100644 --- a/warden-hmac-authentication.gemspec +++ b/warden-hmac-authentication.gemspec @@ -25,7 +25,6 @@ Gem::Specification.new do |s| s.add_runtime_dependency(%q) s.add_runtime_dependency(%q) - s.add_runtime_dependency(%q) s.add_runtime_dependency(%q) s.add_development_dependency(%q) @@ -34,4 +33,5 @@ Gem::Specification.new do |s| s.add_development_dependency(%q) s.add_development_dependency(%q) s.add_development_dependency(%q) + s.add_development_dependency(%q) end \ No newline at end of file