whitmer/canvas-api — pull request #9 by jbasdf (2014-12-23 00:42:33+00:00)
Title: Don't crash if params is an array

The documentation indicates that arrays are a legal input for params:

canvas.put("/api/v1/users/self", [['user[name]', 'Dixon Wilson'],['user[short_name]', 'Dixon']]) # this is synonymous with the previous call

However, the current code assumes params will be a hash. This changes checks the params type.