pressf12/pubnub — pull request #3 by martindevans (2012-06-07 05:15:54+00:00)
Title: Fixed Publish method incorrectly returning false for every message

Pubnub docs (https://github.com/pubnub/pubnub-api) say that response to transmission is either:

//successful
[1,"Sent"]

//failed
[0,"Reason for Failure Shown Here"]

Changed Publish method to parse first item of array into an int and check that it is 1.

It looks like the code was probably working on an old version of the API that returned different results.

Signed-off-by: Martin Evans