jed/cookies — pull request #14 by brianc (2012-08-16 19:54:35+00:00)
Title: tiny update to tests

Howdy - I just updated the travis runner & test to be api compatible with newer versions of express. I did this as a precursor to a larger change I'd like to discuss.

I'd like to add a `string value = Cookies.parse(string cookieData, [object KeyGrip])` static method which does not require an instantiated an Cookies object, a request, or a response.

Primarily useful for parsing cookies from [handshake data in socket.io](https://github.com/LearnBoost/socket.io/wiki/Authorizing). I also think the `cookie.get` method does maybe a bit too much (command/query separation, SRP, bla bla bla) so this would provide a "read only" way to access cookie data - if it's expired the method could just return null or something but not concern itself with modifying outgoing cookies on the response.

Thoughts on this before I bang it together?