diff options
author | Daniel DeLeo <dan@opscode.com> | 2010-07-22 19:37:36 -0700 |
---|---|---|
committer | Daniel DeLeo <dan@opscode.com> | 2010-07-22 19:37:36 -0700 |
commit | 8ba96ec12d3ec0c13a95fd28d5fdb9f1ba439f08 (patch) | |
tree | 74ecc30a81485b3e046328f74fb07c55e9205283 /lib | |
parent | a82207b26698dc7b313bd28b14a1edde91b7cce0 (diff) | |
download | mixlib-authentication-8ba96ec12d3ec0c13a95fd28d5fdb9f1ba439f08.tar.gz |
inheriting from a struct fails when the file is loaded twice
for some totally weird reason, starting chef-server via the rackup file
causes mixlib/authentication to get loaded twice. This causes a
superclass mismatch when inheriting from Struct.new. Since we aren't
adding any behavior to the struct, we can just assign it to a constant
and get the same results.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mixlib/authentication/signatureverification.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/mixlib/authentication/signatureverification.rb b/lib/mixlib/authentication/signatureverification.rb index f2dee9a..65e8374 100644 --- a/lib/mixlib/authentication/signatureverification.rb +++ b/lib/mixlib/authentication/signatureverification.rb @@ -25,8 +25,7 @@ require 'mixlib/authentication/signedheaderauth' module Mixlib module Authentication - class SignatureResponse < Struct.new(:name) - end + SignatureResponse = Struct.new(:name) class SignatureVerification extend Forwardable |