Skip to content

Commit

Permalink
remove trollop as runtime dependency, print a warning in the signer i…
Browse files Browse the repository at this point in the history
…nstead
  • Loading branch information
Xylakant committed Dec 14, 2011
1 parent 15e4978 commit 7f4cc03
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion bin/warden-hmac-authentication
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion warden-hmac-authentication.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Gem::Specification.new do |s|

s.add_runtime_dependency(%q<addressable>)
s.add_runtime_dependency(%q<rack>)
s.add_runtime_dependency(%q<trollop>)
s.add_runtime_dependency(%q<warden>)

s.add_development_dependency(%q<rake>)
Expand All @@ -34,4 +33,5 @@ Gem::Specification.new do |s|
s.add_development_dependency(%q<timecop>)
s.add_development_dependency(%q<simplecov>)
s.add_development_dependency(%q<simplecov-html>)
s.add_development_dependency(%q<trollop>)
end

0 comments on commit 7f4cc03

Please sign in to comment.