Skip to content

Commit

Permalink
Make values in auth_hash strings, which is technically more correct
Browse files Browse the repository at this point in the history
* Faced some issues with addressable not converting integer values in certain testing scenarios. Easier to simply avoid
  • Loading branch information
mloughran committed Oct 29, 2010
1 parent 5c84b58 commit fedbf22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/signature.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def sign(token)
@auth_hash = {
:auth_version => "1.0",
:auth_key => token.key,
:auth_timestamp => Time.now.to_i
:auth_timestamp => Time.now.to_i.to_s
}

@auth_hash[:auth_signature] = signature(token)
Expand Down
2 changes: 1 addition & 1 deletion spec/signature_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
:auth_signature => "da078fcedd72941b6c873caa40d0d6b2000ebfc700cee802b128dd20f72e74e9",
:auth_version => "1.0",
:auth_key => "key",
:auth_timestamp => 1234
:auth_timestamp => '1234'
}
end

Expand Down

0 comments on commit fedbf22

Please sign in to comment.